diff --git a/man2/select.2 b/man2/select.2 index 1cc96401b..aaa3c993d 100644 --- a/man2/select.2 +++ b/man2/select.2 @@ -41,14 +41,8 @@ select, pselect, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \- synchronous I/O multiplexing .SH SYNOPSIS .nf -/* According to POSIX.1-2001, POSIX.1-2008 */ .B #include .PP -/* According to earlier standards */ -.B #include -.B #include -.B #include -.PP .BI "int select(int " nfds ", fd_set *" readfds ", fd_set *" writefds , .BI " fd_set *" exceptfds ", struct timeval *" timeout ); .PP @@ -56,8 +50,6 @@ synchronous I/O multiplexing .BI "int FD_ISSET(int " fd ", fd_set *" set ); .BI "void FD_SET(int " fd ", fd_set *" set ); .BI "void FD_ZERO(fd_set *" set ); - -.B #include .PP .BI "int pselect(int " nfds ", fd_set *" readfds ", fd_set *" writefds , .BI " fd_set *" exceptfds ", const struct timespec *" timeout , @@ -446,18 +438,6 @@ in the main program. or reading from a pipe that may be empty, nonblocking I/O is used when reading from and writing to the pipe.) .PP -Concerning prototypes, the classical situation is that one should -include -.I -for -.BR select (). -The POSIX.1 situation is that one should include -.I -for -.BR select () -and -.BR pselect (). -.PP Under glibc 2.0, .I gives the wrong prototype for @@ -467,7 +447,6 @@ Under glibc 2.1 to 2.2.1, it gives when .B _GNU_SOURCE is defined. -Since glibc 2.2.2, the requirements are as shown in the SYNOPSIS. .\" .SS Correspondence between select() and poll() notifications Within the Linux kernel source, @@ -657,9 +636,7 @@ to a local variable and passing that variable to the system call. .EX #include #include -#include -#include -#include +#include int main(void)