/* * @(#)java_md.h 1.14 03/12/19 * * Copyright 2004 Sun Microsystems, Inc. All rights reserved. * SUN PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. */ #ifndef JAVA_MD_H #define JAVA_MD_H #include #include #include #include "manifest_info.h" #define PATH_SEPARATOR ':' #define FILESEP "/" #define FILE_SEPARATOR '/' #ifndef MAXNAMELEN #define MAXNAMELEN PATH_MAX #endif #ifdef JAVA_ARGS /* * ApplicationHome is prepended to each of these entries; the resulting * strings are concatenated (seperated by PATH_SEPARATOR) and used as the * value of -cp option to the launcher. */ #ifndef APP_CLASSPATH #define APP_CLASSPATH { "/lib/tools.jar", "/classes" } #endif #endif #ifdef HAVE_GETHRTIME /* * Support for doing cheap, accurate interval timing. */ #include #define CounterGet() (gethrtime()/1000) #define Counter2Micros(counts) (counts) #elif defined(_ALLBSD_SOURCE) /* CounterGet() is implemented in java_md.c */ int64_t CounterGet(void); #define Counter2Micros(counts) (counts) #else #define CounterGet() (0) #define Counter2Micros(counts) (1) #endif /* HAVE_GETHRTIME || _ALLBSD_SOURCE */ /* * Function prototypes. */ char *LocateJRE(manifest_info* info); void ExecJRE(char *jre, char **argv); int UnsetEnv(char *name); #endif