author | dsimms |
Wed, 11 Jun 2014 12:09:12 +0200 | |
changeset 25056 | 5ad92b0d1beb |
parent 21129 | e1f4474a6723 |
permissions | -rw-r--r-- |
21129
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
1 |
/* |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
2 |
* Copyright (c) 1997, 2013, Oracle and/or its affiliates. All rights reserved. |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
3 |
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
4 |
* |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
5 |
* This code is free software; you can redistribute it and/or modify it |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
6 |
* under the terms of the GNU General Public License version 2 only, as |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
7 |
* published by the Free Software Foundation. Oracle designates this |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
8 |
* particular file as subject to the "Classpath" exception as provided |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
9 |
* by Oracle in the LICENSE file that accompanied this code. |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
10 |
* |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
11 |
* This code is distributed in the hope that it will be useful, but WITHOUT |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
12 |
* ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
13 |
* FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
14 |
* version 2 for more details (a copy is included in the LICENSE file that |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
15 |
* accompanied this code). |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
16 |
* |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
17 |
* You should have received a copy of the GNU General Public License version |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
18 |
* 2 along with this work; if not, write to the Free Software Foundation, |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
19 |
* Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA. |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
20 |
* |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
21 |
* Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
22 |
* or visit www.oracle.com if you need additional information or have any |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
23 |
* questions. |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
24 |
*/ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
25 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
26 |
#ifndef _JAVASOFT_JVM_MD_H_ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
27 |
#define _JAVASOFT_JVM_MD_H_ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
28 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
29 |
/* |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
30 |
* This file is currently collecting system-specific dregs for the |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
31 |
* JNI conversion, which should be sorted out later. |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
32 |
*/ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
33 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
34 |
#include <dirent.h> /* For DIR */ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
35 |
#include <sys/param.h> /* For MAXPATHLEN */ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
36 |
#include <unistd.h> /* For F_OK, R_OK, W_OK */ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
37 |
#include <stddef.h> /* For ptrdiff_t */ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
38 |
#include <stdint.h> /* For uintptr_t */ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
39 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
40 |
#define JNI_ONLOAD_SYMBOLS {"JNI_OnLoad"} |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
41 |
#define JNI_ONUNLOAD_SYMBOLS {"JNI_OnUnload"} |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
42 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
43 |
#define JNI_LIB_PREFIX "lib" |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
44 |
#define JNI_LIB_SUFFIX ".dylib" |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
45 |
#define VERSIONED_JNI_LIB_NAME(NAME, VERSION) JNI_LIB_PREFIX NAME "." VERSION JNI_LIB_SUFFIX |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
46 |
#define JNI_LIB_NAME(NAME) JNI_LIB_PREFIX NAME JNI_LIB_SUFFIX |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
47 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
48 |
#define JVM_MAXPATHLEN MAXPATHLEN |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
49 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
50 |
#define JVM_R_OK R_OK |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
51 |
#define JVM_W_OK W_OK |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
52 |
#define JVM_X_OK X_OK |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
53 |
#define JVM_F_OK F_OK |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
54 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
55 |
/* |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
56 |
* File I/O |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
57 |
*/ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
58 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
59 |
#include <sys/types.h> |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
60 |
#include <sys/stat.h> |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
61 |
#include <fcntl.h> |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
62 |
#include <errno.h> |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
63 |
#include <sys/signal.h> |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
64 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
65 |
/* O Flags */ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
66 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
67 |
#define JVM_O_RDONLY O_RDONLY |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
68 |
#define JVM_O_WRONLY O_WRONLY |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
69 |
#define JVM_O_RDWR O_RDWR |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
70 |
#define JVM_O_O_APPEND O_APPEND |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
71 |
#define JVM_O_EXCL O_EXCL |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
72 |
#define JVM_O_CREAT O_CREAT |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
73 |
#define JVM_O_DELETE 0x10000 |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
74 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
75 |
/* Signals */ |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
76 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
77 |
#define JVM_SIGINT SIGINT |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
78 |
#define JVM_SIGTERM SIGTERM |
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
79 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
80 |
|
e1f4474a6723
8016096: [macosx] jawt_md.h shipped with jdk is outdated
dholmes
parents:
diff
changeset
|
81 |
#endif /* !_JAVASOFT_JVM_MD_H_ */ |