Mercurial > hg > octave-lojdl > gnulib-hg
view modules/select @ 17123:e71d6495bb31
select: reject invalid file descriptors
POSIX requires invalid file descriptors to be detected rather than
silently ignored. FreeBSD 8.2 detects if fd 0 has been closed
and appears in a set while fd 1 is still open, but mistakenly
optimizes and refuses to check any fds in the set beyond the
maximum open fd.
* m4/select.m4 (gl_FUNC_SELECT): Probe for FreeBSD bug.
* lib/select.c (rpl_select) [!win32]: Work around it.
* modules/select (Depends-on): Add dup2.
* doc/posix-functions/select.texi (select): Document this.
author | Eric Blake <eblake@redhat.com> |
---|---|
date | Tue, 02 Oct 2012 15:29:13 -0600 |
parents | 588e064cc6e1 |
children |
line wrap: on
line source
Description: select() function: synchronous I/O multiplexing. Files: lib/select.c m4/select.m4 Depends-on: sys_select alloca [test $REPLACE_SELECT = 1] dup2 [test $REPLACE_SELECT = 1] sockets [test $REPLACE_SELECT = 1] sys_time [test $REPLACE_SELECT = 1] msvc-nothrow [test $REPLACE_SELECT = 1] configure.ac: gl_FUNC_SELECT if test $REPLACE_SELECT = 1; then AC_LIBOBJ([select]) fi gl_SYS_SELECT_MODULE_INDICATOR([select]) Makefile.am: Include: <sys/select.h> Link: $(LIB_SELECT) License: LGPLv2+ Maintainer: Simon Josefsson