MCPcopy Create free account
hub / github.com/bytecodealliance/rustix / fd_set_num_elements

Function fd_set_num_elements

src/event/select.rs:209–223  ·  view source on GitHub ↗
(set_count: usize, nfds: RawFd)

Source from the content-addressed store, hash-verified

207/// contain up to `set_count` file descriptors with values less than `nfds`.
208#[inline]
209pub fn fd_set_num_elements(set_count: usize, nfds: RawFd) -> usize {
210 #[cfg(any(windows, target_os = "wasi"))]
211 {
212 let _ = nfds;
213
214 fd_set_num_elements_for_fd_array(set_count)
215 }
216
217 #[cfg(not(any(windows, target_os = "wasi")))]
218 {
219 let _ = set_count;
220
221 fd_set_num_elements_for_bitvector(nfds)
222 }
223}
224
225/// `fd_set_num_elements` implementation on platforms with fd array
226/// implementations.

Callers

nothing calls this directly

Tested by

no test coverage detected