mirror of
https://codeberg.org/ziglang/zig.git
synced 2026-03-08 02:24:33 +01:00
netbsd: use correct symbol for wait4
This commit is contained in:
parent
6984992153
commit
0ae629ee22
1 changed files with 8 additions and 1 deletions
|
|
@ -10651,7 +10651,12 @@ pub extern "c" fn unlink(path: [*:0]const u8) c_int;
|
|||
pub extern "c" fn unlinkat(dirfd: fd_t, path: [*:0]const u8, flags: c_uint) c_int;
|
||||
pub extern "c" fn getcwd(buf: [*]u8, size: usize) ?[*]u8;
|
||||
pub extern "c" fn waitpid(pid: pid_t, status: ?*c_int, options: c_int) pid_t;
|
||||
pub extern "c" fn wait4(pid: pid_t, status: ?*c_int, options: c_int, ru: ?*rusage) pid_t;
|
||||
|
||||
pub const wait4 = switch (native_os) {
|
||||
.netbsd => private.__wait450,
|
||||
else => private.wait4,
|
||||
};
|
||||
|
||||
pub const fork = switch (native_os) {
|
||||
.dragonfly,
|
||||
.freebsd,
|
||||
|
|
@ -11440,6 +11445,7 @@ const private = struct {
|
|||
extern "c" fn sigaltstack(ss: ?*stack_t, old_ss: ?*stack_t) c_int;
|
||||
extern "c" fn sysconf(sc: c_int) c_long;
|
||||
extern "c" fn shm_open(name: [*:0]const u8, flag: c_int, mode: mode_t) c_int;
|
||||
extern "c" fn wait4(pid: pid_t, status: ?*c_int, options: c_int, ru: ?*rusage) pid_t;
|
||||
|
||||
extern "c" fn pthread_setname_np(thread: pthread_t, name: [*:0]const u8) c_int;
|
||||
|
||||
|
|
@ -11492,6 +11498,7 @@ const private = struct {
|
|||
extern "c" fn __stat50(path: [*:0]const u8, buf: *Stat) c_int;
|
||||
extern "c" fn __getdents30(fd: c_int, buf_ptr: [*]u8, nbytes: usize) c_int;
|
||||
extern "c" fn __sigaltstack14(ss: ?*stack_t, old_ss: ?*stack_t) c_int;
|
||||
extern "c" fn __wait450(pid: pid_t, status: ?*c_int, options: c_int, ru: ?*rusage) pid_t;
|
||||
|
||||
extern "c" fn __libc_current_sigrtmin() c_int;
|
||||
extern "c" fn __libc_current_sigrtmax() c_int;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue