Back to index

glibc  2.9
Defines
select.h File Reference

Go to the source code of this file.

Defines

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

Define Documentation

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

Definition at line 34 of file select.h.

#define __FD_ISSET (   d,
  s 
)    ((__FDS_BITS (s)[__FDELT(d)] & __FDMASK(d)) != 0)

Definition at line 35 of file select.h.

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

Definition at line 33 of file select.h.

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

Definition at line 26 of file select.h.