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