Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/os/aix/vm/jvm_aix.h
32284 views
/*1* Copyright (c) 1999, 2013, Oracle and/or its affiliates. All rights reserved.2* Copyright 2012, 2013 SAP AG. All rights reserved.3* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.4*5* This code is free software; you can redistribute it and/or modify it6* under the terms of the GNU General Public License version 2 only, as7* published by the Free Software Foundation.8*9* This code is distributed in the hope that it will be useful, but WITHOUT10* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or11* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License12* version 2 for more details (a copy is included in the LICENSE file that13* accompanied this code).14*15* You should have received a copy of the GNU General Public License version16* 2 along with this work; if not, write to the Free Software Foundation,17* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.18*19* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA20* or visit www.oracle.com if you need additional information or have any21* questions.22*23*/2425#ifndef OS_AIX_VM_JVM_AIX_H26#define OS_AIX_VM_JVM_AIX_H2728// 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.3334#ifndef JVM_MD_H35#define JVM_MD_H3637/*38* This file is currently collecting system-specific dregs for the39* JNI conversion, which should be sorted out later.40*/4142// Since we are compiling with c++, we need the following to make c macros43// visible.44#if !defined(__STDC_LIMIT_MACROS)45# define __STDC_LIMIT_MACROS 146#endif47#if !defined(__STDC_CONSTANT_MACROS)48# define __STDC_CONSTANT_MACROS 149#endif50#if !defined(__STDC_FORMAT_MACROS)51# define __STDC_FORMAT_MACROS 152#endif5354#include <dirent.h> /* For DIR */5556// Must redefine NULL because the macro gets redefined to int 057// by dirent.h. This redefinition is included later then the standard definition in58// globalDefinitions_<compiler>.hpp and leads to assertions in the VM initialization.59// We definitely need NULL to have the same lengh as an address pointer.60#ifdef _LP6461#undef NULL62#define NULL 0L63#else64#ifndef NULL65#define NULL 066#endif67#endif6869#include <sys/param.h> /* For MAXPATHLEN */70#include <sys/socket.h> /* For socklen_t */71#include <unistd.h> /* For F_OK, R_OK, W_OK */7273#define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"}74#define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"}75#define JVM_ONLOAD_SYMBOLS {"JVM_OnLoad"}76#define AGENT_ONLOAD_SYMBOLS {"Agent_OnLoad"}77#define AGENT_ONUNLOAD_SYMBOLS {"Agent_OnUnload"}78#define AGENT_ONATTACH_SYMBOLS {"Agent_OnAttach"}7980#define JNI_LIB_PREFIX "lib"81#define JNI_LIB_SUFFIX ".so"8283// Hack: MAXPATHLEN is 4095 on some Linux and 4096 on others. This may84// cause problems if JVM and the rest of JDK are built on different85// Linux releases. Here we define JVM_MAXPATHLEN to be MAXPATHLEN + 1,86// so buffers declared in VM are always >= 4096.87#define JVM_MAXPATHLEN MAXPATHLEN + 18889#define JVM_R_OK R_OK90#define JVM_W_OK W_OK91#define JVM_X_OK X_OK92#define JVM_F_OK F_OK9394/*95* File I/O96*/9798#include <sys/types.h>99#include <sys/stat.h>100#include <fcntl.h>101#include <errno.h>102103/* O Flags */104105#define JVM_O_RDONLY O_RDONLY106#define JVM_O_WRONLY O_WRONLY107#define JVM_O_RDWR O_RDWR108#define JVM_O_O_APPEND O_APPEND109#define JVM_O_EXCL O_EXCL110#define JVM_O_CREAT O_CREAT111112/* Signal definitions */113114#define BREAK_SIGNAL SIGQUIT /* Thread dumping support. */115#define INTERRUPT_SIGNAL SIGUSR1 /* Interruptible I/O support. */116#define SHUTDOWN1_SIGNAL SIGHUP /* Shutdown Hooks support. */117#define SHUTDOWN2_SIGNAL SIGINT118#define SHUTDOWN3_SIGNAL SIGTERM119120#endif /* JVM_MD_H */121122#endif // OS_AIX_VM_JVM_AIX_H123124125