duke@435: /* stefank@2314: * Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved. duke@435: * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. duke@435: * duke@435: * This code is free software; you can redistribute it and/or modify it duke@435: * under the terms of the GNU General Public License version 2 only, as duke@435: * published by the Free Software Foundation. duke@435: * duke@435: * This code is distributed in the hope that it will be useful, but WITHOUT duke@435: * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or duke@435: * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License duke@435: * version 2 for more details (a copy is included in the LICENSE file that duke@435: * accompanied this code). duke@435: * duke@435: * You should have received a copy of the GNU General Public License version duke@435: * 2 along with this work; if not, write to the Free Software Foundation, duke@435: * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. duke@435: * trims@1907: * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA trims@1907: * or visit www.oracle.com if you need additional information or have any trims@1907: * questions. duke@435: * duke@435: */ duke@435: stefank@2314: #ifndef OS_LINUX_VM_JVM_LINUX_H stefank@2314: #define OS_LINUX_VM_JVM_LINUX_H stefank@2314: duke@435: /* duke@435: // HotSpot integration note: duke@435: // duke@435: // This is derived from the JDK classic file: duke@435: // "$JDK/src/solaris/javavm/export/jvm_md.h":15 (ver. 1.10 98/04/22) duke@435: // All local includes have been commented out. duke@435: */ duke@435: duke@435: #ifndef JVM_MD_H duke@435: #define JVM_MD_H duke@435: duke@435: /* duke@435: * This file is currently collecting system-specific dregs for the duke@435: * JNI conversion, which should be sorted out later. duke@435: */ duke@435: duke@435: #include /* For DIR */ duke@435: #include /* For MAXPATHLEN */ phh@3344: #include /* For socklen_t */ duke@435: #include /* For F_OK, R_OK, W_OK */ duke@435: duke@435: #define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"} duke@435: #define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"} duke@435: #define JVM_ONLOAD_SYMBOLS {"JVM_OnLoad"} duke@435: #define AGENT_ONLOAD_SYMBOLS {"Agent_OnLoad"} duke@435: #define AGENT_ONUNLOAD_SYMBOLS {"Agent_OnUnload"} duke@435: #define AGENT_ONATTACH_SYMBOLS {"Agent_OnAttach"} duke@435: duke@435: #define JNI_LIB_PREFIX "lib" duke@435: #define JNI_LIB_SUFFIX ".so" duke@435: duke@435: // Hack: MAXPATHLEN is 4095 on some Linux and 4096 on others. This may duke@435: // cause problems if JVM and the rest of JDK are built on different duke@435: // Linux releases. Here we define JVM_MAXPATHLEN to be MAXPATHLEN + 1, duke@435: // so buffers declared in VM are always >= 4096. duke@435: #define JVM_MAXPATHLEN MAXPATHLEN + 1 duke@435: duke@435: #define JVM_R_OK R_OK duke@435: #define JVM_W_OK W_OK duke@435: #define JVM_X_OK X_OK duke@435: #define JVM_F_OK F_OK duke@435: duke@435: /* duke@435: * File I/O duke@435: */ duke@435: duke@435: #include duke@435: #include duke@435: #include duke@435: #include duke@435: duke@435: /* O Flags */ duke@435: duke@435: #define JVM_O_RDONLY O_RDONLY duke@435: #define JVM_O_WRONLY O_WRONLY duke@435: #define JVM_O_RDWR O_RDWR duke@435: #define JVM_O_O_APPEND O_APPEND duke@435: #define JVM_O_EXCL O_EXCL duke@435: #define JVM_O_CREAT O_CREAT duke@435: duke@435: /* Signal definitions */ duke@435: duke@435: #define BREAK_SIGNAL SIGQUIT /* Thread dumping support. */ duke@435: #define INTERRUPT_SIGNAL SIGUSR1 /* Interruptible I/O support. */ duke@435: #define SHUTDOWN1_SIGNAL SIGHUP /* Shutdown Hooks support. */ duke@435: #define SHUTDOWN2_SIGNAL SIGINT duke@435: #define SHUTDOWN3_SIGNAL SIGTERM duke@435: duke@435: #endif /* JVM_MD_H */ duke@435: stefank@2314: #endif // OS_LINUX_VM_JVM_LINUX_H