src/os/solaris/vm/jvm_solaris.h

Thu, 19 Mar 2009 09:13:24 -0700

author
kvn
date
Thu, 19 Mar 2009 09:13:24 -0700
changeset 1082
bd441136a5ce
parent 435
a61af66fc99e
child 1907
c18cbe5936b8
permissions
-rw-r--r--

Merge

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

mercurial