4 * System call switch table.
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.38 2009/01/13 22:27:43 pooka Exp
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD$");
13 #include "opt_ktrace.h"
14 #include "opt_nfsserver.h"
16 #include "opt_compat_netbsd.h"
18 #include "opt_compat_43.h"
21 #include <sys/param.h>
22 #include <sys/systm.h>
23 #include <sys/signal.h>
24 #include <sys/mount.h>
25 #include <sys/syscallargs.h>
26 #include <compat/sys/signal.h>
27 #include <compat/sys/time.h>
28 #include <compat/mach/mach_types.h>
29 #include <compat/mach/mach_vm.h>
30 #include <compat/darwin/darwin_types.h>
31 #include <compat/darwin/darwin_signal.h>
32 #include <compat/darwin/darwin_audit.h>
33 #include <compat/darwin/darwin_syscallargs.h>
35 #define s(type) sizeof(type)
36 #define n(type) (sizeof(type)/sizeof (register_t))
37 #define ns(type) n(type), s(type)
39 struct sysent darwin_sysent
[] = {
40 { ns(struct sys_syscall_args
), SYCALL_INDIRECT
| 0,
41 (sy_call_t
*)sys_syscall
}, /* 0 = syscall */
42 { ns(struct sys_exit_args
), 0,
43 (sy_call_t
*)sys_exit
}, /* 1 = exit */
45 (sy_call_t
*)darwin_sys_fork
}, /* 2 = fork */
46 { ns(struct sys_read_args
), 0,
47 (sy_call_t
*)sys_read
}, /* 3 = read */
48 { ns(struct sys_write_args
), 0,
49 (sy_call_t
*)sys_write
}, /* 4 = write */
50 { ns(struct sys_open_args
), 0,
51 (sy_call_t
*)sys_open
}, /* 5 = open */
52 { ns(struct sys_close_args
), 0,
53 (sy_call_t
*)sys_close
}, /* 6 = close */
54 { ns(struct compat_50_sys_wait4_args
), 0,
55 (sy_call_t
*)compat_50_sys_wait4
}, /* 7 = wait4 */
56 { ns(struct compat_43_sys_creat_args
), 0,
57 (sy_call_t
*)compat_43_sys_creat
}, /* 8 = ocreat */
58 { ns(struct sys_link_args
), 0,
59 (sy_call_t
*)sys_link
}, /* 9 = link */
60 { ns(struct sys_unlink_args
), 0,
61 (sy_call_t
*)sys_unlink
}, /* 10 = unlink */
63 sys_nosys
}, /* 11 = unimplemented execv */
64 { ns(struct sys_chdir_args
), 0,
65 (sy_call_t
*)sys_chdir
}, /* 12 = chdir */
66 { ns(struct sys_fchdir_args
), 0,
67 (sy_call_t
*)sys_fchdir
}, /* 13 = fchdir */
68 { ns(struct darwin_sys_mknod_args
), 0,
69 (sy_call_t
*)darwin_sys_mknod
}, /* 14 = mknod */
70 { ns(struct sys_chmod_args
), 0,
71 (sy_call_t
*)sys_chmod
}, /* 15 = chmod */
72 { ns(struct sys_chown_args
), 0,
73 (sy_call_t
*)sys_chown
}, /* 16 = chown */
74 { ns(struct sys_obreak_args
), 0,
75 (sy_call_t
*)sys_obreak
}, /* 17 = break */
76 { ns(struct darwin_sys_getfsstat_args
), 0,
77 (sy_call_t
*)darwin_sys_getfsstat
},/* 18 = getfsstat */
78 { ns(struct compat_43_sys_lseek_args
), 0,
79 (sy_call_t
*)compat_43_sys_lseek
}, /* 19 = olseek */
81 (sy_call_t
*)darwin_sys_getpid
}, /* 20 = getpid */
82 { ns(struct compat_40_sys_mount_args
), 0,
83 (sy_call_t
*)compat_40_sys_mount
}, /* 21 = mount */
84 { ns(struct sys_unmount_args
), 0,
85 (sy_call_t
*)sys_unmount
}, /* 22 = unmount */
86 { ns(struct sys_setuid_args
), 0,
87 (sy_call_t
*)sys_setuid
}, /* 23 = setuid */
90 (sy_call_t
*)sys_getuid_with_euid
},/* 24 = getuid */
93 (sy_call_t
*)sys_getuid
}, /* 24 = getuid */
96 (sy_call_t
*)sys_geteuid
}, /* 25 = geteuid */
97 { ns(struct darwin_sys_ptrace_args
), 0,
98 (sy_call_t
*)darwin_sys_ptrace
}, /* 26 = ptrace */
99 { ns(struct sys_recvmsg_args
), 0,
100 (sy_call_t
*)sys_recvmsg
}, /* 27 = recvmsg */
101 { ns(struct sys_sendmsg_args
), 0,
102 (sy_call_t
*)sys_sendmsg
}, /* 28 = sendmsg */
103 { ns(struct darwin_sys_recvfrom_args
), 0,
104 (sy_call_t
*)darwin_sys_recvfrom
}, /* 29 = recvfrom */
105 { ns(struct darwin_sys_accept_args
), 0,
106 (sy_call_t
*)darwin_sys_accept
}, /* 30 = accept */
107 { ns(struct darwin_sys_getpeername_args
), 0,
108 (sy_call_t
*)darwin_sys_getpeername
},/* 31 = getpeername */
109 { ns(struct darwin_sys_getsockname_args
), 0,
110 (sy_call_t
*)darwin_sys_getsockname
},/* 32 = getsockname */
111 { ns(struct sys_access_args
), 0,
112 (sy_call_t
*)sys_access
}, /* 33 = access */
113 { ns(struct sys_chflags_args
), 0,
114 (sy_call_t
*)sys_chflags
}, /* 34 = chflags */
115 { ns(struct sys_fchflags_args
), 0,
116 (sy_call_t
*)sys_fchflags
}, /* 35 = fchflags */
118 (sy_call_t
*)sys_sync
}, /* 36 = sync */
119 { ns(struct sys_kill_args
), 0,
120 (sy_call_t
*)sys_kill
}, /* 37 = kill */
121 { ns(struct compat_43_sys_stat_args
), 0,
122 (sy_call_t
*)compat_43_sys_stat
}, /* 38 = stat43 */
124 (sy_call_t
*)sys_getppid
}, /* 39 = getppid */
125 { ns(struct compat_43_sys_lstat_args
), 0,
126 (sy_call_t
*)compat_43_sys_lstat
}, /* 40 = lstat43 */
127 { ns(struct sys_dup_args
), 0,
128 (sy_call_t
*)sys_dup
}, /* 41 = dup */
130 (sy_call_t
*)sys_pipe
}, /* 42 = pipe */
132 (sy_call_t
*)sys_getegid
}, /* 43 = getegid */
133 { ns(struct sys_profil_args
), 0,
134 (sy_call_t
*)sys_profil
}, /* 44 = profil */
135 #if defined(KTRACE) || !defined(_KERNEL)
136 { ns(struct sys_ktrace_args
), 0,
137 (sy_call_t
*)sys_ktrace
}, /* 45 = ktrace */
140 sys_nosys
}, /* 45 = excluded ktrace */
142 { ns(struct darwin_sys_sigaction_args
), 0,
143 (sy_call_t
*)darwin_sys_sigaction
},/* 46 = sigaction */
146 (sy_call_t
*)sys_getgid_with_egid
},/* 47 = getgid */
149 (sy_call_t
*)sys_getgid
}, /* 47 = getgid */
151 { ns(struct darwin_sys_sigprocmask_args
), 0,
152 (sy_call_t
*)darwin_sys_sigprocmask
},/* 48 = sigprocmask */
153 { ns(struct sys___getlogin_args
), 0,
154 (sy_call_t
*)sys___getlogin
}, /* 49 = __getlogin */
155 { ns(struct sys___setlogin_args
), 0,
156 (sy_call_t
*)sys___setlogin
}, /* 50 = __setlogin */
157 { ns(struct sys_acct_args
), 0,
158 (sy_call_t
*)sys_acct
}, /* 51 = acct */
160 (sy_call_t
*)compat_13_sys_sigpending
},/* 52 = sigpending13 */
161 { ns(struct compat_13_sys_sigaltstack_args
), 0,
162 (sy_call_t
*)compat_13_sys_sigaltstack
},/* 53 = sigaltstack13 */
163 { ns(struct darwin_sys_ioctl_args
), 0,
164 (sy_call_t
*)darwin_sys_ioctl
}, /* 54 = ioctl */
165 { ns(struct sys_reboot_args
), 0,
166 (sy_call_t
*)sys_reboot
}, /* 55 = oreboot */
167 { ns(struct sys_revoke_args
), 0,
168 (sy_call_t
*)sys_revoke
}, /* 56 = revoke */
169 { ns(struct sys_symlink_args
), 0,
170 (sy_call_t
*)sys_symlink
}, /* 57 = symlink */
171 { ns(struct sys_readlink_args
), 0,
172 (sy_call_t
*)sys_readlink
}, /* 58 = readlink */
173 { ns(struct sys_execve_args
), 0,
174 (sy_call_t
*)sys_execve
}, /* 59 = execve */
175 { ns(struct sys_umask_args
), 0,
176 (sy_call_t
*)sys_umask
}, /* 60 = umask */
177 { ns(struct sys_chroot_args
), 0,
178 (sy_call_t
*)sys_chroot
}, /* 61 = chroot */
179 { ns(struct compat_43_sys_fstat_args
), 0,
180 (sy_call_t
*)compat_43_sys_fstat
}, /* 62 = fstat43 */
182 sys_nosys
}, /* 63 = unimplemented */
184 (sy_call_t
*)compat_43_sys_getpagesize
},/* 64 = ogetpagesize */
185 { ns(struct compat_12_sys_msync_args
), 0,
186 (sy_call_t
*)compat_12_sys_msync
}, /* 65 = msync */
188 (sy_call_t
*)darwin_sys_vfork
}, /* 66 = vfork */
190 sys_nosys
}, /* 67 = obsolete vread */
192 sys_nosys
}, /* 68 = obsolete vwrite */
193 { ns(struct sys_sbrk_args
), 0,
194 (sy_call_t
*)sys_sbrk
}, /* 69 = sbrk */
195 { ns(struct sys_sstk_args
), 0,
196 (sy_call_t
*)sys_sstk
}, /* 70 = sstk */
197 { ns(struct sys_mmap_args
), 0,
198 (sy_call_t
*)sys_mmap
}, /* 71 = ommap */
199 { ns(struct sys_ovadvise_args
), 0,
200 (sy_call_t
*)sys_ovadvise
}, /* 72 = vadvise */
201 { ns(struct sys_munmap_args
), 0,
202 (sy_call_t
*)sys_munmap
}, /* 73 = munmap */
203 { ns(struct sys_mprotect_args
), 0,
204 (sy_call_t
*)sys_mprotect
}, /* 74 = mprotect */
205 { ns(struct sys_madvise_args
), 0,
206 (sy_call_t
*)sys_madvise
}, /* 75 = madvise */
208 sys_nosys
}, /* 76 = unimplemented */
210 sys_nosys
}, /* 77 = unimplemented */
211 { ns(struct sys_mincore_args
), 0,
212 (sy_call_t
*)sys_mincore
}, /* 78 = mincore */
213 { ns(struct sys_getgroups_args
), 0,
214 (sy_call_t
*)sys_getgroups
}, /* 79 = getgroups */
215 { ns(struct sys_setgroups_args
), 0,
216 (sy_call_t
*)sys_setgroups
}, /* 80 = setgroups */
218 (sy_call_t
*)sys_getpgrp
}, /* 81 = getpgrp */
219 { ns(struct sys_setpgid_args
), 0,
220 (sy_call_t
*)sys_setpgid
}, /* 82 = setpgid */
221 { ns(struct compat_50_sys_setitimer_args
), 0,
222 (sy_call_t
*)compat_50_sys_setitimer
},/* 83 = setitimer */
224 (sy_call_t
*)compat_43_sys_wait
}, /* 84 = owait */
225 { ns(struct compat_12_sys_swapon_args
), 0,
226 (sy_call_t
*)compat_12_sys_swapon
},/* 85 = swapon */
227 { ns(struct compat_50_sys_getitimer_args
), 0,
228 (sy_call_t
*)compat_50_sys_getitimer
},/* 86 = getitimer */
229 { ns(struct compat_43_sys_gethostname_args
), 0,
230 (sy_call_t
*)compat_43_sys_gethostname
},/* 87 = ogethostname */
231 { ns(struct compat_43_sys_sethostname_args
), 0,
232 (sy_call_t
*)compat_43_sys_sethostname
},/* 88 = osethostname */
234 (sy_call_t
*)compat_43_sys_getdtablesize
},/* 89 = ogetdtablesize */
235 { ns(struct sys_dup2_args
), 0,
236 (sy_call_t
*)sys_dup2
}, /* 90 = dup2 */
238 sys_nosys
}, /* 91 = unimplemented */
239 { ns(struct sys_fcntl_args
), 0,
240 (sy_call_t
*)sys_fcntl
}, /* 92 = fcntl */
241 { ns(struct compat_50_sys_select_args
), 0,
242 (sy_call_t
*)compat_50_sys_select
},/* 93 = select */
244 sys_nosys
}, /* 94 = unimplemented */
245 { ns(struct sys_fsync_args
), 0,
246 (sy_call_t
*)sys_fsync
}, /* 95 = fsync */
247 { ns(struct sys_setpriority_args
), 0,
248 (sy_call_t
*)sys_setpriority
}, /* 96 = setpriority */
249 { ns(struct darwin_sys_socket_args
), 0,
250 (sy_call_t
*)darwin_sys_socket
}, /* 97 = socket */
251 { ns(struct darwin_sys_connect_args
), 0,
252 (sy_call_t
*)darwin_sys_connect
}, /* 98 = connect */
253 { ns(struct compat_43_sys_accept_args
), 0,
254 (sy_call_t
*)compat_43_sys_accept
},/* 99 = oaccept */
255 { ns(struct sys_getpriority_args
), 0,
256 (sy_call_t
*)sys_getpriority
}, /* 100 = getpriority */
257 { ns(struct compat_43_sys_send_args
), 0,
258 (sy_call_t
*)compat_43_sys_send
}, /* 101 = osend */
259 { ns(struct compat_43_sys_recv_args
), 0,
260 (sy_call_t
*)compat_43_sys_recv
}, /* 102 = orecv */
261 { ns(struct darwin_sys_sigreturn_x2_args
), 0,
262 (sy_call_t
*)darwin_sys_sigreturn_x2
},/* 103 = sigreturn_x2 */
263 { ns(struct darwin_sys_bind_args
), 0,
264 (sy_call_t
*)darwin_sys_bind
}, /* 104 = bind */
265 { ns(struct sys_setsockopt_args
), 0,
266 (sy_call_t
*)sys_setsockopt
}, /* 105 = setsockopt */
267 { ns(struct sys_listen_args
), 0,
268 (sy_call_t
*)sys_listen
}, /* 106 = listen */
270 sys_nosys
}, /* 107 = unimplemented */
271 { ns(struct compat_43_sys_sigvec_args
), 0,
272 (sy_call_t
*)compat_43_sys_sigvec
},/* 108 = osigvec */
273 { ns(struct compat_43_sys_sigblock_args
), 0,
274 (sy_call_t
*)compat_43_sys_sigblock
},/* 109 = osigblock */
275 { ns(struct compat_43_sys_sigsetmask_args
), 0,
276 (sy_call_t
*)compat_43_sys_sigsetmask
},/* 110 = osigsetmask */
277 { ns(struct compat_13_sys_sigsuspend_args
), 0,
278 (sy_call_t
*)compat_13_sys_sigsuspend
},/* 111 = sigsuspend13 */
279 { ns(struct compat_43_sys_sigstack_args
), 0,
280 (sy_call_t
*)compat_43_sys_sigstack
},/* 112 = osigstack */
281 { ns(struct compat_43_sys_recvmsg_args
), 0,
282 (sy_call_t
*)compat_43_sys_recvmsg
},/* 113 = orecvmsg */
283 { ns(struct compat_43_sys_sendmsg_args
), 0,
284 (sy_call_t
*)compat_43_sys_sendmsg
},/* 114 = osendmsg */
286 sys_nosys
}, /* 115 = unimplemented */
287 { ns(struct compat_50_sys_gettimeofday_args
), 0,
288 (sy_call_t
*)compat_50_sys_gettimeofday
},/* 116 = gettimeofday */
289 { ns(struct compat_50_sys_getrusage_args
), 0,
290 (sy_call_t
*)compat_50_sys_getrusage
},/* 117 = getrusage */
291 { ns(struct sys_getsockopt_args
), 0,
292 (sy_call_t
*)sys_getsockopt
}, /* 118 = getsockopt */
294 sys_nosys
}, /* 119 = unimplemented */
295 { ns(struct sys_readv_args
), 0,
296 (sy_call_t
*)sys_readv
}, /* 120 = readv */
297 { ns(struct sys_writev_args
), 0,
298 (sy_call_t
*)sys_writev
}, /* 121 = writev */
299 { ns(struct compat_50_sys_settimeofday_args
), 0,
300 (sy_call_t
*)compat_50_sys_settimeofday
},/* 122 = settimeofday */
301 { ns(struct sys_fchown_args
), 0,
302 (sy_call_t
*)sys_fchown
}, /* 123 = fchown */
303 { ns(struct sys_fchmod_args
), 0,
304 (sy_call_t
*)sys_fchmod
}, /* 124 = fchmod */
305 { ns(struct compat_43_sys_recvfrom_args
), 0,
306 (sy_call_t
*)compat_43_sys_recvfrom
},/* 125 = orecvfrom */
307 { ns(struct sys_setreuid_args
), 0,
308 (sy_call_t
*)sys_setreuid
}, /* 126 = setreuid */
309 { ns(struct sys_setregid_args
), 0,
310 (sy_call_t
*)sys_setregid
}, /* 127 = setregid */
311 { ns(struct sys_rename_args
), 0,
312 (sy_call_t
*)sys_rename
}, /* 128 = rename */
313 { ns(struct compat_43_sys_truncate_args
), 0,
314 (sy_call_t
*)compat_43_sys_truncate
},/* 129 = otruncate */
315 { ns(struct compat_43_sys_ftruncate_args
), 0,
316 (sy_call_t
*)compat_43_sys_ftruncate
},/* 130 = oftruncate */
317 { ns(struct sys_flock_args
), 0,
318 (sy_call_t
*)sys_flock
}, /* 131 = flock */
319 { ns(struct sys_mkfifo_args
), 0,
320 (sy_call_t
*)sys_mkfifo
}, /* 132 = mkfifo */
321 { ns(struct darwin_sys_sendto_args
), 0,
322 (sy_call_t
*)darwin_sys_sendto
}, /* 133 = sendto */
323 { ns(struct sys_shutdown_args
), 0,
324 (sy_call_t
*)sys_shutdown
}, /* 134 = shutdown */
325 { ns(struct sys_socketpair_args
), 0,
326 (sy_call_t
*)sys_socketpair
}, /* 135 = socketpair */
327 { ns(struct sys_mkdir_args
), 0,
328 (sy_call_t
*)sys_mkdir
}, /* 136 = mkdir */
329 { ns(struct sys_rmdir_args
), 0,
330 (sy_call_t
*)sys_rmdir
}, /* 137 = rmdir */
331 { ns(struct compat_50_sys_utimes_args
), 0,
332 (sy_call_t
*)compat_50_sys_utimes
},/* 138 = utimes */
334 sys_nosys
}, /* 139 = unimplemented futimes */
335 { ns(struct compat_50_sys_adjtime_args
), 0,
336 (sy_call_t
*)compat_50_sys_adjtime
},/* 140 = adjtime */
337 { ns(struct compat_43_sys_getpeername_args
), 0,
338 (sy_call_t
*)compat_43_sys_getpeername
},/* 141 = ogetpeername */
340 (sy_call_t
*)compat_43_sys_gethostid
},/* 142 = ogethostid */
342 sys_nosys
}, /* 143 = unimplemented */
343 { ns(struct compat_43_sys_getrlimit_args
), 0,
344 (sy_call_t
*)compat_43_sys_getrlimit
},/* 144 = ogetrlimit */
345 { ns(struct compat_43_sys_setrlimit_args
), 0,
346 (sy_call_t
*)compat_43_sys_setrlimit
},/* 145 = osetrlimit */
347 { ns(struct compat_43_sys_killpg_args
), 0,
348 (sy_call_t
*)compat_43_sys_killpg
},/* 146 = okillpg */
350 (sy_call_t
*)sys_setsid
}, /* 147 = setsid */
352 sys_nosys
}, /* 148 = unimplemented */
354 sys_nosys
}, /* 149 = unimplemented */
355 { ns(struct compat_43_sys_getsockname_args
), 0,
356 (sy_call_t
*)compat_43_sys_getsockname
},/* 150 = ogetsockname */
358 sys_nosys
}, /* 151 = unimplemented getpgid */
360 sys_nosys
}, /* 152 = unimplemented setprivexec */
362 sys_nosys
}, /* 153 = unimplemented pread */
364 sys_nosys
}, /* 154 = unimplemented pwrite */
365 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
366 { ns(struct sys_nfssvc_args
), 0,
367 (sy_call_t
*)sys_nfssvc
}, /* 155 = nfssvc */
370 sys_nosys
}, /* 155 = excluded nfssvc */
372 { ns(struct compat_43_sys_getdirentries_args
), 0,
373 (sy_call_t
*)compat_43_sys_getdirentries
},/* 156 = ogetdirentries */
374 { ns(struct darwin_sys_statfs_args
), 0,
375 (sy_call_t
*)darwin_sys_statfs
}, /* 157 = statfs */
376 { ns(struct darwin_sys_fstatfs_args
), 0,
377 (sy_call_t
*)darwin_sys_fstatfs
}, /* 158 = fstatfs */
379 sys_nosys
}, /* 159 = unimplemented unmount */
381 sys_nosys
}, /* 160 = unimplemented */
382 #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
383 { ns(struct compat_30_sys_getfh_args
), 0,
384 (sy_call_t
*)compat_30_sys_getfh
}, /* 161 = getfh */
387 sys_nosys
}, /* 161 = excluded getfh */
389 { ns(struct compat_09_sys_getdomainname_args
), 0,
390 (sy_call_t
*)compat_09_sys_getdomainname
},/* 162 = ogetdomainname */
391 { ns(struct compat_09_sys_setdomainname_args
), 0,
392 (sy_call_t
*)compat_09_sys_setdomainname
},/* 163 = osetdomainname */
394 sys_nosys
}, /* 164 = unimplemented */
396 sys_nosys
}, /* 165 = unimplemented quotactl */
398 sys_nosys
}, /* 166 = unimplemented */
400 sys_nosys
}, /* 167 = unimplemented mount */
402 sys_nosys
}, /* 168 = unimplemented */
404 sys_nosys
}, /* 169 = unimplemented */
406 sys_nosys
}, /* 170 = unimplemented */
408 sys_nosys
}, /* 171 = unimplemented wait3 */
410 sys_nosys
}, /* 172 = unimplemented */
412 sys_nosys
}, /* 173 = unimplemented */
414 sys_nosys
}, /* 174 = unimplemented */
416 sys_nosys
}, /* 175 = unimplemented */
418 sys_nosys
}, /* 176 = unimplemented add_profil */
420 sys_nosys
}, /* 177 = unimplemented */
422 sys_nosys
}, /* 178 = unimplemented */
424 sys_nosys
}, /* 179 = unimplemented */
425 { ns(struct darwin_sys_kdebug_trace_args
), 0,
426 (sy_call_t
*)darwin_sys_kdebug_trace
},/* 180 = kdebug_trace */
427 { ns(struct sys_setgid_args
), 0,
428 (sy_call_t
*)sys_setgid
}, /* 181 = setgid */
429 { ns(struct sys_setegid_args
), 0,
430 (sy_call_t
*)sys_setegid
}, /* 182 = setegid */
431 { ns(struct sys_seteuid_args
), 0,
432 (sy_call_t
*)sys_seteuid
}, /* 183 = seteuid */
433 { ns(struct darwin_sys_sigreturn_args
), 0,
434 (sy_call_t
*)darwin_sys_sigreturn
},/* 184 = sigreturn */
436 sys_nosys
}, /* 185 = unimplemented */
438 sys_nosys
}, /* 186 = unimplemented */
440 sys_nosys
}, /* 187 = unimplemented */
441 { ns(struct darwin_sys_stat_args
), 0,
442 (sy_call_t
*)darwin_sys_stat
}, /* 188 = stat12 */
443 { ns(struct darwin_sys_fstat_args
), 0,
444 (sy_call_t
*)darwin_sys_fstat
}, /* 189 = fstat */
445 { ns(struct darwin_sys_lstat_args
), 0,
446 (sy_call_t
*)darwin_sys_lstat
}, /* 190 = lstat12 */
447 { ns(struct sys_pathconf_args
), 0,
448 (sy_call_t
*)sys_pathconf
}, /* 191 = pathconf */
449 { ns(struct sys_fpathconf_args
), 0,
450 (sy_call_t
*)sys_fpathconf
}, /* 192 = fpathconf */
452 sys_nosys
}, /* 193 = unimplemented getfsstat */
453 { ns(struct sys_getrlimit_args
), 0,
454 (sy_call_t
*)sys_getrlimit
}, /* 194 = getrlimit */
455 { ns(struct sys_setrlimit_args
), 0,
456 (sy_call_t
*)sys_setrlimit
}, /* 195 = setrlimit */
457 { ns(struct compat_12_sys_getdirentries_args
), 0,
458 (sy_call_t
*)compat_12_sys_getdirentries
},/* 196 = getdirentries */
459 { ns(struct sys_mmap_args
), SYCALL_NARGS64_VAL(1) | SYCALL_ARG6_64
,
460 (sy_call_t
*)sys_mmap
}, /* 197 = mmap */
462 sys_nosys
}, /* 198 = unimplemented */
463 { ns(struct darwin_sys_lseek_args
), SYCALL_RET_64
,
464 (sy_call_t
*)darwin_sys_lseek
}, /* 199 = lseek */
465 { ns(struct sys_truncate_args
), SYCALL_NARGS64_VAL(1) | SYCALL_ARG2_64
,
466 (sy_call_t
*)sys_truncate
}, /* 200 = truncate */
467 { ns(struct sys_ftruncate_args
), SYCALL_NARGS64_VAL(1) | SYCALL_ARG2_64
,
468 (sy_call_t
*)sys_ftruncate
}, /* 201 = ftruncate */
469 { ns(struct darwin_sys___sysctl_args
), 0,
470 (sy_call_t
*)darwin_sys___sysctl
}, /* 202 = __sysctl */
471 { ns(struct sys_mlock_args
), 0,
472 (sy_call_t
*)sys_mlock
}, /* 203 = mlock */
473 { ns(struct sys_munlock_args
), 0,
474 (sy_call_t
*)sys_munlock
}, /* 204 = munlock */
475 { ns(struct sys_undelete_args
), 0,
476 (sy_call_t
*)sys_undelete
}, /* 205 = undelete */
478 sys_nosys
}, /* 206 = unimplemented atsocket */
480 sys_nosys
}, /* 207 = unimplemented atgetmsg */
482 sys_nosys
}, /* 208 = unimplemented atputmsg */
484 sys_nosys
}, /* 209 = unimplemented atpsndreq */
486 sys_nosys
}, /* 210 = unimplemented atpsndrsp */
488 sys_nosys
}, /* 211 = unimplemented atpgetreq */
490 sys_nosys
}, /* 212 = unimplemented atpgetrsp */
492 sys_nosys
}, /* 213 = unimplemented */
494 sys_nosys
}, /* 214 = unimplemented */
496 sys_nosys
}, /* 215 = unimplemented */
498 sys_nosys
}, /* 216 = unimplemented */
500 sys_nosys
}, /* 217 = unimplemented */
502 sys_nosys
}, /* 218 = unimplemented */
504 sys_nosys
}, /* 219 = unimplemented */
505 { ns(struct darwin_sys_getattrlist_args
), 0,
506 (sy_call_t
*)darwin_sys_getattrlist
},/* 220 = getattrlist */
508 sys_nosys
}, /* 221 = unimplemented setattrlist */
510 sys_nosys
}, /* 222 = unimplemented getdirentriesattr */
512 sys_nosys
}, /* 223 = unimplemented exchangedata */
514 sys_nosys
}, /* 224 = unimplemented checkuseraccess */
516 sys_nosys
}, /* 225 = unimplemented searchfs */
518 sys_nosys
}, /* 226 = unimplemented delete */
520 sys_nosys
}, /* 227 = unimplemented copyfile */
522 sys_nosys
}, /* 228 = unimplemented */
524 sys_nosys
}, /* 229 = unimplemented */
526 sys_nosys
}, /* 230 = unimplemented */
528 sys_nosys
}, /* 231 = unimplemented watchevent */
530 sys_nosys
}, /* 232 = unimplemented waitevent */
532 sys_nosys
}, /* 233 = unimplemented modwatch */
534 sys_nosys
}, /* 234 = unimplemented */
536 sys_nosys
}, /* 235 = unimplemented */
538 sys_nosys
}, /* 236 = unimplemented */
540 sys_nosys
}, /* 237 = unimplemented */
542 sys_nosys
}, /* 238 = unimplemented */
544 sys_nosys
}, /* 239 = unimplemented */
546 sys_nosys
}, /* 240 = unimplemented */
548 sys_nosys
}, /* 241 = unimplemented */
550 sys_nosys
}, /* 242 = unimplemented fsctl */
552 sys_nosys
}, /* 243 = unimplemented */
554 sys_nosys
}, /* 244 = unimplemented */
556 sys_nosys
}, /* 245 = unimplemented */
558 sys_nosys
}, /* 246 = unimplemented */
560 sys_nosys
}, /* 247 = unimplemented */
562 sys_nosys
}, /* 248 = unimplemented */
564 sys_nosys
}, /* 249 = unimplemented */
566 sys_nosys
}, /* 250 = unimplemented minherit */
568 sys_nosys
}, /* 251 = unimplemented semsys */
570 sys_nosys
}, /* 252 = unimplemented msgsys */
572 sys_nosys
}, /* 253 = unimplemented semop */
574 sys_nosys
}, /* 254 = unimplemented semctl */
576 sys_nosys
}, /* 255 = unimplemented semget */
578 sys_nosys
}, /* 256 = unimplemented semop */
580 sys_nosys
}, /* 257 = unimplemented semconfig */
582 sys_nosys
}, /* 258 = unimplemented msgctl */
584 sys_nosys
}, /* 259 = unimplemented msgget */
586 sys_nosys
}, /* 260 = unimplemented msgsnd */
588 sys_nosys
}, /* 261 = unimplemented msgrcv */
590 sys_nosys
}, /* 262 = unimplemented shmat */
592 sys_nosys
}, /* 263 = unimplemented shmctl */
594 sys_nosys
}, /* 264 = unimplemented shmdt */
596 sys_nosys
}, /* 265 = unimplemented shmget */
598 sys_nosys
}, /* 266 = unimplemented shm_open */
600 sys_nosys
}, /* 267 = unimplemented shm_unlink */
602 sys_nosys
}, /* 268 = unimplemented sem_open */
604 sys_nosys
}, /* 269 = unimplemented sem_close */
606 sys_nosys
}, /* 270 = unimplemented sem_unlink */
608 sys_nosys
}, /* 271 = unimplemented sem_wait */
610 sys_nosys
}, /* 272 = unimplemented sem_trywait */
612 sys_nosys
}, /* 273 = unimplemented sem_post */
614 sys_nosys
}, /* 274 = unimplemented sem_getvalue */
616 sys_nosys
}, /* 275 = unimplemented sem_init */
618 sys_nosys
}, /* 276 = unimplemented sem_destroy */
620 sys_nosys
}, /* 277 = unimplemented */
622 sys_nosys
}, /* 278 = unimplemented */
624 sys_nosys
}, /* 279 = unimplemented */
626 sys_nosys
}, /* 280 = unimplemented */
628 sys_nosys
}, /* 281 = unimplemented */
630 sys_nosys
}, /* 282 = unimplemented */
632 sys_nosys
}, /* 283 = unimplemented */
634 sys_nosys
}, /* 284 = unimplemented */
636 sys_nosys
}, /* 285 = unimplemented */
638 sys_nosys
}, /* 286 = unimplemented */
640 sys_nosys
}, /* 287 = unimplemented */
642 sys_nosys
}, /* 288 = unimplemented */
644 sys_nosys
}, /* 289 = unimplemented */
646 sys_nosys
}, /* 290 = unimplemented */
648 sys_nosys
}, /* 291 = unimplemented */
650 sys_nosys
}, /* 292 = unimplemented */
652 sys_nosys
}, /* 293 = unimplemented */
654 sys_nosys
}, /* 294 = unimplemented */
656 sys_nosys
}, /* 295 = unimplemented */
657 { ns(struct darwin_sys_load_shared_file_args
), 0,
658 (sy_call_t
*)darwin_sys_load_shared_file
},/* 296 = load_shared_file */
660 sys_nosys
}, /* 297 = unimplemented reset_shared_file */
662 sys_nosys
}, /* 298 = unimplemented new_system_shared_regions */
664 sys_nosys
}, /* 299 = unimplemented */
666 sys_nosys
}, /* 300 = unimplemented */
668 sys_nosys
}, /* 301 = unimplemented */
670 sys_nosys
}, /* 302 = unimplemented */
672 sys_nosys
}, /* 303 = unimplemented */
674 sys_nosys
}, /* 304 = unimplemented */
676 sys_nosys
}, /* 305 = unimplemented */
678 sys_nosys
}, /* 306 = unimplemented */
680 sys_nosys
}, /* 307 = unimplemented */
682 sys_nosys
}, /* 308 = unimplemented */
684 sys_nosys
}, /* 309 = unimplemented */
686 sys_nosys
}, /* 310 = unimplemented getsid */
688 sys_nosys
}, /* 311 = unimplemented */
690 sys_nosys
}, /* 312 = unimplemented */
692 sys_nosys
}, /* 313 = unimplemented */
694 sys_nosys
}, /* 314 = unimplemented */
696 sys_nosys
}, /* 315 = unimplemented */
698 sys_nosys
}, /* 316 = unimplemented */
700 sys_nosys
}, /* 317 = unimplemented */
702 sys_nosys
}, /* 318 = unimplemented */
704 sys_nosys
}, /* 319 = unimplemented */
706 sys_nosys
}, /* 320 = unimplemented */
708 sys_nosys
}, /* 321 = unimplemented */
710 sys_nosys
}, /* 322 = unimplemented */
712 sys_nosys
}, /* 323 = unimplemented */
714 sys_nosys
}, /* 324 = unimplemented mlockall */
716 sys_nosys
}, /* 325 = unimplemented munlockall */
718 sys_nosys
}, /* 326 = unimplemented */
720 sys_nosys
}, /* 327 = unimplemented issetugid */
722 sys_nosys
}, /* 328 = unimplemented __pthread_kill */
724 sys_nosys
}, /* 329 = unimplemented pthread_sigmask */
726 sys_nosys
}, /* 330 = unimplemented sigwait */
727 { ns(struct darwin_sys_pthread_exit_args
), 0,
728 (sy_call_t
*)darwin_sys_pthread_exit
},/* 331 = pthread_exit */
730 sys_nosys
}, /* 332 = unimplemented */
732 sys_nosys
}, /* 333 = unimplemented */
734 sys_nosys
}, /* 334 = unimplemented */
735 { ns(struct darwin_sys_utrace_args
), 0,
736 (sy_call_t
*)darwin_sys_utrace
}, /* 335 = utrace */
738 sys_nosys
}, /* 336 = unimplemented */
740 sys_nosys
}, /* 337 = unimplemented */
742 sys_nosys
}, /* 338 = unimplemented */
744 sys_nosys
}, /* 339 = unimplemented */
746 sys_nosys
}, /* 340 = unimplemented */
748 sys_nosys
}, /* 341 = unimplemented */
750 sys_nosys
}, /* 342 = unimplemented */
752 sys_nosys
}, /* 343 = unimplemented */
754 sys_nosys
}, /* 344 = unimplemented */
756 sys_nosys
}, /* 345 = unimplemented */
758 sys_nosys
}, /* 346 = unimplemented */
760 sys_nosys
}, /* 347 = unimplemented */
762 sys_nosys
}, /* 348 = unimplemented */
764 sys_nosys
}, /* 349 = unimplemented */
765 { ns(struct darwin_sys_audit_args
), 0,
766 (sy_call_t
*)darwin_sys_audit
}, /* 350 = audit */
767 { ns(struct darwin_sys_auditon_args
), 0,
768 (sy_call_t
*)darwin_sys_auditon
}, /* 351 = auditon */
770 sys_nosys
}, /* 352 = unimplemented */
771 { ns(struct darwin_sys_getauid_args
), 0,
772 (sy_call_t
*)darwin_sys_getauid
}, /* 353 = getauid */
773 { ns(struct darwin_sys_setauid_args
), 0,
774 (sy_call_t
*)darwin_sys_setauid
}, /* 354 = setauid */
775 { ns(struct darwin_sys_getauditinfo_args
), 0,
776 (sy_call_t
*)darwin_sys_getauditinfo
},/* 355 = getauditinfo */
777 { ns(struct darwin_sys_setauditinfo_args
), 0,
778 (sy_call_t
*)darwin_sys_setauditinfo
},/* 356 = setauditinfo */
779 { ns(struct darwin_sys_getaudit_addr_args
), 0,
780 (sy_call_t
*)darwin_sys_getaudit_addr
},/* 357 = getaudit_addr */
781 { ns(struct darwin_sys_setaudit_addr_args
), 0,
782 (sy_call_t
*)darwin_sys_setaudit_addr
},/* 358 = setaudit_addr */
783 { ns(struct darwin_sys_auditctl_args
), 0,
784 (sy_call_t
*)darwin_sys_auditctl
}, /* 359 = auditctl */
786 sys_nosys
}, /* 360 = unimplemented */
788 sys_nosys
}, /* 361 = unimplemented */
790 sys_nosys
}, /* 362 = unimplemented kqueue */
792 sys_nosys
}, /* 363 = unimplemented kevent */
794 sys_nosys
}, /* 364 = filler */
796 sys_nosys
}, /* 365 = filler */
798 sys_nosys
}, /* 366 = filler */
800 sys_nosys
}, /* 367 = filler */
802 sys_nosys
}, /* 368 = filler */
804 sys_nosys
}, /* 369 = filler */
806 sys_nosys
}, /* 370 = filler */
808 sys_nosys
}, /* 371 = filler */
810 sys_nosys
}, /* 372 = filler */
812 sys_nosys
}, /* 373 = filler */
814 sys_nosys
}, /* 374 = filler */
816 sys_nosys
}, /* 375 = filler */
818 sys_nosys
}, /* 376 = filler */
820 sys_nosys
}, /* 377 = filler */
822 sys_nosys
}, /* 378 = filler */
824 sys_nosys
}, /* 379 = filler */
826 sys_nosys
}, /* 380 = filler */
828 sys_nosys
}, /* 381 = filler */
830 sys_nosys
}, /* 382 = filler */
832 sys_nosys
}, /* 383 = filler */
834 sys_nosys
}, /* 384 = filler */
836 sys_nosys
}, /* 385 = filler */
838 sys_nosys
}, /* 386 = filler */
840 sys_nosys
}, /* 387 = filler */
842 sys_nosys
}, /* 388 = filler */
844 sys_nosys
}, /* 389 = filler */
846 sys_nosys
}, /* 390 = filler */
848 sys_nosys
}, /* 391 = filler */
850 sys_nosys
}, /* 392 = filler */
852 sys_nosys
}, /* 393 = filler */
854 sys_nosys
}, /* 394 = filler */
856 sys_nosys
}, /* 395 = filler */
858 sys_nosys
}, /* 396 = filler */
860 sys_nosys
}, /* 397 = filler */
862 sys_nosys
}, /* 398 = filler */
864 sys_nosys
}, /* 399 = filler */
866 sys_nosys
}, /* 400 = filler */
868 sys_nosys
}, /* 401 = filler */
870 sys_nosys
}, /* 402 = filler */
872 sys_nosys
}, /* 403 = filler */
874 sys_nosys
}, /* 404 = filler */
876 sys_nosys
}, /* 405 = filler */
878 sys_nosys
}, /* 406 = filler */
880 sys_nosys
}, /* 407 = filler */
882 sys_nosys
}, /* 408 = filler */
884 sys_nosys
}, /* 409 = filler */
886 sys_nosys
}, /* 410 = filler */
888 sys_nosys
}, /* 411 = filler */
890 sys_nosys
}, /* 412 = filler */
892 sys_nosys
}, /* 413 = filler */
894 sys_nosys
}, /* 414 = filler */
896 sys_nosys
}, /* 415 = filler */
898 sys_nosys
}, /* 416 = filler */
900 sys_nosys
}, /* 417 = filler */
902 sys_nosys
}, /* 418 = filler */
904 sys_nosys
}, /* 419 = filler */
906 sys_nosys
}, /* 420 = filler */
908 sys_nosys
}, /* 421 = filler */
910 sys_nosys
}, /* 422 = filler */
912 sys_nosys
}, /* 423 = filler */
914 sys_nosys
}, /* 424 = filler */
916 sys_nosys
}, /* 425 = filler */
918 sys_nosys
}, /* 426 = filler */
920 sys_nosys
}, /* 427 = filler */
922 sys_nosys
}, /* 428 = filler */
924 sys_nosys
}, /* 429 = filler */
926 sys_nosys
}, /* 430 = filler */
928 sys_nosys
}, /* 431 = filler */
930 sys_nosys
}, /* 432 = filler */
932 sys_nosys
}, /* 433 = filler */
934 sys_nosys
}, /* 434 = filler */
936 sys_nosys
}, /* 435 = filler */
938 sys_nosys
}, /* 436 = filler */
940 sys_nosys
}, /* 437 = filler */
942 sys_nosys
}, /* 438 = filler */
944 sys_nosys
}, /* 439 = filler */
946 sys_nosys
}, /* 440 = filler */
948 sys_nosys
}, /* 441 = filler */
950 sys_nosys
}, /* 442 = filler */
952 sys_nosys
}, /* 443 = filler */
954 sys_nosys
}, /* 444 = filler */
956 sys_nosys
}, /* 445 = filler */
958 sys_nosys
}, /* 446 = filler */
960 sys_nosys
}, /* 447 = filler */
962 sys_nosys
}, /* 448 = filler */
964 sys_nosys
}, /* 449 = filler */
966 sys_nosys
}, /* 450 = filler */
968 sys_nosys
}, /* 451 = filler */
970 sys_nosys
}, /* 452 = filler */
972 sys_nosys
}, /* 453 = filler */
974 sys_nosys
}, /* 454 = filler */
976 sys_nosys
}, /* 455 = filler */
978 sys_nosys
}, /* 456 = filler */
980 sys_nosys
}, /* 457 = filler */
982 sys_nosys
}, /* 458 = filler */
984 sys_nosys
}, /* 459 = filler */
986 sys_nosys
}, /* 460 = filler */
988 sys_nosys
}, /* 461 = filler */
990 sys_nosys
}, /* 462 = filler */
992 sys_nosys
}, /* 463 = filler */
994 sys_nosys
}, /* 464 = filler */
996 sys_nosys
}, /* 465 = filler */
998 sys_nosys
}, /* 466 = filler */
1000 sys_nosys
}, /* 467 = filler */
1002 sys_nosys
}, /* 468 = filler */
1004 sys_nosys
}, /* 469 = filler */
1006 sys_nosys
}, /* 470 = filler */
1008 sys_nosys
}, /* 471 = filler */
1010 sys_nosys
}, /* 472 = filler */
1012 sys_nosys
}, /* 473 = filler */
1014 sys_nosys
}, /* 474 = filler */
1016 sys_nosys
}, /* 475 = filler */
1018 sys_nosys
}, /* 476 = filler */
1020 sys_nosys
}, /* 477 = filler */
1022 sys_nosys
}, /* 478 = filler */
1024 sys_nosys
}, /* 479 = filler */
1026 sys_nosys
}, /* 480 = filler */
1028 sys_nosys
}, /* 481 = filler */
1030 sys_nosys
}, /* 482 = filler */
1032 sys_nosys
}, /* 483 = filler */
1034 sys_nosys
}, /* 484 = filler */
1036 sys_nosys
}, /* 485 = filler */
1038 sys_nosys
}, /* 486 = filler */
1040 sys_nosys
}, /* 487 = filler */
1042 sys_nosys
}, /* 488 = filler */
1044 sys_nosys
}, /* 489 = filler */
1046 sys_nosys
}, /* 490 = filler */
1048 sys_nosys
}, /* 491 = filler */
1050 sys_nosys
}, /* 492 = filler */
1052 sys_nosys
}, /* 493 = filler */
1054 sys_nosys
}, /* 494 = filler */
1056 sys_nosys
}, /* 495 = filler */
1058 sys_nosys
}, /* 496 = filler */
1060 sys_nosys
}, /* 497 = filler */
1062 sys_nosys
}, /* 498 = filler */
1064 sys_nosys
}, /* 499 = filler */
1066 sys_nosys
}, /* 500 = filler */
1068 sys_nosys
}, /* 501 = filler */
1070 sys_nosys
}, /* 502 = filler */
1072 sys_nosys
}, /* 503 = filler */
1074 sys_nosys
}, /* 504 = filler */
1076 sys_nosys
}, /* 505 = filler */
1078 sys_nosys
}, /* 506 = filler */
1080 sys_nosys
}, /* 507 = filler */
1082 sys_nosys
}, /* 508 = filler */
1084 sys_nosys
}, /* 509 = filler */
1086 sys_nosys
}, /* 510 = filler */
1088 sys_nosys
}, /* 511 = filler */