Hash :
fa915b52
Author :
Date :
2012-10-02T16:50:57
pselect: reject invalid file descriptors Similar to the recent select fixes. * m4/pselect.m4 (gl_FUNC_PSELECT): Probe for FreeBSD bug. * lib/pselect.c (rpl_pselect) [!win32]: Work around it. * modules/pselect (Depends-on): Add dup2. * doc/posix-functions/pselect.texi (pselect): Document this.
@node pselect
@section @code{pselect}
@findex pselect
POSIX specification:@* @url{http://www.opengroup.org/onlinepubs/9699919799/functions/pselect.html}
Gnulib module: ---
Portability problems fixed by Gnulib:
@itemize
@item
This function is missing on some platforms:
OpenBSD 3.8, Minix 3.1.8, AIX 5.1, HP-UX 11.23, IRIX 6.5, OSF/1 5.1, Solaris 9, mingw, MSVC 9, Interix 3.5, BeOS.
@item
On some platforms, this function fails to detect invalid fds with
EBADF, but only if they lie beyond the current maximum open fd:
FreeBSD 8.2.
@end itemize
Portability problems not fixed by Gnulib:
@itemize
@item
When the @var{sigmask} argument is nonnull on platforms that do not
natively support this function, race conditions are possible when its
gnulib implementation temporarily modifies the signal mask, and the
behavior is unspecified in a multi-threaded process.
@end itemize