authorgravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-15 03:03:11+02:00
committergravatar for alex@alexrp.comAlex Rønne Petersen <alex@alexrp.com> 2026-10-22 22:15:31+02:00
log4769dc5473a1e3e5b93e219b145d0072dce9886e
tree5d2b6e58631564f44863b2a42c28f72675c056d9
parenta49bf81352aed0c7b090ee1c5f0a5144b7bbc540
signature Signed by SSH key SHA256:7B/LJ7bpR1eX8aCXSr4mtd5M45VMPKcx9zY8e95b5QM

std.c: fix getdirentries() signature for dragonfly


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

lib/std/c.zig+1-1
...@@ -11874,7 +11874,7 @@ const private = struct {...@@ -11874,7 +11874,7 @@ const private = struct {
11874 extern "c" fn fork() c_int;11874 extern "c" fn fork() c_int;
11875 extern "c" fn fstat(fd: fd_t, buf: *Stat) c_int;11875 extern "c" fn fstat(fd: fd_t, buf: *Stat) c_int;
11876 extern "c" fn fstatat(dirfd: fd_t, path: [*:0]const u8, buf: *Stat, flag: u32) c_int;11876 extern "c" fn fstatat(dirfd: fd_t, path: [*:0]const u8, buf: *Stat, flag: u32) c_int;
11877 extern "c" fn getdirentries(fd: fd_t, buf_ptr: [*]u8, nbytes: usize, basep: *i64) isize;11877 extern "c" fn getdirentries(fd: fd_t, buf_ptr: [*]u8, nbytes: usize, basep: *i64) if (native_os == .dragonfly) c_int else isize;
11878 extern "c" fn getdents(fd: c_int, buf_ptr: [*]u8, nbytes: usize) switch (native_os) {11878 extern "c" fn getdents(fd: c_int, buf_ptr: [*]u8, nbytes: usize) switch (native_os) {
11879 else => c_int,11879 else => c_int,
11880 .freebsd => isize,11880 .freebsd => isize,