22 #ifndef _TIRPC_WINTIRPC_H 23 #define _TIRPC_WINTIRPC_H 29 #define _CRT_SECURE_NO_WARNINGS 1 34 # define _CRTDBG_MAP_ALLOC 48 #define snprintf _snprintf 50 #define strcasecmp _stricmp 52 #define getpid _getpid 55 #define bcopy(d,s,l) memcpy(d,s,l) 56 #define bzero(d,s) memset(d,0,s) 57 #define strtok_r strtok_s 60 #define ioctl ioctlsocket 69 #define WINSOCK_HANDLE_HASH_SIZE 1024 70 #define WINSOCK_HANDLE_HASH(x) (((x) >> 2) % WINSOCK_HANDLE_HASH_SIZE) 84 #define SOL_IPV6 IPPROTO_IPV6 86 #define MAXHOSTNAMELEN 256 94 #define SUN_LEN(ptr) ((unsigned int)(sizeof(int) + strlen ((ptr)->sun_path)))
void wintirpc_debug(char *fmt,...)
int asprintf(char **str, const char *fmt,...)
int gettimeofday(struct timeval *tv, struct timezone *tz)