Asterisk - The Open Source Telephony Project GIT-master-0bf3178
|
Bitfield expansions for ast_select. More...
Go to the source code of this file.
Data Structures | |
struct | ast_fdset |
Macros | |
#define | _bitsize(a) (sizeof(a) * 8) |
#define | ast_FDMAX 32768 |
#define | FD_SET(fd, fds) |
#define | FD_ZERO(a) |
Functions | |
static int | ast_select (int nfds, ast_fdset *rfds, ast_fdset *wfds, ast_fdset *efds, struct timeval *tvp) |
Waits for activity on a group of channels. More... | |
Variables | |
unsigned int | ast_FD_SETSIZE |
Bitfield expansions for ast_select.
Definition in file select.h.
|
inlinestatic |
Waits for activity on a group of channels.
nfds | the maximum number of file descriptors in the sets |
rfds | file descriptors to check for read availability |
wfds | file descriptors to check for write availability |
efds | file descriptors to check for exceptions (OOB data) |
tvp | timeout while waiting for events This is the same as a standard select(), except it guarantees the behaviour where the passed struct timeval is updated with how much time was not slept while waiting for the specified events |
Definition at line 79 of file select.h.
References errno, NULL, and timersub().
Referenced by ast_poll2(), and main().