mirror of https://github.com/mkerrisk/man-pages
select.2: CONFORMING TO: add POSIX.1-2008
Signed-off-by: Michael Kerrisk <mtk.manpages@gmail.com>
This commit is contained in:
parent
02d658b233
commit
e9419385e7
|
@ -41,7 +41,7 @@ select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \-
|
|||
synchronous I/O multiplexing
|
||||
.SH SYNOPSIS
|
||||
.nf
|
||||
/* According to POSIX.1-2001 */
|
||||
/* According to POSIX.1-2001, POSIX.1-2008 */
|
||||
.br
|
||||
.B #include <sys/select.h>
|
||||
.sp
|
||||
|
@ -265,7 +265,7 @@ struct timespec {
|
|||
.fi
|
||||
.in
|
||||
|
||||
(However, see below on the POSIX.1-2001 versions.)
|
||||
(However, see below on the POSIX.1 versions.)
|
||||
.PP
|
||||
Some code calls
|
||||
.BR select ()
|
||||
|
@ -281,7 +281,7 @@ modifies
|
|||
.I timeout
|
||||
to reflect the amount of time not slept; most other implementations
|
||||
do not do this.
|
||||
(POSIX.1-2001 permits either behavior.)
|
||||
(POSIX.1 permits either behavior.)
|
||||
This causes problems both when Linux code which reads
|
||||
.I timeout
|
||||
is ported to other operating systems, and when code is ported to Linux
|
||||
|
@ -348,7 +348,7 @@ Prior to this,
|
|||
was emulated in glibc (but see BUGS).
|
||||
.SH CONFORMING TO
|
||||
.BR select ()
|
||||
conforms to POSIX.1-2001 and
|
||||
conforms to POSIX.1-2001, POSIX.1-2008, and
|
||||
4.4BSD
|
||||
.RB ( select ()
|
||||
first appeared in 4.2BSD).
|
||||
|
@ -360,7 +360,7 @@ sets the timeout variable before exit, but the BSD variant does not.
|
|||
.PP
|
||||
.BR pselect ()
|
||||
is defined in POSIX.1g, and in
|
||||
POSIX.1-2001.
|
||||
POSIX.1-2001 and POSIX.1-2008.
|
||||
.SH NOTES
|
||||
An
|
||||
.I fd_set
|
||||
|
@ -386,7 +386,7 @@ structure are typed as
|
|||
.I long
|
||||
(as shown above), and the structure is defined in
|
||||
.IR <sys/time.h> .
|
||||
The POSIX.1-2001 situation is
|
||||
The POSIX.1 situation is
|
||||
|
||||
.in +4n
|
||||
.nf
|
||||
|
@ -411,7 +411,7 @@ include
|
|||
.I <time.h>
|
||||
for
|
||||
.BR select ().
|
||||
The POSIX.1-2001 situation is that one should include
|
||||
The POSIX.1 situation is that one should include
|
||||
.I <sys/select.h>
|
||||
for
|
||||
.BR select ()
|
||||
|
@ -545,7 +545,7 @@ also modifies
|
|||
if the call is interrupted by a signal handler (i.e., the
|
||||
.B EINTR
|
||||
error return).
|
||||
This is not permitted by POSIX.1-2001.
|
||||
This is not permitted by POSIX.1.
|
||||
The Linux
|
||||
.BR pselect ()
|
||||
system call has the same behavior,
|
||||
|
|
Loading…
Reference in New Issue