# [−][src]Function nix::sys::select::pselect

    pub fn pselect<'a, N, R, W, E, T, S>(
        nfds: N,
        readfds: R,
        writefds: W,
        errorfds: E,
        timeout: T,
        sigmask: S
    ) -> Result<c_int> where
        N: Into<Option<c_int>>,
        R: Into<Option<&'a mut FdSet>>,
        W: Into<Option<&'a mut FdSet>>,
        E: Into<Option<&'a mut FdSet>>,
        T: Into<Option<&'a TimeSpec>>,
        S: Into<Option<&'a SigSet>>,

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 passed `FdSet`s, plus 1. If `None`, this is calculated automatically by calling `FdSet::highest` on all descriptor sets and adding 1 to the maximum of that.
- `readfds`: File descriptors to check for read readiness
- `writefds`: File descriptors to check for write readiness
- `errorfds`: 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).

# References

pselect(2)

The new pselect() system call

# Help

## Keyboard Shortcuts

`?`
  Show this help dialog
`S`
  Focus the search field
`↑`
  Move up in search results
`↓`
  Move down in search results
`↹`
  Switch tab
`⏎`
  Go to active search result
`+`
  Expand all sections
`-`
  Collapse all sections

## Search Tricks

Prefix searches with a type followed by a colon (e.g., `fn:`) to restrict the search to a given type.

Accepted types are: `fn`, `mod`, `struct`, `enum`, `trait`, `type`, `macro`, and `const`.

Search functions by type signature (e.g., `vec -> usize` or `* -> vec`)

Search multiple things at once by splitting your query with comma (e.g., `str,u8` or `String,struct:Vec,test`)