# select.h ## **Overview** **Related Modules:** [IO](IO.md) **Description:** Provides functions and structures related to I/O multiplexing. These functions can be used to implement I/O multiplexing. **Since:** 1.0 **Version:** 1.0 ## **Summary** ## Data Structures
FD_SETSIZE 1024 |
Defines the size of fd_set, that is, the maximum number of monitored files. |
FD_ZERO(s) do { int __i; unsigned long *__b=(s)->fds_bits; for(__i=sizeof (fd_set)/sizeof (long); __i; __i--) *__b++=0; } while(0) |
|
FD_SET(d, s) ((s)->fds_bits[(d)/(8*sizeof(long))] |= (1UL<<((d)%(8*sizeof(long))))) |
|
FD_CLR(d, s) ((s)->fds_bits[(d)/(8*sizeof(long))] &= ~(1UL<<((d)%(8*sizeof(long))))) |
|
FD_ISSET(d, s) !!((s)->fds_bits[(d)/(8*sizeof(long))] & (1UL<<((d)%(8*sizeof(long))))) |
Defines fd_set as the alias of the element type. |
select (int nfds, fd_set *__restrict readfds, fd_set *__restrict writefds, fd_set *__restrict exceptfds, struct timeval *__restrict timeout) |