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