6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.62 2009/01/13 22:27:43 pooka Exp
10 #ifndef _FREEBSD_SYS_SYSCALL_H_
11 #define _FREEBSD_SYS_SYSCALL_H_
13 #define FREEBSD_SYS_MAXSYSARGS 8
15 /* syscall: "syscall" ret: "int" args: */
16 #define FREEBSD_SYS_syscall 0
18 /* syscall: "exit" ret: "int" args: "int" */
19 #define FREEBSD_SYS_exit 1
21 /* syscall: "fork" ret: "int" args: */
22 #define FREEBSD_SYS_fork 2
24 /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
25 #define FREEBSD_SYS_read 3
27 /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
28 #define FREEBSD_SYS_write 4
30 /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
31 #define FREEBSD_SYS_open 5
33 /* syscall: "close" ret: "int" args: "int" */
34 #define FREEBSD_SYS_close 6
36 /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage50 *" */
37 #define FREEBSD_SYS_wait4 7
39 /* syscall: "ocreat" ret: "int" args: "const char *" "int" */
40 #define FREEBSD_SYS_ocreat 8
42 /* syscall: "link" ret: "int" args: "const char *" "const char *" */
43 #define FREEBSD_SYS_link 9
45 /* syscall: "unlink" ret: "int" args: "const char *" */
46 #define FREEBSD_SYS_unlink 10
48 /* 11 is obsolete execv */
49 /* syscall: "chdir" ret: "int" args: "const char *" */
50 #define FREEBSD_SYS_chdir 12
52 /* syscall: "fchdir" ret: "int" args: "int" */
53 #define FREEBSD_SYS_fchdir 13
55 /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
56 #define FREEBSD_SYS_mknod 14
58 /* syscall: "chmod" ret: "int" args: "const char *" "int" */
59 #define FREEBSD_SYS_chmod 15
61 /* syscall: "chown" ret: "int" args: "const char *" "int" "int" */
62 #define FREEBSD_SYS_chown 16
64 /* syscall: "break" ret: "int" args: "char *" */
65 #define FREEBSD_SYS_break 17
67 /* syscall: "getfsstat" ret: "int" args: "struct statfs12 *" "long" "int" */
68 #define FREEBSD_SYS_getfsstat 18
70 /* syscall: "olseek" ret: "long" args: "int" "long" "int" */
71 #define FREEBSD_SYS_olseek 19
73 /* syscall: "getpid_with_ppid" ret: "pid_t" args: */
74 #define FREEBSD_SYS_getpid_with_ppid 20
76 /* syscall: "mount" ret: "int" args: "int" "const char *" "int" "void *" */
77 #define FREEBSD_SYS_mount 21
79 /* syscall: "unmount" ret: "int" args: "const char *" "int" */
80 #define FREEBSD_SYS_unmount 22
82 /* syscall: "setuid" ret: "int" args: "uid_t" */
83 #define FREEBSD_SYS_setuid 23
85 /* syscall: "getuid_with_euid" ret: "uid_t" args: */
86 #define FREEBSD_SYS_getuid_with_euid 24
88 /* syscall: "geteuid" ret: "uid_t" args: */
89 #define FREEBSD_SYS_geteuid 25
91 /* syscall: "ptrace" ret: "int" args: "int" "pid_t" "void *" "int" */
92 #define FREEBSD_SYS_ptrace 26
94 /* syscall: "recvmsg" ret: "int" args: "int" "struct msghdr *" "int" */
95 #define FREEBSD_SYS_recvmsg 27
97 /* syscall: "sendmsg" ret: "int" args: "int" "void *" "int" */
98 #define FREEBSD_SYS_sendmsg 28
100 /* syscall: "recvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */
101 #define FREEBSD_SYS_recvfrom 29
103 /* syscall: "accept" ret: "int" args: "int" "void *" "int *" */
104 #define FREEBSD_SYS_accept 30
106 /* syscall: "getpeername" ret: "int" args: "int" "void *" "int *" */
107 #define FREEBSD_SYS_getpeername 31
109 /* syscall: "getsockname" ret: "int" args: "int" "void *" "int *" */
110 #define FREEBSD_SYS_getsockname 32
112 /* syscall: "access" ret: "int" args: "const char *" "int" */
113 #define FREEBSD_SYS_access 33
115 /* syscall: "chflags" ret: "int" args: "const char *" "int" */
116 #define FREEBSD_SYS_chflags 34
118 /* syscall: "fchflags" ret: "int" args: "int" "int" */
119 #define FREEBSD_SYS_fchflags 35
121 /* syscall: "sync" ret: "int" args: */
122 #define FREEBSD_SYS_sync 36
124 /* syscall: "kill" ret: "int" args: "int" "int" */
125 #define FREEBSD_SYS_kill 37
127 /* syscall: "stat43" ret: "int" args: "const char *" "struct stat43 *" */
128 #define FREEBSD_SYS_stat43 38
130 /* syscall: "getppid" ret: "pid_t" args: */
131 #define FREEBSD_SYS_getppid 39
133 /* syscall: "lstat43" ret: "int" args: "const char *" "struct stat43 *" */
134 #define FREEBSD_SYS_lstat43 40
136 /* syscall: "dup" ret: "int" args: "u_int" */
137 #define FREEBSD_SYS_dup 41
139 /* syscall: "pipe" ret: "int" args: */
140 #define FREEBSD_SYS_pipe 42
142 /* syscall: "getegid" ret: "gid_t" args: */
143 #define FREEBSD_SYS_getegid 43
145 /* syscall: "profil" ret: "int" args: "void *" "u_int" "u_int" "u_int" */
146 #define FREEBSD_SYS_profil 44
149 /* syscall: "ktrace" ret: "int" args: "char *" "int" "int" "int" */
150 #define FREEBSD_SYS_ktrace 45
153 /* 45 is excluded ktrace */
155 /* syscall: "sigaction" ret: "int" args: "int" "const struct sigaction13 *" "struct sigaction13 *" */
156 #define FREEBSD_SYS_sigaction 46
158 /* syscall: "getgid_with_egid" ret: "gid_t" args: */
159 #define FREEBSD_SYS_getgid_with_egid 47
161 /* syscall: "sigprocmask" ret: "int" args: "int" "int" */
162 #define FREEBSD_SYS_sigprocmask 48
164 /* syscall: "__getlogin" ret: "int" args: "char *" "u_int" */
165 #define FREEBSD_SYS___getlogin 49
167 /* syscall: "__setlogin" ret: "int" args: "char *" */
168 #define FREEBSD_SYS___setlogin 50
170 /* syscall: "acct" ret: "int" args: "char *" */
171 #define FREEBSD_SYS_acct 51
173 /* syscall: "sigpending" ret: "int" args: */
174 #define FREEBSD_SYS_sigpending 52
176 /* syscall: "sigaltstack" ret: "int" args: "const struct sigaltstack13 *" "struct sigaltstack13 *" */
177 #define FREEBSD_SYS_sigaltstack 53
179 /* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
180 #define FREEBSD_SYS_ioctl 54
182 /* syscall: "oreboot" ret: "int" args: "int" */
183 #define FREEBSD_SYS_oreboot 55
185 /* syscall: "revoke" ret: "int" args: "const char *" */
186 #define FREEBSD_SYS_revoke 56
188 /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
189 #define FREEBSD_SYS_symlink 57
191 /* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
192 #define FREEBSD_SYS_readlink 58
194 /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
195 #define FREEBSD_SYS_execve 59
197 /* syscall: "umask" ret: "int" args: "int" */
198 #define FREEBSD_SYS_umask 60
200 /* syscall: "chroot" ret: "int" args: "const char *" */
201 #define FREEBSD_SYS_chroot 61
203 /* syscall: "fstat43" ret: "int" args: "int" "struct stat43 *" */
204 #define FREEBSD_SYS_fstat43 62
206 /* syscall: "ogetkerninfo" ret: "int" args: "int" "char *" "int *" "int" */
207 #define FREEBSD_SYS_ogetkerninfo 63
209 /* syscall: "ogetpagesize" ret: "int" args: */
210 #define FREEBSD_SYS_ogetpagesize 64
212 /* syscall: "msync" ret: "int" args: "void *" "size_t" "int" */
213 #define FREEBSD_SYS_msync 65
215 /* syscall: "vfork" ret: "int" args: */
216 #define FREEBSD_SYS_vfork 66
218 /* 67 is obsolete vread */
219 /* 68 is obsolete vwrite */
220 /* syscall: "sbrk" ret: "int" args: "intptr_t" */
221 #define FREEBSD_SYS_sbrk 69
223 /* syscall: "sstk" ret: "int" args: "int" */
224 #define FREEBSD_SYS_sstk 70
226 /* syscall: "ommap" ret: "int" args: "void *" "size_t" "int" "int" "int" "long" */
227 #define FREEBSD_SYS_ommap 71
229 /* syscall: "vadvise" ret: "int" args: "int" */
230 #define FREEBSD_SYS_vadvise 72
232 /* syscall: "munmap" ret: "int" args: "void *" "size_t" */
233 #define FREEBSD_SYS_munmap 73
235 /* syscall: "mprotect" ret: "int" args: "void *" "size_t" "int" */
236 #define FREEBSD_SYS_mprotect 74
238 /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
239 #define FREEBSD_SYS_madvise 75
241 /* 76 is obsolete vhangup */
242 /* 77 is obsolete vlimit */
243 /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
244 #define FREEBSD_SYS_mincore 78
246 /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
247 #define FREEBSD_SYS_getgroups 79
249 /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
250 #define FREEBSD_SYS_setgroups 80
252 /* syscall: "getpgrp" ret: "int" args: */
253 #define FREEBSD_SYS_getpgrp 81
255 /* syscall: "setpgid" ret: "int" args: "int" "int" */
256 #define FREEBSD_SYS_setpgid 82
258 /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval50 *" "struct itimerval50 *" */
259 #define FREEBSD_SYS_setitimer 83
261 /* syscall: "owait" ret: "int" args: */
262 #define FREEBSD_SYS_owait 84
264 /* syscall: "swapon" ret: "int" args: "char *" */
265 #define FREEBSD_SYS_swapon 85
267 /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval50 *" */
268 #define FREEBSD_SYS_getitimer 86
270 /* syscall: "ogethostname" ret: "int" args: "char *" "u_int" */
271 #define FREEBSD_SYS_ogethostname 87
273 /* syscall: "osethostname" ret: "int" args: "char *" "u_int" */
274 #define FREEBSD_SYS_osethostname 88
276 /* syscall: "ogetdtablesize" ret: "int" args: */
277 #define FREEBSD_SYS_ogetdtablesize 89
279 /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
280 #define FREEBSD_SYS_dup2 90
282 /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
283 #define FREEBSD_SYS_fcntl 92
285 /* syscall: "select" ret: "int" args: "u_int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
286 #define FREEBSD_SYS_select 93
288 /* syscall: "fsync" ret: "int" args: "int" */
289 #define FREEBSD_SYS_fsync 95
291 /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
292 #define FREEBSD_SYS_setpriority 96
294 /* syscall: "socket" ret: "int" args: "int" "int" "int" */
295 #define FREEBSD_SYS_socket 97
297 /* syscall: "connect" ret: "int" args: "int" "void *" "int" */
298 #define FREEBSD_SYS_connect 98
300 /* syscall: "oaccept" ret: "int" args: "int" "void *" "int *" */
301 #define FREEBSD_SYS_oaccept 99
303 /* syscall: "getpriority" ret: "int" args: "int" "int" */
304 #define FREEBSD_SYS_getpriority 100
306 /* syscall: "osend" ret: "int" args: "int" "void *" "int" "int" */
307 #define FREEBSD_SYS_osend 101
309 /* syscall: "orecv" ret: "int" args: "int" "void *" "int" "int" */
310 #define FREEBSD_SYS_orecv 102
312 /* syscall: "sigreturn" ret: "int" args: "struct freebsd_sigcontext *" */
313 #define FREEBSD_SYS_sigreturn 103
315 /* syscall: "bind" ret: "int" args: "int" "void *" "int" */
316 #define FREEBSD_SYS_bind 104
318 /* syscall: "setsockopt" ret: "int" args: "int" "int" "int" "void *" "int" */
319 #define FREEBSD_SYS_setsockopt 105
321 /* syscall: "listen" ret: "int" args: "int" "int" */
322 #define FREEBSD_SYS_listen 106
324 /* 107 is obsolete vtimes */
325 /* syscall: "osigvec" ret: "int" args: "int" "struct sigvec *" "struct sigvec *" */
326 #define FREEBSD_SYS_osigvec 108
328 /* syscall: "osigblock" ret: "int" args: "int" */
329 #define FREEBSD_SYS_osigblock 109
331 /* syscall: "osigsetmask" ret: "int" args: "int" */
332 #define FREEBSD_SYS_osigsetmask 110
334 /* syscall: "sigsuspend" ret: "int" args: "int" */
335 #define FREEBSD_SYS_sigsuspend 111
337 /* syscall: "osigstack" ret: "int" args: "struct sigstack *" "struct sigstack *" */
338 #define FREEBSD_SYS_osigstack 112
340 /* syscall: "orecvmsg" ret: "int" args: "int" "struct omsghdr *" "int" */
341 #define FREEBSD_SYS_orecvmsg 113
343 /* syscall: "osendmsg" ret: "int" args: "int" "void *" "int" */
344 #define FREEBSD_SYS_osendmsg 114
347 /* syscall: "vtrace" ret: "int" args: "int" "int" */
348 #define FREEBSD_SYS_vtrace 115
351 /* 115 is obsolete vtrace */
353 /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
354 #define FREEBSD_SYS_gettimeofday 116
356 /* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */
357 #define FREEBSD_SYS_getrusage 117
359 /* syscall: "getsockopt" ret: "int" args: "int" "int" "int" "void *" "int *" */
360 #define FREEBSD_SYS_getsockopt 118
362 /* 119 is obsolete resuba */
363 /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
364 #define FREEBSD_SYS_readv 120
366 /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
367 #define FREEBSD_SYS_writev 121
369 /* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone50 *" */
370 #define FREEBSD_SYS_settimeofday 122
372 /* syscall: "fchown" ret: "int" args: "int" "int" "int" */
373 #define FREEBSD_SYS_fchown 123
375 /* syscall: "fchmod" ret: "int" args: "int" "int" */
376 #define FREEBSD_SYS_fchmod 124
378 /* syscall: "orecvfrom" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int *" */
379 #define FREEBSD_SYS_orecvfrom 125
381 /* syscall: "setreuid" ret: "int" args: "int" "int" */
382 #define FREEBSD_SYS_setreuid 126
384 /* syscall: "setregid" ret: "int" args: "int" "int" */
385 #define FREEBSD_SYS_setregid 127
387 /* syscall: "rename" ret: "int" args: "const char *" "const char *" */
388 #define FREEBSD_SYS_rename 128
390 /* syscall: "otruncate" ret: "int" args: "const char *" "long" */
391 #define FREEBSD_SYS_otruncate 129
393 /* syscall: "oftruncate" ret: "int" args: "int" "long" */
394 #define FREEBSD_SYS_oftruncate 130
396 /* syscall: "flock" ret: "int" args: "int" "int" */
397 #define FREEBSD_SYS_flock 131
399 /* syscall: "mkfifo" ret: "int" args: "const char *" "int" */
400 #define FREEBSD_SYS_mkfifo 132
402 /* syscall: "sendto" ret: "int" args: "int" "void *" "size_t" "int" "void *" "int" */
403 #define FREEBSD_SYS_sendto 133
405 /* syscall: "shutdown" ret: "int" args: "int" "int" */
406 #define FREEBSD_SYS_shutdown 134
408 /* syscall: "socketpair" ret: "int" args: "int" "int" "int" "int *" */
409 #define FREEBSD_SYS_socketpair 135
411 /* syscall: "mkdir" ret: "int" args: "const char *" "int" */
412 #define FREEBSD_SYS_mkdir 136
414 /* syscall: "rmdir" ret: "int" args: "const char *" */
415 #define FREEBSD_SYS_rmdir 137
417 /* syscall: "utimes" ret: "int" args: "char *" "struct timeval50 *" */
418 #define FREEBSD_SYS_utimes 138
420 /* 139 is obsolete 4.2 sigreturn */
421 /* syscall: "adjtime" ret: "int" args: "struct timeval50 *" "struct timeval50 *" */
422 #define FREEBSD_SYS_adjtime 140
424 /* syscall: "ogetpeername" ret: "int" args: "int" "void *" "int *" */
425 #define FREEBSD_SYS_ogetpeername 141
427 /* syscall: "ogethostid" ret: "int32_t" args: */
428 #define FREEBSD_SYS_ogethostid 142
430 /* syscall: "osethostid" ret: "int" args: "int32_t" */
431 #define FREEBSD_SYS_osethostid 143
433 /* syscall: "ogetrlimit" ret: "int" args: "u_int" "struct orlimit *" */
434 #define FREEBSD_SYS_ogetrlimit 144
436 /* syscall: "osetrlimit" ret: "int" args: "u_int" "struct orlimit *" */
437 #define FREEBSD_SYS_osetrlimit 145
439 /* syscall: "okillpg" ret: "int" args: "int" "int" */
440 #define FREEBSD_SYS_okillpg 146
442 /* syscall: "setsid" ret: "int" args: */
443 #define FREEBSD_SYS_setsid 147
445 /* syscall: "quotactl" ret: "int" args: "char *" "int" "int" "void *" */
446 #define FREEBSD_SYS_quotactl 148
448 /* syscall: "oquota" ret: "int" args: */
449 #define FREEBSD_SYS_oquota 149
451 /* syscall: "ogetsockname" ret: "int" args: "int" "void *" "int *" */
452 #define FREEBSD_SYS_ogetsockname 150
454 /* syscall: "ogetdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
455 #define FREEBSD_SYS_ogetdirentries 156
457 /* syscall: "statfs" ret: "int" args: "const char *" "struct statfs12 *" */
458 #define FREEBSD_SYS_statfs 157
460 /* syscall: "fstatfs" ret: "int" args: "int" "struct statfs12 *" */
461 #define FREEBSD_SYS_fstatfs 158
464 /* syscall: "getfh" ret: "int" args: "const char *" "struct compat_30_fhandle *" */
465 #define FREEBSD_SYS_getfh 161
469 /* syscall: "getdomainname" ret: "int" args: "char *" "int" */
470 #define FREEBSD_SYS_getdomainname 162
472 /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
473 #define FREEBSD_SYS_setdomainname 163
475 /* syscall: "uname" ret: "int" args: "struct outsname *" */
476 #define FREEBSD_SYS_uname 164
478 /* syscall: "sysarch" ret: "int" args: "int" "char *" */
479 #define FREEBSD_SYS_sysarch 165
481 /* syscall: "rtprio" ret: "int" args: "int" "pid_t" "struct freebsd_rtprio *" */
482 #define FREEBSD_SYS_rtprio 166
484 #if defined(SYSVSEM) && !defined(_LP64)
485 /* syscall: "semsys" ret: "int" args: "int" "int" "int" "int" "int" */
486 #define FREEBSD_SYS_semsys 169
490 #if defined(SYSVMSG) && !defined(_LP64)
491 /* syscall: "msgsys" ret: "int" args: "int" "int" "int" "int" "int" "int" */
492 #define FREEBSD_SYS_msgsys 170
496 #if defined(SYSVSHM) && !defined(_LP64)
497 /* syscall: "shmsys" ret: "int" args: "int" "int" "int" "int" */
498 #define FREEBSD_SYS_shmsys 171
502 /* syscall: "pread" ret: "ssize_t" args: "int" "void *" "size_t" "int" "off_t" */
503 #define FREEBSD_SYS_pread 173
505 /* syscall: "pwrite" ret: "ssize_t" args: "int" "const void *" "size_t" "int" "off_t" */
506 #define FREEBSD_SYS_pwrite 174
509 /* syscall: "freebsd_ntp_adjtime" ret: "int" args: "struct freebsd_timex *" */
510 #define FREEBSD_SYS_freebsd_ntp_adjtime 176
513 /* 176 is excluded ntp_adjtime */
515 /* syscall: "setgid" ret: "int" args: "gid_t" */
516 #define FREEBSD_SYS_setgid 181
518 /* syscall: "setegid" ret: "int" args: "gid_t" */
519 #define FREEBSD_SYS_setegid 182
521 /* syscall: "seteuid" ret: "int" args: "uid_t" */
522 #define FREEBSD_SYS_seteuid 183
525 /* syscall: "lfs_bmapv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
526 #define FREEBSD_SYS_lfs_bmapv 184
528 /* syscall: "lfs_markv" ret: "int" args: "fsid_t *" "struct block_info *" "int" */
529 #define FREEBSD_SYS_lfs_markv 185
531 /* syscall: "lfs_segclean" ret: "int" args: "fsid_t *" "u_long" */
532 #define FREEBSD_SYS_lfs_segclean 186
534 /* syscall: "lfs_segwait" ret: "int" args: "fsid_t *" "struct timeval50 *" */
535 #define FREEBSD_SYS_lfs_segwait 187
539 /* syscall: "stat" ret: "int" args: "const char *" "struct stat12 *" */
540 #define FREEBSD_SYS_stat 188
542 /* syscall: "fstat" ret: "int" args: "int" "struct stat12 *" */
543 #define FREEBSD_SYS_fstat 189
545 /* syscall: "lstat" ret: "int" args: "const char *" "struct stat12 *" */
546 #define FREEBSD_SYS_lstat 190
548 /* syscall: "pathconf" ret: "int" args: "const char *" "int" */
549 #define FREEBSD_SYS_pathconf 191
551 /* syscall: "fpathconf" ret: "int" args: "int" "int" */
552 #define FREEBSD_SYS_fpathconf 192
554 /* syscall: "getrlimit" ret: "int" args: "u_int" "struct rlimit *" */
555 #define FREEBSD_SYS_getrlimit 194
557 /* syscall: "setrlimit" ret: "int" args: "u_int" "struct rlimit *" */
558 #define FREEBSD_SYS_setrlimit 195
560 /* syscall: "getdirentries" ret: "int" args: "int" "char *" "u_int" "long *" */
561 #define FREEBSD_SYS_getdirentries 196
563 /* syscall: "mmap" ret: "void *" args: "void *" "size_t" "int" "int" "int" "long" "off_t" */
564 #define FREEBSD_SYS_mmap 197
566 /* syscall: "__syscall" ret: "int" args: */
567 #define FREEBSD_SYS___syscall 198
569 /* syscall: "lseek" ret: "off_t" args: "int" "int" "off_t" "int" */
570 #define FREEBSD_SYS_lseek 199
572 /* syscall: "truncate" ret: "int" args: "const char *" "int" "off_t" */
573 #define FREEBSD_SYS_truncate 200
575 /* syscall: "ftruncate" ret: "int" args: "int" "int" "off_t" */
576 #define FREEBSD_SYS_ftruncate 201
578 /* syscall: "sysctl" ret: "int" args: "int *" "u_int" "void *" "size_t *" "void *" "size_t" */
579 #define FREEBSD_SYS_sysctl 202
581 /* syscall: "mlock" ret: "int" args: "void *" "size_t" */
582 #define FREEBSD_SYS_mlock 203
584 /* syscall: "munlock" ret: "int" args: "void *" "size_t" */
585 #define FREEBSD_SYS_munlock 204
587 #ifdef FREEBSD_BASED_ON_44LITE_R2
588 /* syscall: "undelete" ret: "int" args: "char *" */
589 #define FREEBSD_SYS_undelete 205
593 /* syscall: "futimes" ret: "int" args: "int" "const struct timeval50 *" */
594 #define FREEBSD_SYS_futimes 206
596 /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
597 #define FREEBSD_SYS_getpgid 207
600 /* syscall: "reboot" ret: "int" args: "int" "char *" */
601 #define FREEBSD_SYS_reboot 208
605 /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
606 #define FREEBSD_SYS_poll 209
609 /* syscall: "__semctl" ret: "int" args: "int" "int" "int" "union __semun *" */
610 #define FREEBSD_SYS___semctl 220
612 /* syscall: "semget" ret: "int" args: "key_t" "int" "int" */
613 #define FREEBSD_SYS_semget 221
615 /* syscall: "semop" ret: "int" args: "int" "struct sembuf *" "u_int" */
616 #define FREEBSD_SYS_semop 222
618 /* syscall: "semconfig" ret: "int" args: "int" */
619 #define FREEBSD_SYS_semconfig 223
624 /* syscall: "msgctl" ret: "int" args: "int" "int" "struct msqid14_ds *" */
625 #define FREEBSD_SYS_msgctl 224
627 /* syscall: "msgget" ret: "int" args: "key_t" "int" */
628 #define FREEBSD_SYS_msgget 225
630 /* syscall: "msgsnd" ret: "int" args: "int" "void *" "size_t" "int" */
631 #define FREEBSD_SYS_msgsnd 226
633 /* syscall: "msgrcv" ret: "int" args: "int" "void *" "size_t" "long" "int" */
634 #define FREEBSD_SYS_msgrcv 227
639 /* syscall: "shmat" ret: "int" args: "int" "void *" "int" */
640 #define FREEBSD_SYS_shmat 228
642 /* syscall: "shmctl" ret: "int" args: "int" "int" "struct shmid_ds14 *" */
643 #define FREEBSD_SYS_shmctl 229
645 /* syscall: "shmdt" ret: "int" args: "void *" */
646 #define FREEBSD_SYS_shmdt 230
648 /* syscall: "shmget" ret: "int" args: "key_t" "int" "int" */
649 #define FREEBSD_SYS_shmget 231
653 /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct timespec50 *" */
654 #define FREEBSD_SYS_clock_gettime 232
656 /* syscall: "clock_settime" ret: "int" args: "clockid_t" "const struct timespec50 *" */
657 #define FREEBSD_SYS_clock_settime 233
659 /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct timespec50 *" */
660 #define FREEBSD_SYS_clock_getres 234
662 /* syscall: "nanosleep" ret: "int" args: "const struct timespec50 *" "struct timespec50 *" */
663 #define FREEBSD_SYS_nanosleep 240
665 /* syscall: "minherit" ret: "int" args: "void *" "size_t" "int" */
666 #define FREEBSD_SYS_minherit 250
668 /* syscall: "rfork" ret: "int" args: "int" */
669 #define FREEBSD_SYS_rfork 251
671 /* syscall: "issetugid" ret: "int" args: */
672 #define FREEBSD_SYS_issetugid 253
674 /* syscall: "lchown" ret: "int" args: "const char *" "int" "int" */
675 #define FREEBSD_SYS_lchown 254
677 /* syscall: "getdents" ret: "int" args: "int" "char *" "size_t" */
678 #define FREEBSD_SYS_getdents 272
680 /* syscall: "lchmod" ret: "int" args: "const char *" "mode_t" */
681 #define FREEBSD_SYS_lchmod 274
683 /* syscall: "netbsd_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
684 #define FREEBSD_SYS_netbsd_lchown 275
686 /* syscall: "lutimes" ret: "int" args: "const char *" "const struct timeval50 *" */
687 #define FREEBSD_SYS_lutimes 276
689 /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
690 #define FREEBSD_SYS___msync13 277
692 /* syscall: "__stat13" ret: "int" args: "const char *" "struct stat13 *" */
693 #define FREEBSD_SYS___stat13 278
695 /* syscall: "__fstat13" ret: "int" args: "int" "struct stat13 *" */
696 #define FREEBSD_SYS___fstat13 279
698 /* syscall: "__lstat13" ret: "int" args: "const char *" "struct stat13 *" */
699 #define FREEBSD_SYS___lstat13 280
701 /* syscall: "fhstatfs" ret: "int" args: "const struct compat_30_fhandle *" "struct statfs12 *" */
702 #define FREEBSD_SYS_fhstatfs 297
704 /* syscall: "fhopen" ret: "int" args: "const struct compat_30_fhandle *" "int" */
705 #define FREEBSD_SYS_fhopen 298
707 /* syscall: "fhstat" ret: "int" args: "const struct cocmpat_30_fhandlez *" "struct stat13 *" */
708 #define FREEBSD_SYS_fhstat 299
710 /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
711 #define FREEBSD_SYS_getsid 310
713 /* syscall: "yield" ret: "void" args: */
714 #define FREEBSD_SYS_yield 321
716 /* syscall: "mlockall" ret: "int" args: "int" */
717 #define FREEBSD_SYS_mlockall 324
719 /* syscall: "munlockall" ret: "int" args: */
720 #define FREEBSD_SYS_munlockall 325
722 /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
723 #define FREEBSD_SYS___getcwd 326
725 /* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct freebsd_sched_param *" */
726 #define FREEBSD_SYS_sched_setparam 327
728 /* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct freebsd_sched_param *" */
729 #define FREEBSD_SYS_sched_getparam 328
731 /* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct sched_param *" */
732 #define FREEBSD_SYS_sched_setscheduler 329
734 /* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
735 #define FREEBSD_SYS_sched_getscheduler 330
737 /* syscall: "sched_yield" ret: "int" args: */
738 #define FREEBSD_SYS_sched_yield 331
740 /* syscall: "sched_get_priority_max" ret: "int" args: "int" */
741 #define FREEBSD_SYS_sched_get_priority_max 332
743 /* syscall: "sched_get_priority_min" ret: "int" args: "int" */
744 #define FREEBSD_SYS_sched_get_priority_min 333
746 /* syscall: "utrace" ret: "int" args: "void *" "size_t" */
747 #define FREEBSD_SYS_utrace 335
749 /* syscall: "__sigprocmask14" ret: "int" args: "int" "const sigset_t *" "sigset_t *" */
750 #define FREEBSD_SYS___sigprocmask14 340
752 /* syscall: "__sigsuspend14" ret: "int" args: "const sigset_t *" */
753 #define FREEBSD_SYS___sigsuspend14 341
755 /* syscall: "sigaction4" ret: "int" args: "int" "const struct freebsd_sigaction4 *" "struct freebsd_sigaction4 *" */
756 #define FREEBSD_SYS_sigaction4 342
758 /* syscall: "__sigpending14" ret: "int" args: "const sigset_t *" */
759 #define FREEBSD_SYS___sigpending14 343
761 /* syscall: "lchflags" ret: "int" args: "const char *" "u_long" */
762 #define FREEBSD_SYS_lchflags 391
764 /* syscall: "uuidgen" ret: "int" args: "struct uuid *" "int" */
765 #define FREEBSD_SYS_uuidgen 392
767 #if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
768 /* syscall: "_ksem_close" ret: "int" args: "intptr_t" */
769 #define FREEBSD_SYS__ksem_close 400
771 /* syscall: "_ksem_post" ret: "int" args: "intptr_t" */
772 #define FREEBSD_SYS__ksem_post 401
774 /* syscall: "_ksem_wait" ret: "int" args: "intptr_t" */
775 #define FREEBSD_SYS__ksem_wait 402
777 /* syscall: "_ksem_trywait" ret: "int" args: "intptr_t" */
778 #define FREEBSD_SYS__ksem_trywait 403
780 /* syscall: "_ksem_unlink" ret: "int" args: "const char *" */
781 #define FREEBSD_SYS__ksem_unlink 406
783 /* syscall: "_ksem_getvalue" ret: "int" args: "intptr_t" "unsigned int *" */
784 #define FREEBSD_SYS__ksem_getvalue 407
786 /* syscall: "_ksem_destroy" ret: "int" args: "intptr_t" */
787 #define FREEBSD_SYS__ksem_destroy 408
790 /* 400 is excluded ksem_close */
791 /* 401 is excluded ksem_post */
792 /* 402 is excluded ksem_wait */
793 /* 403 is excluded ksem_trywait */
794 /* 404 is excluded ksem_init */
795 /* 405 is excluded ksem_open */
796 /* 406 is excluded ksem_unlink */
797 /* 407 is excluded ksem_getvalue */
798 /* 408 is excluded ksem_destroy */
800 #define FREEBSD_SYS_MAXSYSCALL 440
801 #define FREEBSD_SYS_NSYSENT 512
802 #endif /* _FREEBSD_SYS_SYSCALL_H_ */