authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-22 05:40:13+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-22 22:15:32+02:00
logcf7ffbf82d9322890862b164885bd56be9104dfa
tree3294d08996c153b1c8d44b432b84e30151940b55
parent12e5a6909f82694d6686d7bf5fd5bf9c7f369e04
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.Io: make Operation.DeviceIoControl.code a usize on some BSDs


1 files changed, 4 insertions(+), 1 deletions(-)

lib/std/Io.zig+4-1
...@@ -333,7 +333,10 @@ pub const Operation = union(enum) {...@@ -333,7 +333,10 @@ pub const Operation = union(enum) {
333 else => struct {333 else => struct {
334 file: File,334 file: File,
335 /// Device-dependent operation code.335 /// Device-dependent operation code.
336 code: u32,336 code: switch (builtin.target.os.tag) {
337 .dragonfly, .freebsd, .openbsd => usize,
338 else => u32,
339 },
337 arg: ?*anyopaque,340 arg: ?*anyopaque,
338341
339 /// Device and operation dependent result. Negative values are342 /// Device and operation dependent result. Negative values are