57#define GEMD_OUT_OF_MEMORY -1
58#define EVENT_TIMEDOUT -2
59#define EVENT_TERMINATE -3
103 char dest[LINE_SIZE],
114#define ERROR_BUFFER_LEN (size_t)256
118#if !defined(__cplusplus) || defined(UPNP_USE_MSVCPP)
121 #define S_ISREG(m) (((m) & S_IFMT) == S_IFREG)
124 #define S_ISDIR(m) (((m) & S_IFMT) == S_IFDIR)
127 #define EADDRINUSE WSAEADDRINUSE
129 #define strcasecmp stricmp
130 #define strncasecmp strnicmp
131 #define sleep(a) Sleep((a)*1000)
132 #define usleep(a) Sleep((a)/1000)
133 #define strerror_r(a,b,c) (strerror_s((b),(c),(a)))
135 #define max(a, b) (((a)>(b))? (a):(b))
136 #define min(a, b) (((a)<(b))? (a):(b))
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
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