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