|
ginnOS
The reference: libc, the libraries and the kernel
|
select(), built on poll(). More...
#include <sys/time.h>Go to the source code of this file.
Data Structures | |
| struct | fd_set |
Macros | |
| #define | FD_SETSIZE 64 |
| #define | FD_ZERO(set) |
| #define | FD_SET(fd, set) |
| #define | FD_CLR(fd, set) |
| #define | FD_ISSET(fd, set) |
Functions | |
| int | select (int nfds, fd_set *readfds, fd_set *writefds, fd_set *exceptfds, struct timeval *timeout) |
| wait until a descriptor in one of the sets is ready. | |
| #define FD_SETSIZE 64 |
| #define FD_ZERO | ( | set | ) |
| #define FD_SET | ( | fd, | |
| set ) |
| #define FD_CLR | ( | fd, | |
| set ) |
| #define FD_ISSET | ( | fd, | |
| set ) |
| int select | ( | int | nfds, |
| fd_set * | readfds, | ||
| fd_set * | writefds, | ||
| fd_set * | exceptfds, | ||
| struct timeval * | timeout ) |
wait until a descriptor in one of the sets is ready.
on return each set holds only its ready descriptors.
| nfds | one more than the highest descriptor in the sets. |
| readfds | descriptors to watch for reading (may be NULL). |
| writefds | descriptors to watch for writing (may be NULL). |
| exceptfds | descriptors to watch for errors (may be NULL). |
| timeout | how long to wait (NULL: no limit). |