Path: blob/aarch64-shenandoah-jdk8u272-b10/jdk/src/macosx/javavm/export/jvm_md.h
32285 views
/*1* Copyright (c) 1997, 2013, 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. Oracle designates this7* particular file as subject to the "Classpath" exception as provided8* by Oracle in the LICENSE file that accompanied this code.9*10* This code is distributed in the hope that it will be useful, but WITHOUT11* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or12* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License13* version 2 for more details (a copy is included in the LICENSE file that14* accompanied this code).15*16* You should have received a copy of the GNU General Public License version17* 2 along with this work; if not, write to the Free Software Foundation,18* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.19*20* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA21* or visit www.oracle.com if you need additional information or have any22* questions.23*/2425#ifndef _JAVASOFT_JVM_MD_H_26#define _JAVASOFT_JVM_MD_H_2728/*29* This file is currently collecting system-specific dregs for the30* JNI conversion, which should be sorted out later.31*/3233#include <dirent.h> /* For DIR */34#include <sys/param.h> /* For MAXPATHLEN */35#include <unistd.h> /* For F_OK, R_OK, W_OK */36#include <stddef.h> /* For ptrdiff_t */37#include <stdint.h> /* For uintptr_t */3839#define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"}40#define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"}4142#define JNI_LIB_PREFIX "lib"43#define JNI_LIB_SUFFIX ".dylib"44#define VERSIONED_JNI_LIB_NAME(NAME, VERSION) JNI_LIB_PREFIX NAME "." VERSION JNI_LIB_SUFFIX45#define JNI_LIB_NAME(NAME) JNI_LIB_PREFIX NAME JNI_LIB_SUFFIX4647#define JVM_MAXPATHLEN MAXPATHLEN4849#define JVM_R_OK R_OK50#define JVM_W_OK W_OK51#define JVM_X_OK X_OK52#define JVM_F_OK F_OK5354/*55* File I/O56*/5758#include <sys/types.h>59#include <sys/stat.h>60#include <fcntl.h>61#include <errno.h>62#include <sys/signal.h>6364/* O Flags */6566#define JVM_O_RDONLY O_RDONLY67#define JVM_O_WRONLY O_WRONLY68#define JVM_O_RDWR O_RDWR69#define JVM_O_O_APPEND O_APPEND70#define JVM_O_EXCL O_EXCL71#define JVM_O_CREAT O_CREAT72#define JVM_O_DELETE 0x100007374/* Signals */7576#define JVM_SIGINT SIGINT77#define JVM_SIGTERM SIGTERM787980#endif /* !_JAVASOFT_JVM_MD_H_ */818283