jvm_windows.h revision 1472
342N/A/*
1472N/A * Copyright (c) 1998, 2005, Oracle and/or its affiliates. All rights reserved.
342N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
342N/A *
342N/A * This code is free software; you can redistribute it and/or modify it
342N/A * under the terms of the GNU General Public License version 2 only, as
342N/A * published by the Free Software Foundation.
342N/A *
342N/A * This code is distributed in the hope that it will be useful, but WITHOUT
342N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
342N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
342N/A * version 2 for more details (a copy is included in the LICENSE file that
342N/A * accompanied this code).
342N/A *
342N/A * You should have received a copy of the GNU General Public License version
342N/A * 2 along with this work; if not, write to the Free Software Foundation,
342N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
342N/A *
1472N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
1472N/A * or visit www.oracle.com if you need additional information or have any
1472N/A * questions.
342N/A *
342N/A */
342N/A
342N/A#ifndef _JAVASOFT_JVM_MD_H_
342N/A#define _JAVASOFT_JVM_MD_H_
342N/A
342N/A/*
342N/A * This file is currently collecting system-specific dregs for the
342N/A * JNI conversion, which should be sorted out later.
342N/A */
342N/A
342N/A#include <windows.h>
342N/A// #include <windef.h>
342N/A// #include <winbase.h>
342N/A
342N/A
342N/A// #include "jni.h"
342N/A
342N/A#define JNI_ONLOAD_SYMBOLS {"_JNI_OnLoad@8", "JNI_OnLoad"}
342N/A#define JNI_ONUNLOAD_SYMBOLS {"_JNI_OnUnload@8", "JNI_OnUnload"}
342N/A#define JVM_ONLOAD_SYMBOLS {"_JVM_OnLoad@12", "JVM_OnLoad"}
342N/A#define AGENT_ONLOAD_SYMBOLS {"_Agent_OnLoad@12", "Agent_OnLoad"}
342N/A#define AGENT_ONUNLOAD_SYMBOLS {"_Agent_OnUnload@4", "Agent_OnUnload"}
342N/A#define AGENT_ONATTACH_SYMBOLS {"_Agent_OnAttach@12", "Agent_OnAttach"}
342N/A
342N/A#define JNI_LIB_PREFIX ""
342N/A#define JNI_LIB_SUFFIX ".dll"
342N/A
342N/Astruct dirent {
342N/A char d_name[MAX_PATH];
393N/A};
342N/A
342N/Atypedef struct {
342N/A struct dirent dirent;
342N/A char *path;
342N/A HANDLE handle;
342N/A WIN32_FIND_DATA find_data;
342N/A} DIR;
342N/A
342N/A#include <stdlib.h>
342N/A
342N/A#define JVM_MAXPATHLEN _MAX_PATH
342N/A
342N/A#define JVM_R_OK 4
342N/A#define JVM_W_OK 2
342N/A#define JVM_X_OK 1
342N/A#define JVM_F_OK 0
342N/A
342N/A#ifdef __cplusplus
342N/Aextern "C" {
342N/A#endif
342N/A
342N/AJNIEXPORT void * JNICALL
342N/AJVM_GetThreadInterruptEvent();
342N/A
342N/A#ifdef __cplusplus
342N/A} /* extern "C" */
342N/A#endif /* __cplusplus */
342N/A
342N/A/*
342N/A * File I/O
342N/A */
342N/A
342N/A// #include <sys/types.h>
342N/A// #include <sys/stat.h>
342N/A// #include <fcntl.h>
342N/A// #include <errno.h>
342N/A
342N/A/* O Flags */
342N/A
342N/A#define JVM_O_RDONLY O_RDONLY
342N/A#define JVM_O_WRONLY O_WRONLY
342N/A#define JVM_O_RDWR O_RDWR
342N/A#define JVM_O_O_APPEND O_APPEND
342N/A#define JVM_O_EXCL O_EXCL
342N/A#define JVM_O_CREAT O_CREAT
342N/A#define JVM_O_DELETE O_TEMPORARY
342N/A
342N/A/* Signals */
342N/A
342N/A#define JVM_SIGINT SIGINT
342N/A#define JVM_SIGTERM SIGTERM
342N/A
342N/A#define SHUTDOWN1_SIGNAL SIGINT /* Shutdown Hooks support. */
342N/A#define SHUTDOWN2_SIGNAL SIGTERM
677N/A
677N/A#endif /* !_JAVASOFT_JVM_MD_H_ */
342N/A