-
Notifications
You must be signed in to change notification settings - Fork 6
/
unix-java.h
162 lines (144 loc) · 4.27 KB
/
unix-java.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
/* DO NOT EDIT THIS FILE - it is machine generated */
#include <jni.h>
/* Header for class cx_ath_matthew_unix_UnixServerSocket */
#ifndef _Included_cx_ath_matthew_unix_UnixServerSocket
#define _Included_cx_ath_matthew_unix_UnixServerSocket
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: cx_ath_matthew_unix_UnixServerSocket
* Method: native_bind
* Signature: (Ljava/lang/String;Z)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixServerSocket_native_1bind
(JNIEnv *, jobject, jstring, jboolean);
/*
* Class: cx_ath_matthew_unix_UnixServerSocket
* Method: native_close
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_cx_ath_matthew_unix_UnixServerSocket_native_1close
(JNIEnv *, jobject, jint);
/*
* Class: cx_ath_matthew_unix_UnixServerSocket
* Method: native_accept
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixServerSocket_native_1accept
(JNIEnv *, jobject, jint);
#ifdef __cplusplus
}
#endif
#endif
/* Header for class cx_ath_matthew_unix_UnixSocket */
#ifndef _Included_cx_ath_matthew_unix_UnixSocket
#define _Included_cx_ath_matthew_unix_UnixSocket
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: cx_ath_matthew_unix_UnixSocket
* Method: native_set_pass_cred
* Signature: (IZ)V
*/
JNIEXPORT void JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1set_1pass_1cred
(JNIEnv *, jobject, jint, jboolean);
/*
* Class: cx_ath_matthew_unix_UnixSocket
* Method: native_connect
* Signature: (Ljava/lang/String;Z)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1connect
(JNIEnv *, jobject, jstring, jboolean);
/*
* Class: cx_ath_matthew_unix_UnixSocket
* Method: native_close
* Signature: (I)V
*/
JNIEXPORT void JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1close
(JNIEnv *, jobject, jint);
/*
* Class: cx_ath_matthew_unix_UnixSocket
* Method: native_getPID
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1getPID
(JNIEnv *, jobject, jint);
/*
* Class: cx_ath_matthew_unix_UnixSocket
* Method: native_getUID
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1getUID
(JNIEnv *, jobject, jint);
/*
* Class: cx_ath_matthew_unix_UnixSocket
* Method: native_getGID
* Signature: (I)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1getGID
(JNIEnv *, jobject, jint);
/*
* Class: cx_ath_matthew_unix_UnixSocket
* Method: native_send_creds
* Signature: (IB)V
*/
JNIEXPORT void JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1send_1creds
(JNIEnv *, jobject, jint, jbyte);
/*
* Class: cx_ath_matthew_unix_UnixSocket
* Method: native_recv_creds
* Signature: (I[I)B
*/
JNIEXPORT jbyte JNICALL Java_cx_ath_matthew_unix_UnixSocket_native_1recv_1creds
(JNIEnv *, jobject, jint, jintArray);
#ifdef __cplusplus
}
#endif
#endif
/* Header for class cx_ath_matthew_unix_USInputStream */
#ifndef _Included_cx_ath_matthew_unix_USInputStream
#define _Included_cx_ath_matthew_unix_USInputStream
#ifdef __cplusplus
extern "C" {
#endif
#undef cx_ath_matthew_unix_USInputStream_MAX_SKIP_BUFFER_SIZE
#define cx_ath_matthew_unix_USInputStream_MAX_SKIP_BUFFER_SIZE 2048L
#undef cx_ath_matthew_unix_USInputStream_MSG_DONTWAIT
#define cx_ath_matthew_unix_USInputStream_MSG_DONTWAIT 64L
/*
* Class: cx_ath_matthew_unix_USInputStream
* Method: native_recv
* Signature: (I[BIIII)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_USInputStream_native_1recv
(JNIEnv *, jobject, jint, jbyteArray, jint, jint, jint, jint);
#ifdef __cplusplus
}
#endif
#endif
/* Header for class cx_ath_matthew_unix_USOutputStream */
#ifndef _Included_cx_ath_matthew_unix_USOutputStream
#define _Included_cx_ath_matthew_unix_USOutputStream
#ifdef __cplusplus
extern "C" {
#endif
/*
* Class: cx_ath_matthew_unix_USOutputStream
* Method: native_send
* Signature: (I[BII)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_USOutputStream_native_1send__I_3BII
(JNIEnv *, jobject, jint, jbyteArray, jint, jint);
/*
* Class: cx_ath_matthew_unix_USOutputStream
* Method: native_send
* Signature: (I[[B)I
*/
JNIEXPORT jint JNICALL Java_cx_ath_matthew_unix_USOutputStream_native_1send__I_3_3B
(JNIEnv *, jobject, jint, jobjectArray);
#ifdef __cplusplus
}
#endif
#endif