xref: /freebsd/sys/compat/freebsd32/freebsd32_sysent.c (revision 0cceebeeb29f7e11bffeb1ce575a289e075a577c)
1 /*
2  * System call switch table.
3  *
4  * DO NOT EDIT-- this file is automatically generated.
5  * $FreeBSD$
6  * created from FreeBSD: src/sys/compat/freebsd32/syscalls.master,v 1.67 2006/06/27 14:46:30 jhb Exp
7  */
8 
9 #include "opt_compat.h"
10 
11 #include <bsm/audit_kevents.h>
12 #include <sys/param.h>
13 #include <sys/sysent.h>
14 #include <sys/sysproto.h>
15 #include <sys/mount.h>
16 #include <compat/freebsd32/freebsd32.h>
17 #include <compat/freebsd32/freebsd32_proto.h>
18 
19 #define AS(name) (sizeof(struct name) / sizeof(register_t))
20 
21 #ifdef COMPAT_43
22 #define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)
23 #else
24 #define compat(n, name) 0, (sy_call_t *)nosys
25 #endif
26 
27 #ifdef COMPAT_FREEBSD4
28 #define compat4(n, name) n, (sy_call_t *)__CONCAT(freebsd4_,name)
29 #else
30 #define compat4(n, name) 0, (sy_call_t *)nosys
31 #endif
32 
33 /* The casts are bogus but will do for now. */
34 struct sysent freebsd32_sysent[] = {
35 	{ SYF_MPSAFE | 0, (sy_call_t *)nosys, AUE_NULL },	/* 0 = syscall */
36 	{ SYF_MPSAFE | AS(sys_exit_args), (sy_call_t *)sys_exit, AUE_EXIT },	/* 1 = exit */
37 	{ SYF_MPSAFE | 0, (sy_call_t *)fork, AUE_FORK },	/* 2 = fork */
38 	{ SYF_MPSAFE | AS(read_args), (sy_call_t *)read, AUE_READ },	/* 3 = read */
39 	{ SYF_MPSAFE | AS(write_args), (sy_call_t *)write, AUE_WRITE },	/* 4 = write */
40 	{ SYF_MPSAFE | AS(open_args), (sy_call_t *)open, AUE_OPEN_RWTC },	/* 5 = open */
41 	{ SYF_MPSAFE | AS(close_args), (sy_call_t *)close, AUE_CLOSE },	/* 6 = close */
42 	{ SYF_MPSAFE | AS(freebsd32_wait4_args), (sy_call_t *)freebsd32_wait4, AUE_WAIT4 },	/* 7 = freebsd32_wait4 */
43 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 8 = obsolete old creat */
44 	{ SYF_MPSAFE | AS(link_args), (sy_call_t *)link, AUE_LINK },	/* 9 = link */
45 	{ SYF_MPSAFE | AS(unlink_args), (sy_call_t *)unlink, AUE_UNLINK },	/* 10 = unlink */
46 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 11 = obsolete execv */
47 	{ SYF_MPSAFE | AS(chdir_args), (sy_call_t *)chdir, AUE_CHDIR },	/* 12 = chdir */
48 	{ SYF_MPSAFE | AS(fchdir_args), (sy_call_t *)fchdir, AUE_FCHDIR },	/* 13 = fchdir */
49 	{ SYF_MPSAFE | AS(mknod_args), (sy_call_t *)mknod, AUE_MKNOD },	/* 14 = mknod */
50 	{ SYF_MPSAFE | AS(chmod_args), (sy_call_t *)chmod, AUE_CHMOD },	/* 15 = chmod */
51 	{ SYF_MPSAFE | AS(chown_args), (sy_call_t *)chown, AUE_CHOWN },	/* 16 = chown */
52 	{ SYF_MPSAFE | AS(obreak_args), (sy_call_t *)obreak, AUE_NULL },	/* 17 = break */
53 	{ compat4(SYF_MPSAFE | AS(freebsd4_freebsd32_getfsstat_args),freebsd32_getfsstat), AUE_GETFSSTAT },	/* 18 = old freebsd32_getfsstat */
54 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 19 = obsolete olseek */
55 	{ SYF_MPSAFE | 0, (sy_call_t *)getpid, AUE_GETPID },	/* 20 = getpid */
56 	{ SYF_MPSAFE | AS(mount_args), (sy_call_t *)mount, AUE_MOUNT },	/* 21 = mount */
57 	{ SYF_MPSAFE | AS(unmount_args), (sy_call_t *)unmount, AUE_UMOUNT },	/* 22 = unmount */
58 	{ SYF_MPSAFE | AS(setuid_args), (sy_call_t *)setuid, AUE_SETUID },	/* 23 = setuid */
59 	{ SYF_MPSAFE | 0, (sy_call_t *)getuid, AUE_GETUID },	/* 24 = getuid */
60 	{ SYF_MPSAFE | 0, (sy_call_t *)geteuid, AUE_GETEUID },	/* 25 = geteuid */
61 	{ SYF_MPSAFE | AS(ptrace_args), (sy_call_t *)ptrace, AUE_PTRACE },	/* 26 = ptrace */
62 	{ SYF_MPSAFE | AS(freebsd32_recvmsg_args), (sy_call_t *)freebsd32_recvmsg, AUE_RECVMSG },	/* 27 = freebsd32_recvmsg */
63 	{ SYF_MPSAFE | AS(freebsd32_sendmsg_args), (sy_call_t *)freebsd32_sendmsg, AUE_SENDMSG },	/* 28 = freebsd32_sendmsg */
64 	{ SYF_MPSAFE | AS(freebsd32_recvfrom_args), (sy_call_t *)freebsd32_recvfrom, AUE_RECVFROM },	/* 29 = freebsd32_recvfrom */
65 	{ SYF_MPSAFE | AS(accept_args), (sy_call_t *)accept, AUE_ACCEPT },	/* 30 = accept */
66 	{ SYF_MPSAFE | AS(getpeername_args), (sy_call_t *)getpeername, AUE_GETPEERNAME },	/* 31 = getpeername */
67 	{ SYF_MPSAFE | AS(getsockname_args), (sy_call_t *)getsockname, AUE_GETSOCKNAME },	/* 32 = getsockname */
68 	{ SYF_MPSAFE | AS(access_args), (sy_call_t *)access, AUE_ACCESS },	/* 33 = access */
69 	{ SYF_MPSAFE | AS(chflags_args), (sy_call_t *)chflags, AUE_CHFLAGS },	/* 34 = chflags */
70 	{ SYF_MPSAFE | AS(fchflags_args), (sy_call_t *)fchflags, AUE_FCHFLAGS },	/* 35 = fchflags */
71 	{ SYF_MPSAFE | 0, (sy_call_t *)sync, AUE_SYNC },	/* 36 = sync */
72 	{ SYF_MPSAFE | AS(kill_args), (sy_call_t *)kill, AUE_KILL },	/* 37 = kill */
73 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 38 = ostat */
74 	{ SYF_MPSAFE | 0, (sy_call_t *)getppid, AUE_GETPPID },	/* 39 = getppid */
75 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 40 = olstat */
76 	{ SYF_MPSAFE | AS(dup_args), (sy_call_t *)dup, AUE_DUP },	/* 41 = dup */
77 	{ SYF_MPSAFE | 0, (sy_call_t *)pipe, AUE_PIPE },	/* 42 = pipe */
78 	{ SYF_MPSAFE | 0, (sy_call_t *)getegid, AUE_GETEGID },	/* 43 = getegid */
79 	{ SYF_MPSAFE | AS(profil_args), (sy_call_t *)profil, AUE_PROFILE },	/* 44 = profil */
80 	{ SYF_MPSAFE | AS(ktrace_args), (sy_call_t *)ktrace, AUE_KTRACE },	/* 45 = ktrace */
81 	{ compat(SYF_MPSAFE | AS(ofreebsd32_sigaction_args),freebsd32_sigaction), AUE_SIGACTION },	/* 46 = old freebsd32_sigaction */
82 	{ SYF_MPSAFE | 0, (sy_call_t *)getgid, AUE_GETGID },	/* 47 = getgid */
83 	{ compat(SYF_MPSAFE | AS(ofreebsd32_sigprocmask_args),freebsd32_sigprocmask), AUE_SIGPROCMASK },	/* 48 = old freebsd32_sigprocmask */
84 	{ SYF_MPSAFE | AS(getlogin_args), (sy_call_t *)getlogin, AUE_GETLOGIN },	/* 49 = getlogin */
85 	{ SYF_MPSAFE | AS(setlogin_args), (sy_call_t *)setlogin, AUE_SETLOGIN },	/* 50 = setlogin */
86 	{ SYF_MPSAFE | AS(acct_args), (sy_call_t *)acct, AUE_ACCT },	/* 51 = acct */
87 	{ compat(SYF_MPSAFE | 0,freebsd32_sigpending), AUE_SIGPENDING },	/* 52 = old freebsd32_sigpending */
88 	{ SYF_MPSAFE | AS(freebsd32_sigaltstack_args), (sy_call_t *)freebsd32_sigaltstack, AUE_SIGPENDING },	/* 53 = freebsd32_sigaltstack */
89 	{ SYF_MPSAFE | AS(ioctl_args), (sy_call_t *)ioctl, AUE_IOCTL },	/* 54 = ioctl */
90 	{ SYF_MPSAFE | AS(reboot_args), (sy_call_t *)reboot, AUE_REBOOT },	/* 55 = reboot */
91 	{ SYF_MPSAFE | AS(revoke_args), (sy_call_t *)revoke, AUE_REVOKE },	/* 56 = revoke */
92 	{ SYF_MPSAFE | AS(symlink_args), (sy_call_t *)symlink, AUE_SYMLINK },	/* 57 = symlink */
93 	{ SYF_MPSAFE | AS(readlink_args), (sy_call_t *)readlink, AUE_READLINK },	/* 58 = readlink */
94 	{ SYF_MPSAFE | AS(freebsd32_execve_args), (sy_call_t *)freebsd32_execve, AUE_EXECVE },	/* 59 = freebsd32_execve */
95 	{ SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask, AUE_UMASK },	/* 60 = umask */
96 	{ SYF_MPSAFE | AS(chroot_args), (sy_call_t *)chroot, AUE_CHROOT },	/* 61 = chroot */
97 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 62 = obsolete ofstat */
98 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 63 = obsolete ogetkerninfo */
99 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 64 = obsolete ogetpagesize */
100 	{ SYF_MPSAFE | AS(msync_args), (sy_call_t *)msync, AUE_MSYNC },	/* 65 = msync */
101 	{ SYF_MPSAFE | 0, (sy_call_t *)vfork, AUE_VFORK },	/* 66 = vfork */
102 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 67 = obsolete vread */
103 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 68 = obsolete vwrite */
104 	{ SYF_MPSAFE | AS(sbrk_args), (sy_call_t *)sbrk, AUE_SBRK },	/* 69 = sbrk */
105 	{ SYF_MPSAFE | AS(sstk_args), (sy_call_t *)sstk, AUE_SSTK },	/* 70 = sstk */
106 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 71 = obsolete ommap */
107 	{ SYF_MPSAFE | AS(ovadvise_args), (sy_call_t *)ovadvise, AUE_O_VADVISE },	/* 72 = vadvise */
108 	{ SYF_MPSAFE | AS(munmap_args), (sy_call_t *)munmap, AUE_MUNMAP },	/* 73 = munmap */
109 	{ SYF_MPSAFE | AS(mprotect_args), (sy_call_t *)mprotect, AUE_MPROTECT },	/* 74 = mprotect */
110 	{ SYF_MPSAFE | AS(madvise_args), (sy_call_t *)madvise, AUE_MADVISE },	/* 75 = madvise */
111 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 76 = obsolete vhangup */
112 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 77 = obsolete vlimit */
113 	{ SYF_MPSAFE | AS(mincore_args), (sy_call_t *)mincore, AUE_MINCORE },	/* 78 = mincore */
114 	{ SYF_MPSAFE | AS(getgroups_args), (sy_call_t *)getgroups, AUE_GETGROUPS },	/* 79 = getgroups */
115 	{ SYF_MPSAFE | AS(setgroups_args), (sy_call_t *)setgroups, AUE_SETGROUPS },	/* 80 = setgroups */
116 	{ SYF_MPSAFE | 0, (sy_call_t *)getpgrp, AUE_GETPGRP },	/* 81 = getpgrp */
117 	{ SYF_MPSAFE | AS(setpgid_args), (sy_call_t *)setpgid, AUE_SETPGRP },	/* 82 = setpgid */
118 	{ SYF_MPSAFE | AS(freebsd32_setitimer_args), (sy_call_t *)freebsd32_setitimer, AUE_SETITIMER },	/* 83 = freebsd32_setitimer */
119 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 84 = obsolete owait */
120 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 85 = obsolete oswapon */
121 	{ SYF_MPSAFE | AS(freebsd32_getitimer_args), (sy_call_t *)freebsd32_getitimer, AUE_GETITIMER },	/* 86 = freebsd32_getitimer */
122 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 87 = obsolete ogethostname */
123 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 88 = obsolete osethostname */
124 	{ SYF_MPSAFE | 0, (sy_call_t *)getdtablesize, AUE_GETDTABLESIZE },	/* 89 = getdtablesize */
125 	{ SYF_MPSAFE | AS(dup2_args), (sy_call_t *)dup2, AUE_DUP2 },	/* 90 = dup2 */
126 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 91 = getdopt */
127 	{ SYF_MPSAFE | AS(fcntl_args), (sy_call_t *)fcntl, AUE_FCNTL },	/* 92 = fcntl */
128 	{ SYF_MPSAFE | AS(freebsd32_select_args), (sy_call_t *)freebsd32_select, AUE_SELECT },	/* 93 = freebsd32_select */
129 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 94 = setdopt */
130 	{ SYF_MPSAFE | AS(fsync_args), (sy_call_t *)fsync, AUE_FSYNC },	/* 95 = fsync */
131 	{ SYF_MPSAFE | AS(setpriority_args), (sy_call_t *)setpriority, AUE_SETPRIORITY },	/* 96 = setpriority */
132 	{ SYF_MPSAFE | AS(socket_args), (sy_call_t *)socket, AUE_SOCKET },	/* 97 = socket */
133 	{ SYF_MPSAFE | AS(connect_args), (sy_call_t *)connect, AUE_CONNECT },	/* 98 = connect */
134 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 99 = obsolete oaccept */
135 	{ SYF_MPSAFE | AS(getpriority_args), (sy_call_t *)getpriority, AUE_GETPRIORITY },	/* 100 = getpriority */
136 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 101 = obsolete osend */
137 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 102 = obsolete orecv */
138 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 103 = obsolete osigreturn */
139 	{ SYF_MPSAFE | AS(bind_args), (sy_call_t *)bind, AUE_BIND },	/* 104 = bind */
140 	{ SYF_MPSAFE | AS(setsockopt_args), (sy_call_t *)setsockopt, AUE_SETSOCKOPT },	/* 105 = setsockopt */
141 	{ SYF_MPSAFE | AS(listen_args), (sy_call_t *)listen, AUE_LISTEN },	/* 106 = listen */
142 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 107 = obsolete vtimes */
143 	{ compat(SYF_MPSAFE | AS(ofreebsd32_sigvec_args),freebsd32_sigvec), AUE_O_SIGVEC },	/* 108 = old freebsd32_sigvec */
144 	{ compat(SYF_MPSAFE | AS(ofreebsd32_sigblock_args),freebsd32_sigblock), AUE_O_SIGBLOCK },	/* 109 = old freebsd32_sigblock */
145 	{ compat(SYF_MPSAFE | AS(ofreebsd32_sigsetmask_args),freebsd32_sigsetmask), AUE_O_SIGSETMASK },	/* 110 = old freebsd32_sigsetmask */
146 	{ compat(SYF_MPSAFE | AS(ofreebsd32_sigsuspend_args),freebsd32_sigsuspend), AUE_SIGSUSPEND },	/* 111 = old freebsd32_sigsuspend */
147 	{ compat(SYF_MPSAFE | AS(ofreebsd32_sigstack_args),freebsd32_sigstack), AUE_O_SIGSTACK },	/* 112 = old freebsd32_sigstack */
148 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 113 = obsolete orecvmsg */
149 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 114 = obsolete osendmsg */
150 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 115 = obsolete vtrace */
151 	{ SYF_MPSAFE | AS(freebsd32_gettimeofday_args), (sy_call_t *)freebsd32_gettimeofday, AUE_GETTIMEOFDAY },	/* 116 = freebsd32_gettimeofday */
152 	{ SYF_MPSAFE | AS(freebsd32_getrusage_args), (sy_call_t *)freebsd32_getrusage, AUE_GETRUSAGE },	/* 117 = freebsd32_getrusage */
153 	{ SYF_MPSAFE | AS(getsockopt_args), (sy_call_t *)getsockopt, AUE_GETSOCKOPT },	/* 118 = getsockopt */
154 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 119 = resuba */
155 	{ SYF_MPSAFE | AS(freebsd32_readv_args), (sy_call_t *)freebsd32_readv, AUE_READV },	/* 120 = freebsd32_readv */
156 	{ SYF_MPSAFE | AS(freebsd32_writev_args), (sy_call_t *)freebsd32_writev, AUE_WRITEV },	/* 121 = freebsd32_writev */
157 	{ SYF_MPSAFE | AS(freebsd32_settimeofday_args), (sy_call_t *)freebsd32_settimeofday, AUE_SETTIMEOFDAY },	/* 122 = freebsd32_settimeofday */
158 	{ SYF_MPSAFE | AS(fchown_args), (sy_call_t *)fchown, AUE_FCHOWN },	/* 123 = fchown */
159 	{ SYF_MPSAFE | AS(fchmod_args), (sy_call_t *)fchmod, AUE_FCHMOD },	/* 124 = fchmod */
160 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 125 = obsolete orecvfrom */
161 	{ SYF_MPSAFE | AS(setreuid_args), (sy_call_t *)setreuid, AUE_SETREUID },	/* 126 = setreuid */
162 	{ SYF_MPSAFE | AS(setregid_args), (sy_call_t *)setregid, AUE_SETREGID },	/* 127 = setregid */
163 	{ SYF_MPSAFE | AS(rename_args), (sy_call_t *)rename, AUE_RENAME },	/* 128 = rename */
164 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 129 = obsolete otruncate */
165 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 130 = obsolete ftruncate */
166 	{ SYF_MPSAFE | AS(flock_args), (sy_call_t *)flock, AUE_FLOCK },	/* 131 = flock */
167 	{ SYF_MPSAFE | AS(mkfifo_args), (sy_call_t *)mkfifo, AUE_MKFIFO },	/* 132 = mkfifo */
168 	{ SYF_MPSAFE | AS(sendto_args), (sy_call_t *)sendto, AUE_SENDTO },	/* 133 = sendto */
169 	{ SYF_MPSAFE | AS(shutdown_args), (sy_call_t *)shutdown, AUE_SHUTDOWN },	/* 134 = shutdown */
170 	{ SYF_MPSAFE | AS(socketpair_args), (sy_call_t *)socketpair, AUE_SOCKETPAIR },	/* 135 = socketpair */
171 	{ SYF_MPSAFE | AS(mkdir_args), (sy_call_t *)mkdir, AUE_MKDIR },	/* 136 = mkdir */
172 	{ SYF_MPSAFE | AS(rmdir_args), (sy_call_t *)rmdir, AUE_RMDIR },	/* 137 = rmdir */
173 	{ SYF_MPSAFE | AS(freebsd32_utimes_args), (sy_call_t *)freebsd32_utimes, AUE_UTIMES },	/* 138 = freebsd32_utimes */
174 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 139 = obsolete 4.2 sigreturn */
175 	{ SYF_MPSAFE | AS(freebsd32_adjtime_args), (sy_call_t *)freebsd32_adjtime, AUE_ADJTIME },	/* 140 = freebsd32_adjtime */
176 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 141 = obsolete ogetpeername */
177 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 142 = obsolete ogethostid */
178 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 143 = obsolete sethostid */
179 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 144 = obsolete getrlimit */
180 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 145 = obsolete setrlimit */
181 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 146 = obsolete killpg */
182 	{ SYF_MPSAFE | 0, (sy_call_t *)setsid, AUE_SETSID },	/* 147 = setsid */
183 	{ SYF_MPSAFE | AS(quotactl_args), (sy_call_t *)quotactl, AUE_QUOTACTL },	/* 148 = quotactl */
184 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 149 = obsolete oquota */
185 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 150 = obsolete ogetsockname */
186 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 151 = sem_lock */
187 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 152 = sem_wakeup */
188 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 153 = asyncdaemon */
189 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 154 = nosys */
190 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 155 = nfssvc */
191 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 156 = obsolete ogetdirentries */
192 	{ compat4(SYF_MPSAFE | AS(freebsd4_freebsd32_statfs_args),freebsd32_statfs), AUE_STATFS },	/* 157 = old freebsd32_statfs */
193 	{ compat4(SYF_MPSAFE | AS(freebsd4_freebsd32_fstatfs_args),freebsd32_fstatfs), AUE_FSTATFS },	/* 158 = old freebsd32_fstatfs */
194 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 159 = nosys */
195 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 160 = nosys */
196 	{ SYF_MPSAFE | AS(getfh_args), (sy_call_t *)getfh, AUE_NFS_GETFH },	/* 161 = getfh */
197 	{ SYF_MPSAFE | AS(getdomainname_args), (sy_call_t *)getdomainname, AUE_O_GETDOMAINNAME },	/* 162 = getdomainname */
198 	{ SYF_MPSAFE | AS(setdomainname_args), (sy_call_t *)setdomainname, AUE_O_SETDOMAINNAME },	/* 163 = setdomainname */
199 	{ SYF_MPSAFE | AS(uname_args), (sy_call_t *)uname, AUE_NULL },	/* 164 = uname */
200 	{ SYF_MPSAFE | AS(sysarch_args), (sy_call_t *)sysarch, AUE_NULL },	/* 165 = sysarch */
201 	{ SYF_MPSAFE | AS(rtprio_args), (sy_call_t *)rtprio, AUE_NULL },	/* 166 = rtprio */
202 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 167 = nosys */
203 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 168 = nosys */
204 	{ SYF_MPSAFE | AS(freebsd32_semsys_args), (sy_call_t *)freebsd32_semsys, AUE_SEMSYS },	/* 169 = freebsd32_semsys */
205 	{ SYF_MPSAFE | AS(freebsd32_msgsys_args), (sy_call_t *)freebsd32_msgsys, AUE_MSGSYS },	/* 170 = freebsd32_msgsys */
206 	{ SYF_MPSAFE | AS(freebsd32_shmsys_args), (sy_call_t *)freebsd32_shmsys, AUE_SHMSYS },	/* 171 = freebsd32_shmsys */
207 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 172 = nosys */
208 	{ SYF_MPSAFE | AS(freebsd32_pread_args), (sy_call_t *)freebsd32_pread, AUE_PREAD },	/* 173 = freebsd32_pread */
209 	{ SYF_MPSAFE | AS(freebsd32_pwrite_args), (sy_call_t *)freebsd32_pwrite, AUE_PWRITE },	/* 174 = freebsd32_pwrite */
210 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 175 = nosys */
211 	{ SYF_MPSAFE | AS(ntp_adjtime_args), (sy_call_t *)ntp_adjtime, AUE_ADJTIME },	/* 176 = ntp_adjtime */
212 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 177 = sfork */
213 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 178 = getdescriptor */
214 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 179 = setdescriptor */
215 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 180 = nosys */
216 	{ SYF_MPSAFE | AS(setgid_args), (sy_call_t *)setgid, AUE_SETGID },	/* 181 = setgid */
217 	{ SYF_MPSAFE | AS(setegid_args), (sy_call_t *)setegid, AUE_SETEGID },	/* 182 = setegid */
218 	{ SYF_MPSAFE | AS(seteuid_args), (sy_call_t *)seteuid, AUE_SETEUID },	/* 183 = seteuid */
219 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 184 = lfs_bmapv */
220 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 185 = lfs_markv */
221 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 186 = lfs_segclean */
222 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 187 = lfs_segwait */
223 	{ SYF_MPSAFE | AS(freebsd32_stat_args), (sy_call_t *)freebsd32_stat, AUE_STAT },	/* 188 = freebsd32_stat */
224 	{ SYF_MPSAFE | AS(freebsd32_fstat_args), (sy_call_t *)freebsd32_fstat, AUE_FSTAT },	/* 189 = freebsd32_fstat */
225 	{ SYF_MPSAFE | AS(freebsd32_lstat_args), (sy_call_t *)freebsd32_lstat, AUE_LSTAT },	/* 190 = freebsd32_lstat */
226 	{ SYF_MPSAFE | AS(pathconf_args), (sy_call_t *)pathconf, AUE_PATHCONF },	/* 191 = pathconf */
227 	{ SYF_MPSAFE | AS(fpathconf_args), (sy_call_t *)fpathconf, AUE_FPATHCONF },	/* 192 = fpathconf */
228 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 193 = nosys */
229 	{ SYF_MPSAFE | AS(__getrlimit_args), (sy_call_t *)getrlimit, AUE_GETRLIMIT },	/* 194 = getrlimit */
230 	{ SYF_MPSAFE | AS(__setrlimit_args), (sy_call_t *)setrlimit, AUE_SETRLIMIT },	/* 195 = setrlimit */
231 	{ SYF_MPSAFE | AS(getdirentries_args), (sy_call_t *)getdirentries, AUE_GETDIRENTRIES },	/* 196 = getdirentries */
232 	{ SYF_MPSAFE | AS(freebsd32_mmap_args), (sy_call_t *)freebsd32_mmap, AUE_MMAP },	/* 197 = freebsd32_mmap */
233 	{ SYF_MPSAFE | 0, (sy_call_t *)nosys, AUE_NULL },	/* 198 = __syscall */
234 	{ SYF_MPSAFE | AS(freebsd32_lseek_args), (sy_call_t *)freebsd32_lseek, AUE_LSEEK },	/* 199 = freebsd32_lseek */
235 	{ SYF_MPSAFE | AS(freebsd32_truncate_args), (sy_call_t *)freebsd32_truncate, AUE_TRUNCATE },	/* 200 = freebsd32_truncate */
236 	{ SYF_MPSAFE | AS(freebsd32_ftruncate_args), (sy_call_t *)freebsd32_ftruncate, AUE_FTRUNCATE },	/* 201 = freebsd32_ftruncate */
237 	{ SYF_MPSAFE | AS(freebsd32_sysctl_args), (sy_call_t *)freebsd32_sysctl, AUE_SYSCTL },	/* 202 = freebsd32_sysctl */
238 	{ SYF_MPSAFE | AS(mlock_args), (sy_call_t *)mlock, AUE_MLOCK },	/* 203 = mlock */
239 	{ SYF_MPSAFE | AS(munlock_args), (sy_call_t *)munlock, AUE_MUNLOCK },	/* 204 = munlock */
240 	{ SYF_MPSAFE | AS(undelete_args), (sy_call_t *)undelete, AUE_UNDELETE },	/* 205 = undelete */
241 	{ SYF_MPSAFE | AS(freebsd32_futimes_args), (sy_call_t *)freebsd32_futimes, AUE_FUTIMES },	/* 206 = freebsd32_futimes */
242 	{ SYF_MPSAFE | AS(getpgid_args), (sy_call_t *)getpgid, AUE_GETPGID },	/* 207 = getpgid */
243 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 208 = newreboot */
244 	{ SYF_MPSAFE | AS(poll_args), (sy_call_t *)poll, AUE_POLL },	/* 209 = poll */
245 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 210 =  */
246 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 211 =  */
247 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 212 =  */
248 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 213 =  */
249 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 214 =  */
250 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 215 =  */
251 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 216 =  */
252 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 217 =  */
253 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 218 =  */
254 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 219 =  */
255 	{ SYF_MPSAFE | AS(__semctl_args), (sy_call_t *)__semctl, AUE_SEMCTL },	/* 220 = __semctl */
256 	{ SYF_MPSAFE | AS(semget_args), (sy_call_t *)semget, AUE_SEMGET },	/* 221 = semget */
257 	{ SYF_MPSAFE | AS(semop_args), (sy_call_t *)semop, AUE_SEMOP },	/* 222 = semop */
258 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 223 = semconfig */
259 	{ SYF_MPSAFE | AS(msgctl_args), (sy_call_t *)msgctl, AUE_MSGCTL },	/* 224 = msgctl */
260 	{ SYF_MPSAFE | AS(msgget_args), (sy_call_t *)msgget, AUE_MSGGET },	/* 225 = msgget */
261 	{ SYF_MPSAFE | AS(msgsnd_args), (sy_call_t *)msgsnd, AUE_MSGSND },	/* 226 = msgsnd */
262 	{ SYF_MPSAFE | AS(msgrcv_args), (sy_call_t *)msgrcv, AUE_MSGRCV },	/* 227 = msgrcv */
263 	{ SYF_MPSAFE | AS(shmat_args), (sy_call_t *)shmat, AUE_SHMAT },	/* 228 = shmat */
264 	{ SYF_MPSAFE | AS(freebsd32_shmctl_args), (sy_call_t *)freebsd32_shmctl, AUE_SHMCTL },	/* 229 = freebsd32_shmctl */
265 	{ SYF_MPSAFE | AS(shmdt_args), (sy_call_t *)shmdt, AUE_SHMDT },	/* 230 = shmdt */
266 	{ SYF_MPSAFE | AS(shmget_args), (sy_call_t *)shmget, AUE_SHMGET },	/* 231 = shmget */
267 	{ SYF_MPSAFE | AS(freebsd32_clock_gettime_args), (sy_call_t *)freebsd32_clock_gettime, AUE_NULL },	/* 232 = freebsd32_clock_gettime */
268 	{ SYF_MPSAFE | AS(freebsd32_clock_settime_args), (sy_call_t *)freebsd32_clock_settime, AUE_CLOCK_SETTIME },	/* 233 = freebsd32_clock_settime */
269 	{ SYF_MPSAFE | AS(freebsd32_clock_getres_args), (sy_call_t *)freebsd32_clock_getres, AUE_NULL },	/* 234 = freebsd32_clock_getres */
270 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 235 = timer_create */
271 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 236 = timer_delete */
272 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 237 = timer_settime */
273 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 238 = timer_gettime */
274 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 239 = timer_getoverrun */
275 	{ SYF_MPSAFE | AS(freebsd32_nanosleep_args), (sy_call_t *)freebsd32_nanosleep, AUE_NULL },	/* 240 = freebsd32_nanosleep */
276 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 241 = nosys */
277 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 242 = nosys */
278 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 243 = nosys */
279 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 244 = nosys */
280 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 245 = nosys */
281 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 246 = nosys */
282 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 247 = nosys */
283 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 248 = ntp_gettime */
284 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 249 = nosys */
285 	{ SYF_MPSAFE | AS(minherit_args), (sy_call_t *)minherit, AUE_MINHERIT },	/* 250 = minherit */
286 	{ SYF_MPSAFE | AS(rfork_args), (sy_call_t *)rfork, AUE_RFORK },	/* 251 = rfork */
287 	{ SYF_MPSAFE | AS(openbsd_poll_args), (sy_call_t *)openbsd_poll, AUE_POLL },	/* 252 = openbsd_poll */
288 	{ SYF_MPSAFE | 0, (sy_call_t *)issetugid, AUE_ISSETUGID },	/* 253 = issetugid */
289 	{ SYF_MPSAFE | AS(lchown_args), (sy_call_t *)lchown, AUE_LCHOWN },	/* 254 = lchown */
290 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 255 = nosys */
291 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 256 = nosys */
292 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 257 = nosys */
293 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 258 = nosys */
294 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 259 = nosys */
295 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 260 = nosys */
296 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 261 = nosys */
297 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 262 = nosys */
298 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 263 = nosys */
299 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 264 = nosys */
300 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 265 = nosys */
301 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 266 = nosys */
302 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 267 = nosys */
303 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 268 = nosys */
304 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 269 = nosys */
305 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 270 = nosys */
306 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 271 = nosys */
307 	{ SYF_MPSAFE | AS(getdents_args), (sy_call_t *)getdents, AUE_O_GETDENTS },	/* 272 = getdents */
308 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 273 = nosys */
309 	{ SYF_MPSAFE | AS(lchmod_args), (sy_call_t *)lchmod, AUE_LCHMOD },	/* 274 = lchmod */
310 	{ SYF_MPSAFE | AS(lchown_args), (sy_call_t *)lchown, AUE_LCHOWN },	/* 275 = netbsd_lchown */
311 	{ SYF_MPSAFE | AS(freebsd32_lutimes_args), (sy_call_t *)freebsd32_lutimes, AUE_LUTIMES },	/* 276 = freebsd32_lutimes */
312 	{ SYF_MPSAFE | AS(msync_args), (sy_call_t *)msync, AUE_MSYNC },	/* 277 = netbsd_msync */
313 	{ SYF_MPSAFE | AS(nstat_args), (sy_call_t *)nstat, AUE_STAT },	/* 278 = nstat */
314 	{ SYF_MPSAFE | AS(nfstat_args), (sy_call_t *)nfstat, AUE_FSTAT },	/* 279 = nfstat */
315 	{ SYF_MPSAFE | AS(nlstat_args), (sy_call_t *)nlstat, AUE_LSTAT },	/* 280 = nlstat */
316 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 281 = nosys */
317 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 282 = nosys */
318 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 283 = nosys */
319 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 284 = nosys */
320 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 285 = nosys */
321 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 286 = nosys */
322 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 287 = nosys */
323 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 288 = nosys */
324 	{ SYF_MPSAFE | AS(freebsd32_preadv_args), (sy_call_t *)freebsd32_preadv, AUE_PREADV },	/* 289 = freebsd32_preadv */
325 	{ SYF_MPSAFE | AS(freebsd32_pwritev_args), (sy_call_t *)freebsd32_pwritev, AUE_PWRITEV },	/* 290 = freebsd32_pwritev */
326 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 291 = nosys */
327 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 292 = nosys */
328 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 293 = nosys */
329 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 294 = nosys */
330 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 295 = nosys */
331 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 296 = nosys */
332 	{ compat4(SYF_MPSAFE | AS(freebsd4_freebsd32_fhstatfs_args),freebsd32_fhstatfs), AUE_FHSTATFS },	/* 297 = old freebsd32_fhstatfs */
333 	{ SYF_MPSAFE | AS(fhopen_args), (sy_call_t *)fhopen, AUE_FHOPEN },	/* 298 = fhopen */
334 	{ SYF_MPSAFE | AS(fhstat_args), (sy_call_t *)fhstat, AUE_FHSTAT },	/* 299 = fhstat */
335 	{ SYF_MPSAFE | AS(modnext_args), (sy_call_t *)modnext, AUE_NULL },	/* 300 = modnext */
336 	{ SYF_MPSAFE | AS(freebsd32_modstat_args), (sy_call_t *)freebsd32_modstat, AUE_NULL },	/* 301 = freebsd32_modstat */
337 	{ SYF_MPSAFE | AS(modfnext_args), (sy_call_t *)modfnext, AUE_NULL },	/* 302 = modfnext */
338 	{ SYF_MPSAFE | AS(modfind_args), (sy_call_t *)modfind, AUE_NULL },	/* 303 = modfind */
339 	{ SYF_MPSAFE | AS(kldload_args), (sy_call_t *)kldload, AUE_MODLOAD },	/* 304 = kldload */
340 	{ SYF_MPSAFE | AS(kldunload_args), (sy_call_t *)kldunload, AUE_MODUNLOAD },	/* 305 = kldunload */
341 	{ SYF_MPSAFE | AS(kldfind_args), (sy_call_t *)kldfind, AUE_NULL },	/* 306 = kldfind */
342 	{ SYF_MPSAFE | AS(kldnext_args), (sy_call_t *)kldnext, AUE_NULL },	/* 307 = kldnext */
343 	{ SYF_MPSAFE | AS(kldstat_args), (sy_call_t *)kldstat, AUE_NULL },	/* 308 = kldstat */
344 	{ SYF_MPSAFE | AS(kldfirstmod_args), (sy_call_t *)kldfirstmod, AUE_NULL },	/* 309 = kldfirstmod */
345 	{ SYF_MPSAFE | AS(getsid_args), (sy_call_t *)getsid, AUE_GETSID },	/* 310 = getsid */
346 	{ SYF_MPSAFE | AS(setresuid_args), (sy_call_t *)setresuid, AUE_SETRESUID },	/* 311 = setresuid */
347 	{ SYF_MPSAFE | AS(setresgid_args), (sy_call_t *)setresgid, AUE_SETRESGID },	/* 312 = setresgid */
348 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 313 = obsolete signanosleep */
349 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 314 = aio_return */
350 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 315 = aio_suspend */
351 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 316 = aio_cancel */
352 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 317 = aio_error */
353 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 318 = aio_read */
354 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 319 = aio_write */
355 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 320 = lio_listio */
356 	{ SYF_MPSAFE | 0, (sy_call_t *)yield, AUE_NULL },	/* 321 = yield */
357 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 322 = obsolete thr_sleep */
358 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 323 = obsolete thr_wakeup */
359 	{ SYF_MPSAFE | AS(mlockall_args), (sy_call_t *)mlockall, AUE_MLOCKALL },	/* 324 = mlockall */
360 	{ SYF_MPSAFE | 0, (sy_call_t *)munlockall, AUE_MUNLOCKALL },	/* 325 = munlockall */
361 	{ SYF_MPSAFE | AS(__getcwd_args), (sy_call_t *)__getcwd, AUE_NULL },	/* 326 = __getcwd */
362 	{ SYF_MPSAFE | AS(sched_setparam_args), (sy_call_t *)sched_setparam, AUE_NULL },	/* 327 = sched_setparam */
363 	{ SYF_MPSAFE | AS(sched_getparam_args), (sy_call_t *)sched_getparam, AUE_NULL },	/* 328 = sched_getparam */
364 	{ SYF_MPSAFE | AS(sched_setscheduler_args), (sy_call_t *)sched_setscheduler, AUE_NULL },	/* 329 = sched_setscheduler */
365 	{ SYF_MPSAFE | AS(sched_getscheduler_args), (sy_call_t *)sched_getscheduler, AUE_NULL },	/* 330 = sched_getscheduler */
366 	{ SYF_MPSAFE | 0, (sy_call_t *)sched_yield, AUE_NULL },	/* 331 = sched_yield */
367 	{ SYF_MPSAFE | AS(sched_get_priority_max_args), (sy_call_t *)sched_get_priority_max, AUE_NULL },	/* 332 = sched_get_priority_max */
368 	{ SYF_MPSAFE | AS(sched_get_priority_min_args), (sy_call_t *)sched_get_priority_min, AUE_NULL },	/* 333 = sched_get_priority_min */
369 	{ SYF_MPSAFE | AS(sched_rr_get_interval_args), (sy_call_t *)sched_rr_get_interval, AUE_NULL },	/* 334 = sched_rr_get_interval */
370 	{ SYF_MPSAFE | AS(utrace_args), (sy_call_t *)utrace, AUE_NULL },	/* 335 = utrace */
371 	{ compat4(SYF_MPSAFE | AS(freebsd4_freebsd32_sendfile_args),freebsd32_sendfile), AUE_SENDFILE },	/* 336 = old freebsd32_sendfile */
372 	{ SYF_MPSAFE | AS(kldsym_args), (sy_call_t *)kldsym, AUE_NULL },	/* 337 = kldsym */
373 	{ SYF_MPSAFE | AS(jail_args), (sy_call_t *)jail, AUE_NULL },	/* 338 = jail */
374 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 339 = pioctl */
375 	{ SYF_MPSAFE | AS(sigprocmask_args), (sy_call_t *)sigprocmask, AUE_SIGPROCMASK },	/* 340 = sigprocmask */
376 	{ SYF_MPSAFE | AS(sigsuspend_args), (sy_call_t *)sigsuspend, AUE_SIGSUSPEND },	/* 341 = sigsuspend */
377 	{ compat4(SYF_MPSAFE | AS(freebsd4_freebsd32_sigaction_args),freebsd32_sigaction), AUE_SIGACTION },	/* 342 = old freebsd32_sigaction */
378 	{ SYF_MPSAFE | AS(sigpending_args), (sy_call_t *)sigpending, AUE_SIGPENDING },	/* 343 = sigpending */
379 	{ compat4(SYF_MPSAFE | AS(freebsd4_freebsd32_sigreturn_args),freebsd32_sigreturn), AUE_SIGRETURN },	/* 344 = old freebsd32_sigreturn */
380 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 345 = sigtimedwait */
381 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 346 = sigwaitinfo */
382 	{ SYF_MPSAFE | AS(__acl_get_file_args), (sy_call_t *)__acl_get_file, AUE_JAIL },	/* 347 = __acl_get_file */
383 	{ SYF_MPSAFE | AS(__acl_set_file_args), (sy_call_t *)__acl_set_file, AUE_NULL },	/* 348 = __acl_set_file */
384 	{ SYF_MPSAFE | AS(__acl_get_fd_args), (sy_call_t *)__acl_get_fd, AUE_NULL },	/* 349 = __acl_get_fd */
385 	{ SYF_MPSAFE | AS(__acl_set_fd_args), (sy_call_t *)__acl_set_fd, AUE_NULL },	/* 350 = __acl_set_fd */
386 	{ SYF_MPSAFE | AS(__acl_delete_file_args), (sy_call_t *)__acl_delete_file, AUE_NULL },	/* 351 = __acl_delete_file */
387 	{ SYF_MPSAFE | AS(__acl_delete_fd_args), (sy_call_t *)__acl_delete_fd, AUE_NULL },	/* 352 = __acl_delete_fd */
388 	{ SYF_MPSAFE | AS(__acl_aclcheck_file_args), (sy_call_t *)__acl_aclcheck_file, AUE_NULL },	/* 353 = __acl_aclcheck_file */
389 	{ SYF_MPSAFE | AS(__acl_aclcheck_fd_args), (sy_call_t *)__acl_aclcheck_fd, AUE_NULL },	/* 354 = __acl_aclcheck_fd */
390 	{ SYF_MPSAFE | AS(extattrctl_args), (sy_call_t *)extattrctl, AUE_NULL },	/* 355 = extattrctl */
391 	{ SYF_MPSAFE | AS(extattr_set_file_args), (sy_call_t *)extattr_set_file, AUE_NULL },	/* 356 = extattr_set_file */
392 	{ SYF_MPSAFE | AS(extattr_get_file_args), (sy_call_t *)extattr_get_file, AUE_NULL },	/* 357 = extattr_get_file */
393 	{ SYF_MPSAFE | AS(extattr_delete_file_args), (sy_call_t *)extattr_delete_file, AUE_NULL },	/* 358 = extattr_delete_file */
394 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 359 = aio_waitcomplete */
395 	{ SYF_MPSAFE | AS(getresuid_args), (sy_call_t *)getresuid, AUE_NULL },	/* 360 = getresuid */
396 	{ SYF_MPSAFE | AS(getresgid_args), (sy_call_t *)getresgid, AUE_NULL },	/* 361 = getresgid */
397 	{ SYF_MPSAFE | 0, (sy_call_t *)kqueue, AUE_NULL },	/* 362 = kqueue */
398 	{ SYF_MPSAFE | AS(freebsd32_kevent_args), (sy_call_t *)freebsd32_kevent, AUE_NULL },	/* 363 = freebsd32_kevent */
399 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 364 = __cap_get_proc */
400 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 365 = __cap_set_proc */
401 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 366 = __cap_get_fd */
402 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 367 = __cap_get_file */
403 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 368 = __cap_set_fd */
404 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 369 = __cap_set_file */
405 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 370 = lkmressys */
406 	{ SYF_MPSAFE | AS(extattr_set_fd_args), (sy_call_t *)extattr_set_fd, AUE_NULL },	/* 371 = extattr_set_fd */
407 	{ SYF_MPSAFE | AS(extattr_get_fd_args), (sy_call_t *)extattr_get_fd, AUE_NULL },	/* 372 = extattr_get_fd */
408 	{ SYF_MPSAFE | AS(extattr_delete_fd_args), (sy_call_t *)extattr_delete_fd, AUE_NULL },	/* 373 = extattr_delete_fd */
409 	{ SYF_MPSAFE | AS(__setugid_args), (sy_call_t *)__setugid, AUE_NULL },	/* 374 = __setugid */
410 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 375 = nfsclnt */
411 	{ SYF_MPSAFE | AS(eaccess_args), (sy_call_t *)eaccess, AUE_NULL },	/* 376 = eaccess */
412 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 377 = afs_syscall */
413 	{ SYF_MPSAFE | AS(nmount_args), (sy_call_t *)nmount, AUE_NULL },	/* 378 = nmount */
414 	{ SYF_MPSAFE | 0, (sy_call_t *)kse_exit, AUE_NULL },	/* 379 = kse_exit */
415 	{ SYF_MPSAFE | AS(kse_wakeup_args), (sy_call_t *)kse_wakeup, AUE_NULL },	/* 380 = kse_wakeup */
416 	{ SYF_MPSAFE | AS(kse_create_args), (sy_call_t *)kse_create, AUE_NULL },	/* 381 = kse_create */
417 	{ SYF_MPSAFE | AS(kse_thr_interrupt_args), (sy_call_t *)kse_thr_interrupt, AUE_NULL },	/* 382 = kse_thr_interrupt */
418 	{ SYF_MPSAFE | 0, (sy_call_t *)kse_release, AUE_NULL },	/* 383 = kse_release */
419 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 384 = __mac_get_proc */
420 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 385 = __mac_set_proc */
421 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 386 = __mac_get_fd */
422 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 387 = __mac_get_file */
423 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 388 = __mac_set_fd */
424 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 389 = __mac_set_file */
425 	{ SYF_MPSAFE | AS(kenv_args), (sy_call_t *)kenv, AUE_NULL },	/* 390 = kenv */
426 	{ SYF_MPSAFE | AS(lchflags_args), (sy_call_t *)lchflags, AUE_LCHFLAGS },	/* 391 = lchflags */
427 	{ SYF_MPSAFE | AS(uuidgen_args), (sy_call_t *)uuidgen, AUE_NULL },	/* 392 = uuidgen */
428 	{ SYF_MPSAFE | AS(freebsd32_sendfile_args), (sy_call_t *)freebsd32_sendfile, AUE_NULL },	/* 393 = freebsd32_sendfile */
429 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 394 = mac_syscall */
430 	{ SYF_MPSAFE | AS(getfsstat_args), (sy_call_t *)getfsstat, AUE_GETFSSTAT },	/* 395 = getfsstat */
431 	{ SYF_MPSAFE | AS(statfs_args), (sy_call_t *)statfs, AUE_STATFS },	/* 396 = statfs */
432 	{ SYF_MPSAFE | AS(fstatfs_args), (sy_call_t *)fstatfs, AUE_FSTATFS },	/* 397 = fstatfs */
433 	{ SYF_MPSAFE | AS(fhstatfs_args), (sy_call_t *)fhstatfs, AUE_NULL },	/* 398 = fhstatfs */
434 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 399 = nosys */
435 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 400 = ksem_close */
436 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 401 = ksem_post */
437 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 402 = ksem_wait */
438 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 403 = ksem_trywait */
439 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 404 = ksem_init */
440 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 405 = ksem_open */
441 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 406 = ksem_unlink */
442 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 407 = ksem_getvalue */
443 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 408 = ksem_destroy */
444 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 409 = __mac_get_pid */
445 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 410 = __mac_get_link */
446 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 411 = __mac_set_link */
447 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 412 = extattr_set_link */
448 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 413 = extattr_get_link */
449 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 414 = extattr_delete_link */
450 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 415 = __mac_execve */
451 	{ SYF_MPSAFE | AS(freebsd32_sigaction_args), (sy_call_t *)freebsd32_sigaction, AUE_SIGACTION },	/* 416 = freebsd32_sigaction */
452 	{ SYF_MPSAFE | AS(freebsd32_sigreturn_args), (sy_call_t *)freebsd32_sigreturn, AUE_SIGRETURN },	/* 417 = freebsd32_sigreturn */
453 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 418 = __xstat */
454 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 419 = __xfstat */
455 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 420 = __xlstat */
456 	{ SYF_MPSAFE | AS(freebsd32_getcontext_args), (sy_call_t *)freebsd32_getcontext, AUE_NULL },	/* 421 = freebsd32_getcontext */
457 	{ SYF_MPSAFE | AS(freebsd32_setcontext_args), (sy_call_t *)freebsd32_setcontext, AUE_NULL },	/* 422 = freebsd32_setcontext */
458 	{ SYF_MPSAFE | AS(freebsd32_swapcontext_args), (sy_call_t *)freebsd32_swapcontext, AUE_NULL },	/* 423 = freebsd32_swapcontext */
459 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 424 = swapoff */
460 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 425 = __acl_get_link */
461 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 426 = __acl_set_link */
462 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 427 = __acl_delete_link */
463 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 428 = __acl_aclcheck_link */
464 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 429 = sigwait */
465 	{ SYF_MPSAFE | AS(thr_create_args), (sy_call_t *)thr_create, AUE_NULL },	/* 430 = thr_create */
466 	{ SYF_MPSAFE | AS(thr_exit_args), (sy_call_t *)thr_exit, AUE_NULL },	/* 431 = thr_exit */
467 	{ SYF_MPSAFE | AS(thr_self_args), (sy_call_t *)thr_self, AUE_NULL },	/* 432 = thr_self */
468 	{ SYF_MPSAFE | AS(thr_kill_args), (sy_call_t *)thr_kill, AUE_NULL },	/* 433 = thr_kill */
469 	{ SYF_MPSAFE | AS(_umtx_lock_args), (sy_call_t *)_umtx_lock, AUE_NULL },	/* 434 = _umtx_lock */
470 	{ SYF_MPSAFE | AS(_umtx_unlock_args), (sy_call_t *)_umtx_unlock, AUE_NULL },	/* 435 = _umtx_unlock */
471 	{ SYF_MPSAFE | AS(jail_attach_args), (sy_call_t *)jail_attach, AUE_NULL },	/* 436 = jail_attach */
472 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 437 = extattr_list_fd */
473 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 438 = extattr_list_file */
474 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 439 = extattr_list_link */
475 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 440 = kse_switchin */
476 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 441 = ksem_timedwait */
477 	{ SYF_MPSAFE | AS(thr_suspend_args), (sy_call_t *)thr_suspend, AUE_NULL },	/* 442 = thr_suspend */
478 	{ SYF_MPSAFE | AS(thr_wake_args), (sy_call_t *)thr_wake, AUE_NULL },	/* 443 = thr_wake */
479 	{ SYF_MPSAFE | AS(kldunloadf_args), (sy_call_t *)kldunloadf, AUE_NULL },	/* 444 = kldunloadf */
480 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 445 = audit */
481 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 446 = auditon */
482 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 447 = getauid */
483 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 448 = setauid */
484 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 449 = getaudit */
485 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 450 = setaudit */
486 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 451 = getaudit_addr */
487 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 452 = setaudit_addr */
488 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 453 = auditctl */
489 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 454 = _umtx_op */
490 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 455 = thr_new */
491 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 456 = sigqueue */
492 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 457 = mq_open */
493 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 458 = mq_setattr */
494 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 459 = mq_timedreceive */
495 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 460 = mq_timedsend */
496 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 461 = mq_notify */
497 	{ 0, (sy_call_t *)nosys, AUE_NULL },			/* 462 = mq_unlink */
498 	{ SYF_MPSAFE | AS(abort2_args), (sy_call_t *)abort2, AUE_NULL },	/* 463 = abort2 */
499 };
500