Wed, 22 Aug 2012 10:01:51 +0200
7192916: Hotspot development launcher should use DYLD_LIBRARY_PATH on OS X
Reviewed-by: dholmes, dsamersoff, nloodin
sla@2327 | 1 | /* |
sla@2327 | 2 | * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. |
sla@2327 | 3 | * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
sla@2327 | 4 | * |
sla@2327 | 5 | * This code is free software; you can redistribute it and/or modify it |
sla@2327 | 6 | * under the terms of the GNU General Public License version 2 only, as |
sla@2327 | 7 | * published by the Free Software Foundation. |
sla@2327 | 8 | * |
sla@2327 | 9 | * This code is distributed in the hope that it will be useful, but WITHOUT |
sla@2327 | 10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
sla@2327 | 11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
sla@2327 | 12 | * version 2 for more details (a copy is included in the LICENSE file that |
sla@2327 | 13 | * accompanied this code). |
sla@2327 | 14 | * |
sla@2327 | 15 | * You should have received a copy of the GNU General Public License version |
sla@2327 | 16 | * 2 along with this work; if not, write to the Free Software Foundation, |
sla@2327 | 17 | * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
sla@2327 | 18 | * |
sla@2327 | 19 | * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
sla@2327 | 20 | * or visit www.oracle.com if you need additional information or have any |
sla@2327 | 21 | * questions. |
sla@2327 | 22 | * |
sla@2327 | 23 | */ |
sla@2327 | 24 | |
sla@2327 | 25 | #ifndef JAVA_MD_H |
sla@2327 | 26 | #define JAVA_MD_H |
sla@2327 | 27 | |
sla@2327 | 28 | #include <limits.h> |
sla@2327 | 29 | #include <unistd.h> |
sla@2327 | 30 | #include <sys/param.h> |
sla@2327 | 31 | #ifndef GAMMA |
sla@2327 | 32 | #include "manifest_info.h" |
sla@2327 | 33 | #endif |
sla@2327 | 34 | #include "jli_util.h" |
sla@2327 | 35 | |
sla@2327 | 36 | #define PATH_SEPARATOR ':' |
sla@2327 | 37 | #define FILESEP "/" |
sla@2327 | 38 | #define FILE_SEPARATOR '/' |
sla@2327 | 39 | #define IS_FILE_SEPARATOR(c) ((c) == '/') |
sla@2327 | 40 | #ifndef MAXNAMELEN |
sla@2327 | 41 | #define MAXNAMELEN PATH_MAX |
sla@2327 | 42 | #endif |
sla@2327 | 43 | |
sla@2327 | 44 | #ifdef JAVA_ARGS |
sla@2327 | 45 | /* |
sla@2327 | 46 | * ApplicationHome is prepended to each of these entries; the resulting |
sla@2327 | 47 | * strings are concatenated (separated by PATH_SEPARATOR) and used as the |
sla@2327 | 48 | * value of -cp option to the launcher. |
sla@2327 | 49 | */ |
sla@2327 | 50 | #ifndef APP_CLASSPATH |
sla@2327 | 51 | #define APP_CLASSPATH { "/lib/tools.jar", "/classes" } |
sla@2327 | 52 | #endif |
sla@2327 | 53 | #endif |
sla@2327 | 54 | |
sla@2327 | 55 | #ifdef HAVE_GETHRTIME |
sla@2327 | 56 | /* |
sla@2327 | 57 | * Support for doing cheap, accurate interval timing. |
sla@2327 | 58 | */ |
sla@2327 | 59 | #include <sys/time.h> |
sla@2327 | 60 | #define CounterGet() (gethrtime()/1000) |
sla@2327 | 61 | #define Counter2Micros(counts) (counts) |
sla@2327 | 62 | #else |
sla@2327 | 63 | #define CounterGet() (0) |
sla@2327 | 64 | #define Counter2Micros(counts) (1) |
sla@2327 | 65 | #endif /* HAVE_GETHRTIME */ |
sla@2327 | 66 | |
sla@2327 | 67 | /* |
sla@2327 | 68 | * Function prototypes. |
sla@2327 | 69 | */ |
sla@2327 | 70 | #ifndef GAMMA |
sla@2327 | 71 | char *LocateJRE(manifest_info *info); |
sla@2327 | 72 | void ExecJRE(char *jre, char **argv); |
sla@2327 | 73 | #endif |
sla@2327 | 74 | int UnsetEnv(char *name); |
sla@2327 | 75 | |
sla@2327 | 76 | #endif |