1/* $OpenBSD: syscall.h,v 1.284 2026/03/08 16:41:35 deraadt Exp $ */
2
3/*
4 * System call numbers.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from; OpenBSD: syscalls.master,v 1.271 2026/03/08 16:41:21 deraadt Exp
8 */
9
10/* syscall: "exit" ret: "void" args: "int" */
11#define SYS_exit 1
12
13/* syscall: "fork" ret: "int" args: */
14#define SYS_fork 2
15
16/* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
17#define SYS_read 3
18
19/* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
20#define SYS_write 4
21
22/* syscall: "open" ret: "int" args: "const char *" "int" "..." "mode_t" */
23#define SYS_open 5
24
25/* syscall: "close" ret: "int" args: "int" */
26#define SYS_close 6
27
28/* syscall: "getentropy" ret: "int" args: "void *" "size_t" */
29#define SYS_getentropy 7
30
31/* syscall: "__tfork" ret: "int" args: "const struct __tfork *" "size_t" */
32#define SYS___tfork 8
33
34/* syscall: "link" ret: "int" args: "const char *" "const char *" */
35#define SYS_link 9
36
37/* syscall: "unlink" ret: "int" args: "const char *" */
38#define SYS_unlink 10
39
40/* syscall: "wait4" ret: "pid_t" args: "pid_t" "int *" "int" "struct rusage *" */
41#define SYS_wait4 11
42
43/* syscall: "chdir" ret: "int" args: "const char *" */
44#define SYS_chdir 12
45
46/* syscall: "fchdir" ret: "int" args: "int" */
47#define SYS_fchdir 13
48
49/* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */
50#define SYS_mknod 14
51
52/* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */
53#define SYS_chmod 15
54
55/* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
56#define SYS_chown 16
57
58/* syscall: "break" ret: "int" args: "char *" */
59#define SYS_break 17
60
61/* syscall: "getdtablecount" ret: "int" args: */
62#define SYS_getdtablecount 18
63
64/* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
65#define SYS_getrusage 19
66
67/* syscall: "getpid" ret: "pid_t" args: */
68#define SYS_getpid 20
69
70/* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */
71#define SYS_mount 21
72
73/* syscall: "unmount" ret: "int" args: "const char *" "int" */
74#define SYS_unmount 22
75
76/* syscall: "setuid" ret: "int" args: "uid_t" */
77#define SYS_setuid 23
78
79/* syscall: "getuid" ret: "uid_t" args: */
80#define SYS_getuid 24
81
82/* syscall: "geteuid" ret: "uid_t" args: */
83#define SYS_geteuid 25
84
85/* syscall: "ptrace" ret: "int" args: "int" "pid_t" "caddr_t" "int" */
86#define SYS_ptrace 26
87
88/* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
89#define SYS_recvmsg 27
90
91/* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
92#define SYS_sendmsg 28
93
94/* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "socklen_t *" */
95#define SYS_recvfrom 29
96
97/* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
98#define SYS_accept 30
99
100/* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
101#define SYS_getpeername 31
102
103/* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" */
104#define SYS_getsockname 32
105
106/* syscall: "access" ret: "int" args: "const char *" "int" */
107#define SYS_access 33
108
109/* syscall: "chflags" ret: "int" args: "const char *" "u_int" */
110#define SYS_chflags 34
111
112/* syscall: "fchflags" ret: "int" args: "int" "u_int" */
113#define SYS_fchflags 35
114
115/* syscall: "sync" ret: "void" args: */
116#define SYS_sync 36
117
118 /* 37 is obsolete msyscall */
119/* syscall: "stat" ret: "int" args: "const char *" "struct stat *" */
120#define SYS_stat 38
121
122/* syscall: "getppid" ret: "pid_t" args: */
123#define SYS_getppid 39
124
125/* syscall: "lstat" ret: "int" args: "const char *" "struct stat *" */
126#define SYS_lstat 40
127
128/* syscall: "dup" ret: "int" args: "int" */
129#define SYS_dup 41
130
131/* syscall: "fstatat" ret: "int" args: "int" "const char *" "struct stat *" "int" */
132#define SYS_fstatat 42
133
134/* syscall: "getegid" ret: "gid_t" args: */
135#define SYS_getegid 43
136
137/* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "pid_t" */
138#define SYS_ktrace 45
139
140/* syscall: "sigaction" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */
141#define SYS_sigaction 46
142
143/* syscall: "getgid" ret: "gid_t" args: */
144#define SYS_getgid 47
145
146/* syscall: "sigprocmask" ret: "int" args: "int" "sigset_t" */
147#define SYS_sigprocmask 48
148
149/* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "off_t" */
150#define SYS_mmap 49
151
152/* syscall: "setlogin" ret: "int" args: "const char *" */
153#define SYS_setlogin 50
154
155/* syscall: "acct" ret: "int" args: "const char *" */
156#define SYS_acct 51
157
158/* syscall: "sigpending" ret: "int" args: */
159#define SYS_sigpending 52
160
161/* syscall: "fstat" ret: "int" args: "int" "struct stat *" */
162#define SYS_fstat 53
163
164/* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." "void *" */
165#define SYS_ioctl 54
166
167/* syscall: "reboot" ret: "int" args: "int" */
168#define SYS_reboot 55
169
170/* syscall: "revoke" ret: "int" args: "const char *" */
171#define SYS_revoke 56
172
173/* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
174#define SYS_symlink 57
175
176/* syscall: "readlink" ret: "ssize_t" args: "const char *" "char *" "size_t" */
177#define SYS_readlink 58
178
179/* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */
180#define SYS_execve 59
181
182/* syscall: "umask" ret: "mode_t" args: "mode_t" */
183#define SYS_umask 60
184
185/* syscall: "chroot" ret: "int" args: "const char *" */
186#define SYS_chroot 61
187
188/* syscall: "getfsstat" ret: "int" args: "struct statfs *" "size_t" "int" */
189#define SYS_getfsstat 62
190
191/* syscall: "statfs" ret: "int" args: "const char *" "struct statfs *" */
192#define SYS_statfs 63
193
194/* syscall: "fstatfs" ret: "int" args: "int" "struct statfs *" */
195#define SYS_fstatfs 64
196
197/* syscall: "fhstatfs" ret: "int" args: "const fhandle_t *" "struct statfs *" */
198#define SYS_fhstatfs 65
199
200/* syscall: "vfork" ret: "int" args: */
201#define SYS_vfork 66
202
203/* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
204#define SYS_gettimeofday 67
205
206/* syscall: "settimeofday" ret: "int" args: "const struct timeval *" "const struct timezone *" */
207#define SYS_settimeofday 68
208
209/* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval *" "struct itimerval *" */
210#define SYS_setitimer 69
211
212/* syscall: "getitimer" ret: "int" args: "int" "struct itimerval *" */
213#define SYS_getitimer 70
214
215/* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
216#define SYS_select 71
217
218/* syscall: "kevent" ret: "int" args: "int" "const struct kevent *" "int" "struct kevent *" "int" "const struct timespec *" */
219#define SYS_kevent 72
220
221/* syscall: "munmap" ret: "int" args: "void *" "size_t" */
222#define SYS_munmap 73
223
224/* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
225#define SYS_mprotect 74
226
227/* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
228#define SYS_madvise 75
229
230/* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval *" */
231#define SYS_utimes 76
232
233/* syscall: "futimes" ret: "int" args: "int" "const struct timeval *" */
234#define SYS_futimes 77
235
236/* syscall: "mquery" ret: "void *" args: "void *" "size_t" "int" "int" "int" "off_t" */
237#define SYS_mquery 78
238
239/* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
240#define SYS_getgroups 79
241
242/* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
243#define SYS_setgroups 80
244
245/* syscall: "getpgrp" ret: "int" args: */
246#define SYS_getpgrp 81
247
248/* syscall: "setpgid" ret: "int" args: "pid_t" "pid_t" */
249#define SYS_setpgid 82
250
251/* syscall: "futex" ret: "int" args: "uint32_t *" "int" "int" "const struct timespec *" "uint32_t *" */
252#define SYS_futex 83
253
254/* syscall: "utimensat" ret: "int" args: "int" "const char *" "const struct timespec *" "int" */
255#define SYS_utimensat 84
256
257/* syscall: "futimens" ret: "int" args: "int" "const struct timespec *" */
258#define SYS_futimens 85
259
260/* syscall: "kbind" ret: "int" args: "const struct __kbind *" "size_t" "int64_t" */
261#define SYS_kbind 86
262
263/* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec *" */
264#define SYS_clock_gettime 87
265
266/* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec *" */
267#define SYS_clock_settime 88
268
269/* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec *" */
270#define SYS_clock_getres 89
271
272/* syscall: "dup2" ret: "int" args: "int" "int" */
273#define SYS_dup2 90
274
275/* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
276#define SYS_nanosleep 91
277
278/* syscall: "fcntl" ret: "int" args: "int" "int" "..." "void *" */
279#define SYS_fcntl 92
280
281/* syscall: "accept4" ret: "int" args: "int" "struct sockaddr *" "socklen_t *" "int" */
282#define SYS_accept4 93
283
284/* syscall: "__thrsleep" ret: "int" args: "const volatile void *" "clockid_t" "const struct timespec *" "void *" "const int *" */
285#define SYS___thrsleep 94
286
287/* syscall: "fsync" ret: "int" args: "int" */
288#define SYS_fsync 95
289
290/* syscall: "setpriority" ret: "int" args: "int" "id_t" "int" */
291#define SYS_setpriority 96
292
293/* syscall: "socket" ret: "int" args: "int" "int" "int" */
294#define SYS_socket 97
295
296/* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */
297#define SYS_connect 98
298
299/* syscall: "getdents" ret: "int" args: "int" "void *" "size_t" */
300#define SYS_getdents 99
301
302/* syscall: "getpriority" ret: "int" args: "int" "id_t" */
303#define SYS_getpriority 100
304
305/* syscall: "pipe2" ret: "int" args: "int *" "int" */
306#define SYS_pipe2 101
307
308/* syscall: "dup3" ret: "int" args: "int" "int" "int" */
309#define SYS_dup3 102
310
311/* syscall: "sigreturn" ret: "int" args: "struct sigcontext *" */
312#define SYS_sigreturn 103
313
314/* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "socklen_t" */
315#define SYS_bind 104
316
317/* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "socklen_t" */
318#define SYS_setsockopt 105
319
320/* syscall: "listen" ret: "int" args: "int" "int" */
321#define SYS_listen 106
322
323/* syscall: "chflagsat" ret: "int" args: "int" "const char *" "u_int" "int" */
324#define SYS_chflagsat 107
325
326/* syscall: "pledge" ret: "int" args: "const char *" "const char *" */
327#define SYS_pledge 108
328
329/* syscall: "ppoll" ret: "int" args: "struct pollfd *" "u_int" "const struct timespec *" "const sigset_t *" */
330#define SYS_ppoll 109
331
332/* syscall: "pselect" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "const struct timespec *" "const sigset_t *" */
333#define SYS_pselect 110
334
335/* syscall: "sigsuspend" ret: "int" args: "int" */
336#define SYS_sigsuspend 111
337
338/* syscall: "sendsyslog" ret: "int" args: "const char *" "size_t" "int" */
339#define SYS_sendsyslog 112
340
341/* syscall: "unveil" ret: "int" args: "const char *" "const char *" */
342#define SYS_unveil 114
343
344/* syscall: "__realpath" ret: "int" args: "const char *" "char *" */
345#define SYS___realpath 115
346
347/* syscall: "recvmmsg" ret: "int" args: "int" "struct mmsghdr *" "unsigned int" "int" "struct timespec *" */
348#define SYS_recvmmsg 116
349
350/* syscall: "sendmmsg" ret: "int" args: "int" "struct mmsghdr *" "unsigned int" "int" */
351#define SYS_sendmmsg 117
352
353/* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "socklen_t *" */
354#define SYS_getsockopt 118
355
356/* syscall: "thrkill" ret: "int" args: "pid_t" "int" "void *" */
357#define SYS_thrkill 119
358
359/* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
360#define SYS_readv 120
361
362/* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
363#define SYS_writev 121
364
365/* syscall: "kill" ret: "int" args: "int" "int" */
366#define SYS_kill 122
367
368/* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */
369#define SYS_fchown 123
370
371/* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
372#define SYS_fchmod 124
373
374/* syscall: "__pledge_open" ret: "int" args: "const char *" "int" "..." "mode_t" */
375#define SYS___pledge_open 125
376
377/* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
378#define SYS_setreuid 126
379
380/* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
381#define SYS_setregid 127
382
383/* syscall: "rename" ret: "int" args: "const char *" "const char *" */
384#define SYS_rename 128
385
386 /* 129 is obsolete otruncate */
387 /* 130 is obsolete oftruncate */
388/* syscall: "flock" ret: "int" args: "int" "int" */
389#define SYS_flock 131
390
391/* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */
392#define SYS_mkfifo 132
393
394/* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "socklen_t" */
395#define SYS_sendto 133
396
397/* syscall: "shutdown" ret: "int" args: "int" "int" */
398#define SYS_shutdown 134
399
400/* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
401#define SYS_socketpair 135
402
403/* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */
404#define SYS_mkdir 136
405
406/* syscall: "rmdir" ret: "int" args: "const char *" */
407#define SYS_rmdir 137
408
409 /* 138 is obsolete t32_utimes */
410 /* 139 is obsolete 4.2 sigreturn */
411/* syscall: "adjtime" ret: "int" args: "const struct timeval *" "struct timeval *" */
412#define SYS_adjtime 140
413
414/* syscall: "getlogin_r" ret: "int" args: "char *" "size_t" */
415#define SYS_getlogin_r 141
416
417/* syscall: "getthrname" ret: "int" args: "pid_t" "char *" "size_t" */
418#define SYS_getthrname 142
419
420/* syscall: "setthrname" ret: "int" args: "pid_t" "const char *" */
421#define SYS_setthrname 143
422
423 /* 144 is obsolete ogetrlimit */
424 /* 145 is obsolete osetrlimit */
425 /* 146 is obsolete pinsyscall */
426/* syscall: "setsid" ret: "int" args: */
427#define SYS_setsid 147
428
429/* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "char *" */
430#define SYS_quotactl 148
431
432 /* 149 is obsolete oquota */
433/* syscall: "ypconnect" ret: "int" args: "int" */
434#define SYS_ypconnect 150
435
436/* syscall: "nfssvc" ret: "int" args: "int" "void *" */
437#define SYS_nfssvc 155
438
439 /* 156 is obsolete ogetdirentries */
440 /* 157 is obsolete statfs25 */
441/* syscall: "pinsyscalls" ret: "int" args: "void *" "size_t" "u_int *" "int" */
442#define SYS_pinsyscalls 158
443
444/* syscall: "mimmutable" ret: "int" args: "void *" "size_t" */
445#define SYS_mimmutable 159
446
447/* syscall: "waitid" ret: "int" args: "int" "id_t" "siginfo_t *" "int" */
448#define SYS_waitid 160
449
450/* syscall: "getfh" ret: "int" args: "const char *" "fhandle_t *" */
451#define SYS_getfh 161
452
453 /* 162 is obsolete ogetdomainname */
454 /* 163 is obsolete osetdomainname */
455/* syscall: "__tmpfd" ret: "int" args: "int" */
456#define SYS___tmpfd 164
457
458/* syscall: "sysarch" ret: "int" args: "int" "void *" */
459#define SYS_sysarch 165
460
461/* syscall: "lseek" ret: "off_t" args: "int" "off_t" "int" */
462#define SYS_lseek 166
463
464/* syscall: "truncate" ret: "int" args: "const char *" "off_t" */
465#define SYS_truncate 167
466
467/* syscall: "ftruncate" ret: "int" args: "int" "off_t" */
468#define SYS_ftruncate 168
469
470/* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "off_t" */
471#define SYS_pread 169
472
473/* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "off_t" */
474#define SYS_pwrite 170
475
476/* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "off_t" */
477#define SYS_preadv 171
478
479/* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "off_t" */
480#define SYS_pwritev 172
481
482 /* 173 is obsolete pad_pread */
483 /* 174 is obsolete pad_pwrite */
484/* syscall: "profil" ret: "int" args: "void *" "size_t" "size_t" "u_long" "u_int" "int" */
485#define SYS_profil 175
486
487/* syscall: "setgid" ret: "int" args: "gid_t" */
488#define SYS_setgid 181
489
490/* syscall: "setegid" ret: "int" args: "gid_t" */
491#define SYS_setegid 182
492
493/* syscall: "seteuid" ret: "int" args: "uid_t" */
494#define SYS_seteuid 183
495
496 /* 184 is obsolete lfs_bmapv */
497 /* 185 is obsolete lfs_markv */
498 /* 186 is obsolete lfs_segclean */
499 /* 187 is obsolete lfs_segwait */
500 /* 188 is obsolete stat35 */
501 /* 189 is obsolete fstat35 */
502/* syscall: "pathconfat" ret: "long" args: "int" "const char *" "int" "int" */
503#define SYS_pathconfat 190
504
505/* syscall: "pathconf" ret: "long" args: "const char *" "int" */
506#define SYS_pathconf 191
507
508/* syscall: "fpathconf" ret: "long" args: "int" "int" */
509#define SYS_fpathconf 192
510
511/* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */
512#define SYS_swapctl 193
513
514/* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
515#define SYS_getrlimit 194
516
517/* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */
518#define SYS_setrlimit 195
519
520 /* 196 is obsolete ogetdirentries48 */
521 /* 197 is obsolete pad_mmap */
522 /* 198 is obsolete __syscall */
523 /* 199 is obsolete pad_lseek */
524 /* 200 is obsolete pad_truncate */
525 /* 201 is obsolete pad_ftruncate */
526/* syscall: "sysctl" ret: "int" args: "const int *" "u_int" "void *" "size_t *" "void *" "size_t" */
527#define SYS_sysctl 202
528
529/* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
530#define SYS_mlock 203
531
532/* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
533#define SYS_munlock 204
534
535 /* 206 is obsolete t32_futimes */
536/* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
537#define SYS_getpgid 207
538
539 /* 208 is obsolete nnpfspioctl */
540/* syscall: "utrace" ret: "int" args: "const char *" "const void *" "size_t" */
541#define SYS_utrace 209
542
543/* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
544#define SYS_semget 221
545
546 /* 222 is obsolete semop35 */
547 /* 223 is obsolete semconfig35 */
548/* syscall: "msgget" ret: "int" args: "key_t" "int" */
549#define SYS_msgget 225
550
551/* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */
552#define SYS_msgsnd 226
553
554/* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "long" "int" */
555#define SYS_msgrcv 227
556
557/* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */
558#define SYS_shmat 228
559
560/* syscall: "shmdt" ret: "int" args: "const void *" */
561#define SYS_shmdt 230
562
563 /* 231 is obsolete shmget35 */
564 /* 232 is obsolete t32_clock_gettime */
565 /* 233 is obsolete t32_clock_settime */
566 /* 234 is obsolete t32_clock_getres */
567 /* 240 is obsolete t32_nanosleep */
568/* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */
569#define SYS_minherit 250
570
571 /* 251 is obsolete rfork */
572/* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
573#define SYS_poll 252
574
575/* syscall: "issetugid" ret: "int" args: */
576#define SYS_issetugid 253
577
578/* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
579#define SYS_lchown 254
580
581/* syscall: "getsid" ret: "pid_t" args: "pid_t" */
582#define SYS_getsid 255
583
584/* syscall: "msync" ret: "int" args: "void *" "size_t" "int" */
585#define SYS_msync 256
586
587 /* 257 is obsolete semctl35 */
588 /* 258 is obsolete shmctl35 */
589 /* 259 is obsolete msgctl35 */
590/* syscall: "pipe" ret: "int" args: "int *" */
591#define SYS_pipe 263
592
593/* syscall: "fhopen" ret: "int" args: "const fhandle_t *" "int" */
594#define SYS_fhopen 264
595
596 /* 267 is obsolete pad_preadv */
597 /* 268 is obsolete pad_pwritev */
598/* syscall: "kqueue" ret: "int" args: */
599#define SYS_kqueue 269
600
601/* syscall: "kqueue1" ret: "int" args: "int" */
602#define SYS_kqueue1 270
603
604/* syscall: "mlockall" ret: "int" args: "int" */
605#define SYS_mlockall 271
606
607/* syscall: "munlockall" ret: "int" args: */
608#define SYS_munlockall 272
609
610/* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
611#define SYS_getresuid 281
612
613/* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
614#define SYS_setresuid 282
615
616/* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
617#define SYS_getresgid 283
618
619/* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
620#define SYS_setresgid 284
621
622 /* 285 is obsolete sys_omquery */
623 /* 286 is obsolete pad_mquery */
624/* syscall: "closefrom" ret: "int" args: "int" */
625#define SYS_closefrom 287
626
627/* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
628#define SYS_sigaltstack 288
629
630/* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
631#define SYS_shmget 289
632
633/* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
634#define SYS_semop 290
635
636 /* 291 is obsolete t32_stat */
637 /* 292 is obsolete t32_fstat */
638 /* 293 is obsolete t32_lstat */
639/* syscall: "fhstat" ret: "int" args: "const fhandle_t *" "struct stat *" */
640#define SYS_fhstat 294
641
642/* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union semun *" */
643#define SYS___semctl 295
644
645/* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds *" */
646#define SYS_shmctl 296
647
648/* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid_ds *" */
649#define SYS_msgctl 297
650
651/* syscall: "sched_yield" ret: "int" args: */
652#define SYS_sched_yield 298
653
654/* syscall: "getthrid" ret: "pid_t" args: */
655#define SYS_getthrid 299
656
657 /* 300 is obsolete t32___thrsleep */
658/* syscall: "__thrwakeup" ret: "int" args: "const volatile void *" "int" */
659#define SYS___thrwakeup 301
660
661/* syscall: "__threxit" ret: "void" args: "pid_t *" */
662#define SYS___threxit 302
663
664/* syscall: "__thrsigdivert" ret: "int" args: "sigset_t" "siginfo_t *" "const struct timespec *" */
665#define SYS___thrsigdivert 303
666
667/* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
668#define SYS___getcwd 304
669
670/* syscall: "adjfreq" ret: "int" args: "const int64_t *" "int64_t *" */
671#define SYS_adjfreq 305
672
673 /* 306 is obsolete getfsstat53 */
674 /* 307 is obsolete statfs53 */
675 /* 308 is obsolete fstatfs53 */
676 /* 309 is obsolete fhstatfs53 */
677/* syscall: "setrtable" ret: "int" args: "int" */
678#define SYS_setrtable 310
679
680/* syscall: "getrtable" ret: "int" args: */
681#define SYS_getrtable 311
682
683 /* 312 is obsolete t32_getdirentries */
684/* syscall: "faccessat" ret: "int" args: "int" "const char *" "int" "int" */
685#define SYS_faccessat 313
686
687/* syscall: "fchmodat" ret: "int" args: "int" "const char *" "mode_t" "int" */
688#define SYS_fchmodat 314
689
690/* syscall: "fchownat" ret: "int" args: "int" "const char *" "uid_t" "gid_t" "int" */
691#define SYS_fchownat 315
692
693 /* 316 is obsolete t32_fstatat */
694/* syscall: "linkat" ret: "int" args: "int" "const char *" "int" "const char *" "int" */
695#define SYS_linkat 317
696
697/* syscall: "mkdirat" ret: "int" args: "int" "const char *" "mode_t" */
698#define SYS_mkdirat 318
699
700/* syscall: "mkfifoat" ret: "int" args: "int" "const char *" "mode_t" */
701#define SYS_mkfifoat 319
702
703/* syscall: "mknodat" ret: "int" args: "int" "const char *" "mode_t" "dev_t" */
704#define SYS_mknodat 320
705
706/* syscall: "openat" ret: "int" args: "int" "const char *" "int" "..." "mode_t" */
707#define SYS_openat 321
708
709/* syscall: "readlinkat" ret: "ssize_t" args: "int" "const char *" "char *" "size_t" */
710#define SYS_readlinkat 322
711
712/* syscall: "renameat" ret: "int" args: "int" "const char *" "int" "const char *" */
713#define SYS_renameat 323
714
715/* syscall: "symlinkat" ret: "int" args: "const char *" "int" "const char *" */
716#define SYS_symlinkat 324
717
718/* syscall: "unlinkat" ret: "int" args: "int" "const char *" "int" */
719#define SYS_unlinkat 325
720
721 /* 326 is obsolete t32_utimensat */
722 /* 327 is obsolete t32_futimens */
723 /* 328 is obsolete __tfork51 */
724/* syscall: "__set_tcb" ret: "void" args: "void *" */
725#define SYS___set_tcb 329
726
727/* syscall: "__get_tcb" ret: "void *" args: */
728#define SYS___get_tcb 330
729
730#define SYS_MAXSYSCALL 331