Back to index

glibc  2.9
Defines
select.h File Reference
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define __FD_ZERO(set)
#define __FD_SET(d, set)   (__FDS_BITS (set)[__FDELT (d)] |= __FDMASK (d))
#define __FD_CLR(d, set)   (__FDS_BITS (set)[__FDELT (d)] &= ~__FDMASK (d))
#define __FD_ISSET(d, set)   (__FDS_BITS (set)[__FDELT (d)] & __FDMASK (d))

Define Documentation

#define __FD_CLR (   d,
  set 
)    (__FDS_BITS (set)[__FDELT (d)] &= ~__FDMASK (d))

Definition at line 69 of file select.h.

#define __FD_ISSET (   d,
  set 
)    (__FDS_BITS (set)[__FDELT (d)] & __FDMASK (d))

Definition at line 70 of file select.h.

#define __FD_SET (   d,
  set 
)    (__FDS_BITS (set)[__FDELT (d)] |= __FDMASK (d))

Definition at line 68 of file select.h.

#define __FD_ZERO (   set)
Value:
do {                                                                 \
    unsigned int __i;                                                       \
    fd_set *__arr = (set);                                           \
    for (__i = 0; __i < sizeof (fd_set) / sizeof (__fd_mask); ++__i)        \
      __FDS_BITS (__arr)[__i] = 0;                                   \
  } while (0)

Definition at line 61 of file select.h.