src/os/solaris/vm/jvm_solaris.h

Thu, 12 Oct 2017 21:27:07 +0800

author
aoqi
date
Thu, 12 Oct 2017 21:27:07 +0800
changeset 7535
7ae4e26cb1e0
parent 6876
710a3c8b516e
child 7994
04ff2f6cd0eb
permissions
-rw-r--r--

merge

aoqi@0 1 /*
aoqi@0 2 * Copyright (c) 1998, 2010, Oracle and/or its affiliates. All rights reserved.
aoqi@0 3 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
aoqi@0 4 *
aoqi@0 5 * This code is free software; you can redistribute it and/or modify it
aoqi@0 6 * under the terms of the GNU General Public License version 2 only, as
aoqi@0 7 * published by the Free Software Foundation.
aoqi@0 8 *
aoqi@0 9 * This code is distributed in the hope that it will be useful, but WITHOUT
aoqi@0 10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
aoqi@0 11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
aoqi@0 12 * version 2 for more details (a copy is included in the LICENSE file that
aoqi@0 13 * accompanied this code).
aoqi@0 14 *
aoqi@0 15 * You should have received a copy of the GNU General Public License version
aoqi@0 16 * 2 along with this work; if not, write to the Free Software Foundation,
aoqi@0 17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
aoqi@0 18 *
aoqi@0 19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
aoqi@0 20 * or visit www.oracle.com if you need additional information or have any
aoqi@0 21 * questions.
aoqi@0 22 *
aoqi@0 23 */
aoqi@0 24
aoqi@0 25 #ifndef OS_SOLARIS_VM_JVM_SOLARIS_H
aoqi@0 26 #define OS_SOLARIS_VM_JVM_SOLARIS_H
aoqi@0 27
aoqi@0 28 /*
aoqi@0 29 // HotSpot integration note:
aoqi@0 30 //
aoqi@0 31 // This is derived from the JDK classic file:
aoqi@0 32 // "$JDK/src/solaris/javavm/export/jvm_md.h":15 (ver. 1.10 98/04/22)
aoqi@0 33 // All local includes have been commented out.
aoqi@0 34 */
aoqi@0 35
aoqi@0 36 #ifndef JVM_MD_H
aoqi@0 37 #define JVM_MD_H
aoqi@0 38
aoqi@0 39 /*
aoqi@0 40 * This file is currently collecting system-specific dregs for the
aoqi@0 41 * JNI conversion, which should be sorted out later.
aoqi@0 42 */
aoqi@0 43
aoqi@0 44 #include <dirent.h> /* For DIR */
aoqi@0 45 #include <sys/param.h> /* For MAXPATHLEN */
aoqi@0 46 #include <sys/socket.h> /* For socklen_t */
aoqi@0 47 #include <unistd.h> /* For F_OK, R_OK, W_OK */
aoqi@0 48 #include <sys/int_types.h> /* for intptr_t types (64 Bit cleanliness) */
aoqi@0 49
aoqi@0 50 #define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"}
aoqi@0 51 #define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"}
aoqi@0 52 #define JVM_ONLOAD_SYMBOLS {"JVM_OnLoad"}
aoqi@0 53 #define AGENT_ONLOAD_SYMBOLS {"Agent_OnLoad"}
aoqi@0 54 #define AGENT_ONUNLOAD_SYMBOLS {"Agent_OnUnload"}
aoqi@0 55 #define AGENT_ONATTACH_SYMBOLS {"Agent_OnAttach"}
aoqi@0 56
aoqi@0 57 #define JNI_LIB_PREFIX "lib"
aoqi@0 58 #define JNI_LIB_SUFFIX ".so"
aoqi@0 59
aoqi@0 60 #define JVM_MAXPATHLEN MAXPATHLEN
aoqi@0 61
aoqi@0 62 #define JVM_R_OK R_OK
aoqi@0 63 #define JVM_W_OK W_OK
aoqi@0 64 #define JVM_X_OK X_OK
aoqi@0 65 #define JVM_F_OK F_OK
aoqi@0 66
aoqi@0 67 /*
aoqi@0 68 * File I/O
aoqi@0 69 */
aoqi@0 70
aoqi@0 71 #include <sys/types.h>
aoqi@0 72 #include <sys/stat.h>
aoqi@0 73 #include <fcntl.h>
aoqi@0 74 #include <errno.h>
aoqi@0 75
aoqi@0 76 /* O Flags */
aoqi@0 77
aoqi@0 78 #define JVM_O_RDONLY O_RDONLY
aoqi@0 79 #define JVM_O_WRONLY O_WRONLY
aoqi@0 80 #define JVM_O_RDWR O_RDWR
aoqi@0 81 #define JVM_O_O_APPEND O_APPEND
aoqi@0 82 #define JVM_O_EXCL O_EXCL
aoqi@0 83 #define JVM_O_CREAT O_CREAT
aoqi@0 84
aoqi@0 85 /* Signal definitions */
aoqi@0 86
aoqi@0 87 #define BREAK_SIGNAL SIGQUIT /* Thread dumping support. */
aoqi@0 88 #define INTERRUPT_SIGNAL SIGUSR1 /* Interruptible I/O support. */
aoqi@0 89 #define ASYNC_SIGNAL SIGUSR2 /* Watcher & async err support. */
aoqi@0 90 #define SHUTDOWN1_SIGNAL SIGHUP /* Shutdown Hooks support. */
aoqi@0 91 #define SHUTDOWN2_SIGNAL SIGINT
aoqi@0 92 #define SHUTDOWN3_SIGNAL SIGTERM
aoqi@0 93 /* alternative signals used with -XX:+UseAltSigs (or for backward
aoqi@0 94 compatibility with 1.2, -Xusealtsigs) flag. Chosen to be
aoqi@0 95 unlikely to conflict with applications embedding the vm */
aoqi@0 96 #define ALT_INTERRUPT_SIGNAL (SIGRTMIN + SIGRTMAX)/2 /* alternate intio signal */
aoqi@0 97 #define ALT_ASYNC_SIGNAL ALT_INTERRUPT_SIGNAL+1 /* alternate async signal */
aoqi@0 98
aoqi@0 99 /* With 1.4.1 libjsig added versioning: used in os_solaris.cpp and jsig.c */
aoqi@0 100 #define JSIG_VERSION_1_4_1 0x30140100
aoqi@0 101
aoqi@0 102 #endif /* JVM_MD_H */
aoqi@0 103
aoqi@0 104 #endif // OS_SOLARIS_VM_JVM_SOLARIS_H

mercurial