30#include <sys/_timeval.h>
35#ifndef _SYS_TYPES_FD_SET
37#define _SYS_TYPES_FD_SET
46#define FD_SET(n, p) ((p)->fds_bits[(n) / NFDBITS] |= (1 << ((n) % NFDBITS)))
47#define FD_CLR(n, p) ((p)->fds_bits[(n) / NFDBITS] &= ~(1 << ((n) % NFDBITS)))
48#define FD_ISSET(n, p) ((p)->fds_bits[(n) / NFDBITS] & (1 << ((n) % NFDBITS)))
52 for(__i = 0; __i < FD_SETSIZE / NFDBITS; ++__i) { \
53 (p)->fds_bits[__i] = 0; \
80 struct timeval *timeout);
#define FD_SETSIZE
The number of distinct file descriptors, including files and network sockets, that can be in use at a...
Definition opts.h:139
Compile-time options regarding debugging and other topics.
int select(int nfds, fd_set *readfds, fd_set *writefds, fd_set *errorfds, struct timeval *timeout)
Wait for activity on a group of file descriptors.
#define NFDBITS
Definition select.h:39
Represents a set of file descriptors.
Definition select.h:42
unsigned long fds_bits[FD_SETSIZE/NFDBITS]
Definition select.h:43