authorgravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2025-12-27 16:48:07-05:00
committergravatar for michael.dusan@gmail.comMichael Dusan <michael.dusan@gmail.com> 2025-12-28 20:20:43+01:00
log0ae629ee226d2a07922772b6eae409926e62d110
treec5e6bb52302151e5428e7f1f9b60c40cc2c236b6
parent6984992153f0656b04c39279f9684fd5a06e952d

netbsd: use correct symbol for wait4


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

lib/std/c.zig+8-1
...@@ -10651,7 +10651,12 @@ pub extern "c" fn unlink(path: [*:0]const u8) c_int;...@@ -10651,7 +10651,12 @@ pub extern "c" fn unlink(path: [*:0]const u8) c_int;
10651pub extern "c" fn unlinkat(dirfd: fd_t, path: [*:0]const u8, flags: c_uint) c_int;10651pub extern "c" fn unlinkat(dirfd: fd_t, path: [*:0]const u8, flags: c_uint) c_int;
10652pub extern "c" fn getcwd(buf: [*]u8, size: usize) ?[*]u8;10652pub extern "c" fn getcwd(buf: [*]u8, size: usize) ?[*]u8;
10653pub extern "c" fn waitpid(pid: pid_t, status: ?*c_int, options: c_int) pid_t;10653pub extern "c" fn waitpid(pid: pid_t, status: ?*c_int, options: c_int) pid_t;
10654pub extern "c" fn wait4(pid: pid_t, status: ?*c_int, options: c_int, ru: ?*rusage) pid_t;10654
10655pub const wait4 = switch (native_os) {
10656 .netbsd => private.__wait450,
10657 else => private.wait4,
10658};
10659
10655pub const fork = switch (native_os) {10660pub const fork = switch (native_os) {
10656 .dragonfly,10661 .dragonfly,
10657 .freebsd,10662 .freebsd,
...@@ -11440,6 +11445,7 @@ const private = struct {...@@ -11440,6 +11445,7 @@ const private = struct {
11440 extern "c" fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) c_int;11445 extern "c" fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) c_int;
11441 extern "c" fn sysconf(sc: c_int) c_long;11446 extern "c" fn sysconf(sc: c_int) c_long;
11442 extern "c" fn shm_open(name: [*:0]const u8, flag: c_int, mode: mode_t) c_int;11447 extern "c" fn shm_open(name: [*:0]const u8, flag: c_int, mode: mode_t) c_int;
11448 extern "c" fn wait4(pid: pid_t, status: ?*c_int, options: c_int, ru: ?*rusage) pid_t;
1144311449
11444 extern "c" fn pthread_setname_np(thread: pthread_t, name: [*:0]const u8) c_int;11450 extern "c" fn pthread_setname_np(thread: pthread_t, name: [*:0]const u8) c_int;
1144511451
...@@ -11492,6 +11498,7 @@ const private = struct {...@@ -11492,6 +11498,7 @@ const private = struct {
11492 extern "c" fn __stat50(path: [*:0]const u8, buf: *Stat) c_int;11498 extern "c" fn __stat50(path: [*:0]const u8, buf: *Stat) c_int;
11493 extern "c" fn __getdents30(fd: c_int, buf_ptr: [*]u8, nbytes: usize) c_int;11499 extern "c" fn __getdents30(fd: c_int, buf_ptr: [*]u8, nbytes: usize) c_int;
11494 extern "c" fn __sigaltstack14(ss: ?*stack_t, old_ss: ?*stack_t) c_int;11500 extern "c" fn __sigaltstack14(ss: ?*stack_t, old_ss: ?*stack_t) c_int;
11501 extern "c" fn __wait450(pid: pid_t, status: ?*c_int, options: c_int, ru: ?*rusage) pid_t;
1149511502
11496 extern "c" fn __libc_current_sigrtmin() c_int;11503 extern "c" fn __libc_current_sigrtmin() c_int;
11497 extern "c" fn __libc_current_sigrtmax() c_int;11504 extern "c" fn __libc_current_sigrtmax() c_int;