author | hseigel |
Thu, 17 Jan 2013 10:25:16 -0500 | |
changeset 15228 | e92acc84ade3 |
parent 7410 | f5b282e7a7a6 |
permissions | -rw-r--r-- |
7410 | 1 |
/* |
15228
e92acc84ade3
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
7410
diff
changeset
|
2 |
* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved. |
7410 | 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 |
||
15228
e92acc84ade3
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
7410
diff
changeset
|
67 |
#ifdef _LP64 |
e92acc84ade3
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
7410
diff
changeset
|
68 |
#define JLONG_FORMAT "%ld" |
e92acc84ade3
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
7410
diff
changeset
|
69 |
#else |
e92acc84ade3
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
7410
diff
changeset
|
70 |
#define JLONG_FORMAT "%lld" |
e92acc84ade3
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
7410
diff
changeset
|
71 |
#endif |
e92acc84ade3
7102489: RFE: cleanup jlong typedef on __APPLE__and _LLP64 systems.
hseigel
parents:
7410
diff
changeset
|
72 |
|
7410 | 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 |