Skip to content

Commit 2da7608

Browse files
committed
adding waitid call to netbsd
close #2243
1 parent 9fee1d0 commit 2da7608

File tree

2 files changed

+8
-0
lines changed

2 files changed

+8
-0
lines changed

libc-test/semver/netbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1290,3 +1290,4 @@ utmpxname
12901290
utpname
12911291
vm_size_t
12921292
wait4
1293+
waitid

src/unix/bsd/netbsdlike/netbsd/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2081,6 +2081,13 @@ extern "C" {
20812081
timeout: *const ::timespec,
20822082
) -> ::c_int;
20832083
pub fn sigwaitinfo(set: *const sigset_t, info: *mut siginfo_t) -> ::c_int;
2084+
pub fn waitid(
2085+
idtype: idtype_t,
2086+
id: ::id_t,
2087+
infop: *mut ::siginfo_t,
2088+
options: ::c_int,
2089+
) -> ::c_int;
2090+
20842091
pub fn duplocale(base: ::locale_t) -> ::locale_t;
20852092
pub fn freelocale(loc: ::locale_t);
20862093
pub fn localeconv_l(loc: ::locale_t) -> *mut lconv;

0 commit comments

Comments
 (0)