@@ -29,4 +29,22 @@ disallowed-methods = [
2929 { path = " std::net::TcpStream::connect" , reason = " use rustpython_host_env for host network access" },
3030 { path = " std::net::TcpListener::bind" , reason = " use rustpython_host_env for host network access" },
3131 { path = " std::net::UdpSocket::bind" , reason = " use rustpython_host_env for host network access" },
32+ { path = " libc::select" , reason = " use rustpython_host_env::select" , allow-invalid = true },
33+ { path = " libc::pselect" , reason = " use rustpython_host_env::select" , allow-invalid = true },
34+ { path = " libc::poll" , reason = " use rustpython_host_env::select" , allow-invalid = true },
35+ { path = " libc::ppoll" , reason = " use rustpython_host_env::select" , allow-invalid = true },
36+ { path = " libc::kqueue" , reason = " use rustpython_host_env::select" , allow-invalid = true },
37+ { path = " libc::kevent" , reason = " use rustpython_host_env::select" , allow-invalid = true },
38+ { path = " libc::kevent64" , reason = " use rustpython_host_env::select" , allow-invalid = true },
39+ { path = " libc::epoll_create" , reason = " use rustpython_host_env::select" , allow-invalid = true },
40+ { path = " libc::epoll_create1" , reason = " use rustpython_host_env::select" , allow-invalid = true },
41+ { path = " libc::epoll_ctl" , reason = " use rustpython_host_env::select" , allow-invalid = true },
42+ { path = " libc::epoll_wait" , reason = " use rustpython_host_env::select" , allow-invalid = true },
43+ { path = " libc::epoll_pwait" , reason = " use rustpython_host_env::select" , allow-invalid = true },
44+ ]
45+
46+ disallowed-types = [
47+ { path = " libc::fd_set" , reason = " use rustpython_host_env::select::FdSet" , allow-invalid = true },
48+ { path = " libc::kevent" , reason = " use rustpython_host_env::select::kqueue::Event" , allow-invalid = true },
49+ { path = " libc::epoll_event" , reason = " use rustpython_host_env::select::epoll" , allow-invalid = true },
3250]
0 commit comments