Skip to content

Commit 599c0f7

Browse files
committed
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.
1 parent 7ba5e34 commit 599c0f7

File tree

1 file changed

+0
-20
lines changed

1 file changed

+0
-20
lines changed

src/wasi.rs

Lines changed: 0 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -137,11 +137,6 @@ s! {
137137
pub domainname: [c_char; 65]
138138
}
139139

140-
pub struct fd_set {
141-
pub __nfds: size_t,
142-
pub __fds: [c_int; FD_SETSIZE],
143-
}
144-
145140
pub struct lconv {
146141
pub decimal_point: *mut c_char,
147142
pub thousands_sep: *mut c_char,
@@ -946,13 +941,6 @@ extern {
946941
flags: ::c_int,
947942
) -> ::ssize_t;
948943
pub fn poll(fds: *mut pollfd, nfds: nfds_t, timeout: ::c_int) -> ::c_int;
949-
pub fn select(
950-
nfds: ::c_int,
951-
readfs: *mut fd_set,
952-
writefds: *mut fd_set,
953-
errorfds: *mut fd_set,
954-
timeout: *mut timeval,
955-
) -> ::c_int;
956944
pub fn setlocale(
957945
category: ::c_int,
958946
locale: *const ::c_char,
@@ -969,14 +957,6 @@ extern {
969957

970958
pub fn sysconf(name: ::c_int) -> ::c_long;
971959

972-
pub fn pselect(
973-
nfds: ::c_int,
974-
readfs: *mut fd_set,
975-
writefds: *mut fd_set,
976-
errorfds: *mut fd_set,
977-
timeout: *const timespec,
978-
sigmask: *const sigset_t,
979-
) -> ::c_int;
980960
pub fn fseeko(
981961
stream: *mut ::FILE,
982962
offset: ::off_t,

0 commit comments

Comments
 (0)