Skip to content

Commit

Permalink
Auto merge of #3083 - devnexen:netbsd10_pollapi_update, r=JohnTitor
Browse files Browse the repository at this point in the history
netbsd 10 add ppoll api support
  • Loading branch information
bors committed Jan 25, 2023
2 parents 1df1e22 + 0551044 commit e6496a1
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
1 change: 1 addition & 0 deletions libc-test/semver/netbsd.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1403,6 +1403,7 @@ posix_spawnattr_setschedpolicy
posix_spawnattr_setsigdefault
posix_spawnattr_setsigmask
posix_spawnattr_t
ppoll
preadv
pseudo_AF_HDRCMPLT
pseudo_AF_KEY
Expand Down
7 changes: 6 additions & 1 deletion src/unix/bsd/netbsdlike/netbsd/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -2806,7 +2806,12 @@ extern "C" {
ts: *const ::timespec,
sigmask: *const ::sigset_t,
) -> ::c_int;

pub fn ppoll(
fds: *mut ::pollfd,
nfds: ::nfds_t,
ts: *const ::timespec,
sigmask: *const ::sigset_t,
) -> ::c_int;
pub fn posix_spawn(
pid: *mut ::pid_t,
path: *const ::c_char,
Expand Down

0 comments on commit e6496a1

Please sign in to comment.