Make SYNOPSIS match select.2.

This commit is contained in:
Michael Kerrisk 2007-04-03 18:03:03 +00:00
parent 332f4bb952
commit b9208776db
1 changed files with 22 additions and 13 deletions

View File

@ -31,27 +31,36 @@
select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \-
synchronous I/O multiplexing
.SH SYNOPSIS
.nf
/* According to POSIX.1-2001 */
.br
.B #include <sys/select.h>
.sp
/* According to earlier standards */
.br
.B #include <sys/time.h>
.br
.B #include <sys/types.h>
.br
.B #include <unistd.h>
.sp
.BI "int select(int " nfds ", fd_set *" readfds ,
.BI "fd_set *" writefds ", fd_set *" exceptfds ,
.BI "struct timeval *" utimeout );
\fBint select(int \fInfds\fB, fd_set *\fIreadfds\fB, fd_set *\fIwritefds\fB,
fd_set *\fIexceptfds\fB, struct timeval *\fItimeout\fB);
.sp
.BI "int pselect(int " nfds ", fd_set *" readfds ,
.BI "fd_set *" writefds ", fd_set *" exceptfds ,
.BI "const struct timespec *" ntimeout ", sigset_t *" sigmask );
.BI "void FD_CLR(int " fd ", fd_set *" set );
.br
.BI "int FD_ISSET(int " fd ", fd_set *" set );
.br
.BI "void FD_SET(int " fd ", fd_set *" set );
.br
.BI "void FD_ZERO(fd_set *" set );
.sp
.BI "FD_CLR(int " fd ", fd_set *" set );
.br
.BI "FD_ISSET(int " fd ", fd_set *" set );
.br
.BI "FD_SET(int " fd ", fd_set *" set );
.br
.BI "FD_ZERO(fd_set *" set );
.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);
.fi
.SH DESCRIPTION