Skip to content

Commit 94e80b4

Browse files
committed
OpenBSD: add ppoll
1 parent 293d8cf commit 94e80b4

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1248,6 +1248,7 @@ posix_spawnattr_setschedpolicy
12481248
posix_spawnattr_setsigdefault
12491249
posix_spawnattr_setsigmask
12501250
posix_spawnp
1251+
ppoll
12511252
preadv
12521253
pseudo_AF_HDRCMPLT
12531254
pseudo_AF_PFLOW

src/unix/bsd/netbsdlike/mod.rs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -732,6 +732,12 @@ extern "C" {
732732
param: *mut sched_param,
733733
) -> c_int;
734734
pub fn pipe2(fds: *mut c_int, flags: c_int) -> c_int;
735+
pub fn ppoll(
736+
fds: *mut crate::pollfd,
737+
nfds: crate::nfds_t,
738+
ts: *const crate::timespec,
739+
sigmask: *const crate::sigset_t,
740+
) -> c_int;
735741

736742
pub fn getgrouplist(
737743
name: *const c_char,

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

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -2194,12 +2194,6 @@ extern "C" {
21942194
ts: *const crate::timespec,
21952195
sigmask: *const crate::sigset_t,
21962196
) -> c_int;
2197-
pub fn ppoll(
2198-
fds: *mut crate::pollfd,
2199-
nfds: crate::nfds_t,
2200-
ts: *const crate::timespec,
2201-
sigmask: *const crate::sigset_t,
2202-
) -> c_int;
22032197
pub fn getrandom(buf: *mut c_void, buflen: size_t, flags: c_uint) -> ssize_t;
22042198

22052199
pub fn reboot(mode: c_int, bootstr: *mut c_char) -> c_int;

0 commit comments

Comments
 (0)