.TH SELECT 2 "Jun 9, 2005"
select, FD_CLR, FD_ISSET, FD_SET, FD_ZERO \- synchronous I/O multiplexing
int select(int \fInfds\fP, fd_set *\fIreadfds\fP, fd_set *\fIwritefds\fP, fd_set *\fIerrorfds\fP, struct timeval *\fItimeout\fP)
void FD_CLR(int \fIfd\fP, fd_set *\fIfdset\fP)
int FD_ISSET(int \fIfd\fP, fd_set *\fIfdset\fP)
void FD_SET(int \fIfd\fP, fd_set *\fIfdset\fP)
void FD_ZERO(fd_set *\fIfdset\fP)
examines the file descriptors given in the sets
up to and including file descriptor
, for reading, writing, or exceptional conditions, respectively.
currently supports regular files, pipes, named pipes,
sockets, and character devices.
argument is not a null pointer, it points to an object of type fd_set
that on input specifies the file descriptors to be checked for being
ready to read, and on output indicates which file descriptors are ready
have an analogous meaning for file descriptors to be checked for being
ready to read, respectively have pending exceptional (error) conditions.