31#if __NEWLIB__ > 2 || (__NEWLIB__ == 2 && __NEWLIB_MINOR__ > 2)
32#include <sys/_timeval.h>
41#ifndef _SYS_TYPES_FD_SET
43#define _SYS_TYPES_FD_SET
52#define FD_SET(n, p) ((p)->fds_bits[(n) / NFDBITS] |= (1 << ((n) % NFDBITS)))
53#define FD_CLR(n, p) ((p)->fds_bits[(n) / NFDBITS] &= ~(1 << ((n) % NFDBITS)))
54#define FD_ISSET(n, p) ((p)->fds_bits[(n) / NFDBITS] & (1 << ((n) % NFDBITS)))
58 for(__i = 0; __i < FD_SETSIZE / NFDBITS; ++__i) { \
59 (p)->fds_bits[__i] = 0; \
86 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:136
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:45
Represents a set of file descriptors.
Definition select.h:48
unsigned long fds_bits[FD_SETSIZE/NFDBITS]
Definition select.h:49
KOS-implementation of select C11 and POSIX extensions.