Move definition to the build system

0 /*
1  * Copyright (c) 1997, 2008, Oracle and/or its affiliates. All rights reserved.
2  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
3  *
4  * This code is free software; you can redistribute it and/or modify it
5  * under the terms of the GNU General Public License version 2 only, as
6  * published by the Free Software Foundation.  Oracle designates this
7  * particular file as subject to the "Classpath" exception as provided
8  * by Oracle in the LICENSE file that accompanied this code.
9  *
10  * This code is distributed in the hope that it will be useful, but WITHOUT
11  * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
12  * FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License
13  * version 2 for more details (a copy is included in the LICENSE file that
14  * accompanied this code).
15  *
16  * You should have received a copy of the GNU General Public License version
17  * 2 along with this work; if not, write to the Free Software Foundation,
18  * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
19  *
20  * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
21  * or visit www.oracle.com if you need additional information or have any
22  * questions.
23  */
24 
25 #ifndef _JAVASOFT_JVM_MD_H_
26 #define _JAVASOFT_JVM_MD_H_
27 
28 /*
29  * This file is currently collecting system-specific dregs for the
30  * JNI conversion, which should be sorted out later.
31  */
32 




33 #include <windows.h>
34 #include <windef.h>
35 #include <winbase.h>
36 
37 #include "jni.h"
38 
39 typedef int socklen_t;
40 
41 #define JNI_ONLOAD_SYMBOLS   {"_JNI_OnLoad@8", "JNI_OnLoad"}
42 #define JNI_ONUNLOAD_SYMBOLS {"_JNI_OnUnload@8", "JNI_OnUnload"}
43 #define JVM_ONLOAD_SYMBOLS      {"_JVM_OnLoad@12", "JVM_OnLoad"}
44 #define AGENT_ONLOAD_SYMBOLS    {"_Agent_OnLoad@12", "Agent_OnLoad"}
45 #define AGENT_ONUNLOAD_SYMBOLS  {"_Agent_OnUnload@4", "Agent_OnUnload"}
46 #define AGENT_ONATTACH_SYMBOLS  {"_Agent_OnAttach@12", "Agent_OnAttach"}
47 
48 #define JNI_LIB_PREFIX ""
49 #define JNI_LIB_SUFFIX ".dll"
50 
51 struct dirent {
52     char d_name[MAX_PATH];
53 };
54 
55 typedef struct {
56     struct dirent dirent;
57     char *path;
58     HANDLE handle;
59     WIN32_FIND_DATA find_data;
60 } DIR;
61 
62 #include <stddef.h>  /* For uintptr_t */
63 #include <stdlib.h>
64 
65 #define JVM_MAXPATHLEN _MAX_PATH
66 
67 #define JVM_R_OK    4
68 #define JVM_W_OK    2
69 #define JVM_X_OK    1
70 #define JVM_F_OK    0
71 
72 #ifdef __cplusplus
73 extern "C" {
74 #endif
75 
76 JNIEXPORT void * JNICALL
77 JVM_GetThreadInterruptEvent();
78 
79 #ifdef __cplusplus
80 } /* extern "C" */
81 #endif /* __cplusplus */
82 
83 /*
84  * File I/O
85  */
86 
87 #include <sys/types.h>
88 #include <sys/stat.h>
89 #include <fcntl.h>
90 #include <errno.h>
91 #include <signal.h>
92 
93 /* Signals */
94 
95 #define JVM_SIGINT     SIGINT
96 #define JVM_SIGTERM    SIGTERM
97 
98 #define SHUTDOWN1_SIGNAL SIGINT            /* Shutdown Hooks support. */
99 #define SHUTDOWN2_SIGNAL SIGTERM
100 
101 #endif /* !_JAVASOFT_JVM_MD_H_ */
--- EOF ---