sla@2327: /* sla@2327: * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. sla@2327: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. sla@2327: * sla@2327: * This code is free software; you can redistribute it and/or modify it sla@2327: * under the terms of the GNU General Public License version 2 only, as sla@2327: * published by the Free Software Foundation. sla@2327: * sla@2327: * This code is distributed in the hope that it will be useful, but WITHOUT sla@2327: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or sla@2327: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License sla@2327: * version 2 for more details (a copy is included in the LICENSE file that sla@2327: * accompanied this code). sla@2327: * sla@2327: * You should have received a copy of the GNU General Public License version sla@2327: * 2 along with this work; if not, write to the Free Software Foundation, sla@2327: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. sla@2327: * sla@2327: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA sla@2327: * or visit www.oracle.com if you need additional information or have any sla@2327: * questions. sla@2327: * sla@2327: */ sla@2327: sla@2327: #ifndef JAVA_MD_H sla@2327: #define JAVA_MD_H sla@2327: sla@2327: #include sla@2327: #include sla@2327: #include sla@2327: #ifndef GAMMA sla@2327: #include "manifest_info.h" sla@2327: #endif sla@2327: #include "jli_util.h" sla@2327: sla@2327: #define PATH_SEPARATOR ':' sla@2327: #define FILESEP "/" sla@2327: #define FILE_SEPARATOR '/' sla@2327: #define IS_FILE_SEPARATOR(c) ((c) == '/') sla@2327: #ifndef MAXNAMELEN sla@2327: #define MAXNAMELEN PATH_MAX sla@2327: #endif sla@2327: sla@2327: #ifdef JAVA_ARGS sla@2327: /* sla@2327: * ApplicationHome is prepended to each of these entries; the resulting sla@2327: * strings are concatenated (separated by PATH_SEPARATOR) and used as the sla@2327: * value of -cp option to the launcher. sla@2327: */ sla@2327: #ifndef APP_CLASSPATH sla@2327: #define APP_CLASSPATH { "/lib/tools.jar", "/classes" } sla@2327: #endif sla@2327: #endif sla@2327: sla@2327: #ifdef HAVE_GETHRTIME sla@2327: /* sla@2327: * Support for doing cheap, accurate interval timing. sla@2327: */ sla@2327: #include sla@2327: #define CounterGet() (gethrtime()/1000) sla@2327: #define Counter2Micros(counts) (counts) sla@2327: #else sla@2327: #define CounterGet() (0) sla@2327: #define Counter2Micros(counts) (1) sla@2327: #endif /* HAVE_GETHRTIME */ sla@2327: sla@2327: /* sla@2327: * Function prototypes. sla@2327: */ sla@2327: #ifndef GAMMA sla@2327: char *LocateJRE(manifest_info *info); sla@2327: void ExecJRE(char *jre, char **argv); sla@2327: #endif sla@2327: int UnsetEnv(char *name); sla@2327: sla@2327: #endif