Path: blob/aarch64-shenandoah-jdk8u272-b10/hotspot/src/os/linux/vm/jvm_linux.h
32285 views
/*1* Copyright (c) 1999, 2010, Oracle and/or its affiliates. All rights reserved.2* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.3*4* This code is free software; you can redistribute it and/or modify it5* under the terms of the GNU General Public License version 2 only, as6* published by the Free Software Foundation.7*8* This code is distributed in the hope that it will be useful, but WITHOUT9* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or10* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License11* version 2 for more details (a copy is included in the LICENSE file that12* accompanied this code).13*14* You should have received a copy of the GNU General Public License version15* 2 along with this work; if not, write to the Free Software Foundation,16* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.17*18* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA19* or visit www.oracle.com if you need additional information or have any20* questions.21*22*/2324#ifndef OS_LINUX_VM_JVM_LINUX_H25#define OS_LINUX_VM_JVM_LINUX_H2627/*28// 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.33*/3435#ifndef JVM_MD_H36#define JVM_MD_H3738/*39* This file is currently collecting system-specific dregs for the40* JNI conversion, which should be sorted out later.41*/4243#include <dirent.h> /* For DIR */44#include <sys/param.h> /* For MAXPATHLEN */45#include <sys/socket.h> /* For socklen_t */46#include <unistd.h> /* For F_OK, R_OK, W_OK */4748#define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"}49#define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"}50#define JVM_ONLOAD_SYMBOLS {"JVM_OnLoad"}51#define AGENT_ONLOAD_SYMBOLS {"Agent_OnLoad"}52#define AGENT_ONUNLOAD_SYMBOLS {"Agent_OnUnload"}53#define AGENT_ONATTACH_SYMBOLS {"Agent_OnAttach"}5455#define JNI_LIB_PREFIX "lib"56#define JNI_LIB_SUFFIX ".so"5758// Hack: MAXPATHLEN is 4095 on some Linux and 4096 on others. This may59// cause problems if JVM and the rest of JDK are built on different60// Linux releases. Here we define JVM_MAXPATHLEN to be MAXPATHLEN + 1,61// so buffers declared in VM are always >= 4096.62#define JVM_MAXPATHLEN MAXPATHLEN + 16364#define JVM_R_OK R_OK65#define JVM_W_OK W_OK66#define JVM_X_OK X_OK67#define JVM_F_OK F_OK6869/*70* File I/O71*/7273#include <sys/types.h>74#include <sys/stat.h>75#include <fcntl.h>76#include <errno.h>7778/* O Flags */7980#define JVM_O_RDONLY O_RDONLY81#define JVM_O_WRONLY O_WRONLY82#define JVM_O_RDWR O_RDWR83#define JVM_O_O_APPEND O_APPEND84#define JVM_O_EXCL O_EXCL85#define JVM_O_CREAT O_CREAT8687/* Signal definitions */8889#define BREAK_SIGNAL SIGQUIT /* Thread dumping support. */90#define INTERRUPT_SIGNAL SIGUSR1 /* Interruptible I/O support. */91#define SHUTDOWN1_SIGNAL SIGHUP /* Shutdown Hooks support. */92#define SHUTDOWN2_SIGNAL SIGINT93#define SHUTDOWN3_SIGNAL SIGTERM9495#endif /* JVM_MD_H */9697#endif // OS_LINUX_VM_JVM_LINUX_H9899100