Skip to content

Commit e6496a1

Browse files
committed
Auto merge of #3083 - devnexen:netbsd10_pollapi_update, r=JohnTitor
netbsd 10 add ppoll api support
2 parents 1df1e22 + 0551044 commit e6496a1

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
@@ -1403,6 +1403,7 @@ posix_spawnattr_setschedpolicy
14031403
posix_spawnattr_setsigdefault
14041404
posix_spawnattr_setsigmask
14051405
posix_spawnattr_t
1406+
ppoll
14061407
preadv
14071408
pseudo_AF_HDRCMPLT
14081409
pseudo_AF_KEY

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

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2806,7 +2806,12 @@ extern "C" {
28062806
ts: *const ::timespec,
28072807
sigmask: *const ::sigset_t,
28082808
) -> ::c_int;
2809-
2809+
pub fn ppoll(
2810+
fds: *mut ::pollfd,
2811+
nfds: ::nfds_t,
2812+
ts: *const ::timespec,
2813+
sigmask: *const ::sigset_t,
2814+
) -> ::c_int;
28102815
pub fn posix_spawn(
28112816
pid: *mut ::pid_t,
28122817
path: *const ::c_char,

0 commit comments

Comments
 (0)