| www.delorie.com/djgpp/doc/libc-2.01/libc_558.html | search |
#include <time.h> int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout)
This function waits for files to be ready for input or output, or for a timeout. Each fd_set represents a set of bits representing file descriptors. The following macros shall be used to deal with these sets:
FD_ZERO(p)
FD_SET(n, p)
FD_CLR(n, p)
FD_ISSET(n, p)
The timeout value may be a NULL pointer (no timeout), a pointer to a zero-value structure (poll mode), or a pointer to an interval-filled structure (timeout).
The number of files ready. The input sets are replaced with sets that describe which files are ready for which operations.
Go to the first, previous, next, last section, table of contents.
| prev next webmaster | delorie software privacy |
| Copyright © 1997 | Updated Apr 1997 |