pub fn pselect<'a, 'fd, N, R, W, E, T, S>(
nfds: N,
readfds: R,
writefds: W,
errorfds: E,
timeout: T,
sigmask: S,
) -> Result<c_int>
Expand description
Monitors file descriptors for readiness with an altered signal mask.
Returns the total number of ready file descriptors in all sets. The sets are changed so that all file descriptors that are ready for the given operation are set.
When this function returns, the original signal mask is restored.
Unlike select
, pselect
does not mutate the timeout
value.
§Parameters
nfds
: The highest file descriptor set in any of the passedFdSet
s, plus 1. IfNone
, this is calculated automatically by callingFdSet::highest
on all descriptor sets and adding 1 to the maximum of that.readfds
: File descriptors to check for read readinesswritefds
: File descriptors to check for write readinesserrorfds
: File descriptors to check for pending error conditions.timeout
: Maximum time to wait for descriptors to become ready (None
to block indefinitely).sigmask
: Signal mask to activate while waiting for file descriptors to turn ready (None
to set no alternative signal mask).