Back to index

radiance  4R0+20100331
Defines
selcall.h File Reference
#include <string.h>
#include <sys/types.h>
#include <sys/time.h>
#include <sys/param.h>
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define FD_SETSIZE   NOFILE /* maximum # select file descriptors */
#define NFDBITS   (8*sizeof(int)) /* number of bits per fd_mask */
#define FD_SET(n, p)   ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
#define FD_CLR(n, p)   ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
#define FD_ISSET(n, p)   ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
#define FD_ZERO(p)   memset((char *)(p), 0, sizeof(*(p)))

Define Documentation

#define FD_CLR (   n,
 
)    ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))

Definition at line 31 of file selcall.h.

#define FD_ISSET (   n,
 
)    ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))

Definition at line 32 of file selcall.h.

#define FD_SET (   n,
 
)    ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))

Definition at line 30 of file selcall.h.

#define FD_SETSIZE   NOFILE /* maximum # select file descriptors */

Definition at line 24 of file selcall.h.

#define FD_ZERO (   p)    memset((char *)(p), 0, sizeof(*(p)))

Definition at line 33 of file selcall.h.

#define NFDBITS   (8*sizeof(int)) /* number of bits per fd_mask */

Definition at line 28 of file selcall.h.