mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:44:43 +01:00
std.Io.Threaded: update call to statx
This commit is contained in:
parent
f82e7dfbc0
commit
2a40c1b556
1 changed files with 1 additions and 1 deletions
|
|
@ -1997,7 +1997,7 @@ fn fileLength(userdata: ?*anyopaque, file: File) File.LengthError!u64 {
|
|||
try current_thread.beginSyscall();
|
||||
while (true) {
|
||||
var statx = std.mem.zeroes(linux.Statx);
|
||||
switch (linux.errno(linux.statx(file.handle, "", linux.AT.EMPTY_PATH, linux.STATX_SIZE, &statx))) {
|
||||
switch (linux.errno(linux.statx(file.handle, "", linux.AT.EMPTY_PATH, .{ .SIZE = true }, &statx))) {
|
||||
.SUCCESS => {
|
||||
current_thread.endSyscall();
|
||||
return statx.size;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue