No empty .Rs/.Re
[netbsd-mini2440.git] / sys / compat / freebsd / freebsd_sysent.c
blob4968f75cd64c13b8219a65a5398b97f895379523
1 /* $NetBSD$ */
3 /*
4 * System call switch table.
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
8 */
10 #include <sys/cdefs.h>
11 __KERNEL_RCSID(0, "$NetBSD$");
13 #if defined(_KERNEL_OPT)
14 #include "opt_ktrace.h"
15 #include "opt_ntp.h"
16 #include "opt_sysv.h"
17 #include "opt_compat_43.h"
18 #include "opt_posix.h"
19 #include "fs_lfs.h"
20 #endif
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/freebsd/freebsd_syscallargs.h>
29 #include <machine/freebsd_machdep.h>
31 #define s(type) sizeof(type)
32 #define n(type) (sizeof(type)/sizeof (register_t))
33 #define ns(type) n(type), s(type)
35 struct sysent freebsd_sysent[] = {
36 { 0, 0, 0,
37 (sy_call_t *)sys_nosys }, /* 0 = syscall */
38 { ns(struct sys_exit_args), 0,
39 (sy_call_t *)sys_exit }, /* 1 = exit */
40 { 0, 0, 0,
41 (sy_call_t *)sys_fork }, /* 2 = fork */
42 { ns(struct sys_read_args), 0,
43 (sy_call_t *)sys_read }, /* 3 = read */
44 { ns(struct sys_write_args), 0,
45 (sy_call_t *)sys_write }, /* 4 = write */
46 { ns(struct sys_open_args), 0,
47 (sy_call_t *)sys_open }, /* 5 = open */
48 { ns(struct sys_close_args), 0,
49 (sy_call_t *)sys_close }, /* 6 = close */
50 { ns(struct compat_50_sys_wait4_args), 0,
51 (sy_call_t *)compat_50_sys_wait4 }, /* 7 = wait4 */
52 { ns(struct compat_43_sys_creat_args), 0,
53 (sy_call_t *)compat_43_sys_creat }, /* 8 = ocreat */
54 { ns(struct sys_link_args), 0,
55 (sy_call_t *)sys_link }, /* 9 = link */
56 { ns(struct sys_unlink_args), 0,
57 (sy_call_t *)sys_unlink }, /* 10 = unlink */
58 { 0, 0, 0,
59 sys_nosys }, /* 11 = obsolete execv */
60 { ns(struct sys_chdir_args), 0,
61 (sy_call_t *)sys_chdir }, /* 12 = chdir */
62 { ns(struct sys_fchdir_args), 0,
63 (sy_call_t *)sys_fchdir }, /* 13 = fchdir */
64 { ns(struct compat_50_sys_mknod_args), 0,
65 (sy_call_t *)compat_50_sys_mknod }, /* 14 = mknod */
66 { ns(struct sys_chmod_args), 0,
67 (sy_call_t *)sys_chmod }, /* 15 = chmod */
68 { ns(struct sys_chown_args), 0,
69 (sy_call_t *)sys_chown }, /* 16 = chown */
70 { ns(struct sys_obreak_args), 0,
71 (sy_call_t *)sys_obreak }, /* 17 = break */
72 { ns(struct compat_20_sys_getfsstat_args), 0,
73 (sy_call_t *)compat_20_sys_getfsstat },/* 18 = getfsstat */
74 { ns(struct compat_43_sys_lseek_args), 0,
75 (sy_call_t *)compat_43_sys_lseek }, /* 19 = olseek */
76 { 0, 0, 0,
77 (sy_call_t *)sys_getpid_with_ppid },/* 20 = getpid_with_ppid */
78 { ns(struct freebsd_sys_mount_args), 0,
79 (sy_call_t *)freebsd_sys_mount }, /* 21 = mount */
80 { ns(struct sys_unmount_args), 0,
81 (sy_call_t *)sys_unmount }, /* 22 = unmount */
82 { ns(struct sys_setuid_args), 0,
83 (sy_call_t *)sys_setuid }, /* 23 = setuid */
84 { 0, 0, 0,
85 (sy_call_t *)sys_getuid_with_euid },/* 24 = getuid_with_euid */
86 { 0, 0, 0,
87 (sy_call_t *)sys_geteuid }, /* 25 = geteuid */
88 { ns(struct freebsd_sys_ptrace_args), 0,
89 (sy_call_t *)freebsd_sys_ptrace }, /* 26 = ptrace */
90 { ns(struct sys_recvmsg_args), 0,
91 (sy_call_t *)sys_recvmsg }, /* 27 = recvmsg */
92 { ns(struct sys_sendmsg_args), 0,
93 (sy_call_t *)sys_sendmsg }, /* 28 = sendmsg */
94 { ns(struct sys_recvfrom_args), 0,
95 (sy_call_t *)sys_recvfrom }, /* 29 = recvfrom */
96 { ns(struct sys_accept_args), 0,
97 (sy_call_t *)sys_accept }, /* 30 = accept */
98 { ns(struct sys_getpeername_args), 0,
99 (sy_call_t *)sys_getpeername }, /* 31 = getpeername */
100 { ns(struct sys_getsockname_args), 0,
101 (sy_call_t *)sys_getsockname }, /* 32 = getsockname */
102 { ns(struct sys_access_args), 0,
103 (sy_call_t *)sys_access }, /* 33 = access */
104 { ns(struct sys_chflags_args), 0,
105 (sy_call_t *)sys_chflags }, /* 34 = chflags */
106 { ns(struct sys_fchflags_args), 0,
107 (sy_call_t *)sys_fchflags }, /* 35 = fchflags */
108 { 0, 0, 0,
109 (sy_call_t *)sys_sync }, /* 36 = sync */
110 { ns(struct sys_kill_args), 0,
111 (sy_call_t *)sys_kill }, /* 37 = kill */
112 { ns(struct compat_43_sys_stat_args), 0,
113 (sy_call_t *)compat_43_sys_stat }, /* 38 = stat43 */
114 { 0, 0, 0,
115 (sy_call_t *)sys_getppid }, /* 39 = getppid */
116 { ns(struct compat_43_sys_lstat_args), 0,
117 (sy_call_t *)compat_43_sys_lstat }, /* 40 = lstat43 */
118 { ns(struct sys_dup_args), 0,
119 (sy_call_t *)sys_dup }, /* 41 = dup */
120 { 0, 0, 0,
121 (sy_call_t *)sys_pipe }, /* 42 = pipe */
122 { 0, 0, 0,
123 (sy_call_t *)sys_getegid }, /* 43 = getegid */
124 { ns(struct sys_profil_args), 0,
125 (sy_call_t *)sys_profil }, /* 44 = profil */
126 #ifdef KTRACE
127 { ns(struct sys_ktrace_args), 0,
128 (sy_call_t *)sys_ktrace }, /* 45 = ktrace */
129 #else
130 { 0, 0, 0,
131 sys_nosys }, /* 45 = excluded ktrace */
132 #endif
133 { ns(struct compat_13_sys_sigaction_args), 0,
134 (sy_call_t *)compat_13_sys_sigaction },/* 46 = sigaction */
135 { 0, 0, 0,
136 (sy_call_t *)sys_getgid_with_egid },/* 47 = getgid_with_egid */
137 { ns(struct compat_13_sys_sigprocmask_args), 0,
138 (sy_call_t *)compat_13_sys_sigprocmask },/* 48 = sigprocmask */
139 { ns(struct sys___getlogin_args), 0,
140 (sy_call_t *)sys___getlogin }, /* 49 = __getlogin */
141 { ns(struct sys___setlogin_args), 0,
142 (sy_call_t *)sys___setlogin }, /* 50 = __setlogin */
143 { ns(struct sys_acct_args), 0,
144 (sy_call_t *)sys_acct }, /* 51 = acct */
145 { 0, 0, 0,
146 (sy_call_t *)compat_13_sys_sigpending },/* 52 = sigpending */
147 { ns(struct compat_13_sys_sigaltstack_args), 0,
148 (sy_call_t *)compat_13_sys_sigaltstack },/* 53 = sigaltstack */
149 { ns(struct freebsd_sys_ioctl_args), 0,
150 (sy_call_t *)freebsd_sys_ioctl }, /* 54 = ioctl */
151 { ns(struct sys_reboot_args), 0,
152 (sy_call_t *)sys_reboot }, /* 55 = oreboot */
153 { ns(struct sys_revoke_args), 0,
154 (sy_call_t *)sys_revoke }, /* 56 = revoke */
155 { ns(struct sys_symlink_args), 0,
156 (sy_call_t *)sys_symlink }, /* 57 = symlink */
157 { ns(struct sys_readlink_args), 0,
158 (sy_call_t *)sys_readlink }, /* 58 = readlink */
159 { ns(struct sys_execve_args), 0,
160 (sy_call_t *)sys_execve }, /* 59 = execve */
161 { ns(struct sys_umask_args), 0,
162 (sy_call_t *)sys_umask }, /* 60 = umask */
163 { ns(struct sys_chroot_args), 0,
164 (sy_call_t *)sys_chroot }, /* 61 = chroot */
165 { ns(struct compat_43_sys_fstat_args), 0,
166 (sy_call_t *)compat_43_sys_fstat }, /* 62 = fstat43 */
167 { ns(struct compat_43_sys_getkerninfo_args), 0,
168 (sy_call_t *)compat_43_sys_getkerninfo },/* 63 = ogetkerninfo */
169 { 0, 0, 0,
170 (sy_call_t *)compat_43_sys_getpagesize },/* 64 = ogetpagesize */
171 { ns(struct freebsd_sys_msync_args), 0,
172 (sy_call_t *)freebsd_sys_msync }, /* 65 = msync */
173 { 0, 0, 0,
174 (sy_call_t *)sys_vfork }, /* 66 = vfork */
175 { 0, 0, 0,
176 sys_nosys }, /* 67 = obsolete vread */
177 { 0, 0, 0,
178 sys_nosys }, /* 68 = obsolete vwrite */
179 { ns(struct sys_sbrk_args), 0,
180 (sy_call_t *)sys_sbrk }, /* 69 = sbrk */
181 { ns(struct sys_sstk_args), 0,
182 (sy_call_t *)sys_sstk }, /* 70 = sstk */
183 { ns(struct compat_43_sys_mmap_args), 0,
184 (sy_call_t *)compat_43_sys_mmap }, /* 71 = ommap */
185 { ns(struct sys_ovadvise_args), 0,
186 (sy_call_t *)sys_ovadvise }, /* 72 = vadvise */
187 { ns(struct sys_munmap_args), 0,
188 (sy_call_t *)sys_munmap }, /* 73 = munmap */
189 { ns(struct sys_mprotect_args), 0,
190 (sy_call_t *)sys_mprotect }, /* 74 = mprotect */
191 { ns(struct sys_madvise_args), 0,
192 (sy_call_t *)sys_madvise }, /* 75 = madvise */
193 { 0, 0, 0,
194 sys_nosys }, /* 76 = obsolete vhangup */
195 { 0, 0, 0,
196 sys_nosys }, /* 77 = obsolete vlimit */
197 { ns(struct sys_mincore_args), 0,
198 (sy_call_t *)sys_mincore }, /* 78 = mincore */
199 { ns(struct sys_getgroups_args), 0,
200 (sy_call_t *)sys_getgroups }, /* 79 = getgroups */
201 { ns(struct sys_setgroups_args), 0,
202 (sy_call_t *)sys_setgroups }, /* 80 = setgroups */
203 { 0, 0, 0,
204 (sy_call_t *)sys_getpgrp }, /* 81 = getpgrp */
205 { ns(struct sys_setpgid_args), 0,
206 (sy_call_t *)sys_setpgid }, /* 82 = setpgid */
207 { ns(struct compat_50_sys_setitimer_args), 0,
208 (sy_call_t *)compat_50_sys_setitimer },/* 83 = setitimer */
209 { 0, 0, 0,
210 (sy_call_t *)compat_43_sys_wait }, /* 84 = owait */
211 { ns(struct compat_12_sys_swapon_args), 0,
212 (sy_call_t *)compat_12_sys_swapon },/* 85 = swapon */
213 { ns(struct compat_50_sys_getitimer_args), 0,
214 (sy_call_t *)compat_50_sys_getitimer },/* 86 = getitimer */
215 { ns(struct compat_43_sys_gethostname_args), 0,
216 (sy_call_t *)compat_43_sys_gethostname },/* 87 = ogethostname */
217 { ns(struct compat_43_sys_sethostname_args), 0,
218 (sy_call_t *)compat_43_sys_sethostname },/* 88 = osethostname */
219 { 0, 0, 0,
220 (sy_call_t *)compat_43_sys_getdtablesize },/* 89 = ogetdtablesize */
221 { ns(struct sys_dup2_args), 0,
222 (sy_call_t *)sys_dup2 }, /* 90 = dup2 */
223 { 0, 0, 0,
224 sys_nosys }, /* 91 = unimplemented getdopt */
225 { ns(struct sys_fcntl_args), 0,
226 (sy_call_t *)sys_fcntl }, /* 92 = fcntl */
227 { ns(struct compat_50_sys_select_args), 0,
228 (sy_call_t *)compat_50_sys_select },/* 93 = select */
229 { 0, 0, 0,
230 sys_nosys }, /* 94 = unimplemented setdopt */
231 { ns(struct sys_fsync_args), 0,
232 (sy_call_t *)sys_fsync }, /* 95 = fsync */
233 { ns(struct sys_setpriority_args), 0,
234 (sy_call_t *)sys_setpriority }, /* 96 = setpriority */
235 { ns(struct compat_30_sys_socket_args), 0,
236 (sy_call_t *)compat_30_sys_socket },/* 97 = socket */
237 { ns(struct sys_connect_args), 0,
238 (sy_call_t *)sys_connect }, /* 98 = connect */
239 { ns(struct compat_43_sys_accept_args), 0,
240 (sy_call_t *)compat_43_sys_accept },/* 99 = oaccept */
241 { ns(struct sys_getpriority_args), 0,
242 (sy_call_t *)sys_getpriority }, /* 100 = getpriority */
243 { ns(struct compat_43_sys_send_args), 0,
244 (sy_call_t *)compat_43_sys_send }, /* 101 = osend */
245 { ns(struct compat_43_sys_recv_args), 0,
246 (sy_call_t *)compat_43_sys_recv }, /* 102 = orecv */
247 { ns(struct freebsd_sys_sigreturn_args), 0,
248 (sy_call_t *)freebsd_sys_sigreturn },/* 103 = sigreturn */
249 { ns(struct sys_bind_args), 0,
250 (sy_call_t *)sys_bind }, /* 104 = bind */
251 { ns(struct sys_setsockopt_args), 0,
252 (sy_call_t *)sys_setsockopt }, /* 105 = setsockopt */
253 { ns(struct sys_listen_args), 0,
254 (sy_call_t *)sys_listen }, /* 106 = listen */
255 { 0, 0, 0,
256 sys_nosys }, /* 107 = obsolete vtimes */
257 { ns(struct compat_43_sys_sigvec_args), 0,
258 (sy_call_t *)compat_43_sys_sigvec },/* 108 = osigvec */
259 { ns(struct compat_43_sys_sigblock_args), 0,
260 (sy_call_t *)compat_43_sys_sigblock },/* 109 = osigblock */
261 { ns(struct compat_43_sys_sigsetmask_args), 0,
262 (sy_call_t *)compat_43_sys_sigsetmask },/* 110 = osigsetmask */
263 { ns(struct compat_13_sys_sigsuspend_args), 0,
264 (sy_call_t *)compat_13_sys_sigsuspend },/* 111 = sigsuspend */
265 { ns(struct compat_43_sys_sigstack_args), 0,
266 (sy_call_t *)compat_43_sys_sigstack },/* 112 = osigstack */
267 { ns(struct compat_43_sys_recvmsg_args), 0,
268 (sy_call_t *)compat_43_sys_recvmsg },/* 113 = orecvmsg */
269 { ns(struct compat_43_sys_sendmsg_args), 0,
270 (sy_call_t *)compat_43_sys_sendmsg },/* 114 = osendmsg */
271 #ifdef TRACE
272 { ns(struct sys_vtrace_args), 0,
273 (sy_call_t *)sys_vtrace }, /* 115 = vtrace */
274 #else
275 { 0, 0, 0,
276 sys_nosys }, /* 115 = obsolete vtrace */
277 #endif
278 { ns(struct compat_50_sys_gettimeofday_args), 0,
279 (sy_call_t *)compat_50_sys_gettimeofday },/* 116 = gettimeofday */
280 { ns(struct compat_50_sys_getrusage_args), 0,
281 (sy_call_t *)compat_50_sys_getrusage },/* 117 = getrusage */
282 { ns(struct sys_getsockopt_args), 0,
283 (sy_call_t *)sys_getsockopt }, /* 118 = getsockopt */
284 { 0, 0, 0,
285 sys_nosys }, /* 119 = obsolete resuba */
286 { ns(struct sys_readv_args), 0,
287 (sy_call_t *)sys_readv }, /* 120 = readv */
288 { ns(struct sys_writev_args), 0,
289 (sy_call_t *)sys_writev }, /* 121 = writev */
290 { ns(struct compat_50_sys_settimeofday_args), 0,
291 (sy_call_t *)compat_50_sys_settimeofday },/* 122 = settimeofday */
292 { ns(struct sys_fchown_args), 0,
293 (sy_call_t *)sys_fchown }, /* 123 = fchown */
294 { ns(struct sys_fchmod_args), 0,
295 (sy_call_t *)sys_fchmod }, /* 124 = fchmod */
296 { ns(struct compat_43_sys_recvfrom_args), 0,
297 (sy_call_t *)compat_43_sys_recvfrom },/* 125 = orecvfrom */
298 { ns(struct sys_setreuid_args), 0,
299 (sy_call_t *)sys_setreuid }, /* 126 = setreuid */
300 { ns(struct sys_setregid_args), 0,
301 (sy_call_t *)sys_setregid }, /* 127 = setregid */
302 { ns(struct sys_rename_args), 0,
303 (sy_call_t *)sys_rename }, /* 128 = rename */
304 { ns(struct compat_43_sys_truncate_args), 0,
305 (sy_call_t *)compat_43_sys_truncate },/* 129 = otruncate */
306 { ns(struct compat_43_sys_ftruncate_args), 0,
307 (sy_call_t *)compat_43_sys_ftruncate },/* 130 = oftruncate */
308 { ns(struct sys_flock_args), 0,
309 (sy_call_t *)sys_flock }, /* 131 = flock */
310 { ns(struct sys_mkfifo_args), 0,
311 (sy_call_t *)sys_mkfifo }, /* 132 = mkfifo */
312 { ns(struct sys_sendto_args), 0,
313 (sy_call_t *)sys_sendto }, /* 133 = sendto */
314 { ns(struct sys_shutdown_args), 0,
315 (sy_call_t *)sys_shutdown }, /* 134 = shutdown */
316 { ns(struct sys_socketpair_args), 0,
317 (sy_call_t *)sys_socketpair }, /* 135 = socketpair */
318 { ns(struct sys_mkdir_args), 0,
319 (sy_call_t *)sys_mkdir }, /* 136 = mkdir */
320 { ns(struct sys_rmdir_args), 0,
321 (sy_call_t *)sys_rmdir }, /* 137 = rmdir */
322 { ns(struct compat_50_sys_utimes_args), 0,
323 (sy_call_t *)compat_50_sys_utimes },/* 138 = utimes */
324 { 0, 0, 0,
325 sys_nosys }, /* 139 = obsolete 4.2 sigreturn */
326 { ns(struct compat_50_sys_adjtime_args), 0,
327 (sy_call_t *)compat_50_sys_adjtime },/* 140 = adjtime */
328 { ns(struct compat_43_sys_getpeername_args), 0,
329 (sy_call_t *)compat_43_sys_getpeername },/* 141 = ogetpeername */
330 { 0, 0, 0,
331 (sy_call_t *)compat_43_sys_gethostid },/* 142 = ogethostid */
332 { ns(struct compat_43_sys_sethostid_args), 0,
333 (sy_call_t *)compat_43_sys_sethostid },/* 143 = osethostid */
334 { ns(struct compat_43_sys_getrlimit_args), 0,
335 (sy_call_t *)compat_43_sys_getrlimit },/* 144 = ogetrlimit */
336 { ns(struct compat_43_sys_setrlimit_args), 0,
337 (sy_call_t *)compat_43_sys_setrlimit },/* 145 = osetrlimit */
338 { ns(struct compat_43_sys_killpg_args), 0,
339 (sy_call_t *)compat_43_sys_killpg },/* 146 = okillpg */
340 { 0, 0, 0,
341 (sy_call_t *)sys_setsid }, /* 147 = setsid */
342 { ns(struct sys_quotactl_args), 0,
343 (sy_call_t *)sys_quotactl }, /* 148 = quotactl */
344 { 0, 0, 0,
345 (sy_call_t *)compat_43_sys_quota }, /* 149 = oquota */
346 { ns(struct compat_43_sys_getsockname_args), 0,
347 (sy_call_t *)compat_43_sys_getsockname },/* 150 = ogetsockname */
348 { 0, 0, 0,
349 sys_nosys }, /* 151 = unimplemented sem_lock */
350 { 0, 0, 0,
351 sys_nosys }, /* 152 = unimplemented sem_wakeup */
352 { 0, 0, 0,
353 sys_nosys }, /* 153 = unimplemented asyncdaemon */
354 { 0, 0, 0,
355 sys_nosys }, /* 154 = unimplemented */
356 { 0, 0, 0,
357 sys_nosys }, /* 155 = unimplemented nfssvc */
358 { ns(struct compat_43_sys_getdirentries_args), 0,
359 (sy_call_t *)compat_43_sys_getdirentries },/* 156 = ogetdirentries */
360 { ns(struct compat_20_sys_statfs_args), 0,
361 (sy_call_t *)compat_20_sys_statfs },/* 157 = statfs */
362 { ns(struct compat_20_sys_fstatfs_args), 0,
363 (sy_call_t *)compat_20_sys_fstatfs },/* 158 = fstatfs */
364 { 0, 0, 0,
365 sys_nosys }, /* 159 = unimplemented */
366 { 0, 0, 0,
367 sys_nosys }, /* 160 = unimplemented */
368 #ifdef NFS
369 { ns(struct compat_30_sys_getfh_args), 0,
370 (sy_call_t *)compat_30_sys_getfh }, /* 161 = getfh */
371 #else
372 { 0, 0, 0,
373 sys_nosys }, /* 161 = unimplemented getfh */
374 #endif
375 { ns(struct compat_09_sys_getdomainname_args), 0,
376 (sy_call_t *)compat_09_sys_getdomainname },/* 162 = getdomainname */
377 { ns(struct compat_09_sys_setdomainname_args), 0,
378 (sy_call_t *)compat_09_sys_setdomainname },/* 163 = setdomainname */
379 { ns(struct compat_09_sys_uname_args), 0,
380 (sy_call_t *)compat_09_sys_uname }, /* 164 = uname */
381 { ns(struct sys_sysarch_args), 0,
382 (sy_call_t *)sys_sysarch }, /* 165 = sysarch */
383 { ns(struct freebsd_sys_rtprio_args), 0,
384 (sy_call_t *)freebsd_sys_rtprio }, /* 166 = rtprio */
385 { 0, 0, 0,
386 sys_nosys }, /* 167 = unimplemented */
387 { 0, 0, 0,
388 sys_nosys }, /* 168 = unimplemented */
389 #if defined(SYSVSEM) && !defined(_LP64)
390 { ns(struct freebsd_sys_semsys_args), 0,
391 (sy_call_t *)freebsd_sys_semsys }, /* 169 = semsys */
392 #else
393 { 0, 0, 0,
394 sys_nosys }, /* 169 = unimplemented 1.0 semsys */
395 #endif
396 #if defined(SYSVMSG) && !defined(_LP64)
397 { ns(struct freebsd_sys_msgsys_args), 0,
398 (sy_call_t *)freebsd_sys_msgsys }, /* 170 = msgsys */
399 #else
400 { 0, 0, 0,
401 sys_nosys }, /* 170 = unimplemented 1.0 msgsys */
402 #endif
403 #if defined(SYSVSHM) && !defined(_LP64)
404 { ns(struct freebsd_sys_shmsys_args), 0,
405 (sy_call_t *)freebsd_sys_shmsys }, /* 171 = shmsys */
406 #else
407 { 0, 0, 0,
408 sys_nosys }, /* 171 = unimplemented 1.0 shmsys */
409 #endif
410 { 0, 0, 0,
411 sys_nosys }, /* 172 = unimplemented */
412 { ns(struct sys_pread_args), SYCALL_NARGS64_VAL(1) | SYCALL_ARG4_64,
413 (sy_call_t *)sys_pread }, /* 173 = pread */
414 { ns(struct sys_pwrite_args), SYCALL_NARGS64_VAL(1) | SYCALL_ARG4_64,
415 (sy_call_t *)sys_pwrite }, /* 174 = pwrite */
416 { 0, 0, 0,
417 sys_nosys }, /* 175 = unimplemented */
418 #ifdef NTP
419 { ns(struct freebsd_ntp_adjtime_args), 0,
420 (sy_call_t *)freebsd_ntp_adjtime }, /* 176 = freebsd_ntp_adjtime */
421 #else
422 { 0, 0, 0,
423 sys_nosys }, /* 176 = excluded ntp_adjtime */
424 #endif
425 { 0, 0, 0,
426 sys_nosys }, /* 177 = unimplemented sfork */
427 { 0, 0, 0,
428 sys_nosys }, /* 178 = unimplemented getdescriptor */
429 { 0, 0, 0,
430 sys_nosys }, /* 179 = unimplemented setdescriptor */
431 { 0, 0, 0,
432 sys_nosys }, /* 180 = unimplemented */
433 { ns(struct sys_setgid_args), 0,
434 (sy_call_t *)sys_setgid }, /* 181 = setgid */
435 { ns(struct sys_setegid_args), 0,
436 (sy_call_t *)sys_setegid }, /* 182 = setegid */
437 { ns(struct sys_seteuid_args), 0,
438 (sy_call_t *)sys_seteuid }, /* 183 = seteuid */
439 #ifdef LFS
440 { ns(struct sys_lfs_bmapv_args), 0,
441 (sy_call_t *)sys_lfs_bmapv }, /* 184 = lfs_bmapv */
442 { ns(struct sys_lfs_markv_args), 0,
443 (sy_call_t *)sys_lfs_markv }, /* 185 = lfs_markv */
444 { ns(struct sys_lfs_segclean_args), 0,
445 (sy_call_t *)sys_lfs_segclean }, /* 186 = lfs_segclean */
446 { ns(struct compat_50_sys_lfs_segwait_args), 0,
447 (sy_call_t *)compat_50_sys_lfs_segwait },/* 187 = lfs_segwait */
448 #else
449 { 0, 0, 0,
450 sys_nosys }, /* 184 = unimplemented */
451 { 0, 0, 0,
452 sys_nosys }, /* 185 = unimplemented */
453 { 0, 0, 0,
454 sys_nosys }, /* 186 = unimplemented */
455 { 0, 0, 0,
456 sys_nosys }, /* 187 = unimplemented */
457 #endif
458 { ns(struct compat_12_sys_stat_args), 0,
459 (sy_call_t *)compat_12_sys_stat }, /* 188 = stat */
460 { ns(struct compat_12_sys_fstat_args), 0,
461 (sy_call_t *)compat_12_sys_fstat }, /* 189 = fstat */
462 { ns(struct compat_12_sys_lstat_args), 0,
463 (sy_call_t *)compat_12_sys_lstat }, /* 190 = lstat */
464 { ns(struct sys_pathconf_args), 0,
465 (sy_call_t *)sys_pathconf }, /* 191 = pathconf */
466 { ns(struct sys_fpathconf_args), 0,
467 (sy_call_t *)sys_fpathconf }, /* 192 = fpathconf */
468 { 0, 0, 0,
469 sys_nosys }, /* 193 = unimplemented */
470 { ns(struct sys_getrlimit_args), 0,
471 (sy_call_t *)sys_getrlimit }, /* 194 = getrlimit */
472 { ns(struct sys_setrlimit_args), 0,
473 (sy_call_t *)sys_setrlimit }, /* 195 = setrlimit */
474 { ns(struct compat_12_sys_getdirentries_args), 0,
475 (sy_call_t *)compat_12_sys_getdirentries },/* 196 = getdirentries */
476 { ns(struct freebsd_sys_mmap_args), SYCALL_NARGS64_VAL(1) | SYCALL_ARG6_64,
477 (sy_call_t *)freebsd_sys_mmap }, /* 197 = mmap */
478 { 0, 0, 0,
479 (sy_call_t *)sys_nosys }, /* 198 = __syscall */
480 { ns(struct sys_lseek_args), SYCALL_NARGS64_VAL(1) | SYCALL_ARG2_64 | SYCALL_RET_64,
481 (sy_call_t *)sys_lseek }, /* 199 = lseek */
482 { ns(struct sys_truncate_args), SYCALL_NARGS64_VAL(1) | SYCALL_ARG2_64,
483 (sy_call_t *)sys_truncate }, /* 200 = truncate */
484 { ns(struct sys_ftruncate_args), SYCALL_NARGS64_VAL(1) | SYCALL_ARG2_64,
485 (sy_call_t *)sys_ftruncate }, /* 201 = ftruncate */
486 { ns(struct freebsd_sys_sysctl_args), 0,
487 (sy_call_t *)freebsd_sys_sysctl }, /* 202 = sysctl */
488 { ns(struct sys_mlock_args), 0,
489 (sy_call_t *)sys_mlock }, /* 203 = mlock */
490 { ns(struct sys_munlock_args), 0,
491 (sy_call_t *)sys_munlock }, /* 204 = munlock */
492 #ifdef FREEBSD_BASED_ON_44LITE_R2
493 { ns(struct freebsd_sys_undelete_args), 0,
494 (sy_call_t *)freebsd_sys_undelete },/* 205 = undelete */
495 #else
496 { 0, 0, 0,
497 sys_nosys }, /* 205 = unimplemented undelete */
498 #endif
499 { ns(struct compat_50_sys_futimes_args), 0,
500 (sy_call_t *)compat_50_sys_futimes },/* 206 = futimes */
501 { ns(struct sys_getpgid_args), 0,
502 (sy_call_t *)sys_getpgid }, /* 207 = getpgid */
503 #if 0
504 { ns(struct sys_reboot_args), 0,
505 (sy_call_t *)sys_reboot }, /* 208 = reboot */
506 #else
507 { 0, 0, 0,
508 sys_nosys }, /* 208 = unimplemented newreboot */
509 #endif
510 { ns(struct sys_poll_args), 0,
511 (sy_call_t *)sys_poll }, /* 209 = poll */
512 { 0, 0, 0,
513 sys_nosys }, /* 210 = unimplemented */
514 { 0, 0, 0,
515 sys_nosys }, /* 211 = unimplemented */
516 { 0, 0, 0,
517 sys_nosys }, /* 212 = unimplemented */
518 { 0, 0, 0,
519 sys_nosys }, /* 213 = unimplemented */
520 { 0, 0, 0,
521 sys_nosys }, /* 214 = unimplemented */
522 { 0, 0, 0,
523 sys_nosys }, /* 215 = unimplemented */
524 { 0, 0, 0,
525 sys_nosys }, /* 216 = unimplemented */
526 { 0, 0, 0,
527 sys_nosys }, /* 217 = unimplemented */
528 { 0, 0, 0,
529 sys_nosys }, /* 218 = unimplemented */
530 { 0, 0, 0,
531 sys_nosys }, /* 219 = unimplemented */
532 #ifdef SYSVSEM
533 { ns(struct compat_14_sys___semctl_args), 0,
534 (sy_call_t *)compat_14_sys___semctl },/* 220 = __semctl */
535 { ns(struct sys_semget_args), 0,
536 (sy_call_t *)sys_semget }, /* 221 = semget */
537 { ns(struct sys_semop_args), 0,
538 (sy_call_t *)sys_semop }, /* 222 = semop */
539 { ns(struct sys_semconfig_args), 0,
540 (sy_call_t *)sys_semconfig }, /* 223 = semconfig */
541 #else
542 { 0, 0, 0,
543 sys_nosys }, /* 220 = unimplemented semctl */
544 { 0, 0, 0,
545 sys_nosys }, /* 221 = unimplemented semget */
546 { 0, 0, 0,
547 sys_nosys }, /* 222 = unimplemented semop */
548 { 0, 0, 0,
549 sys_nosys }, /* 223 = unimplemented semconfig */
550 #endif
551 #ifdef SYSVMSG
552 { ns(struct compat_14_sys_msgctl_args), 0,
553 (sy_call_t *)compat_14_sys_msgctl },/* 224 = msgctl */
554 { ns(struct sys_msgget_args), 0,
555 (sy_call_t *)sys_msgget }, /* 225 = msgget */
556 { ns(struct sys_msgsnd_args), 0,
557 (sy_call_t *)sys_msgsnd }, /* 226 = msgsnd */
558 { ns(struct sys_msgrcv_args), 0,
559 (sy_call_t *)sys_msgrcv }, /* 227 = msgrcv */
560 #else
561 { 0, 0, 0,
562 sys_nosys }, /* 224 = unimplemented msgctl */
563 { 0, 0, 0,
564 sys_nosys }, /* 225 = unimplemented msgget */
565 { 0, 0, 0,
566 sys_nosys }, /* 226 = unimplemented msgsnd */
567 { 0, 0, 0,
568 sys_nosys }, /* 227 = unimplemented msgrcv */
569 #endif
570 #ifdef SYSVSHM
571 { ns(struct sys_shmat_args), 0,
572 (sy_call_t *)sys_shmat }, /* 228 = shmat */
573 { ns(struct compat_14_sys_shmctl_args), 0,
574 (sy_call_t *)compat_14_sys_shmctl },/* 229 = shmctl */
575 { ns(struct sys_shmdt_args), 0,
576 (sy_call_t *)sys_shmdt }, /* 230 = shmdt */
577 { ns(struct sys_shmget_args), 0,
578 (sy_call_t *)sys_shmget }, /* 231 = shmget */
579 #else
580 { 0, 0, 0,
581 sys_nosys }, /* 228 = unimplemented shmat */
582 { 0, 0, 0,
583 sys_nosys }, /* 229 = unimplemented shmctl */
584 { 0, 0, 0,
585 sys_nosys }, /* 230 = unimplemented shmdt */
586 { 0, 0, 0,
587 sys_nosys }, /* 231 = unimplemented shmget */
588 #endif
589 { ns(struct compat_50_sys_clock_gettime_args), 0,
590 (sy_call_t *)compat_50_sys_clock_gettime },/* 232 = clock_gettime */
591 { ns(struct compat_50_sys_clock_settime_args), 0,
592 (sy_call_t *)compat_50_sys_clock_settime },/* 233 = clock_settime */
593 { ns(struct compat_50_sys_clock_getres_args), 0,
594 (sy_call_t *)compat_50_sys_clock_getres },/* 234 = clock_getres */
595 { 0, 0, 0,
596 sys_nosys }, /* 235 = unimplemented timer_create */
597 { 0, 0, 0,
598 sys_nosys }, /* 236 = unimplemented timer_delete */
599 { 0, 0, 0,
600 sys_nosys }, /* 237 = unimplemented timer_settime */
601 { 0, 0, 0,
602 sys_nosys }, /* 238 = unimplemented timer_gettime */
603 { 0, 0, 0,
604 sys_nosys }, /* 239 = unimplemented timer_getoverrun */
605 { ns(struct compat_50_sys_nanosleep_args), 0,
606 (sy_call_t *)compat_50_sys_nanosleep },/* 240 = nanosleep */
607 { 0, 0, 0,
608 sys_nosys }, /* 241 = unimplemented */
609 { 0, 0, 0,
610 sys_nosys }, /* 242 = unimplemented */
611 { 0, 0, 0,
612 sys_nosys }, /* 243 = unimplemented */
613 { 0, 0, 0,
614 sys_nosys }, /* 244 = unimplemented */
615 { 0, 0, 0,
616 sys_nosys }, /* 245 = unimplemented */
617 { 0, 0, 0,
618 sys_nosys }, /* 246 = unimplemented */
619 { 0, 0, 0,
620 sys_nosys }, /* 247 = unimplemented */
621 { 0, 0, 0,
622 sys_nosys }, /* 248 = unimplemented */
623 { 0, 0, 0,
624 sys_nosys }, /* 249 = unimplemented */
625 { ns(struct sys_minherit_args), 0,
626 (sy_call_t *)sys_minherit }, /* 250 = minherit */
627 { ns(struct freebsd_sys_rfork_args), 0,
628 (sy_call_t *)freebsd_sys_rfork }, /* 251 = rfork */
629 { 0, 0, 0,
630 sys_nosys }, /* 252 = unimplemented openbsd_poll */
631 { 0, 0, 0,
632 (sy_call_t *)sys_issetugid }, /* 253 = issetugid */
633 { ns(struct sys_lchown_args), 0,
634 (sy_call_t *)sys_lchown }, /* 254 = lchown */
635 { 0, 0, 0,
636 sys_nosys }, /* 255 = unimplemented */
637 { 0, 0, 0,
638 sys_nosys }, /* 256 = unimplemented */
639 { 0, 0, 0,
640 sys_nosys }, /* 257 = unimplemented */
641 { 0, 0, 0,
642 sys_nosys }, /* 258 = unimplemented */
643 { 0, 0, 0,
644 sys_nosys }, /* 259 = unimplemented */
645 { 0, 0, 0,
646 sys_nosys }, /* 260 = unimplemented */
647 { 0, 0, 0,
648 sys_nosys }, /* 261 = unimplemented */
649 { 0, 0, 0,
650 sys_nosys }, /* 262 = unimplemented */
651 { 0, 0, 0,
652 sys_nosys }, /* 263 = unimplemented */
653 { 0, 0, 0,
654 sys_nosys }, /* 264 = unimplemented */
655 { 0, 0, 0,
656 sys_nosys }, /* 265 = unimplemented */
657 { 0, 0, 0,
658 sys_nosys }, /* 266 = unimplemented */
659 { 0, 0, 0,
660 sys_nosys }, /* 267 = unimplemented */
661 { 0, 0, 0,
662 sys_nosys }, /* 268 = unimplemented */
663 { 0, 0, 0,
664 sys_nosys }, /* 269 = unimplemented */
665 { 0, 0, 0,
666 sys_nosys }, /* 270 = unimplemented */
667 { 0, 0, 0,
668 sys_nosys }, /* 271 = unimplemented */
669 { ns(struct compat_30_sys_getdents_args), 0,
670 (sy_call_t *)compat_30_sys_getdents },/* 272 = getdents */
671 { 0, 0, 0,
672 sys_nosys }, /* 273 = unimplemented */
673 { ns(struct sys_lchmod_args), 0,
674 (sy_call_t *)sys_lchmod }, /* 274 = lchmod */
675 { ns(struct sys_lchown_args), 0,
676 (sy_call_t *)sys_lchown }, /* 275 = netbsd_lchown */
677 { ns(struct compat_50_sys_lutimes_args), 0,
678 (sy_call_t *)compat_50_sys_lutimes },/* 276 = lutimes */
679 { ns(struct sys___msync13_args), 0,
680 (sy_call_t *)sys___msync13 }, /* 277 = __msync13 */
681 { ns(struct compat_30_sys___stat13_args), 0,
682 (sy_call_t *)compat_30_sys___stat13 },/* 278 = __stat13 */
683 { ns(struct compat_30_sys___fstat13_args), 0,
684 (sy_call_t *)compat_30_sys___fstat13 },/* 279 = __fstat13 */
685 { ns(struct compat_30_sys___lstat13_args), 0,
686 (sy_call_t *)compat_30_sys___lstat13 },/* 280 = __lstat13 */
687 { 0, 0, 0,
688 sys_nosys }, /* 281 = unimplemented */
689 { 0, 0, 0,
690 sys_nosys }, /* 282 = unimplemented */
691 { 0, 0, 0,
692 sys_nosys }, /* 283 = unimplemented */
693 { 0, 0, 0,
694 sys_nosys }, /* 284 = unimplemented */
695 { 0, 0, 0,
696 sys_nosys }, /* 285 = unimplemented */
697 { 0, 0, 0,
698 sys_nosys }, /* 286 = unimplemented */
699 { 0, 0, 0,
700 sys_nosys }, /* 287 = unimplemented */
701 { 0, 0, 0,
702 sys_nosys }, /* 288 = unimplemented */
703 { 0, 0, 0,
704 sys_nosys }, /* 289 = unimplemented */
705 { 0, 0, 0,
706 sys_nosys }, /* 290 = unimplemented */
707 { 0, 0, 0,
708 sys_nosys }, /* 291 = unimplemented */
709 { 0, 0, 0,
710 sys_nosys }, /* 292 = unimplemented */
711 { 0, 0, 0,
712 sys_nosys }, /* 293 = unimplemented */
713 { 0, 0, 0,
714 sys_nosys }, /* 294 = unimplemented */
715 { 0, 0, 0,
716 sys_nosys }, /* 295 = unimplemented */
717 { 0, 0, 0,
718 sys_nosys }, /* 296 = unimplemented */
719 { ns(struct compat_20_sys_fhstatfs_args), 0,
720 (sy_call_t *)compat_20_sys_fhstatfs },/* 297 = fhstatfs */
721 { ns(struct compat_30_sys_fhopen_args), 0,
722 (sy_call_t *)compat_30_sys_fhopen },/* 298 = fhopen */
723 { ns(struct compat_30_sys_fhstat_args), 0,
724 (sy_call_t *)compat_30_sys_fhstat },/* 299 = fhstat */
725 { 0, 0, 0,
726 sys_nosys }, /* 300 = unimplemented modnext */
727 { 0, 0, 0,
728 sys_nosys }, /* 301 = unimplemented modstat */
729 { 0, 0, 0,
730 sys_nosys }, /* 302 = unimplemented modfnext */
731 { 0, 0, 0,
732 sys_nosys }, /* 303 = unimplemented modfind */
733 { 0, 0, 0,
734 sys_nosys }, /* 304 = unimplemented kldload */
735 { 0, 0, 0,
736 sys_nosys }, /* 305 = unimplemented kldunload */
737 { 0, 0, 0,
738 sys_nosys }, /* 306 = unimplemented kldfind */
739 { 0, 0, 0,
740 sys_nosys }, /* 307 = unimplemented kldnext */
741 { 0, 0, 0,
742 sys_nosys }, /* 308 = unimplemented kldstat */
743 { 0, 0, 0,
744 sys_nosys }, /* 309 = unimplemented kldfirstmod */
745 { ns(struct sys_getsid_args), 0,
746 (sy_call_t *)sys_getsid }, /* 310 = getsid */
747 { 0, 0, 0,
748 sys_nosys }, /* 311 = unimplemented setresuid */
749 { 0, 0, 0,
750 sys_nosys }, /* 312 = unimplemented setresgid */
751 { 0, 0, 0,
752 sys_nosys }, /* 313 = unimplemented signanosleep */
753 { 0, 0, 0,
754 sys_nosys }, /* 314 = unimplemented aio_return */
755 { 0, 0, 0,
756 sys_nosys }, /* 315 = unimplemented aio_suspend */
757 { 0, 0, 0,
758 sys_nosys }, /* 316 = unimplemented aio_cancel */
759 { 0, 0, 0,
760 sys_nosys }, /* 317 = unimplemented aio_error */
761 { 0, 0, 0,
762 sys_nosys }, /* 318 = unimplemented aio_read */
763 { 0, 0, 0,
764 sys_nosys }, /* 319 = unimplemented aio_write */
765 { 0, 0, 0,
766 sys_nosys }, /* 320 = unimplemented lio_listio */
767 { 0, 0, 0,
768 (sy_call_t *)freebsd_sys_yield }, /* 321 = yield */
769 { 0, 0, 0,
770 sys_nosys }, /* 322 = unimplemented thr_sleep */
771 { 0, 0, 0,
772 sys_nosys }, /* 323 = unimplemented thr_wakeup */
773 { ns(struct sys_mlockall_args), 0,
774 (sy_call_t *)sys_mlockall }, /* 324 = mlockall */
775 { 0, 0, 0,
776 (sy_call_t *)sys_munlockall }, /* 325 = munlockall */
777 { ns(struct sys___getcwd_args), 0,
778 (sy_call_t *)sys___getcwd }, /* 326 = __getcwd */
779 { ns(struct freebsd_sys_sched_setparam_args), 0,
780 (sy_call_t *)freebsd_sys_sched_setparam },/* 327 = sched_setparam */
781 { ns(struct freebsd_sys_sched_getparam_args), 0,
782 (sy_call_t *)freebsd_sys_sched_getparam },/* 328 = sched_getparam */
783 { ns(struct freebsd_sys_sched_setscheduler_args), 0,
784 (sy_call_t *)freebsd_sys_sched_setscheduler },/* 329 = sched_setscheduler */
785 { ns(struct freebsd_sys_sched_getscheduler_args), 0,
786 (sy_call_t *)freebsd_sys_sched_getscheduler },/* 330 = sched_getscheduler */
787 { 0, 0, 0,
788 (sy_call_t *)freebsd_sys_sched_yield },/* 331 = sched_yield */
789 { ns(struct freebsd_sys_sched_get_priority_max_args), 0,
790 (sy_call_t *)freebsd_sys_sched_get_priority_max },/* 332 = sched_get_priority_max */
791 { ns(struct freebsd_sys_sched_get_priority_min_args), 0,
792 (sy_call_t *)freebsd_sys_sched_get_priority_min },/* 333 = sched_get_priority_min */
793 { 0, 0, 0,
794 sys_nosys }, /* 334 = unimplemented sched_rr_get_interval */
795 { ns(struct freebsd_sys_utrace_args), 0,
796 (sy_call_t *)freebsd_sys_utrace }, /* 335 = utrace */
797 { 0, 0, 0,
798 sys_nosys }, /* 336 = unimplemented sendfile */
799 { 0, 0, 0,
800 sys_nosys }, /* 337 = unimplemented kldsym */
801 { 0, 0, 0,
802 sys_nosys }, /* 338 = unimplemented jail */
803 { 0, 0, 0,
804 sys_nosys }, /* 339 = unimplemented pioctl */
805 { ns(struct sys___sigprocmask14_args), 0,
806 (sy_call_t *)sys___sigprocmask14 }, /* 340 = __sigprocmask14 */
807 { ns(struct sys___sigsuspend14_args), 0,
808 (sy_call_t *)sys___sigsuspend14 }, /* 341 = __sigsuspend14 */
809 { ns(struct freebsd_sys_sigaction4_args), 0,
810 (sy_call_t *)freebsd_sys_sigaction4 },/* 342 = sigaction4 */
811 { ns(struct sys___sigpending14_args), 0,
812 (sy_call_t *)sys___sigpending14 }, /* 343 = __sigpending14 */
813 { 0, 0, 0,
814 sys_nosys }, /* 344 = unimplemented 4.0 sigreturn */
815 { 0, 0, 0,
816 sys_nosys }, /* 345 = unimplemented sigtimedwait */
817 { 0, 0, 0,
818 sys_nosys }, /* 346 = unimplemented sigwaitinfo */
819 { 0, 0, 0,
820 sys_nosys }, /* 347 = unimplemented __acl_get_file */
821 { 0, 0, 0,
822 sys_nosys }, /* 348 = unimplemented __acl_set_file */
823 { 0, 0, 0,
824 sys_nosys }, /* 349 = unimplemented __acl_get_fd */
825 { 0, 0, 0,
826 sys_nosys }, /* 350 = unimplemented __acl_set_fd */
827 { 0, 0, 0,
828 sys_nosys }, /* 351 = unimplemented __acl_delete_file */
829 { 0, 0, 0,
830 sys_nosys }, /* 352 = unimplemented __acl_delete_fd */
831 { 0, 0, 0,
832 sys_nosys }, /* 353 = unimplemented __acl_aclcheck_file */
833 { 0, 0, 0,
834 sys_nosys }, /* 354 = unimplemented __acl_aclcheck_fd */
835 { 0, 0, 0,
836 sys_nosys }, /* 355 = unimplemented extattrctl */
837 { 0, 0, 0,
838 sys_nosys }, /* 356 = unimplemented extattr_set_file */
839 { 0, 0, 0,
840 sys_nosys }, /* 357 = unimplemented extattr_get_file */
841 { 0, 0, 0,
842 sys_nosys }, /* 358 = unimplemented extattr_delete_file */
843 { 0, 0, 0,
844 sys_nosys }, /* 359 = unimplemented aio_waitcomplete */
845 { 0, 0, 0,
846 sys_nosys }, /* 360 = unimplemented getresuid */
847 { 0, 0, 0,
848 sys_nosys }, /* 361 = unimplemented getresgid */
849 { 0, 0, 0,
850 sys_nosys }, /* 362 = unimplemented kqueue */
851 { 0, 0, 0,
852 sys_nosys }, /* 363 = unimplemented kevent */
853 { 0, 0, 0,
854 sys_nosys }, /* 364 = unimplemented __cap_get_proc */
855 { 0, 0, 0,
856 sys_nosys }, /* 365 = unimplemented __cap_set_proc */
857 { 0, 0, 0,
858 sys_nosys }, /* 366 = unimplemented __cap_get_fd */
859 { 0, 0, 0,
860 sys_nosys }, /* 367 = unimplemented __cap_get_file */
861 { 0, 0, 0,
862 sys_nosys }, /* 368 = unimplemented __cap_set_fd */
863 { 0, 0, 0,
864 sys_nosys }, /* 369 = unimplemented __cap_set_file */
865 { 0, 0, 0,
866 sys_nosys }, /* 370 = unimplemented lkmressym */
867 { 0, 0, 0,
868 sys_nosys }, /* 371 = unimplemented extattr_set_fd */
869 { 0, 0, 0,
870 sys_nosys }, /* 372 = unimplemented extattr_get_fd */
871 { 0, 0, 0,
872 sys_nosys }, /* 373 = unimplemented extattr_delete_fd */
873 { 0, 0, 0,
874 sys_nosys }, /* 374 = unimplemented __setugid */
875 { 0, 0, 0,
876 sys_nosys }, /* 375 = unimplemented nfsclnt */
877 { 0, 0, 0,
878 sys_nosys }, /* 376 = unimplemented eaccess */
879 { 0, 0, 0,
880 sys_nosys }, /* 377 = unimplemented afs_syscall */
881 { 0, 0, 0,
882 sys_nosys }, /* 378 = unimplemented nmount */
883 { 0, 0, 0,
884 sys_nosys }, /* 379 = unimplemented kse_exit */
885 { 0, 0, 0,
886 sys_nosys }, /* 380 = unimplemented kse_wakeup */
887 { 0, 0, 0,
888 sys_nosys }, /* 381 = unimplemented kse_create */
889 { 0, 0, 0,
890 sys_nosys }, /* 382 = unimplemented kse_thr_interrupt */
891 { 0, 0, 0,
892 sys_nosys }, /* 383 = unimplemented kse_release */
893 { 0, 0, 0,
894 sys_nosys }, /* 384 = unimplemented __mac_get_proc */
895 { 0, 0, 0,
896 sys_nosys }, /* 385 = unimplemented __mac_set_proc */
897 { 0, 0, 0,
898 sys_nosys }, /* 386 = unimplemented __mac_get_fd */
899 { 0, 0, 0,
900 sys_nosys }, /* 387 = unimplemented __mac_get_file */
901 { 0, 0, 0,
902 sys_nosys }, /* 388 = unimplemented __mac_set_fd */
903 { 0, 0, 0,
904 sys_nosys }, /* 389 = unimplemented __mac_set_file */
905 { 0, 0, 0,
906 sys_nosys }, /* 390 = unimplemented kenv */
907 { ns(struct sys_lchflags_args), 0,
908 (sy_call_t *)sys_lchflags }, /* 391 = lchflags */
909 { ns(struct sys_uuidgen_args), 0,
910 (sy_call_t *)sys_uuidgen }, /* 392 = uuidgen */
911 { 0, 0, 0,
912 sys_nosys }, /* 393 = unimplemented sendfile */
913 { 0, 0, 0,
914 sys_nosys }, /* 394 = unimplemented mac_syscall */
915 { 0, 0, 0,
916 sys_nosys }, /* 395 = unimplemented getfsstat */
917 { 0, 0, 0,
918 sys_nosys }, /* 396 = unimplemented statfs */
919 { 0, 0, 0,
920 sys_nosys }, /* 397 = unimplemented fsstatfs */
921 { 0, 0, 0,
922 sys_nosys }, /* 398 = unimplemented fhstatfs */
923 { 0, 0, 0,
924 sys_nosys }, /* 399 = unimplemented nosys */
925 #if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
926 { ns(struct sys__ksem_close_args), 0,
927 (sy_call_t *)sys__ksem_close }, /* 400 = _ksem_close */
928 { ns(struct sys__ksem_post_args), 0,
929 (sy_call_t *)sys__ksem_post }, /* 401 = _ksem_post */
930 { ns(struct sys__ksem_wait_args), 0,
931 (sy_call_t *)sys__ksem_wait }, /* 402 = _ksem_wait */
932 { ns(struct sys__ksem_trywait_args), 0,
933 (sy_call_t *)sys__ksem_trywait }, /* 403 = _ksem_trywait */
934 { 0, 0, 0,
935 sys_nosys }, /* 404 = unimplemented ksem_init */
936 { 0, 0, 0,
937 sys_nosys }, /* 405 = unimplemented ksem_open */
938 { ns(struct sys__ksem_unlink_args), 0,
939 (sy_call_t *)sys__ksem_unlink }, /* 406 = _ksem_unlink */
940 { ns(struct sys__ksem_getvalue_args), 0,
941 (sy_call_t *)sys__ksem_getvalue }, /* 407 = _ksem_getvalue */
942 { ns(struct sys__ksem_destroy_args), 0,
943 (sy_call_t *)sys__ksem_destroy }, /* 408 = _ksem_destroy */
944 #else
945 { 0, 0, 0,
946 sys_nosys }, /* 400 = excluded ksem_close */
947 { 0, 0, 0,
948 sys_nosys }, /* 401 = excluded ksem_post */
949 { 0, 0, 0,
950 sys_nosys }, /* 402 = excluded ksem_wait */
951 { 0, 0, 0,
952 sys_nosys }, /* 403 = excluded ksem_trywait */
953 { 0, 0, 0,
954 sys_nosys }, /* 404 = excluded ksem_init */
955 { 0, 0, 0,
956 sys_nosys }, /* 405 = excluded ksem_open */
957 { 0, 0, 0,
958 sys_nosys }, /* 406 = excluded ksem_unlink */
959 { 0, 0, 0,
960 sys_nosys }, /* 407 = excluded ksem_getvalue */
961 { 0, 0, 0,
962 sys_nosys }, /* 408 = excluded ksem_destroy */
963 #endif
964 { 0, 0, 0,
965 sys_nosys }, /* 409 = unimplemented __mac_get_pid */
966 { 0, 0, 0,
967 sys_nosys }, /* 410 = unimplemented __mac_get_link */
968 { 0, 0, 0,
969 sys_nosys }, /* 411 = unimplemented __mac_set_link */
970 { 0, 0, 0,
971 sys_nosys }, /* 412 = unimplemented extattr_set_link */
972 { 0, 0, 0,
973 sys_nosys }, /* 413 = unimplemented extattr_get_link */
974 { 0, 0, 0,
975 sys_nosys }, /* 414 = unimplemented extattr_delete_link */
976 { 0, 0, 0,
977 sys_nosys }, /* 415 = unimplemented __mac_execve */
978 { 0, 0, 0,
979 sys_nosys }, /* 416 = unimplemented sigaction */
980 { 0, 0, 0,
981 sys_nosys }, /* 417 = unimplemented sigreturn */
982 { 0, 0, 0,
983 sys_nosys }, /* 418 = unimplemented __xstat */
984 { 0, 0, 0,
985 sys_nosys }, /* 419 = unimplemented __xfstat */
986 { 0, 0, 0,
987 sys_nosys }, /* 420 = unimplemented __xlstat */
988 { 0, 0, 0,
989 sys_nosys }, /* 421 = unimplemented getcontext */
990 { 0, 0, 0,
991 sys_nosys }, /* 422 = unimplemented setcontext */
992 { 0, 0, 0,
993 sys_nosys }, /* 423 = unimplemented swapcontext */
994 { 0, 0, 0,
995 sys_nosys }, /* 424 = unimplemented swapoff */
996 { 0, 0, 0,
997 sys_nosys }, /* 425 = unimplemented __acl_get_link */
998 { 0, 0, 0,
999 sys_nosys }, /* 426 = unimplemented __acl_set_link */
1000 { 0, 0, 0,
1001 sys_nosys }, /* 427 = unimplemented __acl_delete_link */
1002 { 0, 0, 0,
1003 sys_nosys }, /* 428 = unimplemented __acl_aclcheck_link */
1004 { 0, 0, 0,
1005 sys_nosys }, /* 429 = unimplemented sigwait */
1006 { 0, 0, 0,
1007 sys_nosys }, /* 430 = unimplemented thr_create */
1008 { 0, 0, 0,
1009 sys_nosys }, /* 431 = unimplemented thr_exit */
1010 { 0, 0, 0,
1011 sys_nosys }, /* 432 = unimplemented thr_self */
1012 { 0, 0, 0,
1013 sys_nosys }, /* 433 = unimplemented thr_kill */
1014 { 0, 0, 0,
1015 sys_nosys }, /* 434 = unimplemented _umtx_lock */
1016 { 0, 0, 0,
1017 sys_nosys }, /* 435 = unimplemented _umtx_unlock */
1018 { 0, 0, 0,
1019 sys_nosys }, /* 436 = unimplemented jail_attach */
1020 { 0, 0, 0,
1021 sys_nosys }, /* 437 = unimplemented extattr_list_fd */
1022 { 0, 0, 0,
1023 sys_nosys }, /* 438 = unimplemented extattr_list_file */
1024 { 0, 0, 0,
1025 sys_nosys }, /* 439 = unimplemented extattr_list_link */
1026 { 0, 0, 0,
1027 sys_nosys }, /* 440 = filler */
1028 { 0, 0, 0,
1029 sys_nosys }, /* 441 = filler */
1030 { 0, 0, 0,
1031 sys_nosys }, /* 442 = filler */
1032 { 0, 0, 0,
1033 sys_nosys }, /* 443 = filler */
1034 { 0, 0, 0,
1035 sys_nosys }, /* 444 = filler */
1036 { 0, 0, 0,
1037 sys_nosys }, /* 445 = filler */
1038 { 0, 0, 0,
1039 sys_nosys }, /* 446 = filler */
1040 { 0, 0, 0,
1041 sys_nosys }, /* 447 = filler */
1042 { 0, 0, 0,
1043 sys_nosys }, /* 448 = filler */
1044 { 0, 0, 0,
1045 sys_nosys }, /* 449 = filler */
1046 { 0, 0, 0,
1047 sys_nosys }, /* 450 = filler */
1048 { 0, 0, 0,
1049 sys_nosys }, /* 451 = filler */
1050 { 0, 0, 0,
1051 sys_nosys }, /* 452 = filler */
1052 { 0, 0, 0,
1053 sys_nosys }, /* 453 = filler */
1054 { 0, 0, 0,
1055 sys_nosys }, /* 454 = filler */
1056 { 0, 0, 0,
1057 sys_nosys }, /* 455 = filler */
1058 { 0, 0, 0,
1059 sys_nosys }, /* 456 = filler */
1060 { 0, 0, 0,
1061 sys_nosys }, /* 457 = filler */
1062 { 0, 0, 0,
1063 sys_nosys }, /* 458 = filler */
1064 { 0, 0, 0,
1065 sys_nosys }, /* 459 = filler */
1066 { 0, 0, 0,
1067 sys_nosys }, /* 460 = filler */
1068 { 0, 0, 0,
1069 sys_nosys }, /* 461 = filler */
1070 { 0, 0, 0,
1071 sys_nosys }, /* 462 = filler */
1072 { 0, 0, 0,
1073 sys_nosys }, /* 463 = filler */
1074 { 0, 0, 0,
1075 sys_nosys }, /* 464 = filler */
1076 { 0, 0, 0,
1077 sys_nosys }, /* 465 = filler */
1078 { 0, 0, 0,
1079 sys_nosys }, /* 466 = filler */
1080 { 0, 0, 0,
1081 sys_nosys }, /* 467 = filler */
1082 { 0, 0, 0,
1083 sys_nosys }, /* 468 = filler */
1084 { 0, 0, 0,
1085 sys_nosys }, /* 469 = filler */
1086 { 0, 0, 0,
1087 sys_nosys }, /* 470 = filler */
1088 { 0, 0, 0,
1089 sys_nosys }, /* 471 = filler */
1090 { 0, 0, 0,
1091 sys_nosys }, /* 472 = filler */
1092 { 0, 0, 0,
1093 sys_nosys }, /* 473 = filler */
1094 { 0, 0, 0,
1095 sys_nosys }, /* 474 = filler */
1096 { 0, 0, 0,
1097 sys_nosys }, /* 475 = filler */
1098 { 0, 0, 0,
1099 sys_nosys }, /* 476 = filler */
1100 { 0, 0, 0,
1101 sys_nosys }, /* 477 = filler */
1102 { 0, 0, 0,
1103 sys_nosys }, /* 478 = filler */
1104 { 0, 0, 0,
1105 sys_nosys }, /* 479 = filler */
1106 { 0, 0, 0,
1107 sys_nosys }, /* 480 = filler */
1108 { 0, 0, 0,
1109 sys_nosys }, /* 481 = filler */
1110 { 0, 0, 0,
1111 sys_nosys }, /* 482 = filler */
1112 { 0, 0, 0,
1113 sys_nosys }, /* 483 = filler */
1114 { 0, 0, 0,
1115 sys_nosys }, /* 484 = filler */
1116 { 0, 0, 0,
1117 sys_nosys }, /* 485 = filler */
1118 { 0, 0, 0,
1119 sys_nosys }, /* 486 = filler */
1120 { 0, 0, 0,
1121 sys_nosys }, /* 487 = filler */
1122 { 0, 0, 0,
1123 sys_nosys }, /* 488 = filler */
1124 { 0, 0, 0,
1125 sys_nosys }, /* 489 = filler */
1126 { 0, 0, 0,
1127 sys_nosys }, /* 490 = filler */
1128 { 0, 0, 0,
1129 sys_nosys }, /* 491 = filler */
1130 { 0, 0, 0,
1131 sys_nosys }, /* 492 = filler */
1132 { 0, 0, 0,
1133 sys_nosys }, /* 493 = filler */
1134 { 0, 0, 0,
1135 sys_nosys }, /* 494 = filler */
1136 { 0, 0, 0,
1137 sys_nosys }, /* 495 = filler */
1138 { 0, 0, 0,
1139 sys_nosys }, /* 496 = filler */
1140 { 0, 0, 0,
1141 sys_nosys }, /* 497 = filler */
1142 { 0, 0, 0,
1143 sys_nosys }, /* 498 = filler */
1144 { 0, 0, 0,
1145 sys_nosys }, /* 499 = filler */
1146 { 0, 0, 0,
1147 sys_nosys }, /* 500 = filler */
1148 { 0, 0, 0,
1149 sys_nosys }, /* 501 = filler */
1150 { 0, 0, 0,
1151 sys_nosys }, /* 502 = filler */
1152 { 0, 0, 0,
1153 sys_nosys }, /* 503 = filler */
1154 { 0, 0, 0,
1155 sys_nosys }, /* 504 = filler */
1156 { 0, 0, 0,
1157 sys_nosys }, /* 505 = filler */
1158 { 0, 0, 0,
1159 sys_nosys }, /* 506 = filler */
1160 { 0, 0, 0,
1161 sys_nosys }, /* 507 = filler */
1162 { 0, 0, 0,
1163 sys_nosys }, /* 508 = filler */
1164 { 0, 0, 0,
1165 sys_nosys }, /* 509 = filler */
1166 { 0, 0, 0,
1167 sys_nosys }, /* 510 = filler */
1168 { 0, 0, 0,
1169 sys_nosys }, /* 511 = filler */