56 #define GEMD_OUT_OF_MEMORY -1
57 #define EVENT_TIMEDOUT -2
58 #define EVENT_TERMINATE -3
102 char dest[LINE_SIZE],
113 #define ERROR_BUFFER_LEN (size_t)256
117 #if !defined(__cplusplus) || defined(UPNP_USE_MSVCPP)
120 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
123 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
125 #define EADDRINUSE WSAEADDRINUSE
126 #define strcasecmp stricmp
127 #define strncasecmp strnicmp
128 #define sleep(a) Sleep((a)*1000)
129 #define usleep(a) Sleep((a)/1000)
130 #define strerror_r(a,b,c) (strerror_s((b),(c),(a)))
132 #define max(a, b) (((a)>(b))? (a):(b))
133 #define min(a, b) (((a)<(b))? (a):(b))
void linecopy(char dest[LINE_SIZE], const char *src)
Copy no of bytes spcified by the LINE_SIZE constant, from the source buffer. Null terminate the desti...
Definition: util.c:46
void linecopylen(char dest[LINE_SIZE], const char *src, size_t srclen)
Determine if the srclen passed in paramter is less than the permitted LINE_SIZE. If it is use the pas...
Definition: util.c:60
void namecopy(char dest[NAME_SIZE], const char *src)
Copy no of bytes spcified by the NAME_SIZE constant, from the source buffer. Null terminate the desti...
Definition: util.c:53