0N/A/*
2362N/A * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
0N/A * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
0N/A *
0N/A * This code is free software; you can redistribute it and/or modify it
0N/A * under the terms of the GNU General Public License version 2 only, as
2362N/A * published by the Free Software Foundation. Oracle designates this
0N/A * particular file as subject to the "Classpath" exception as provided
2362N/A * by Oracle in the LICENSE file that accompanied this code.
0N/A *
0N/A * This code is distributed in the hope that it will be useful, but WITHOUT
0N/A * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
0N/A * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
0N/A * version 2 for more details (a copy is included in the LICENSE file that
0N/A * accompanied this code).
0N/A *
0N/A * You should have received a copy of the GNU General Public License version
0N/A * 2 along with this work; if not, write to the Free Software Foundation,
0N/A * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
0N/A *
2362N/A * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
2362N/A * or visit www.oracle.com if you need additional information or have any
2362N/A * questions.
0N/A */
0N/A
0N/A#ifndef _JAVASOFT_JVM_MD_H_
0N/A#define _JAVASOFT_JVM_MD_H_
0N/A
0N/A/*
0N/A * This file is currently collecting system-specific dregs for the
0N/A * JNI conversion, which should be sorted out later.
0N/A */
0N/A
0N/A#include <dirent.h> /* For DIR */
0N/A#include <sys/param.h> /* For MAXPATHLEN */
0N/A#include <unistd.h> /* For F_OK, R_OK, W_OK */
502N/A#include <stddef.h> /* For ptrdiff_t */
502N/A#include <stdint.h> /* For uintptr_t */
0N/A
0N/A#define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"}
0N/A#define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"}
0N/A
0N/A#define JNI_LIB_PREFIX "lib"
4632N/A#ifdef __APPLE__
4632N/A#define JNI_LIB_SUFFIX ".dylib"
4632N/A#define VERSIONED_JNI_LIB_NAME(NAME, VERSION) JNI_LIB_PREFIX NAME "." VERSION JNI_LIB_SUFFIX
4632N/A#else
0N/A#define JNI_LIB_SUFFIX ".so"
4632N/A#define VERSIONED_JNI_LIB_NAME(NAME, VERSION) JNI_LIB_PREFIX NAME JNI_LIB_SUFFIX "." VERSION
4632N/A#endif
4632N/A#define JNI_LIB_NAME(NAME) JNI_LIB_PREFIX NAME JNI_LIB_SUFFIX
0N/A
0N/A#define JVM_MAXPATHLEN MAXPATHLEN
0N/A
0N/A#define JVM_R_OK R_OK
0N/A#define JVM_W_OK W_OK
0N/A#define JVM_X_OK X_OK
0N/A#define JVM_F_OK F_OK
0N/A
0N/A/*
0N/A * File I/O
0N/A */
0N/A
0N/A#include <sys/types.h>
0N/A#include <sys/stat.h>
0N/A#include <fcntl.h>
0N/A#include <errno.h>
0N/A#include <sys/signal.h>
0N/A
0N/A/* O Flags */
0N/A
0N/A#define JVM_O_RDONLY O_RDONLY
0N/A#define JVM_O_WRONLY O_WRONLY
0N/A#define JVM_O_RDWR O_RDWR
0N/A#define JVM_O_O_APPEND O_APPEND
0N/A#define JVM_O_EXCL O_EXCL
0N/A#define JVM_O_CREAT O_CREAT
0N/A#define JVM_O_DELETE 0x10000
0N/A
0N/A/* Signals */
0N/A
0N/A#define JVM_SIGINT SIGINT
0N/A#define JVM_SIGTERM SIGTERM
0N/A
0N/A
0N/A#endif /* !_JAVASOFT_JVM_MD_H_ */