comparison src/os/posix/launcher/java_md.h @ 1985:cb2d0a362639

6981484: Update development launcher Summary: Add new development launcher called hotspot(.exe) Reviewed-by: coleenp
author sla
date Thu, 02 Dec 2010 05:45:54 -0800
parents
children 203f64878aab
comparison
equal deleted inserted replaced
1984:2968675b413e 1985:cb2d0a362639
1 /*
2 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
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
67 /*
68 * Function prototypes.
69 */
70 #ifndef GAMMA
71 char *LocateJRE(manifest_info *info);
72 void ExecJRE(char *jre, char **argv);
73 #endif
74 int UnsetEnv(char *name);
75
76 #endif