Hash :
9500a55f
Author :
Date :
2012-10-02T15:29:13
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.
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