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