4 * Not all machines define FD_SET in sys/types.h
9 /* Was: (defined(RS6000)||defined(SYS_PTX))&&!defined(_BSD) */
10 /* Could say: !defined(FD_SET) && defined(HAVE_SYS_SELECT_H) */
11 #if defined(HAVE_SYS_SELECT_H) && !defined(_BSD)
13 #include <sys/select.h>
16 extern int select
P((int width
, fd_set
*pReadFds
, fd_set
*pWriteFds
,
17 fd_set
*pExceptFds
, struct timeval
*pTimeOut
));
22 #if !defined(FD_SET) && !defined(SYS_WINNT)
25 #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS)))
26 #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS)))
27 #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS)))
28 #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p)))
33 unsigned int fds_bits
[1];
37 #endif /* _ntp_select_h */