pselect (2)
Leading comments
Copyright 2002 Massachusetts Institute of Technology Permission to use, copy, modify, and distribute this software and its documentation for any purpose and without fee is hereby granted, provided that both the above copyright notice and this permission notice appear in all copies, that both the above copyright notice and this permission notice appear in all supporting documentation, and that the name of M.I.T. not be used in advertising or publicity pertaining to distribution of the softwar...
NAME
pselect - synchronous I/O multiplexing a la POSIX.1gLIBRARY
Lb libcSYNOPSIS
In sys/select.h Ft int Fo pselect Fa int nfds Fa fd_set * restrict readfds Fa fd_set * restrict writefds Fa fd_set * restrict exceptfds Fa const struct timespec * restrict timeout Fa const sigset_t * restrict newsigmask FcDESCRIPTION
The Fn pselect function was introduced by St -p1003.1g-2000 as a slightly stronger version of select(2). The Fa nfds , readfds , writefds , and Fa exceptfds arguments are all identical to the analogous arguments of Fn select . The Fa timeout argument in Fn pselect points to a Vt const struct timespec rather than the (modifiable) Vt struct timeval used by Fn select ; as in Fn select , a null pointer may be passed to indicate that Fn pselect should wait indefinitely. Finally, Fa newsigmask specifies a signal mask which is set while waiting for input. When Fn pselect returns, the original signal mask is restored.See select(2) for a more detailed discussion of the semantics of this interface, and for macros used to manipulate the Vt fd_set data type.