Skip to content

Commit cd84475

Browse files
committed
Add ppoll() for all unix platforms.
I'm unsure of whether there is support in OS X for this, and I can't find anything online (I'm betting there isn't), but I'm going to let this run through CI to confirm
1 parent 684be76 commit cd84475

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -721,6 +721,9 @@ extern {
721721
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
722722
link_name = "poll$UNIX2003")]
723723
pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int) -> ::c_int;
724+
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
725+
link_name = "ppoll$UNIX2003")]
726+
pub fn ppoll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int, sigmask: *const sigset_t) -> ::c_int;
724727
#[cfg_attr(all(target_os = "macos", target_arch = "x86_64"),
725728
link_name = "select$1050")]
726729
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),

0 commit comments

Comments
 (0)