“FD_” macros
Useful macros defined in <sys/select.h> to manage the masks:
void FD_ZERO( fd_set &fdset );
void FD_SET( int fd, fd_set &fdset );
void FD_CLR( int fd, fd_set &fdset );
int FD_ISSET( int fd, fd_set &fdset );
Note that each macro is passed the address of the file descriptor mask