mirror of https://github.com/mkerrisk/man-pages
sync SYNOPSIS with select.2
This commit is contained in:
parent
30d2db8bf6
commit
9f0fb19843
|
@ -44,8 +44,8 @@ synchronous I/O multiplexing
|
|||
.br
|
||||
.B #include <unistd.h>
|
||||
.sp
|
||||
\fBint select(int \fInfds\fB, fd_set *\fIreadfds\fB, fd_set *\fIwritefds\fB,
|
||||
fd_set *\fIexceptfds\fB, struct timeval *\fItimeout\fB);
|
||||
.BI "int select(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,
|
||||
.BI " fd_set *" exceptfds ", struct timeval *" timeout );
|
||||
.sp
|
||||
.BI "void FD_CLR(int " fd ", fd_set *" set );
|
||||
.br
|
||||
|
@ -55,13 +55,20 @@ synchronous I/O multiplexing
|
|||
.br
|
||||
.BI "void FD_ZERO(fd_set *" set );
|
||||
.sp
|
||||
.B #define _XOPEN_SOURCE 600
|
||||
.B #include <sys/select.h>
|
||||
.sp
|
||||
\fBint pselect(int \fInfds\fB, fd_set *\fIreadfds\fB, fd_set *\fIwritefds\fB,
|
||||
fd_set *\fIexceptfds\fB, const struct timespec *\fItimeout\fB,
|
||||
const sigset_t *\fIsigmask\fB);
|
||||
.BI "int pselect(int " nfds ", fd_set *" readfds ", fd_set *" writefds ,
|
||||
.BI " fd_set *" exceptfds ", const struct timespec *" timeout ,
|
||||
.BI " const sigset_t *" sigmask );
|
||||
.fi
|
||||
.sp
|
||||
.in -4n
|
||||
Feature Test Macro Requirements for glibc (see
|
||||
.BR feature_test_macros (7)):
|
||||
.in
|
||||
.sp
|
||||
.BR pselect ():
|
||||
_POSIX_C_SOURCE\ >=\ 200112L || _XOPEN_SOURCE\ >=\ 600
|
||||
.SH DESCRIPTION
|
||||
.BR select ()
|
||||
(or
|
||||
|
|
Loading…
Reference in New Issue