hotspot/src/os/windows/launcher/java_md.h
author zgu
Mon, 30 Jul 2012 10:25:52 -0400
changeset 13340 40c424a6ff53
parent 7410 f5b282e7a7a6
child 15228 e92acc84ade3
permissions -rw-r--r--
7186778: MachO decoder implementation for MacOSX Summary: Implementation of decoder for Apple's MacOSX. The implementation is based on the patch provided by Kevin Walls. Reviewed-by: coleenp, kamg, kevinw
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
7410
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     1
/*
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     2
 * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     3
 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     4
 *
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     5
 * This code is free software; you can redistribute it and/or modify it
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     6
 * under the terms of the GNU General Public License version 2 only, as
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     7
 * published by the Free Software Foundation.
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     8
 *
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
     9
 * This code is distributed in the hope that it will be useful, but WITHOUT
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    10
 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    11
 * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    12
 * version 2 for more details (a copy is included in the LICENSE file that
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    13
 * accompanied this code).
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    14
 *
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    15
 * You should have received a copy of the GNU General Public License version
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    16
 * 2 along with this work; if not, write to the Free Software Foundation,
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    17
 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    18
 *
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    19
 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    20
 * or visit www.oracle.com if you need additional information or have any
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    21
 * questions.
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    22
 *
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    23
 */
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    24
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    25
#ifndef JAVA_MD_H
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    26
#define JAVA_MD_H
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    27
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    28
#include <jni.h>
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    29
#include <windows.h>
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    30
#include <io.h>
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    31
#ifndef GAMMA
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    32
#include "manifest_info.h"
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    33
#endif
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    34
#include "jli_util.h"
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    35
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    36
#ifdef GAMMA
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    37
#define stricmp _stricmp
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    38
#define strnicmp _strnicmp
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    39
#define snprintf _snprintf
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    40
#define strdup _strdup
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    41
#endif
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    42
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    43
#define PATH_SEPARATOR  ';'
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    44
#define FILESEP         "\\"
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    45
#define FILE_SEPARATOR  '\\'
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    46
#define IS_FILE_SEPARATOR(c) ((c) == '\\' || (c) == '/')
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    47
#define MAXPATHLEN      MAX_PATH
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    48
#define MAXNAMELEN      MAX_PATH
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    49
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    50
#ifdef JAVA_ARGS
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    51
/*
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    52
 * ApplicationHome is prepended to each of these entries; the resulting
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    53
 * strings are concatenated (separated by PATH_SEPARATOR) and used as the
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    54
 * value of -cp option to the launcher.
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    55
 */
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    56
#ifndef APP_CLASSPATH
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    57
#define APP_CLASSPATH        { "\\lib\\tools.jar", "\\classes" }
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    58
#endif
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    59
#endif
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    60
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    61
/*
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    62
 * Support for doing cheap, accurate interval timing.
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    63
 */
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    64
extern jlong CounterGet(void);
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    65
extern jlong Counter2Micros(jlong counts);
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    66
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    67
#ifdef JAVAW
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    68
#define main _main
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    69
extern int _main(int argc, char **argv);
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    70
#endif
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    71
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    72
/*
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    73
 * Function prototypes.
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    74
 */
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    75
#ifndef GAMMA
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    76
char *LocateJRE(manifest_info *info);
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    77
void ExecJRE(char *jre, char **argv);
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    78
#endif
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    79
int UnsetEnv(char *name);
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    80
f5b282e7a7a6 6981484: Update development launcher
sla
parents:
diff changeset
    81
#endif