| 4 |
|
*/ |
| 5 |
|
#ifndef _RAD_SELCALL_H_ |
| 6 |
|
#define _RAD_SELCALL_H_ |
| 7 |
– |
#ifdef __cplusplus |
| 8 |
– |
extern "C" { |
| 9 |
– |
#endif |
| 7 |
|
|
| 8 |
+ |
#include <string.h> |
| 9 |
|
#include <sys/types.h> |
| 10 |
|
#ifdef _WIN32 |
| 11 |
|
/*#include <winsock2.h>*/ |
| 30 |
|
#define FD_SET(n, p) ((p)->fds_bits[(n)/NFDBITS] |= (1 << ((n) % NFDBITS))) |
| 31 |
|
#define FD_CLR(n, p) ((p)->fds_bits[(n)/NFDBITS] &= ~(1 << ((n) % NFDBITS))) |
| 32 |
|
#define FD_ISSET(n, p) ((p)->fds_bits[(n)/NFDBITS] & (1 << ((n) % NFDBITS))) |
| 35 |
– |
#ifdef BSD |
| 36 |
– |
#define FD_ZERO(p) bzero((char *)(p), sizeof(*(p))) |
| 37 |
– |
#else |
| 33 |
|
#define FD_ZERO(p) memset((char *)(p), 0, sizeof(*(p))) |
| 34 |
|
#endif |
| 35 |
+ |
|
| 36 |
+ |
#ifdef __cplusplus |
| 37 |
+ |
extern "C" { |
| 38 |
|
#endif |
| 39 |
|
|
| 40 |
+ |
/* nothing yet */ |
| 41 |
|
|
| 42 |
|
#ifdef __cplusplus |
| 43 |
|
} |