Skip to content

Commit d973043

Browse files
kotauskastgross35
authored andcommitted
OpenBSD: add ppoll
(backport <#4957>) (cherry picked from commit 9c7cb28)
1 parent fad77cf commit d973043

3 files changed

Lines changed: 7 additions & 6 deletions

File tree

libc-test/semver/openbsd.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1253,6 +1253,7 @@ posix_spawnattr_setschedpolicy
12531253
posix_spawnattr_setsigdefault
12541254
posix_spawnattr_setsigmask
12551255
posix_spawnp
1256+
ppoll
12561257
preadv
12571258
pseudo_AF_HDRCMPLT
12581259
pseudo_AF_PFLOW

src/unix/bsd/netbsdlike/mod.rs

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

738744
pub fn getgrouplist(
739745
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
@@ -2195,12 +2195,6 @@ extern "C" {
21952195
ts: *const crate::timespec,
21962196
sigmask: *const crate::sigset_t,
21972197
) -> c_int;
2198-
pub fn ppoll(
2199-
fds: *mut crate::pollfd,
2200-
nfds: crate::nfds_t,
2201-
ts: *const crate::timespec,
2202-
sigmask: *const crate::sigset_t,
2203-
) -> c_int;
22042198
pub fn getrandom(buf: *mut c_void, buflen: size_t, flags: c_uint) -> ssize_t;
22052199

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

0 commit comments

Comments
 (0)