diff options
author | bors <bors@rust-lang.org> | 2023-01-25 18:50:19 +0000 |
---|---|---|
committer | bors <bors@rust-lang.org> | 2023-01-25 18:50:19 +0000 |
commit | e6496a11ac7aa5164c7f1e8383cdba8e03851c97 (patch) | |
tree | 666724f7b4c44ce21ab0370822dd14b3dcad30cd | |
parent | 1df1e22876c36b3c00de679e9a57226f12c8f266 (diff) | |
parent | 055104497f76c12b64a431e632b515f8066bca80 (diff) | |
download | rust-libc-e6496a11ac7aa5164c7f1e8383cdba8e03851c97.tar.gz |
Auto merge of #3083 - devnexen:netbsd10_pollapi_update, r=JohnTitor
netbsd 10 add ppoll api support
-rw-r--r-- | libc-test/semver/netbsd.txt | 1 | ||||
-rw-r--r-- | src/unix/bsd/netbsdlike/netbsd/mod.rs | 7 |
2 files changed, 7 insertions, 1 deletions
diff --git a/libc-test/semver/netbsd.txt b/libc-test/semver/netbsd.txt index ebd5ddc720..a54221175f 100644 --- a/libc-test/semver/netbsd.txt +++ b/libc-test/semver/netbsd.txt @@ -1403,6 +1403,7 @@ posix_spawnattr_setschedpolicy posix_spawnattr_setsigdefault posix_spawnattr_setsigmask posix_spawnattr_t +ppoll preadv pseudo_AF_HDRCMPLT pseudo_AF_KEY diff --git a/src/unix/bsd/netbsdlike/netbsd/mod.rs b/src/unix/bsd/netbsdlike/netbsd/mod.rs index c31c29a5ee..4ac722c4c3 100644 --- a/src/unix/bsd/netbsdlike/netbsd/mod.rs +++ b/src/unix/bsd/netbsdlike/netbsd/mod.rs @@ -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, |