6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.33 2009/01/13 22:27:43 pooka Exp
10 #ifndef _AOUTM68K_SYS_SYSCALL_H_
11 #define _AOUTM68K_SYS_SYSCALL_H_
13 #define AOUTM68K_SYS_MAXSYSARGS 8
15 /* syscall: "syscall" ret: "int" args: "int" "..." */
16 #define AOUTM68K_SYS_syscall 0
18 /* syscall: "exit" ret: "void" args: "int" */
19 #define AOUTM68K_SYS_exit 1
21 /* syscall: "fork" ret: "int" args: */
22 #define AOUTM68K_SYS_fork 2
24 /* syscall: "read" ret: "ssize_t" args: "int" "void *" "size_t" */
25 #define AOUTM68K_SYS_read 3
27 /* syscall: "write" ret: "ssize_t" args: "int" "const void *" "size_t" */
28 #define AOUTM68K_SYS_write 4
30 /* syscall: "open" ret: "int" args: "const char *" "int" "..." */
31 #define AOUTM68K_SYS_open 5
33 /* syscall: "close" ret: "int" args: "int" */
34 #define AOUTM68K_SYS_close 6
36 /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */
37 #define AOUTM68K_SYS_wait4 7
39 #if defined(COMPAT_43) || !defined(_KERNEL)
40 /* syscall: "ocreat" ret: "int" args: "const char *" "mode_t" */
41 #define AOUTM68K_SYS_ocreat 8
44 /* 8 is excluded compat_43_sys_creat */
46 /* syscall: "link" ret: "int" args: "const char *" "const char *" */
47 #define AOUTM68K_SYS_link 9
49 /* syscall: "unlink" ret: "int" args: "const char *" */
50 #define AOUTM68K_SYS_unlink 10
52 /* 11 is obsolete execv */
53 /* syscall: "chdir" ret: "int" args: "const char *" */
54 #define AOUTM68K_SYS_chdir 12
56 /* syscall: "fchdir" ret: "int" args: "int" */
57 #define AOUTM68K_SYS_fchdir 13
59 /* syscall: "mknod" ret: "int" args: "const char *" "mode_t" "dev_t" */
60 #define AOUTM68K_SYS_mknod 14
62 /* syscall: "chmod" ret: "int" args: "const char *" "mode_t" */
63 #define AOUTM68K_SYS_chmod 15
65 /* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
66 #define AOUTM68K_SYS_chown 16
68 /* syscall: "break" ret: "int" args: "char *" */
69 #define AOUTM68K_SYS_break 17
71 #if defined(COMPAT_20) || !defined(_KERNEL)
72 /* syscall: "getfsstat" ret: "int" args: "struct statfs12 *" "long" "int" */
73 #define AOUTM68K_SYS_getfsstat 18
76 /* 18 is excluded compat_20_sys_getfsstat */
78 #if defined(COMPAT_43) || !defined(_KERNEL)
79 /* syscall: "olseek" ret: "long" args: "int" "long" "int" */
80 #define AOUTM68K_SYS_olseek 19
83 /* 19 is excluded compat_43_sys_lseek */
85 /* syscall: "getpid" ret: "pid_t" args: */
86 #define AOUTM68K_SYS_getpid 20
88 /* syscall: "mount" ret: "int" args: "const char *" "const char *" "int" "void *" */
89 #define AOUTM68K_SYS_mount 21
91 /* syscall: "unmount" ret: "int" args: "const char *" "int" */
92 #define AOUTM68K_SYS_unmount 22
94 /* syscall: "setuid" ret: "int" args: "uid_t" */
95 #define AOUTM68K_SYS_setuid 23
97 /* syscall: "getuid" ret: "uid_t" args: */
98 #define AOUTM68K_SYS_getuid 24
100 /* syscall: "geteuid" ret: "uid_t" args: */
101 #define AOUTM68K_SYS_geteuid 25
103 /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "void *" "int" */
104 #define AOUTM68K_SYS_ptrace 26
106 /* syscall: "recvmsg" ret: "ssize_t" args: "int" "struct msghdr *" "int" */
107 #define AOUTM68K_SYS_recvmsg 27
109 /* syscall: "sendmsg" ret: "ssize_t" args: "int" "const struct msghdr *" "int" */
110 #define AOUTM68K_SYS_sendmsg 28
112 /* syscall: "recvfrom" ret: "ssize_t" args: "int" "void *" "size_t" "int" "struct sockaddr *" "unsigned int *" */
113 #define AOUTM68K_SYS_recvfrom 29
115 /* syscall: "accept" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
116 #define AOUTM68K_SYS_accept 30
118 /* syscall: "getpeername" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
119 #define AOUTM68K_SYS_getpeername 31
121 /* syscall: "getsockname" ret: "int" args: "int" "struct sockaddr *" "unsigned int *" */
122 #define AOUTM68K_SYS_getsockname 32
124 /* syscall: "access" ret: "int" args: "const char *" "int" */
125 #define AOUTM68K_SYS_access 33
127 /* syscall: "chflags" ret: "int" args: "const char *" "u_long" */
128 #define AOUTM68K_SYS_chflags 34
130 /* syscall: "fchflags" ret: "int" args: "int" "u_long" */
131 #define AOUTM68K_SYS_fchflags 35
133 /* syscall: "sync" ret: "void" args: */
134 #define AOUTM68K_SYS_sync 36
136 /* syscall: "kill" ret: "int" args: "int" "int" */
137 #define AOUTM68K_SYS_kill 37
139 #if defined(COMPAT_43) || !defined(_KERNEL)
140 /* syscall: "stat43" ret: "int" args: "const char *" "struct aoutm68k_stat43 *" */
141 #define AOUTM68K_SYS_stat43 38
144 /* 38 is excluded aoutm68k_compat_43_sys_stat */
146 /* syscall: "getppid" ret: "pid_t" args: */
147 #define AOUTM68K_SYS_getppid 39
149 #if defined(COMPAT_43) || !defined(_KERNEL)
150 /* syscall: "lstat43" ret: "int" args: "const char *" "struct aoutm68k_stat43 *" */
151 #define AOUTM68K_SYS_lstat43 40
154 /* 40 is excluded aoutm68k_compat_43_sys_lstat */
156 /* syscall: "dup" ret: "int" args: "int" */
157 #define AOUTM68K_SYS_dup 41
159 /* syscall: "pipe" ret: "int" args: */
160 #define AOUTM68K_SYS_pipe 42
162 /* syscall: "getegid" ret: "gid_t" args: */
163 #define AOUTM68K_SYS_getegid 43
165 /* syscall: "profil" ret: "int" args: "void *" "size_t" "u_long" "u_int" */
166 #define AOUTM68K_SYS_profil 44
168 #if defined(KTRACE) || !defined(_KERNEL)
169 /* syscall: "ktrace" ret: "int" args: "const char *" "int" "int" "int" */
170 #define AOUTM68K_SYS_ktrace 45
173 /* 45 is excluded ktrace */
175 #if defined(COMPAT_13) || !defined(_KERNEL)
176 /* syscall: "sigaction13" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */
177 #define AOUTM68K_SYS_sigaction13 46
180 /* 46 is excluded compat_13_sys_sigaction */
182 /* syscall: "getgid" ret: "gid_t" args: */
183 #define AOUTM68K_SYS_getgid 47
185 #if defined(COMPAT_13) || !defined(_KERNEL)
186 /* syscall: "sigprocmask13" ret: "int" args: "int" "int" */
187 #define AOUTM68K_SYS_sigprocmask13 48
190 /* 48 is excluded compat_13_sys_sigprocmask */
192 /* syscall: "__getlogin" ret: "int" args: "char *" "size_t" */
193 #define AOUTM68K_SYS___getlogin 49
195 /* syscall: "__setlogin" ret: "int" args: "const char *" */
196 #define AOUTM68K_SYS___setlogin 50
198 /* syscall: "acct" ret: "int" args: "const char *" */
199 #define AOUTM68K_SYS_acct 51
201 #if defined(COMPAT_13) || !defined(_KERNEL)
202 /* syscall: "sigpending13" ret: "int" args: */
203 #define AOUTM68K_SYS_sigpending13 52
205 /* syscall: "sigaltstack13" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */
206 #define AOUTM68K_SYS_sigaltstack13 53
209 /* 52 is excluded compat_13_sys_sigpending */
210 /* 53 is excluded compat_13_sys_sigaltstack */
212 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "..." */
213 #define AOUTM68K_SYS_ioctl 54
215 #if defined(COMPAT_12) || !defined(_KERNEL)
216 /* syscall: "oreboot" ret: "int" args: "int" */
217 #define AOUTM68K_SYS_oreboot 55
220 /* 55 is excluded compat_12_sys_reboot */
222 /* syscall: "revoke" ret: "int" args: "const char *" */
223 #define AOUTM68K_SYS_revoke 56
225 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
226 #define AOUTM68K_SYS_symlink 57
228 /* syscall: "readlink" ret: "int" args: "const char *" "char *" "size_t" */
229 #define AOUTM68K_SYS_readlink 58
231 /* syscall: "execve" ret: "int" args: "const char *" "char *const *" "char *const *" */
232 #define AOUTM68K_SYS_execve 59
234 /* syscall: "umask" ret: "mode_t" args: "mode_t" */
235 #define AOUTM68K_SYS_umask 60
237 /* syscall: "chroot" ret: "int" args: "const char *" */
238 #define AOUTM68K_SYS_chroot 61
240 #if defined(COMPAT_43) || !defined(_KERNEL)
241 /* syscall: "fstat43" ret: "int" args: "int" "struct aoutm68k_stat43 *" */
242 #define AOUTM68K_SYS_fstat43 62
244 /* syscall: "ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */
245 #define AOUTM68K_SYS_ogetkerninfo 63
247 /* syscall: "ogetpagesize" ret: "int" args: */
248 #define AOUTM68K_SYS_ogetpagesize 64
251 /* 62 is excluded aoutm68k_compat_43_sys_fstat */
252 /* 63 is excluded compat_43_sys_getkerninfo */
253 /* 64 is excluded compat_43_sys_getpagesize */
255 #if defined(COMPAT_12) || !defined(_KERNEL)
256 /* syscall: "msync" ret: "int" args: "void *" "size_t" */
257 #define AOUTM68K_SYS_msync 65
260 /* 65 is excluded compat_12_sys_msync */
262 /* syscall: "vfork" ret: "int" args: */
263 #define AOUTM68K_SYS_vfork 66
265 /* 67 is obsolete vread */
266 /* 68 is obsolete vwrite */
267 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
268 #define AOUTM68K_SYS_sbrk 69
270 /* syscall: "sstk" ret: "int" args: "int" */
271 #define AOUTM68K_SYS_sstk 70
273 #if defined(COMPAT_43) || !defined(_KERNEL)
274 /* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
275 #define AOUTM68K_SYS_ommap 71
278 /* 71 is excluded compat_43_sys_mmap */
280 /* syscall: "vadvise" ret: "int" args: "int" */
281 #define AOUTM68K_SYS_vadvise 72
283 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
284 #define AOUTM68K_SYS_munmap 73
286 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
287 #define AOUTM68K_SYS_mprotect 74
289 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
290 #define AOUTM68K_SYS_madvise 75
292 /* 76 is obsolete vhangup */
293 /* 77 is obsolete vlimit */
294 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
295 #define AOUTM68K_SYS_mincore 78
297 /* syscall: "getgroups" ret: "int" args: "int" "gid_t *" */
298 #define AOUTM68K_SYS_getgroups 79
300 /* syscall: "setgroups" ret: "int" args: "int" "const gid_t *" */
301 #define AOUTM68K_SYS_setgroups 80
303 /* syscall: "getpgrp" ret: "int" args: */
304 #define AOUTM68K_SYS_getpgrp 81
306 /* syscall: "setpgid" ret: "int" args: "int" "int" */
307 #define AOUTM68K_SYS_setpgid 82
309 /* syscall: "setitimer" ret: "int" args: "int" "const struct itimerval50 *" "struct itimerval50 *" */
310 #define AOUTM68K_SYS_setitimer 83
312 #if defined(COMPAT_43) || !defined(_KERNEL)
313 /* syscall: "owait" ret: "int" args: */
314 #define AOUTM68K_SYS_owait 84
317 /* 84 is excluded compat_43_sys_wait */
319 #if defined(COMPAT_12) || !defined(_KERNEL)
320 /* syscall: "oswapon" ret: "int" args: "const char *" */
321 #define AOUTM68K_SYS_oswapon 85
324 /* 85 is excluded compat_12_sys_swapon */
326 /* syscall: "getitimer" ret: "int" args: "int" "struct itimerval50 *" */
327 #define AOUTM68K_SYS_getitimer 86
329 #if defined(COMPAT_43) || !defined(_KERNEL)
330 /* syscall: "ogethostname" ret: "int" args: "char *" "u_int" */
331 #define AOUTM68K_SYS_ogethostname 87
333 /* syscall: "osethostname" ret: "int" args: "char *" "u_int" */
334 #define AOUTM68K_SYS_osethostname 88
336 /* syscall: "ogetdtablesize" ret: "int" args: */
337 #define AOUTM68K_SYS_ogetdtablesize 89
340 /* 87 is excluded compat_43_sys_gethostname */
341 /* 88 is excluded compat_43_sys_sethostname */
342 /* 89 is excluded compat_43_sys_getdtablesize */
344 /* syscall: "dup2" ret: "int" args: "int" "int" */
345 #define AOUTM68K_SYS_dup2 90
347 /* syscall: "fcntl" ret: "int" args: "int" "int" "..." */
348 #define AOUTM68K_SYS_fcntl 92
350 /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
351 #define AOUTM68K_SYS_select 93
353 /* syscall: "fsync" ret: "int" args: "int" */
354 #define AOUTM68K_SYS_fsync 95
356 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
357 #define AOUTM68K_SYS_setpriority 96
359 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
360 #define AOUTM68K_SYS_socket 97
362 /* syscall: "connect" ret: "int" args: "int" "const struct sockaddr *" "int" */
363 #define AOUTM68K_SYS_connect 98
365 #if defined(COMPAT_43) || !defined(_KERNEL)
366 /* syscall: "oaccept" ret: "int" args: "int" "void *" "int *" */
367 #define AOUTM68K_SYS_oaccept 99
370 /* 99 is excluded compat_43_sys_accept */
372 /* syscall: "getpriority" ret: "int" args: "int" "int" */
373 #define AOUTM68K_SYS_getpriority 100
375 #if defined(COMPAT_43) || !defined(_KERNEL)
376 /* syscall: "osend" ret: "int" args: "int" "void *" "int" "int" */
377 #define AOUTM68K_SYS_osend 101
379 /* syscall: "orecv" ret: "int" args: "int" "void *" "int" "int" */
380 #define AOUTM68K_SYS_orecv 102
383 /* 101 is excluded compat_43_sys_send */
384 /* 102 is excluded compat_43_sys_recv */
386 #if defined(COMPAT_13) || !defined(_KERNEL)
387 /* syscall: "sigreturn13" ret: "int" args: "struct sigcontext13 *" */
388 #define AOUTM68K_SYS_sigreturn13 103
391 /* 103 is excluded compat_13_sys_sigreturn */
393 /* syscall: "bind" ret: "int" args: "int" "const struct sockaddr *" "int" */
394 #define AOUTM68K_SYS_bind 104
396 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "const void *" "int" */
397 #define AOUTM68K_SYS_setsockopt 105
399 /* syscall: "listen" ret: "int" args: "int" "int" */
400 #define AOUTM68K_SYS_listen 106
402 /* 107 is obsolete vtimes */
403 #if defined(COMPAT_43) || !defined(_KERNEL)
404 /* syscall: "osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
405 #define AOUTM68K_SYS_osigvec 108
407 /* syscall: "osigblock" ret: "int" args: "int" */
408 #define AOUTM68K_SYS_osigblock 109
410 /* syscall: "osigsetmask" ret: "int" args: "int" */
411 #define AOUTM68K_SYS_osigsetmask 110
414 /* 108 is excluded compat_43_sys_sigvec */
415 /* 109 is excluded compat_43_sys_sigblock */
416 /* 110 is excluded compat_43_sys_sigsetmask */
418 #if defined(COMPAT_13) || !defined(_KERNEL)
419 /* syscall: "sigsuspend13" ret: "int" args: "int" */
420 #define AOUTM68K_SYS_sigsuspend13 111
423 /* 111 is excluded compat_13_sys_sigsuspend */
425 #if defined(COMPAT_43) || !defined(_KERNEL)
426 /* syscall: "osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
427 #define AOUTM68K_SYS_osigstack 112
429 /* syscall: "orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
430 #define AOUTM68K_SYS_orecvmsg 113
432 /* syscall: "osendmsg" ret: "int" args: "int" "void *" "int" */
433 #define AOUTM68K_SYS_osendmsg 114
436 /* 112 is excluded compat_43_sys_sigstack */
437 /* 113 is excluded compat_43_sys_recvmesg */
438 /* 114 is excluded compat_43_sys_sendmesg */
440 /* 115 is obsolete vtrace */
441 /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
442 #define AOUTM68K_SYS_gettimeofday 116
444 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */
445 #define AOUTM68K_SYS_getrusage 117
447 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
448 #define AOUTM68K_SYS_getsockopt 118
450 /* 119 is obsolete resuba */
451 /* syscall: "readv" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
452 #define AOUTM68K_SYS_readv 120
454 /* syscall: "writev" ret: "ssize_t" args: "int" "const struct iovec *" "int" */
455 #define AOUTM68K_SYS_writev 121
457 /* syscall: "settimeofday" ret: "int" args: "const struct timeval50 *" "const struct timezone *" */
458 #define AOUTM68K_SYS_settimeofday 122
460 /* syscall: "fchown" ret: "int" args: "int" "uid_t" "gid_t" */
461 #define AOUTM68K_SYS_fchown 123
463 /* syscall: "fchmod" ret: "int" args: "int" "mode_t" */
464 #define AOUTM68K_SYS_fchmod 124
466 #if defined(COMPAT_43) || !defined(_KERNEL)
467 /* syscall: "orecvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */
468 #define AOUTM68K_SYS_orecvfrom 125
471 /* 125 is excluded compat_43_sys_recvfrom */
473 /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
474 #define AOUTM68K_SYS_setreuid 126
476 /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
477 #define AOUTM68K_SYS_setregid 127
479 /* syscall: "rename" ret: "int" args: "const char *" "const char *" */
480 #define AOUTM68K_SYS_rename 128
482 #if defined(COMPAT_43) || !defined(_KERNEL)
483 /* syscall: "otruncate" ret: "int" args: "const char *" "long" */
484 #define AOUTM68K_SYS_otruncate 129
486 /* syscall: "oftruncate" ret: "int" args: "int" "long" */
487 #define AOUTM68K_SYS_oftruncate 130
490 /* 129 is excluded compat_43_sys_truncate */
491 /* 130 is excluded compat_43_sys_ftruncate */
493 /* syscall: "flock" ret: "int" args: "int" "int" */
494 #define AOUTM68K_SYS_flock 131
496 /* syscall: "mkfifo" ret: "int" args: "const char *" "mode_t" */
497 #define AOUTM68K_SYS_mkfifo 132
499 /* syscall: "sendto" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "const struct sockaddr *" "int" */
500 #define AOUTM68K_SYS_sendto 133
502 /* syscall: "shutdown" ret: "int" args: "int" "int" */
503 #define AOUTM68K_SYS_shutdown 134
505 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
506 #define AOUTM68K_SYS_socketpair 135
508 /* syscall: "mkdir" ret: "int" args: "const char *" "mode_t" */
509 #define AOUTM68K_SYS_mkdir 136
511 /* syscall: "rmdir" ret: "int" args: "const char *" */
512 #define AOUTM68K_SYS_rmdir 137
514 /* syscall: "utimes" ret: "int" args: "const char *" "const struct timeval50 *" */
515 #define AOUTM68K_SYS_utimes 138
517 /* 139 is obsolete 4.2 sigreturn */
518 /* syscall: "adjtime" ret: "int" args: "const struct timeval50 *" "struct timeval50 *" */
519 #define AOUTM68K_SYS_adjtime 140
521 #if defined(COMPAT_43) || !defined(_KERNEL)
522 /* syscall: "ogetpeername" ret: "int" args: "int" "void *" "int *" */
523 #define AOUTM68K_SYS_ogetpeername 141
525 /* syscall: "ogethostid" ret: "int32_t" args: */
526 #define AOUTM68K_SYS_ogethostid 142
528 /* syscall: "osethostid" ret: "int" args: "int32_t" */
529 #define AOUTM68K_SYS_osethostid 143
531 /* syscall: "ogetrlimit" ret: "int" args: "int" "struct orlimit *" */
532 #define AOUTM68K_SYS_ogetrlimit 144
534 /* syscall: "osetrlimit" ret: "int" args: "int" "const struct orlimit *" */
535 #define AOUTM68K_SYS_osetrlimit 145
537 /* syscall: "okillpg" ret: "int" args: "int" "int" */
538 #define AOUTM68K_SYS_okillpg 146
541 /* 141 is excluded compat_43_sys_getpeername */
542 /* 142 is excluded compat_43_sys_gethostid */
543 /* 143 is excluded compat_43_sys_sethostid */
544 /* 144 is excluded compat_43_sys_getrlimit */
545 /* 145 is excluded compat_43_sys_setrlimit */
546 /* 146 is excluded compat_43_sys_killpg */
548 /* syscall: "setsid" ret: "int" args: */
549 #define AOUTM68K_SYS_setsid 147
551 /* syscall: "quotactl" ret: "int" args: "const char *" "int" "int" "void *" */
552 #define AOUTM68K_SYS_quotactl 148
554 #if defined(COMPAT_43) || !defined(_KERNEL)
555 /* syscall: "oquota" ret: "int" args: */
556 #define AOUTM68K_SYS_oquota 149
558 /* syscall: "ogetsockname" ret: "int" args: "int" "void *" "int *" */
559 #define AOUTM68K_SYS_ogetsockname 150
562 /* 149 is excluded compat_43_sys_quota */
563 /* 150 is excluded compat_43_sys_getsockname */
565 #if defined(NFSSERVER) || !defined(_KERNEL)
566 /* syscall: "nfssvc" ret: "int" args: "int" "void *" */
567 #define AOUTM68K_SYS_nfssvc 155
570 /* 155 is excluded nfssvc */
572 #if defined(COMPAT_43) || !defined(_KERNEL)
573 /* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
574 #define AOUTM68K_SYS_ogetdirentries 156
577 /* 156 is excluded compat_43_sys_getdirentries */
579 #if defined(COMPAT_20) || !defined(_KERNEL)
580 /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs12 *" */
581 #define AOUTM68K_SYS_statfs 157
584 /* 157 is excluded compat_20_sys_statfs */
586 #if defined(COMPAT_20) || !defined(_KERNEL)
587 /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs12 *" */
588 #define AOUTM68K_SYS_fstatfs 158
591 /* 158 is excluded compat_20_sys_statfs */
593 /* syscall: "getfh" ret: "int" args: "const char *" "struct compat_30_fhandle *" */
594 #define AOUTM68K_SYS_getfh 161
596 #if defined(COMPAT_09) || !defined(_KERNEL)
597 /* syscall: "ogetdomainname" ret: "int" args: "char *" "int" */
598 #define AOUTM68K_SYS_ogetdomainname 162
600 /* syscall: "osetdomainname" ret: "int" args: "char *" "int" */
601 #define AOUTM68K_SYS_osetdomainname 163
603 /* syscall: "ouname" ret: "int" args: "struct outsname *" */
604 #define AOUTM68K_SYS_ouname 164
607 /* 162 is excluded compat_09_sys_getdomainname */
608 /* 163 is excluded compat_09_sys_setdomainname */
609 /* 164 is excluded compat_09_sys_uname */
611 /* syscall: "sysarch" ret: "int" args: "int" "void *" */
612 #define AOUTM68K_SYS_sysarch 165
614 #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
615 /* syscall: "osemsys" ret: "int" args: "int" "int" "int" "int" "int" */
616 #define AOUTM68K_SYS_osemsys 169
619 /* 169 is excluded 1.0 semsys */
621 #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
622 /* syscall: "omsgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
623 #define AOUTM68K_SYS_omsgsys 170
626 /* 170 is excluded 1.0 msgsys */
628 #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(_LP64) && defined(COMPAT_10)
629 /* syscall: "oshmsys" ret: "int" args: "int" "int" "int" "int" */
630 #define AOUTM68K_SYS_oshmsys 171
633 /* 171 is excluded 1.0 shmsys */
635 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
636 #define AOUTM68K_SYS_pread 173
638 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
639 #define AOUTM68K_SYS_pwrite 174
641 #if defined(NTP) || !defined(_KERNEL)
642 /* syscall: "ntp_adjtime" ret: "int" args: "struct timex *" */
643 #define AOUTM68K_SYS_ntp_adjtime 176
646 /* 176 is excluded ntp_adjtime */
648 /* syscall: "setgid" ret: "int" args: "gid_t" */
649 #define AOUTM68K_SYS_setgid 181
651 /* syscall: "setegid" ret: "int" args: "gid_t" */
652 #define AOUTM68K_SYS_setegid 182
654 /* syscall: "seteuid" ret: "int" args: "uid_t" */
655 #define AOUTM68K_SYS_seteuid 183
657 #if defined(LFS) || !defined(_KERNEL)
658 /* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
659 #define AOUTM68K_SYS_lfs_bmapv 184
661 /* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
662 #define AOUTM68K_SYS_lfs_markv 185
664 /* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */
665 #define AOUTM68K_SYS_lfs_segclean 186
667 /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval50 *" */
668 #define AOUTM68K_SYS_lfs_segwait 187
671 /* 184 is excluded lfs_bmapv */
672 /* 185 is excluded lfs_markv */
673 /* 186 is excluded lfs_segclean */
674 /* 187 is excluded lfs_segwait */
676 #if defined(COMPAT_12) || !defined(_KERNEL)
677 /* syscall: "stat12" ret: "int" args: "const char *" "struct aoutm68k_stat12 *" */
678 #define AOUTM68K_SYS_stat12 188
680 /* syscall: "fstat12" ret: "int" args: "int" "struct aoutm68k_stat12 *" */
681 #define AOUTM68K_SYS_fstat12 189
683 /* syscall: "lstat12" ret: "int" args: "const char *" "struct aoutm68k_stat12 *" */
684 #define AOUTM68K_SYS_lstat12 190
687 /* 188 is excluded aoutm68k_compat_12_sys_stat */
688 /* 189 is excluded aoutm68k_compat_12_sys_fstat */
689 /* 190 is excluded aoutm68k_compat_12_sys_lstat */
691 /* syscall: "pathconf" ret: "long" args: "const char *" "int" */
692 #define AOUTM68K_SYS_pathconf 191
694 /* syscall: "fpathconf" ret: "long" args: "int" "int" */
695 #define AOUTM68K_SYS_fpathconf 192
697 /* syscall: "getrlimit" ret: "int" args: "int" "struct rlimit *" */
698 #define AOUTM68K_SYS_getrlimit 194
700 /* syscall: "setrlimit" ret: "int" args: "int" "const struct rlimit *" */
701 #define AOUTM68K_SYS_setrlimit 195
703 #if defined(COMPAT_12) || !defined(_KERNEL)
704 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
705 #define AOUTM68K_SYS_getdirentries 196
708 /* 196 is excluded compat_12_sys_getdirentries */
710 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
711 #define AOUTM68K_SYS_mmap 197
713 /* syscall: "__syscall" ret: "quad_t" args: "quad_t" "..." */
714 #define AOUTM68K_SYS___syscall 198
716 /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */
717 #define AOUTM68K_SYS_lseek 199
719 /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
720 #define AOUTM68K_SYS_truncate 200
722 /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
723 #define AOUTM68K_SYS_ftruncate 201
725 /* syscall: "__sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */
726 #define AOUTM68K_SYS___sysctl 202
728 /* syscall: "mlock" ret: "int" args: "const void *" "size_t" */
729 #define AOUTM68K_SYS_mlock 203
731 /* syscall: "munlock" ret: "int" args: "const void *" "size_t" */
732 #define AOUTM68K_SYS_munlock 204
734 /* syscall: "undelete" ret: "int" args: "const char *" */
735 #define AOUTM68K_SYS_undelete 205
737 /* syscall: "futimes" ret: "int" args: "int" "const struct timeval50 *" */
738 #define AOUTM68K_SYS_futimes 206
740 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
741 #define AOUTM68K_SYS_getpgid 207
743 /* syscall: "reboot" ret: "int" args: "int" "char *" */
744 #define AOUTM68K_SYS_reboot 208
746 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
747 #define AOUTM68K_SYS_poll 209
749 #if defined(SYSVSEM) || !defined(_KERNEL)
750 #if defined(COMPAT_14) || !defined(_KERNEL)
751 /* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union __semun *" */
752 #define AOUTM68K_SYS___semctl 220
755 /* 220 is excluded compat_14_semctl */
757 /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
758 #define AOUTM68K_SYS_semget 221
760 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "size_t" */
761 #define AOUTM68K_SYS_semop 222
763 /* syscall: "semconfig" ret: "int" args: "int" */
764 #define AOUTM68K_SYS_semconfig 223
767 /* 220 is excluded compat_14_semctl */
768 /* 221 is excluded semget */
769 /* 222 is excluded semop */
770 /* 223 is excluded semconfig */
772 #if defined(SYSVMSG) || !defined(_KERNEL)
773 #if defined(COMPAT_14) || !defined(_KERNEL)
774 /* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid_ds14 *" */
775 #define AOUTM68K_SYS_msgctl 224
778 /* 224 is excluded compat_14_sys_msgctl */
780 /* syscall: "msgget" ret: "int" args: "key_t" "int" */
781 #define AOUTM68K_SYS_msgget 225
783 /* syscall: "msgsnd" ret: "int" args: "int" "const void *" "size_t" "int" */
784 #define AOUTM68K_SYS_msgsnd 226
786 /* syscall: "msgrcv" ret: "ssize_t" args: "int" "void *" "size_t" "long" "int" */
787 #define AOUTM68K_SYS_msgrcv 227
790 /* 224 is excluded compat_14_msgctl */
791 /* 225 is excluded msgget */
792 /* 226 is excluded msgsnd */
793 /* 227 is excluded msgrcv */
795 #if defined(SYSVSHM) || !defined(_KERNEL)
796 /* syscall: "shmat" ret: "void *" args: "int" "const void *" "int" */
797 #define AOUTM68K_SYS_shmat 228
799 #if defined(COMPAT_14) || !defined(_KERNEL)
800 /* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */
801 #define AOUTM68K_SYS_shmctl 229
804 /* 229 is excluded compat_14_sys_shmctl */
806 /* syscall: "shmdt" ret: "int" args: "const void *" */
807 #define AOUTM68K_SYS_shmdt 230
809 /* syscall: "shmget" ret: "int" args: "key_t" "size_t" "int" */
810 #define AOUTM68K_SYS_shmget 231
813 /* 228 is excluded shmat */
814 /* 229 is excluded compat_14_shmctl */
815 /* 230 is excluded shmdt */
816 /* 231 is excluded shmget */
818 /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec50 *" */
819 #define AOUTM68K_SYS_clock_gettime 232
821 /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec50 *" */
822 #define AOUTM68K_SYS_clock_settime 233
824 /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec50 *" */
825 #define AOUTM68K_SYS_clock_getres 234
827 /* syscall: "nanosleep" ret: "int" args: "const struct timespec50 *" "struct timespec50 *" */
828 #define AOUTM68K_SYS_nanosleep 240
830 /* syscall: "fdatasync" ret: "int" args: "int" */
831 #define AOUTM68K_SYS_fdatasync 241
833 /* syscall: "mlockall" ret: "int" args: "int" */
834 #define AOUTM68K_SYS_mlockall 242
836 /* syscall: "munlockall" ret: "int" args: */
837 #define AOUTM68K_SYS_munlockall 243
839 /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
840 #define AOUTM68K_SYS___posix_rename 270
842 /* syscall: "swapctl" ret: "int" args: "int" "const void *" "int" */
843 #define AOUTM68K_SYS_swapctl 271
845 #if defined(COMPAT_30) || !defined(_KERNEL)
846 /* syscall: "getdents" ret: "int" args: "int" "char *" "size_t" */
847 #define AOUTM68K_SYS_getdents 272
850 /* 272 is excluded compat_30_sys_getdents */
852 /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */
853 #define AOUTM68K_SYS_minherit 273
855 /* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */
856 #define AOUTM68K_SYS_lchmod 274
858 /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
859 #define AOUTM68K_SYS_lchown 275
861 /* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval50 *" */
862 #define AOUTM68K_SYS_lutimes 276
864 /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
865 #define AOUTM68K_SYS___msync13 277
867 /* syscall: "__stat13" ret: "int" args: "const char *" "struct aoutm68k_stat *" */
868 #define AOUTM68K_SYS___stat13 278
870 /* syscall: "__fstat13" ret: "int" args: "int" "struct aoutm68k_stat *" */
871 #define AOUTM68K_SYS___fstat13 279
873 /* syscall: "__lstat13" ret: "int" args: "const char *" "struct aoutm68k_stat *" */
874 #define AOUTM68K_SYS___lstat13 280
876 /* syscall: "__sigaltstack14" ret: "int" args: "const struct sigaltstack *" "struct sigaltstack *" */
877 #define AOUTM68K_SYS___sigaltstack14 281
879 /* syscall: "__vfork14" ret: "int" args: */
880 #define AOUTM68K_SYS___vfork14 282
882 /* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
883 #define AOUTM68K_SYS___posix_chown 283
885 /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
886 #define AOUTM68K_SYS___posix_fchown 284
888 /* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
889 #define AOUTM68K_SYS___posix_lchown 285
891 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
892 #define AOUTM68K_SYS_getsid 286
894 #if defined(KTRACE) || !defined(_KERNEL)
895 /* syscall: "fktrace" ret: "int" args: "const int" "int" "int" "int" */
896 #define AOUTM68K_SYS_fktrace 288
899 /* 288 is excluded ktrace */
901 /* syscall: "preadv" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
902 #define AOUTM68K_SYS_preadv 289
904 /* syscall: "pwritev" ret: "ssize_t" args: "int" "const struct iovec *" "int" "int" "off_t" */
905 #define AOUTM68K_SYS_pwritev 290
907 #if defined(COMPAT_16) || !defined(_KERNEL)
908 /* syscall: "__sigaction14" ret: "int" args: "int" "const struct sigaction *" "struct sigaction *" */
909 #define AOUTM68K_SYS___sigaction14 291
912 /* 291 is excluded compat_16_sys___sigaction14 */
914 /* syscall: "__sigpending14" ret: "int" args: "sigset_t *" */
915 #define AOUTM68K_SYS___sigpending14 292
917 /* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */
918 #define AOUTM68K_SYS___sigprocmask14 293
920 /* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */
921 #define AOUTM68K_SYS___sigsuspend14 294
923 #if defined(COMPAT_16) || !defined(_KERNEL)
924 /* syscall: "__sigreturn14" ret: "int" args: "struct sigcontext *" */
925 #define AOUTM68K_SYS___sigreturn14 295
928 /* 295 is excluded compat_16_sys___sigreturn14 */
930 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
931 #define AOUTM68K_SYS___getcwd 296
933 /* syscall: "fchroot" ret: "int" args: "int" */
934 #define AOUTM68K_SYS_fchroot 297
936 /* syscall: "fhopen" ret: "int" args: "const struct compat_30_fhandle *" "int" */
937 #define AOUTM68K_SYS_fhopen 298
939 /* syscall: "fhstat" ret: "int" args: "const struct compat_30_fhandle *" "struct aoutm68k_stat *" */
940 #define AOUTM68K_SYS_fhstat 299
942 #if defined(COMPAT_20) || !defined(_KERNEL)
943 /* syscall: "fhstatfs" ret: "int" args: "const struct compat_30-fhandle *" "struct statfs12 *" */
944 #define AOUTM68K_SYS_fhstatfs 300
947 /* 300 is excluded compat_20_sys_fhstatfs */
949 #if defined(SYSVSEM) || !defined(_KERNEL)
950 /* syscall: "____semctl13" ret: "int" args: "int" "int" "int" "..." */
951 #define AOUTM68K_SYS_____semctl13 301
954 /* 301 is excluded ____semctl13 */
956 #if defined(SYSVMSG) || !defined(_KERNEL)
957 /* syscall: "__msgctl13" ret: "int" args: "int" "int" "struct msqid_ds *" */
958 #define AOUTM68K_SYS___msgctl13 302
961 /* 302 is excluded __msgctl13 */
963 #if defined(SYSVSHM) || !defined(_KERNEL)
964 /* syscall: "__shmctl13" ret: "int" args: "int" "int" "struct shmid_ds *" */
965 #define AOUTM68K_SYS___shmctl13 303
968 /* 303 is excluded __shmctl13 */
970 /* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */
971 #define AOUTM68K_SYS_lchflags 304
973 /* syscall: "issetugid" ret: "int" args: */
974 #define AOUTM68K_SYS_issetugid 305
976 /* syscall: "getcontext" ret: "int" args: "struct __ucontext *" */
977 #define AOUTM68K_SYS_getcontext 306
979 /* syscall: "setcontext" ret: "int" args: "const struct __ucontext *" */
980 #define AOUTM68K_SYS_setcontext 307
982 #define AOUTM68K_SYS_MAXSYSCALL 308
983 #define AOUTM68K_SYS_NSYSENT 512
984 #endif /* _AOUTM68K_SYS_SYSCALL_H_ */