1 .TH SELECT 2 "Jun 9, 2005"
4 select, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \- synchronous I/O multiplexing
8 #include <sys/select.h>
10 int select(int \fInfds\fP, fd_set *\fIreadfds\fP, fd_set *\fIwritefds\fP, fd_set *\fIerrorfds\fP, struct timeval *\fItimeout\fP)
12 void FD_CLR(int \fIfd\fP, fd_set *\fIfdset\fP)
13 int FD_ISSET(int \fIfd\fP, fd_set *\fIfdset\fP)
14 void FD_SET(int \fIfd\fP, fd_set *\fIfdset\fP)
15 void FD_ZERO(fd_set *\fIfdset\fP)
20 examines the file descriptors given in the sets
25 up to and including file descriptor
27 , for reading, writing, or exceptional conditions, respectively.
29 currently supports regular files, pipes, named pipes,
30 inet, and tty file descriptors (including pty).
34 argument is not a null pointer, it points to an object of type fd_set
35 that on input specifies the file descriptors to be checked for being
36 ready to read, and on output indicates which file descriptors are ready
41 have an analogous meaning for file descriptors to be checked for being
42 ready to read, respectively have pending exceptional (error) conditions.