Mercurial > hg > truffle
annotate src/os/posix/launcher/java_md.h @ 7775:1ca1425a067f
Fix build.
author | Roland Schatz <roland.schatz@oracle.com> |
---|---|
date | Tue, 12 Feb 2013 10:32:44 +0100 |
parents | 203f64878aab |
children |
rev | line source |
---|---|
1985 | 1 /* |
7623
203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
1985
diff
changeset
|
2 * Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
1985 | 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
4 * | |
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 | |
7 * published by the Free Software Foundation. | |
8 * | |
9 * This code is distributed in the hope that it will be useful, but WITHOUT | |
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | |
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License | |
12 * version 2 for more details (a copy is included in the LICENSE file that | |
13 * accompanied this code). | |
14 * | |
15 * You should have received a copy of the GNU General Public License version | |
16 * 2 along with this work; if not, write to the Free Software Foundation, | |
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. | |
18 * | |
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA | |
20 * or visit www.oracle.com if you need additional information or have any | |
21 * questions. | |
22 * | |
23 */ | |
24 | |
25 #ifndef JAVA_MD_H | |
26 #define JAVA_MD_H | |
27 | |
28 #include <limits.h> | |
29 #include <unistd.h> | |
30 #include <sys/param.h> | |
31 #ifndef GAMMA | |
32 #include "manifest_info.h" | |
33 #endif | |
34 #include "jli_util.h" | |
35 | |
36 #define PATH_SEPARATOR ':' | |
37 #define FILESEP "/" | |
38 #define FILE_SEPARATOR '/' | |
39 #define IS_FILE_SEPARATOR(c) ((c) == '/') | |
40 #ifndef MAXNAMELEN | |
41 #define MAXNAMELEN PATH_MAX | |
42 #endif | |
43 | |
44 #ifdef JAVA_ARGS | |
45 /* | |
46 * ApplicationHome is prepended to each of these entries; the resulting | |
47 * strings are concatenated (separated by PATH_SEPARATOR) and used as the | |
48 * value of -cp option to the launcher. | |
49 */ | |
50 #ifndef APP_CLASSPATH | |
51 #define APP_CLASSPATH { "/lib/tools.jar", "/classes" } | |
52 #endif | |
53 #endif | |
54 | |
55 #ifdef HAVE_GETHRTIME | |
56 /* | |
57 * Support for doing cheap, accurate interval timing. | |
58 */ | |
59 #include <sys/time.h> | |
60 #define CounterGet() (gethrtime()/1000) | |
61 #define Counter2Micros(counts) (counts) | |
62 #else | |
63 #define CounterGet() (0) | |
64 #define Counter2Micros(counts) (1) | |
65 #endif /* HAVE_GETHRTIME */ | |
66 | |
7623
203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
1985
diff
changeset
|
67 #ifdef _LP64 |
203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
1985
diff
changeset
|
68 #define JLONG_FORMAT "%ld" |
203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
1985
diff
changeset
|
69 #else |
203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
1985
diff
changeset
|
70 #define JLONG_FORMAT "%lld" |
203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
1985
diff
changeset
|
71 #endif |
203f64878aab
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
1985
diff
changeset
|
72 |
1985 | 73 /* |
74 * Function prototypes. | |
75 */ | |
76 #ifndef GAMMA | |
77 char *LocateJRE(manifest_info *info); | |
78 void ExecJRE(char *jre, char **argv); | |
79 #endif | |
80 int UnsetEnv(char *name); | |
81 | |
82 #endif |