Skip to content

Commit 0551044

Browse files
committed
netbsd 10 add ppoll api support
1 parent f1bb40a commit 0551044

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

libc-test/semver/netbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1396,6 +1396,7 @@ posix_spawnattr_setschedpolicy
13961396
posix_spawnattr_setsigdefault
13971397
posix_spawnattr_setsigmask
13981398
posix_spawnattr_t
1399+
ppoll
13991400
preadv
14001401
pseudo_AF_HDRCMPLT
14011402
pseudo_AF_KEY

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2798,7 +2798,12 @@ extern "C" {
27982798
ts: *const ::timespec,
27992799
sigmask: *const ::sigset_t,
28002800
) -> ::c_int;
2801-
2801+
pub fn ppoll(
2802+
fds: *mut ::pollfd,
2803+
nfds: ::nfds_t,
2804+
ts: *const ::timespec,
2805+
sigmask: *const ::sigset_t,
2806+
) -> ::c_int;
28022807
pub fn posix_spawn(
28032808
pid: *mut ::pid_t,
28042809
path: *const ::c_char,

0 commit comments

Comments
 (0)