37 38 #define PATH_SEPARATOR ':' 39 #define FILESEP "/" 40 #define FILE_SEPARATOR '/' 41 #define IS_FILE_SEPARATOR(c) ((c) == '/') 42 #ifndef MAXNAMELEN 43 #define MAXNAMELEN PATH_MAX 44 #endif 45 46 #ifdef _LP64 47 #define JLONG_FORMAT_SPECIFIER "%ld" 48 #else 49 #define JLONG_FORMAT_SPECIFIER "%lld" 50 #endif 51 52 int UnsetEnv(char *name); 53 char *FindExecName(char *program); 54 const char *SetExecname(char **argv); 55 const char *GetExecName(); 56 static jboolean GetJVMPath(const char *jrepath, const char *jvmtype, 57 char *jvmpath, jint jvmpathsize, const char * arch, 58 int bitsWanted); 59 static jboolean GetJREPath(char *path, jint pathsize, const char * arch, 60 jboolean speculative); 61 62 #if defined(_AIX) 63 #include "java_md_aix.h" 64 #endif 65 66 #ifdef MACOSX 67 #include "java_md_macosx.h" 68 #else /* !MACOSX */ 69 #include "java_md_solinux.h" 70 #endif /* MACOSX */ 71 #endif /* JAVA_MD_H */ | 37 38 #define PATH_SEPARATOR ':' 39 #define FILESEP "/" 40 #define FILE_SEPARATOR '/' 41 #define IS_FILE_SEPARATOR(c) ((c) == '/') 42 #ifndef MAXNAMELEN 43 #define MAXNAMELEN PATH_MAX 44 #endif 45 46 #ifdef _LP64 47 #define JLONG_FORMAT_SPECIFIER "%ld" 48 #else 49 #define JLONG_FORMAT_SPECIFIER "%lld" 50 #endif 51 52 int UnsetEnv(char *name); 53 char *FindExecName(char *program); 54 const char *SetExecname(char **argv); 55 const char *GetExecName(); 56 static jboolean GetJVMPath(const char *jrepath, const char *jvmtype, 57 char *jvmpath, jint jvmpathsize, int bitsWanted); 58 static jboolean GetJREPath(char *path, jint pathsize, jboolean speculative); 59 60 #if defined(_AIX) 61 #include "java_md_aix.h" 62 #endif 63 64 #ifdef MACOSX 65 #include "java_md_macosx.h" 66 #else /* !MACOSX */ 67 #include "java_md_solinux.h" 68 #endif /* MACOSX */ 69 #endif /* JAVA_MD_H */ |