Skip to content
Snippets Groups Projects
Commit 029cd2d9 authored by Bryant Mairs's avatar Bryant Mairs
Browse files

Only expose ppoll on non-BSD targets

parent d86901e2
No related branches found
No related tags found
No related merge requests found
......@@ -721,12 +721,6 @@ extern {
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "poll$UNIX2003")]
pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
link_name = "ppoll$UNIX2003")]
pub fn ppoll(fds: *mut pollfd,
nfds: nfds_t,
timeout: *const timespec,
sigmask: *const sigset_t) -> ::c_int;
#[cfg_attr(all(target_os = "macos", target_arch = "x86_64"),
link_name = "select$1050")]
#[cfg_attr(all(target_os = "macos", target_arch = "x86"),
......
use dox::mem;
use ::{pollfd, timespec};
pub type sa_family_t = u16;
pub type pthread_key_t = ::c_uint;
......@@ -841,6 +842,10 @@ extern {
linkpath: *const ::c_char) -> ::c_int;
pub fn unlinkat(dirfd: ::c_int, pathname: *const ::c_char,
flags: ::c_int) -> ::c_int;
pub fn ppoll(fds: *mut pollfd,
nfds: nfds_t,
timeout: *const timespec,
sigmask: *const sigset_t) -> ::c_int;
pub fn pthread_condattr_getclock(attr: *const pthread_condattr_t,
clock_id: *mut clockid_t) -> ::c_int;
pub fn pthread_condattr_setclock(attr: *mut pthread_condattr_t,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment