Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
PojavLauncherTeam
GitHub Repository: PojavLauncherTeam/openj9
Path: blob/master/runtime/ddr/typestubs.h
5986 views
1
/*******************************************************************************
2
* Copyright (c) 1991, 2020 IBM Corp. and others
3
*
4
* This program and the accompanying materials are made available under
5
* the terms of the Eclipse Public License 2.0 which accompanies this
6
* distribution and is available at https://www.eclipse.org/legal/epl-2.0/
7
* or the Apache License, Version 2.0 which accompanies this distribution and
8
* is available at https://www.apache.org/licenses/LICENSE-2.0.
9
*
10
* This Source Code may also be made available under the following
11
* Secondary Licenses when the conditions for such availability set
12
* forth in the Eclipse Public License, v. 2.0 are satisfied: GNU
13
* General Public License, version 2 with the GNU Classpath
14
* Exception [1] and GNU General Public License, version 2 with the
15
* OpenJDK Assembly Exception [2].
16
*
17
* [1] https://www.gnu.org/software/classpath/license.html
18
* [2] http://openjdk.java.net/legal/assembly-exception.html
19
*
20
* SPDX-License-Identifier: EPL-2.0 OR Apache-2.0 OR GPL-2.0 WITH Classpath-exception-2.0 OR LicenseRef-GPL-2.0 WITH Assembly-exception
21
*******************************************************************************/
22
#ifndef TYPESTUBS_H
23
#define TYPESTUBS_H
24
25
//typedefs required to allow the pre-processed VM source to parse.
26
//
27
//For the purposes of the parser, we don't need the typedefs to be correct. We just need
28
//the name defined.
29
30
#define __inline__ inline
31
#define inline
32
33
typedef int va_list;
34
typedef int FILE;
35
#if !defined(TYPESTUB_CPLUSPLUS)
36
typedef int size_t;
37
#endif
38
typedef int wchar_t;
39
typedef int ucontext_t;
40
typedef int sigset_t;
41
typedef int fd_set;
42
typedef int pthread_mutex_t;
43
typedef int pthread_t;
44
typedef int pthread_key_t;
45
typedef int key_t;
46
typedef int pthread_cond_t;
47
typedef int pthread_condattr_t;
48
typedef int pthread_spinlock_t;
49
typedef int sem_t;
50
typedef int clockid_t;
51
typedef int uint32_t;
52
typedef int int32_t;
53
typedef int uintptr_t;
54
typedef int uint16_t;
55
typedef int int16_t;
56
typedef int uint8_t;
57
typedef int int8_t;
58
typedef int intptr_t;
59
typedef int uint64_t;
60
typedef int int64_t;
61
typedef int nodemask_t;
62
typedef int iconv_t;
63
typedef int cpu_set_t;
64
65
#define INT_MAX (size_t)(-1)
66
67
extern void * va_start(va_list, void*);
68
extern void va_end(va_list);
69
70
extern void * memset (void *, int, size_t);
71
extern void * memcpy (void *, const void *, size_t);
72
extern int memcmp (const void *, const void *, size_t);
73
extern int abs(int);
74
extern int strcmp(const char *, const char *);
75
extern int strncmp(const char *s1, const char *s2, size_t n);
76
77
#if defined(J9ZTPF)
78
struct sockaddr_in {
79
int foo;
80
};
81
#else /* defined(J9ZTPF) */
82
struct sockaddr_storage {
83
int foo;
84
};
85
#endif /* defined(J9ZTPF) */
86
87
struct timeval {
88
int foo;
89
};
90
91
struct linger {
92
int foo;
93
};
94
95
struct ipv6_mreq {
96
int foo;
97
};
98
99
struct ip_mreq {
100
int foo;
101
};
102
103
struct in6_addr {
104
int foo;
105
};
106
107
struct in_addr {
108
int foo;
109
};
110
111
typedef int SOCKADDR_IN6;
112
113
struct hostent {
114
int foo;
115
};
116
117
struct sigaction {
118
int foo;
119
};
120
121
void pthread_mutex_lock(void*);
122
void pthread_mutex_unlock(void*);
123
void __cs1(void*,void*,void*);
124
void __csg(void*,void*,void*);
125
126
#endif
127
128