diff options
author | Dan Gohman <sunfish@mozilla.com> | 2019-04-24 08:09:15 -0700 |
---|---|---|
committer | Dan Gohman <sunfish@mozilla.com> | 2019-04-24 08:09:15 -0700 |
commit | 599c0f76ddfadc02343772f28d9623b938b82f97 (patch) | |
tree | c80bff414eb2ed42c895c9ab37ba2dc0212cf78c | |
parent | 7ba5e347544aad24a471e8d65088131098fd6245 (diff) | |
download | rust-libc-599c0f76ddfadc02343772f28d9623b938b82f97.tar.gz |
Remove fd_set, select, and pselect entirely for now.
fd_set isn't automatically copyable. While it will be possible to fix
that, for now just remove these so that they don't block other changes.
-rw-r--r-- | src/wasi.rs | 20 |
1 files changed, 0 insertions, 20 deletions
diff --git a/src/wasi.rs b/src/wasi.rs index 45c809519a..f4d92ed9e3 100644 --- a/src/wasi.rs +++ b/src/wasi.rs @@ -137,11 +137,6 @@ s! { pub domainname: [c_char; 65] } - pub struct fd_set { - pub __nfds: size_t, - pub __fds: [c_int; FD_SETSIZE], - } - pub struct lconv { pub decimal_point: *mut c_char, pub thousands_sep: *mut c_char, @@ -946,13 +941,6 @@ extern { flags: ::c_int, ) -> ::ssize_t; pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int) -> ::c_int; - pub fn select( - nfds: ::c_int, - readfs: *mut fd_set, - writefds: *mut fd_set, - errorfds: *mut fd_set, - timeout: *mut timeval, - ) -> ::c_int; pub fn setlocale( category: ::c_int, locale: *const ::c_char, @@ -969,14 +957,6 @@ extern { pub fn sysconf(name: ::c_int) -> ::c_long; - pub fn pselect( - nfds: ::c_int, - readfs: *mut fd_set, - writefds: *mut fd_set, - errorfds: *mut fd_set, - timeout: *const timespec, - sigmask: *const sigset_t, - ) -> ::c_int; pub fn fseeko( stream: *mut ::FILE, offset: ::off_t, |