# | Line 23 | Line 23 | |
---|---|---|
23 | #define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS))) | |
24 | #define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS))) | |
25 | #define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS))) | |
26 | < | #ifndef BSD |
27 | < | #define bzero(d,n) memset(d,0,n) |
28 | < | #endif |
26 | > | #ifdef BSD |
27 | #define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) | |
28 | + | #else |
29 | + | #define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) |
30 | + | #endif |
31 | #endif |
– | Removed lines |
+ | Added lines |
< | Changed lines |
> | Changed lines |