commit 2a40c1b556d7ed7811d3d2432dce8ba5d7c2e753 (tree)
parent f82e7dfbc0374945e8e00884a7ae40743cdf25da
Author: Andrew Kelley <andrew@ziglang.org>
Date: Sun, 14 Dec 2025 16:19:00 -0800
std.Io.Threaded: update call to statx
Diffstat:
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig
@@ -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;