1
0
mirror of https://git.savannah.gnu.org/git/gnulib.git synced 2025-08-16 01:22:18 +03:00
Files
gnulib/doc/posix-functions/pselect.texi
Eric Blake fa915b528c 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.
2012-10-02 19:40:06 -06:00

28 lines
878 B
Plaintext

@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