#[unsafe(no_mangle)]pub unsafe extern "C" fn poll(
fds: *mut pollfd,
nfds: nfds_t,
timeout: c_int,
) -> c_intExpand description
See https://pubs.opengroup.org/onlinepubs/9799919799/functions/poll.html.
Provides applications with a mechanism for multiplexing input/output over a set of file descriptors.
- The
timeoutparameter represents milliseconds. - A
timeoutof-1is equivalent to passing a null pointer fortmo_ptoppoll. pollshould behave equivalent toppollwith a null pointer forsigmask.
Note: Uses epoll internally.