equal
deleted
inserted
replaced
1 /* |
1 /* |
2 * Copyright (c) 1998, 2015, Oracle and/or its affiliates. All rights reserved. |
2 * Copyright (c) 1998, 2016, Oracle and/or its affiliates. All rights reserved. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * |
4 * |
5 * This code is free software; you can redistribute it and/or modify it |
5 * This code is free software; you can redistribute it and/or modify it |
6 * under the terms of the GNU General Public License version 2 only, as |
6 * under the terms of the GNU General Public License version 2 only, as |
7 * published by the Free Software Foundation. Oracle designates this |
7 * published by the Free Software Foundation. Oracle designates this |
33 #include <unistd.h> |
33 #include <unistd.h> |
34 #include <sys/param.h> |
34 #include <sys/param.h> |
35 #include "manifest_info.h" |
35 #include "manifest_info.h" |
36 #include "jli_util.h" |
36 #include "jli_util.h" |
37 |
37 |
38 #define PATH_SEPARATOR ':' |
38 #define PATH_SEPARATOR ':' |
39 #define FILESEP "/" |
39 #define FILESEP "/" |
40 #define FILE_SEPARATOR '/' |
40 #define FILE_SEPARATOR '/' |
41 #define IS_FILE_SEPARATOR(c) ((c) == '/') |
41 #define IS_FILE_SEPARATOR(c) ((c) == '/') |
42 #ifndef MAXNAMELEN |
42 #ifndef MAXNAMELEN |
43 #define MAXNAMELEN PATH_MAX |
43 #define MAXNAMELEN PATH_MAX |
44 #endif |
44 #endif |
45 |
45 |
46 #ifdef _LP64 |
46 #ifdef _LP64 |
47 #define JLONG_FORMAT_SPECIFIER "%ld" |
47 #define JLONG_FORMAT_SPECIFIER "%ld" |
48 #else |
48 #else |
57 char *jvmpath, jint jvmpathsize, const char * arch, |
57 char *jvmpath, jint jvmpathsize, const char * arch, |
58 int bitsWanted); |
58 int bitsWanted); |
59 static jboolean GetJREPath(char *path, jint pathsize, const char * arch, |
59 static jboolean GetJREPath(char *path, jint pathsize, const char * arch, |
60 jboolean speculative); |
60 jboolean speculative); |
61 |
61 |
|
62 #if defined(_AIX) |
|
63 #include "java_md_aix.h" |
|
64 #endif |
|
65 |
62 #ifdef MACOSX |
66 #ifdef MACOSX |
63 #include "java_md_macosx.h" |
67 #include "java_md_macosx.h" |
64 #else /* !MACOSX */ |
68 #else /* !MACOSX */ |
65 #include "java_md_solinux.h" |
69 #include "java_md_solinux.h" |
66 #endif /* MACOSX */ |
70 #endif /* MACOSX */ |
67 |
|
68 #endif /* JAVA_MD_H */ |
71 #endif /* JAVA_MD_H */ |