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 <windef.h>
0N/A#include <winbase.h>
0N/A
0N/A#include "jni.h"
0N/A
0N/A#define JNI_ONLOAD_SYMBOLS {"_JNI_OnLoad@8", "JNI_OnLoad"}
0N/A#define JNI_ONUNLOAD_SYMBOLS {"_JNI_OnUnload@8", "JNI_OnUnload"}
0N/A
0N/A#define JNI_LIB_PREFIX ""
0N/A#define JNI_LIB_SUFFIX ".dll"
0N/A
0N/Astruct dirent {
0N/A char d_name[MAX_PATH];
0N/A};
0N/A
0N/Atypedef struct {
0N/A struct dirent dirent;
0N/A char *path;
0N/A HANDLE handle;
0N/A WIN32_FIND_DATA find_data;
0N/A} DIR;
0N/A
502N/A#include <stddef.h> /* For uintptr_t */
0N/A#include <stdlib.h>
0N/A
0N/A#define JVM_MAXPATHLEN _MAX_PATH
0N/A
0N/A#define JVM_R_OK 4
0N/A#define JVM_W_OK 2
0N/A#define JVM_X_OK 1
0N/A#define JVM_F_OK 0
0N/A
0N/AJNIEXPORT void * JNICALL
0N/AJVM_GetThreadInterruptEvent();
0N/A
0N/A/*
502N/A * These routines are only reentrant on Windows
502N/A */
502N/A
502N/AJNIEXPORT struct protoent * JNICALL
502N/AJVM_GetProtoByName(char* name);
502N/A
502N/AJNIEXPORT struct hostent* JNICALL
502N/AJVM_GetHostByAddr(const char* name, int len, int type);
502N/A
502N/AJNIEXPORT struct hostent* JNICALL
502N/AJVM_GetHostByName(char* name);
502N/A
502N/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 <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 O_TEMPORARY
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_ */