src/share/bin/jli_util.h

Print this page
rev 9771 : 8042469 : Launcher changes for native memory tracking scalability enhancement

*** 62,82 **** --- 62,87 ---- /* On Windows lseek() is in io.h rather than the location dictated by POSIX. */ #ifdef _WIN32 #include <windows.h> #include <io.h> + #include <process.h> #define JLI_StrCaseCmp(p1, p2) stricmp((p1), (p2)) #define JLI_StrNCaseCmp(p1, p2, p3) strnicmp((p1), (p2), (p3)) int JLI_Snprintf(char *buffer, size_t size, const char *format, ...); void JLI_CmdToArgs(char *cmdline); #define JLI_Lseek _lseeki64 + #define JLI_PutEnv _putenv + #define JLI_GetPid _getpid #else /* NIXES */ #include <unistd.h> #include <strings.h> #define JLI_StrCaseCmp(p1, p2) strcasecmp((p1), (p2)) #define JLI_StrNCaseCmp(p1, p2, p3) strncasecmp((p1), (p2), (p3)) #define JLI_Snprintf snprintf + #define JLI_PutEnv putenv + #define JLI_GetPid getpid #ifdef __solaris__ #define JLI_Lseek llseek #endif #ifdef __linux__ #define _LARGFILE64_SOURCE