| ... | @@ -1997,7 +1997,7 @@ fn fileLength(userdata: ?*anyopaque, file: File) File.LengthError!u64 { | ... | @@ -1997,7 +1997,7 @@ fn fileLength(userdata: ?*anyopaque, file: File) File.LengthError!u64 { |
| 1997 | try current_thread.beginSyscall(); | 1997 | try current_thread.beginSyscall(); |
| 1998 | while (true) { | 1998 | while (true) { |
| 1999 | var statx = std.mem.zeroes(linux.Statx); | 1999 | var statx = std.mem.zeroes(linux.Statx); |
| 2000 | switch (linux.errno(linux.statx(file.handle, "", linux.AT.EMPTY_PATH, linux.STATX_SIZE, &statx))) { | 2000 | switch (linux.errno(linux.statx(file.handle, "", linux.AT.EMPTY_PATH, .{ .SIZE = true }, &statx))) { |
| 2001 | .SUCCESS => { | 2001 | .SUCCESS => { |
| 2002 | current_thread.endSyscall(); | 2002 | current_thread.endSyscall(); |
| 2003 | return statx.size; | 2003 | return statx.size; |