API published in:
API deprecated in:
#include <sys/cdefs.h>
#include <sys/_types.h>
#include <sys/_sigset.h>
#include <sys/_timeval.h>
#include <sys/timespec.h>
Go to the source code of this file.
Data Structures |
|
struct | fd_set |
Defines |
|
#define | FD_SETSIZE 1024U |
#define | _NFDBITS (sizeof(__fd_mask) * 8) |
#define | _howmany(x, y) (((x) + ((y) - 1)) / (y)) |
#define | __fdset_mask(n) ((__fd_mask)1 << ((n) % _NFDBITS)) |
#define | FD_CLR(n, p) ((p)->__fds_bits[(n)/_NFDBITS] &= ~__fdset_mask(n)) |
#define | FD_ISSET(n, p) ((p)->__fds_bits[(n)/_NFDBITS] & __fdset_mask(n)) |
#define | FD_SET(n, p) ((p)->__fds_bits[(n)/_NFDBITS] |= __fdset_mask(n)) |
#define | FD_ZERO(p) |
Typedefs |
|
typedef unsigned long | __fd_mask |
typedef __sigset_t | sigset_t |
typedef fd_set | fd_set |
Functions |
|
__BEGIN_DECLS IMPORT_C int | select (int, fd_set *, fd_set *, fd_set *, struct timeval *) |
|
|
|
|
|
|
|
|
Value: do { \ fd_set *_p; \ __size_t _n; \ \ _p = (p); \ _n = _howmany(FD_SETSIZE, _NFDBITS); \ while (_n > 0) \ _p->__fds_bits[--_n] = 0; \ } while (0) |
|
|
|
|