4 /******************************************************************
6 * $XConsortium: osdep.h /main/4 1996/01/15 11:43:44 rswiston $
8 * Bitmask routines to support the usage of select() in dtexec.
9 * Revised for Spec1170 conformance.
17 # define _POSIX_SOURCE
23 #include <sys/types.h>
25 # include <sys/select.h>
26 # define FD_SET_CAST(x) (x)
28 # define FD_SET_CAST(x) ((int *)(x))
36 # define MAXSOCKS (OPEN_MAX)
41 #define BITSET(buf, i) FD_SET(i, &(buf))
42 #define BITCLEAR(buf, i) FD_CLR(i, &(buf))
43 #define GETBIT(buf, i) FD_ISSET(i, &(buf))
44 #define COPYBITS(src, dst) (dst) = (src)
45 #define CLEARBITS(buf) FD_ZERO(&buf)