Path: blob/master/src/hotspot/os/windows/include/jvm_md.h
41149 views
/*1* Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#ifndef _JAVASOFT_JVM_MD_H_26#define _JAVASOFT_JVM_MD_H_2728/*29* This file is currently collecting system-specific dregs for the30* JNI conversion, which should be sorted out later.31*/3233#include <windows.h>34#include <windef.h>35#include <winbase.h>3637#include "jni.h"3839typedef int socklen_t;4041#define JNI_ONLOAD_SYMBOLS {"_JNI_OnLoad@8", "JNI_OnLoad"}42#define JNI_ONUNLOAD_SYMBOLS {"_JNI_OnUnload@8", "JNI_OnUnload"}43#define JVM_ONLOAD_SYMBOLS {"_JVM_OnLoad@12", "JVM_OnLoad"}44#define AGENT_ONLOAD_SYMBOLS {"_Agent_OnLoad@12", "Agent_OnLoad"}45#define AGENT_ONUNLOAD_SYMBOLS {"_Agent_OnUnload@4", "Agent_OnUnload"}46#define AGENT_ONATTACH_SYMBOLS {"_Agent_OnAttach@12", "Agent_OnAttach"}4748#define JNI_LIB_PREFIX ""49#define JNI_LIB_SUFFIX ".dll"5051struct dirent {52char d_name[MAX_PATH];53};5455typedef struct {56struct dirent dirent;57char *path;58HANDLE handle;59WIN32_FIND_DATA find_data;60} DIR;6162#include <stddef.h> /* For uintptr_t */63#include <stdlib.h>6465#define JVM_MAXPATHLEN 10246667#define JVM_R_OK 468#define JVM_W_OK 269#define JVM_X_OK 170#define JVM_F_OK 07172#ifdef __cplusplus73extern "C" {74#endif7576JNIEXPORT void * JNICALL77JVM_GetThreadInterruptEvent();7879#ifdef __cplusplus80} /* extern "C" */81#endif /* __cplusplus */8283/*84* File I/O85*/8687#include <sys/types.h>88#include <sys/stat.h>89#include <fcntl.h>90#include <errno.h>91#include <signal.h>9293/* Signals */9495#define JVM_SIGINT SIGINT96#define JVM_SIGTERM SIGTERM9798#define SHUTDOWN1_SIGNAL SIGINT /* Shutdown Hooks support. */99#define SHUTDOWN2_SIGNAL SIGTERM100101#endif /* !_JAVASOFT_JVM_MD_H_ */102103104