jvm_md.h revision 0
0N/A/*
0N/A * Copyright 1997-1999 Sun Microsystems, Inc. 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
0N/A * published by the Free Software Foundation. Sun designates this
0N/A * particular file as subject to the "Classpath" exception as provided
0N/A * by Sun 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 *
0N/A * Please contact Sun Microsystems, Inc., 4150 Network Circle, Santa Clara,
0N/A * CA 95054 USA or visit www.sun.com if you need additional information or
0N/A * have any 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 */
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"
0N/A#define JNI_LIB_SUFFIX ".so"
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_ */