diff options
author | Alex Crichton <alex@alexcrichton.com> | 2016-03-01 13:23:53 -0800 |
---|---|---|
committer | Alex Crichton <alex@alexcrichton.com> | 2016-03-01 13:23:53 -0800 |
commit | 993ea7e71e203bcaf5e424aafef4c2d6d1a5e2ad (patch) | |
tree | 5289845ae5671f3c27b8fd201411f0ae2d9d19d1 | |
parent | 07a92067930670473dc53300dfdda23ff486344d (diff) | |
download | rust-libc-993ea7e71e203bcaf5e424aafef4c2d6d1a5e2ad.tar.gz |
Add select() to Android bindings
-rw-r--r-- | src/unix/mod.rs | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/src/unix/mod.rs b/src/unix/mod.rs index 3d83638054..a2f7004dc7 100644 --- a/src/unix/mod.rs +++ b/src/unix/mod.rs @@ -584,6 +584,16 @@ 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_64"), + link_name = "select$1050")] + #[cfg_attr(all(target_os = "macos", target_arch = "x86"), + link_name = "select$UNIX2003")] + #[cfg_attr(target_os = "netbsd", link_name = "__select50")] + pub fn select(nfds: ::c_int, + readfs: *mut fd_set, + writefds: *mut fd_set, + errorfds: *mut fd_set, + timeout: *mut timeval) -> ::c_int; } // TODO: get rid of this #[cfg(not(...))] @@ -649,16 +659,6 @@ extern { #[cfg_attr(target_os = "netbsd", link_name = "__sigismember14")] pub fn sigismember(set: *const sigset_t, signum: ::c_int) -> ::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"), - link_name = "select$UNIX2003")] - #[cfg_attr(target_os = "netbsd", link_name = "__select50")] - pub fn select(nfds: ::c_int, - readfs: *mut fd_set, - writefds: *mut fd_set, - errorfds: *mut fd_set, - timeout: *mut timeval) -> ::c_int; - #[cfg_attr(all(target_os = "macos", target_arch = "x86_64"), link_name = "pselect$1050")] #[cfg_attr(all(target_os = "macos", target_arch = "x86"), link_name = "pselect$UNIX2003")] |