summaryrefslogtreecommitdiff
path: root/sys/compat/svr4/svr4_syscall.h
blob: 8ff383829eff2c1a66988e25c298be78fedcffb4 (plain)
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
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
/*	$OpenBSD: svr4_syscall.h,v 1.31 2001/05/16 05:05:08 millert Exp $	*/

/*
 * System call numbers.
 *
 * DO NOT EDIT-- this file is automatically generated.
 * created from	OpenBSD: syscalls.master,v 1.30 2000/08/23 19:31:35 fgsch Exp 
 */

/* syscall: "syscall" ret: "int" args: */
#define	SVR4_SYS_syscall	0

/* syscall: "exit" ret: "int" args: "int" */
#define	SVR4_SYS_exit	1

/* syscall: "fork" ret: "int" args: */
#define	SVR4_SYS_fork	2

/* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
#define	SVR4_SYS_read	3

/* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
#define	SVR4_SYS_write	4

/* syscall: "open" ret: "int" args: "char *" "int" "int" */
#define	SVR4_SYS_open	5

/* syscall: "close" ret: "int" args: "int" */
#define	SVR4_SYS_close	6

/* syscall: "wait" ret: "int" args: "int *" */
#define	SVR4_SYS_wait	7

/* syscall: "creat" ret: "int" args: "char *" "int" */
#define	SVR4_SYS_creat	8

/* syscall: "link" ret: "int" args: "char *" "char *" */
#define	SVR4_SYS_link	9

/* syscall: "unlink" ret: "int" args: "char *" */
#define	SVR4_SYS_unlink	10

/* syscall: "execv" ret: "int" args: "char *" "char **" */
#define	SVR4_SYS_execv	11

/* syscall: "chdir" ret: "int" args: "char *" */
#define	SVR4_SYS_chdir	12

/* syscall: "time" ret: "int" args: "svr4_time_t *" */
#define	SVR4_SYS_time	13

/* syscall: "mknod" ret: "int" args: "char *" "int" "int" */
#define	SVR4_SYS_mknod	14

/* syscall: "chmod" ret: "int" args: "char *" "int" */
#define	SVR4_SYS_chmod	15

/* syscall: "chown" ret: "int" args: "char *" "int" "int" */
#define	SVR4_SYS_chown	16

/* syscall: "break" ret: "int" args: "caddr_t" */
#define	SVR4_SYS_break	17

/* syscall: "stat" ret: "int" args: "char *" "struct svr4_stat *" */
#define	SVR4_SYS_stat	18

/* syscall: "lseek" ret: "long" args: "int" "long" "int" */
#define	SVR4_SYS_lseek	19

/* syscall: "getpid" ret: "pid_t" args: */
#define	SVR4_SYS_getpid	20

/* syscall: "setuid" ret: "int" args: "uid_t" */
#define	SVR4_SYS_setuid	23

/* syscall: "getuid" ret: "uid_t" args: */
#define	SVR4_SYS_getuid	24

/* syscall: "alarm" ret: "int" args: "unsigned" */
#define	SVR4_SYS_alarm	27

/* syscall: "fstat" ret: "int" args: "int" "struct svr4_stat *" */
#define	SVR4_SYS_fstat	28

/* syscall: "pause" ret: "int" args: */
#define	SVR4_SYS_pause	29

/* syscall: "utime" ret: "int" args: "char *" "struct svr4_utimbuf *" */
#define	SVR4_SYS_utime	30

/* syscall: "access" ret: "int" args: "char *" "int" */
#define	SVR4_SYS_access	33

/* syscall: "nice" ret: "int" args: "int" */
#define	SVR4_SYS_nice	34

/* syscall: "sync" ret: "int" args: */
#define	SVR4_SYS_sync	36

/* syscall: "kill" ret: "int" args: "int" "int" */
#define	SVR4_SYS_kill	37

/* syscall: "pgrpsys" ret: "int" args: "int" "int" "int" */
#define	SVR4_SYS_pgrpsys	39

/* syscall: "dup" ret: "int" args: "u_int" */
#define	SVR4_SYS_dup	41

/* syscall: "opipe" ret: "int" args: */
#define	SVR4_SYS_opipe	42

/* syscall: "times" ret: "int" args: "struct tms *" */
#define	SVR4_SYS_times	43

/* syscall: "setgid" ret: "int" args: "gid_t" */
#define	SVR4_SYS_setgid	46

/* syscall: "getgid" ret: "gid_t" args: */
#define	SVR4_SYS_getgid	47

/* syscall: "signal" ret: "int" args: "int" "svr4_sig_t" */
#define	SVR4_SYS_signal	48

/* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" */
#define	SVR4_SYS_msgsys	49

/* syscall: "sysarch" ret: "int" args: "int" "void *" */
#define	SVR4_SYS_sysarch	50

/* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
#define	SVR4_SYS_shmsys	52

/* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
#define	SVR4_SYS_semsys	53

/* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
#define	SVR4_SYS_ioctl	54

/* syscall: "utssys" ret: "int" args: "void *" "void *" "int" "void *" */
#define	SVR4_SYS_utssys	57

/* syscall: "fsync" ret: "int" args: "int" */
#define	SVR4_SYS_fsync	58

/* syscall: "execve" ret: "int" args: "char *" "char **" "char **" */
#define	SVR4_SYS_execve	59

/* syscall: "umask" ret: "int" args: "int" */
#define	SVR4_SYS_umask	60

/* syscall: "chroot" ret: "int" args: "char *" */
#define	SVR4_SYS_chroot	61

/* syscall: "fcntl" ret: "int" args: "int" "int" "char *" */
#define	SVR4_SYS_fcntl	62

/* syscall: "ulimit" ret: "long" args: "int" "long" */
#define	SVR4_SYS_ulimit	63

				/* 70 is obsolete advfs */
				/* 71 is obsolete unadvfs */
				/* 72 is obsolete rmount */
				/* 73 is obsolete rumount */
				/* 74 is obsolete rfstart */
				/* 75 is obsolete sigret */
/* syscall: "rdebug" ret: "int" args: */
#define	SVR4_SYS_rdebug	76

				/* 77 is obsolete rfstop */
/* syscall: "rmdir" ret: "int" args: "char *" */
#define	SVR4_SYS_rmdir	79

/* syscall: "mkdir" ret: "int" args: "char *" "int" */
#define	SVR4_SYS_mkdir	80

/* syscall: "getdents" ret: "int" args: "int" "char *" "int" */
#define	SVR4_SYS_getdents	81

				/* 82 is obsolete libattach */
				/* 83 is obsolete libdetach */
/* syscall: "getmsg" ret: "int" args: "int" "struct svr4_strbuf *" "struct svr4_strbuf *" "int *" */
#define	SVR4_SYS_getmsg	85

/* syscall: "putmsg" ret: "int" args: "int" "struct svr4_strbuf *" "struct svr4_strbuf *" "int" */
#define	SVR4_SYS_putmsg	86

/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_long" "int" */
#define	SVR4_SYS_poll	87

/* syscall: "lstat" ret: "int" args: "char *" "struct svr4_stat *" */
#define	SVR4_SYS_lstat	88

/* syscall: "symlink" ret: "int" args: "char *" "char *" */
#define	SVR4_SYS_symlink	89

/* syscall: "readlink" ret: "int" args: "char *" "char *" "int" */
#define	SVR4_SYS_readlink	90

/* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
#define	SVR4_SYS_getgroups	91

/* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
#define	SVR4_SYS_setgroups	92

/* syscall: "fchmod" ret: "int" args: "int" "int" */
#define	SVR4_SYS_fchmod	93

/* syscall: "fchown" ret: "int" args: "int" "int" "int" */
#define	SVR4_SYS_fchown	94

/* syscall: "sigprocmask" ret: "int" args: "int" "svr4_sigset_t *" "svr4_sigset_t *" */
#define	SVR4_SYS_sigprocmask	95

/* syscall: "sigsuspend" ret: "int" args: "svr4_sigset_t *" */
#define	SVR4_SYS_sigsuspend	96

/* syscall: "sigaltstack" ret: "int" args: "struct svr4_sigaltstack *" "struct svr4_sigaltstack *" */
#define	SVR4_SYS_sigaltstack	97

/* syscall: "sigaction" ret: "int" args: "int" "struct svr4_sigaction *" "struct svr4_sigaction *" */
#define	SVR4_SYS_sigaction	98

/* syscall: "sigpending" ret: "int" args: "int" "svr4_sigset_t *" */
#define	SVR4_SYS_sigpending	99

/* syscall: "context" ret: "int" args: "int" "struct svr4_ucontext *" */
#define	SVR4_SYS_context	100

/* syscall: "statvfs" ret: "int" args: "char *" "struct svr4_statvfs *" */
#define	SVR4_SYS_statvfs	103

/* syscall: "fstatvfs" ret: "int" args: "int" "struct svr4_statvfs *" */
#define	SVR4_SYS_fstatvfs	104

/* syscall: "waitsys" ret: "int" args: "int" "int" "union svr4_siginfo *" "int" */
#define	SVR4_SYS_waitsys	107

/* syscall: "hrtsys" ret: "int" args: "int" "int" "int" "void *" "void *" */
#define	SVR4_SYS_hrtsys	109

/* syscall: "pathconf" ret: "int" args: "char *" "int" */
#define	SVR4_SYS_pathconf	113

/* syscall: "mincore" ret: "int" args: "caddr_t" "int" "char *" */
#define	SVR4_SYS_mincore	114

/* syscall: "mmap" ret: "int" args: "svr4_caddr_t" "svr4_size_t" "int" "int" "int" "svr4_off_t" */
#define	SVR4_SYS_mmap	115

/* syscall: "mprotect" ret: "int" args: "caddr_t" "int" "int" */
#define	SVR4_SYS_mprotect	116

/* syscall: "munmap" ret: "int" args: "caddr_t" "int" */
#define	SVR4_SYS_munmap	117

/* syscall: "fpathconf" ret: "int" args: "int" "int" */
#define	SVR4_SYS_fpathconf	118

/* syscall: "vfork" ret: "int" args: */
#define	SVR4_SYS_vfork	119

/* syscall: "fchdir" ret: "int" args: "int" */
#define	SVR4_SYS_fchdir	120

/* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
#define	SVR4_SYS_readv	121

/* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
#define	SVR4_SYS_writev	122

/* syscall: "xstat" ret: "int" args: "int" "char *" "struct svr4_xstat *" */
#define	SVR4_SYS_xstat	123

/* syscall: "lxstat" ret: "int" args: "int" "char *" "struct svr4_xstat *" */
#define	SVR4_SYS_lxstat	124

/* syscall: "fxstat" ret: "int" args: "int" "int" "struct svr4_xstat *" */
#define	SVR4_SYS_fxstat	125

/* syscall: "xmknod" ret: "int" args: "int" "char *" "svr4_mode_t" "svr4_dev_t" */
#define	SVR4_SYS_xmknod	126

/* syscall: "setrlimit" ret: "int" args: "int" "struct ogetrlimit *" */
#define	SVR4_SYS_setrlimit	128

/* syscall: "getrlimit" ret: "int" args: "int" "struct ogetrlimit *" */
#define	SVR4_SYS_getrlimit	129

/* syscall: "lchown" ret: "int" args: "char *" "int" "int" */
#define	SVR4_SYS_lchown	130

/* syscall: "memcntl" ret: "int" args: "svr4_caddr_t" "svr4_size_t" "int" "svr4_caddr_t" "int" "int" */
#define	SVR4_SYS_memcntl	131

/* syscall: "rename" ret: "int" args: "char *" "char *" */
#define	SVR4_SYS_rename	134

/* syscall: "uname" ret: "int" args: "struct svr4_utsname *" "int" */
#define	SVR4_SYS_uname	135

/* syscall: "setegid" ret: "int" args: "gid_t" */
#define	SVR4_SYS_setegid	136

/* syscall: "sysconfig" ret: "int" args: "int" */
#define	SVR4_SYS_sysconfig	137

/* syscall: "adjtime" ret: "int" args: "struct timeval *" "struct timeval *" */
#define	SVR4_SYS_adjtime	138

/* syscall: "systeminfo" ret: "long" args: "int" "char *" "long" */
#define	SVR4_SYS_systeminfo	139

/* syscall: "seteuid" ret: "int" args: "uid_t" */
#define	SVR4_SYS_seteuid	141

/* syscall: "fchroot" ret: "int" args: "int" */
#define	SVR4_SYS_fchroot	153

/* syscall: "utimes" ret: "int" args: "char *" "struct timeval *" */
#define	SVR4_SYS_utimes	154

/* syscall: "vhangup" ret: "int" args: */
#define	SVR4_SYS_vhangup	155

/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" */
#define	SVR4_SYS_gettimeofday	156

/* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
#define	SVR4_SYS_getitimer	157

/* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
#define	SVR4_SYS_setitimer	158

/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "svr4_off_t" */
#define	SVR4_SYS_pread	173

/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "svr4_off_t" */
#define	SVR4_SYS_pwrite	174

/* syscall: "llseek" ret: "svr4_off64_t" args: "int" "long" "long" "int" */
#define	SVR4_SYS_llseek	175

/* syscall: "acl" ret: "int" args: "char *" "int" "int" "struct svr4_aclent *" */
#define	SVR4_SYS_acl	185

/* syscall: "auditsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
#define	SVR4_SYS_auditsys	186

/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */
#define	SVR4_SYS_clock_gettime	191

/* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */
#define	SVR4_SYS_clock_settime	192

/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */
#define	SVR4_SYS_clock_getres	193

/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
#define	SVR4_SYS_nanosleep	199

/* syscall: "facl" ret: "int" args: "int" "int" "int" "struct svr4_aclent *" */
#define	SVR4_SYS_facl	200

/* syscall: "setreuid" ret: "int" args: "int" "int" */
#define	SVR4_SYS_setreuid	202

/* syscall: "setregid" ret: "int" args: "int" "int" */
#define	SVR4_SYS_setregid	203

/* syscall: "getdents64" ret: "int" args: "int" "struct svr4_dirent64 *" "int" */
#define	SVR4_SYS_getdents64	213

/* syscall: "mmap64" ret: "int" args: "svr4_caddr_t" "svr4_size_t" "int" "int" "int" "svr4_off64_t" */
#define	SVR4_SYS_mmap64	214

/* syscall: "stat64" ret: "int" args: "const char *" "struct svr4_stat64 *" */
#define	SVR4_SYS_stat64	215

/* syscall: "lstat64" ret: "int" args: "const char *" "struct svr4_stat64 *" */
#define	SVR4_SYS_lstat64	216

/* syscall: "fstat64" ret: "int" args: "int" "struct svr4_stat64 *" */
#define	SVR4_SYS_fstat64	217

/* syscall: "fstatvfs64" ret: "int" args: "int" "struct svr4_statvfs64 *" */
#define	SVR4_SYS_fstatvfs64	219

/* syscall: "pread64" ret: "ssize_t" args: "int" "void *" "size_t" "svr4_off64_t" */
#define	SVR4_SYS_pread64	222

/* syscall: "pwrite64" ret: "ssize_t" args: "int" "const void *" "size_t" "svr4_off64_t" */
#define	SVR4_SYS_pwrite64	223

/* syscall: "creat64" ret: "int" args: "char *" "int" */
#define	SVR4_SYS_creat64	224

/* syscall: "open64" ret: "int" args: "char *" "int" "int" */
#define	SVR4_SYS_open64	225

/* syscall: "socket" ret: "int" args: "int" "int" "int" */
#define	SVR4_SYS_socket	230

/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
#define	SVR4_SYS_socketpair	231

/* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */
#define	SVR4_SYS_bind	232

/* syscall: "listen" ret: "int" args: "int" "int" */
#define	SVR4_SYS_listen	233

/* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "int *" */
#define	SVR4_SYS_accept	234

/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
#define	SVR4_SYS_connect	235

/* syscall: "shutdown" ret: "int" args: "int" "int" */
#define	SVR4_SYS_shutdown	236

/* syscall: "recv" ret: "int" args: "int" "caddr_t" "int" "int" */
#define	SVR4_SYS_recv	237

/* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "int *" */
#define	SVR4_SYS_recvfrom	238

/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
#define	SVR4_SYS_recvmsg	239

/* syscall: "send" ret: "int" args: "int" "caddr_t" "int" "int" */
#define	SVR4_SYS_send	240

/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
#define	SVR4_SYS_sendmsg	241

/* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */
#define	SVR4_SYS_sendto	242

/* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "int *" */
#define	SVR4_SYS_getpeername	243

/* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "int *" */
#define	SVR4_SYS_getsockname	244

/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
#define	SVR4_SYS_getsockopt	245

/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "int" */
#define	SVR4_SYS_setsockopt	246

/* syscall: "ntp_gettime" ret: "int" args: "struct ntptimeval *" */
#define	SVR4_SYS_ntp_gettime	248

/* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */
#define	SVR4_SYS_ntp_adjtime	249

#define	SVR4_SYS_MAXSYSCALL	250