27 # include "os/Vxw/OsVxwDefs.h" 29 #ifdef __pingtel_on_posix__ 36 # define IS_INET_RETURN_OK( x ) (x == 0) 38 # define IS_INET_RETURN_OK( x ) (x > 0) 45 #ifdef DEFINE_S_IREAD_IWRITE 46 # define S_IREAD (S_IRUSR | S_IRGRP | S_IROTH) 47 # define S_IWRITE (S_IWUSR) 51 #ifdef __pingtel_on_posix__ 64 #if defined(WIN32) && defined(_MSC_VER) 67 # define snprintf _snprintf 71 # define vsnprintf _vsnprintf 75 #define pclose _pclose 83 #define WEXITSTATUS(w) (w) 84 #define WIFEXITED(w) (true) 85 #define WIFSIGNALED(w) (false) 86 #define WTERMSIG(w) (0) 90 #elif defined(__va_copy) 91 # define va_copy(dst, src) __va_copy((dst), (src)) 94 # define va_copy(dst, src) ((dst) = (src)) 107 # if defined(WINCE) || (defined(_MSC_VER) && (_MSC_VER >= 1400)) 109 # define strcasecmp _stricmp 112 # define strncasecmp _strnicmp 116 # define strcasecmp stricmp 119 # define strncasecmp strnicmp 127 # define sipx_max(x,y) (((x)>(y))?(x):(y)) 131 # define sipx_min(x,y) (((x)<(y))?(x):(y)) 138 #if defined (_VXWORKS) 140 char *
strdup (
const char *);
144 # define strcmpi strcasecmp 147 # define stricmp strcasecmp 150 # define _stricmp strcasecmp 157 #define SysLowerMemoryLimit (pspGetLocalMemLocalAddr()) 158 #define SysUpperMemoryLimit (pspGetLocalMemLocalAddr() + pspGetLocalMemSize() - 4) 163 void osPrintf(
const char* format , ...)
166 __attribute__ ((format (printf, 1, 2)))
171 #define PORT_NONE (-1) 180 #define PORT_DEFAULT (-2) 189 #define portIsValid(p) ((p) >= 1 && (p) <= 65535) 198 #define SIPX_UNUSED(VAR) if(0){(void) VAR;} 206 #if defined(__sun) && defined(__SVR4) 207 # include <strings.h> 208 # include <sys/sockio.h> 213 extern int getdomainname(
char *,
int);
void enableConsoleOutput(int bEnable)
Definition: osPrintf.cpp:57
unsigned int pspGetLocalMemSize(void)
Include this file if you want use C99 integer types with specified width and corresponding set of mac...
void osPrintf(const char *format,...)
Definition: osPrintf.cpp:62
#define strdup(x)
Definition: WinCEFixups.h:75
#define strcasecmp
Definition: WinCEFixups.h:54
unsigned int pspGetLocalMemLocalAddr(void)