Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/os/solaris/vm/jvm_solaris.h
32284 views
/*1* Copyright (c) 1998, 2015, 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.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef OS_SOLARIS_VM_JVM_SOLARIS_H25#define OS_SOLARIS_VM_JVM_SOLARIS_H2627/*28// HotSpot integration note:29//30// This is derived from the JDK classic file:31// "$JDK/src/solaris/javavm/export/jvm_md.h":15 (ver. 1.10 98/04/22)32// All local includes have been commented out.33*/3435#ifndef JVM_MD_H36#define JVM_MD_H3738/*39* This file is currently collecting system-specific dregs for the40* JNI conversion, which should be sorted out later.41*/4243#define __USE_LEGACY_PROTOTYPES__44#include <dirent.h> /* For DIR */45#undef __USE_LEGACY_PROTOTYPES__46#include <sys/param.h> /* For MAXPATHLEN */47#include <sys/socket.h> /* For socklen_t */48#include <unistd.h> /* For F_OK, R_OK, W_OK */49#include <sys/int_types.h> /* for intptr_t types (64 Bit cleanliness) */5051#define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"}52#define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"}53#define JVM_ONLOAD_SYMBOLS {"JVM_OnLoad"}54#define AGENT_ONLOAD_SYMBOLS {"Agent_OnLoad"}55#define AGENT_ONUNLOAD_SYMBOLS {"Agent_OnUnload"}56#define AGENT_ONATTACH_SYMBOLS {"Agent_OnAttach"}5758#define JNI_LIB_PREFIX "lib"59#define JNI_LIB_SUFFIX ".so"6061#define JVM_MAXPATHLEN MAXPATHLEN6263#define JVM_R_OK R_OK64#define JVM_W_OK W_OK65#define JVM_X_OK X_OK66#define JVM_F_OK F_OK6768/*69* File I/O70*/7172#include <sys/types.h>73#include <sys/stat.h>74#include <fcntl.h>75#include <errno.h>7677/* O Flags */7879#define JVM_O_RDONLY O_RDONLY80#define JVM_O_WRONLY O_WRONLY81#define JVM_O_RDWR O_RDWR82#define JVM_O_O_APPEND O_APPEND83#define JVM_O_EXCL O_EXCL84#define JVM_O_CREAT O_CREAT8586/* Signal definitions */8788#define BREAK_SIGNAL SIGQUIT /* Thread dumping support. */89#define INTERRUPT_SIGNAL SIGUSR1 /* Interruptible I/O support. */90#define ASYNC_SIGNAL SIGUSR2 /* Watcher & async err support. */91#define SHUTDOWN1_SIGNAL SIGHUP /* Shutdown Hooks support. */92#define SHUTDOWN2_SIGNAL SIGINT93#define SHUTDOWN3_SIGNAL SIGTERM94/* alternative signals used with -XX:+UseAltSigs (or for backward95compatibility with 1.2, -Xusealtsigs) flag. Chosen to be96unlikely to conflict with applications embedding the vm */97#define ALT_INTERRUPT_SIGNAL (SIGRTMIN + SIGRTMAX)/2 /* alternate intio signal */98#define ALT_ASYNC_SIGNAL ALT_INTERRUPT_SIGNAL+1 /* alternate async signal */99100/* With 1.4.1 libjsig added versioning: used in os_solaris.cpp and jsig.c */101#define JSIG_VERSION_1_4_1 0x30140100102103#endif /* JVM_MD_H */104105#endif // OS_SOLARIS_VM_JVM_SOLARIS_H106107108