From 2a40c1b556d7ed7811d3d2432dce8ba5d7c2e753 Mon Sep 17 00:00:00 2001 From: Andrew Kelley Date: Sun, 14 Dec 2025 16:19:00 -0800 Subject: [PATCH] std.Io.Threaded: update call to statx --- lib/std/Io/Threaded.zig | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/std/Io/Threaded.zig b/lib/std/Io/Threaded.zig index d4c4da3990260f7c5a23a12f423608a1eb53bc3e..f4f42cc39f7c9f12ecbdc2fe9deaaaeac8bb3094 100644 --- 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; -- 2.54.0