2 * System call switch table.
4 * DO NOT EDIT-- this file is automatically generated.
9 #include "opt_compat.h"
11 #include <sys/param.h>
12 #include <sys/sysent.h>
13 #include <sys/sysproto.h>
15 #define AS(name) (sizeof(struct name) / sizeof(register_t))
18 #define compat(n, name) n, (sy_call_t *)__CONCAT(o,name)
20 #define compat(n, name) 0, (sy_call_t *)nosys
23 /* The casts are bogus but will do for now. */
24 struct sysent ia32_sysent[] = {
25 { 0, (sy_call_t *)nosys }, /* 0 = syscall */
26 { SYF_MPSAFE | AS(sys_exit_args), (sy_call_t *)sys_exit }, /* 1 = exit */
27 { SYF_MPSAFE | 0, (sy_call_t *)fork }, /* 2 = fork */
28 { SYF_MPSAFE | AS(read_args), (sy_call_t *)read }, /* 3 = read */
29 { SYF_MPSAFE | AS(write_args), (sy_call_t *)write }, /* 4 = write */
30 { AS(open_args), (sy_call_t *)open }, /* 5 = open */
31 { SYF_MPSAFE | AS(close_args), (sy_call_t *)close }, /* 6 = close */
32 { SYF_MPSAFE | AS(wait_args), (sy_call_t *)wait4 }, /* 7 = wait4 */
33 { compat(AS(ocreat_args),creat) }, /* 8 = old creat */
34 { AS(link_args), (sy_call_t *)link }, /* 9 = link */
35 { AS(unlink_args), (sy_call_t *)unlink }, /* 10 = unlink */
36 { 0, (sy_call_t *)nosys }, /* 11 = obsolete execv */
37 { AS(chdir_args), (sy_call_t *)chdir }, /* 12 = chdir */
38 { AS(fchdir_args), (sy_call_t *)fchdir }, /* 13 = fchdir */
39 { AS(mknod_args), (sy_call_t *)mknod }, /* 14 = mknod */
40 { AS(chmod_args), (sy_call_t *)chmod }, /* 15 = chmod */
41 { AS(chown_args), (sy_call_t *)chown }, /* 16 = chown */
42 { SYF_MPSAFE | AS(obreak_args), (sy_call_t *)obreak }, /* 17 = break */
43 { AS(getfsstat_args), (sy_call_t *)getfsstat }, /* 18 = getfsstat */
44 { compat(AS(olseek_args),lseek) }, /* 19 = old lseek */
45 { SYF_MPSAFE | 0, (sy_call_t *)getpid }, /* 20 = getpid */
46 { AS(mount_args), (sy_call_t *)mount }, /* 21 = mount */
47 { AS(unmount_args), (sy_call_t *)unmount }, /* 22 = unmount */
48 { SYF_MPSAFE | AS(setuid_args), (sy_call_t *)setuid }, /* 23 = setuid */
49 { SYF_MPSAFE | 0, (sy_call_t *)getuid }, /* 24 = getuid */
50 { SYF_MPSAFE | 0, (sy_call_t *)geteuid }, /* 25 = geteuid */
51 { AS(ptrace_args), (sy_call_t *)ptrace }, /* 26 = ptrace */
52 { SYF_MPSAFE | AS(recvmsg_args), (sy_call_t *)recvmsg }, /* 27 = recvmsg */
53 { SYF_MPSAFE | AS(sendmsg_args), (sy_call_t *)sendmsg }, /* 28 = sendmsg */
54 { SYF_MPSAFE | AS(recvfrom_args), (sy_call_t *)recvfrom }, /* 29 = recvfrom */
55 { SYF_MPSAFE | AS(accept_args), (sy_call_t *)accept }, /* 30 = accept */
56 { SYF_MPSAFE | AS(getpeername_args), (sy_call_t *)getpeername }, /* 31 = getpeername */
57 { SYF_MPSAFE | AS(getsockname_args), (sy_call_t *)getsockname }, /* 32 = getsockname */
58 { AS(access_args), (sy_call_t *)access }, /* 33 = access */
59 { AS(chflags_args), (sy_call_t *)chflags }, /* 34 = chflags */
60 { AS(fchflags_args), (sy_call_t *)fchflags }, /* 35 = fchflags */
61 { 0, (sy_call_t *)sync }, /* 36 = sync */
62 { SYF_MPSAFE | AS(kill_args), (sy_call_t *)kill }, /* 37 = kill */
63 { compat(AS(ostat_args),stat) }, /* 38 = old stat */
64 { SYF_MPSAFE | 0, (sy_call_t *)getppid }, /* 39 = getppid */
65 { compat(AS(olstat_args),lstat) }, /* 40 = old lstat */
66 { AS(dup_args), (sy_call_t *)dup }, /* 41 = dup */
67 { 0, (sy_call_t *)pipe }, /* 42 = pipe */
68 { SYF_MPSAFE | 0, (sy_call_t *)getegid }, /* 43 = getegid */
69 { SYF_MPSAFE | AS(profil_args), (sy_call_t *)profil }, /* 44 = profil */
70 { AS(ktrace_args), (sy_call_t *)ktrace }, /* 45 = ktrace */
71 { compat(SYF_MPSAFE | AS(osigaction_args),sigaction) }, /* 46 = old sigaction */
72 { SYF_MPSAFE | 0, (sy_call_t *)getgid }, /* 47 = getgid */
73 { compat(SYF_MPSAFE | AS(osigprocmask_args),sigprocmask) }, /* 48 = old sigprocmask */
74 { SYF_MPSAFE | AS(getlogin_args), (sy_call_t *)getlogin }, /* 49 = getlogin */
75 { SYF_MPSAFE | AS(setlogin_args), (sy_call_t *)setlogin }, /* 50 = setlogin */
76 { SYF_MPSAFE | AS(acct_args), (sy_call_t *)acct }, /* 51 = acct */
77 { compat(SYF_MPSAFE | 0,sigpending) }, /* 52 = old sigpending */
78 { SYF_MPSAFE | AS(sigaltstack_args), (sy_call_t *)sigaltstack }, /* 53 = sigaltstack */
79 { SYF_MPSAFE | AS(ioctl_args), (sy_call_t *)ioctl }, /* 54 = ioctl */
80 { SYF_MPSAFE | AS(reboot_args), (sy_call_t *)reboot }, /* 55 = reboot */
81 { AS(revoke_args), (sy_call_t *)revoke }, /* 56 = revoke */
82 { AS(symlink_args), (sy_call_t *)symlink }, /* 57 = symlink */
83 { AS(readlink_args), (sy_call_t *)readlink }, /* 58 = readlink */
84 { SYF_MPSAFE | AS(execve_args), (sy_call_t *)execve }, /* 59 = execve */
85 { SYF_MPSAFE | AS(umask_args), (sy_call_t *)umask }, /* 60 = umask */
86 { AS(chroot_args), (sy_call_t *)chroot }, /* 61 = chroot */
87 { compat(SYF_MPSAFE | AS(ofstat_args),fstat) }, /* 62 = old fstat */
88 { compat(SYF_MPSAFE | AS(getkerninfo_args),getkerninfo) }, /* 63 = old getkerninfo */
89 { compat(SYF_MPSAFE | 0,getpagesize) }, /* 64 = old getpagesize */
90 { AS(msync_args), (sy_call_t *)msync }, /* 65 = msync */
91 { SYF_MPSAFE | 0, (sy_call_t *)vfork }, /* 66 = vfork */
92 { 0, (sy_call_t *)nosys }, /* 67 = obsolete vread */
93 { 0, (sy_call_t *)nosys }, /* 68 = obsolete vwrite */
94 { SYF_MPSAFE | AS(sbrk_args), (sy_call_t *)sbrk }, /* 69 = sbrk */
95 { SYF_MPSAFE | AS(sstk_args), (sy_call_t *)sstk }, /* 70 = sstk */
96 { compat(SYF_MPSAFE | AS(ommap_args),mmap) }, /* 71 = old mmap */
97 { SYF_MPSAFE | AS(ovadvise_args), (sy_call_t *)ovadvise }, /* 72 = vadvise */
98 { SYF_MPSAFE | AS(munmap_args), (sy_call_t *)munmap }, /* 73 = munmap */
99 { SYF_MPSAFE | AS(mprotect_args), (sy_call_t *)mprotect }, /* 74 = mprotect */
100 { SYF_MPSAFE | AS(madvise_args), (sy_call_t *)madvise }, /* 75 = madvise */
101 { 0, (sy_call_t *)nosys }, /* 76 = obsolete vhangup */
102 { 0, (sy_call_t *)nosys }, /* 77 = obsolete vlimit */
103 { SYF_MPSAFE | AS(mincore_args), (sy_call_t *)mincore }, /* 78 = mincore */
104 { SYF_MPSAFE | AS(getgroups_args), (sy_call_t *)getgroups }, /* 79 = getgroups */
105 { SYF_MPSAFE | AS(setgroups_args), (sy_call_t *)setgroups }, /* 80 = setgroups */
106 { SYF_MPSAFE | 0, (sy_call_t *)getpgrp }, /* 81 = getpgrp */
107 { SYF_MPSAFE | AS(setpgid_args), (sy_call_t *)setpgid }, /* 82 = setpgid */
108 { SYF_MPSAFE | AS(setitimer_args), (sy_call_t *)setitimer }, /* 83 = setitimer */
109 { compat(SYF_MPSAFE | 0,wait) }, /* 84 = old wait */
110 { SYF_MPSAFE | AS(swapon_args), (sy_call_t *)swapon }, /* 85 = swapon */
111 { SYF_MPSAFE | AS(getitimer_args), (sy_call_t *)getitimer }, /* 86 = getitimer */
112 { compat(SYF_MPSAFE | AS(gethostname_args),gethostname) }, /* 87 = old gethostname */
113 { compat(SYF_MPSAFE | AS(sethostname_args),sethostname) }, /* 88 = old sethostname */
114 { SYF_MPSAFE | 0, (sy_call_t *)getdtablesize }, /* 89 = getdtablesize */
115 { SYF_MPSAFE | AS(dup2_args), (sy_call_t *)dup2 }, /* 90 = dup2 */
116 { 0, (sy_call_t *)nosys }, /* 91 = getdopt */
117 { SYF_MPSAFE | AS(fcntl_args), (sy_call_t *)fcntl }, /* 92 = fcntl */
118 { SYF_MPSAFE | AS(select_args), (sy_call_t *)select }, /* 93 = select */
119 { 0, (sy_call_t *)nosys }, /* 94 = setdopt */
120 { AS(fsync_args), (sy_call_t *)fsync }, /* 95 = fsync */
121 { SYF_MPSAFE | AS(setpriority_args), (sy_call_t *)setpriority }, /* 96 = setpriority */
122 { SYF_MPSAFE | AS(socket_args), (sy_call_t *)socket }, /* 97 = socket */
123 { SYF_MPSAFE | AS(connect_args), (sy_call_t *)connect }, /* 98 = connect */
124 { compat(SYF_MPSAFE | AS(accept_args),accept) }, /* 99 = old accept */
125 { SYF_MPSAFE | AS(getpriority_args), (sy_call_t *)getpriority }, /* 100 = getpriority */
126 { compat(SYF_MPSAFE | AS(osend_args),send) }, /* 101 = old send */
127 { compat(SYF_MPSAFE | AS(orecv_args),recv) }, /* 102 = old recv */
128 { AS(osigreturn_args), (sy_call_t *)osigreturn }, /* 103 = osigreturn */
129 { SYF_MPSAFE | AS(bind_args), (sy_call_t *)bind }, /* 104 = bind */
130 { SYF_MPSAFE | AS(setsockopt_args), (sy_call_t *)setsockopt }, /* 105 = setsockopt */
131 { SYF_MPSAFE | AS(listen_args), (sy_call_t *)listen }, /* 106 = listen */
132 { 0, (sy_call_t *)nosys }, /* 107 = obsolete vtimes */
133 { compat(SYF_MPSAFE | AS(osigvec_args),sigvec) }, /* 108 = old sigvec */
134 { compat(SYF_MPSAFE | AS(osigblock_args),sigblock) }, /* 109 = old sigblock */
135 { compat(SYF_MPSAFE | AS(osigsetmask_args),sigsetmask) }, /* 110 = old sigsetmask */
136 { compat(SYF_MPSAFE | AS(osigsuspend_args),sigsuspend) }, /* 111 = old sigsuspend */
137 { compat(SYF_MPSAFE | AS(osigstack_args),sigstack) }, /* 112 = old sigstack */
138 { compat(SYF_MPSAFE | AS(orecvmsg_args),recvmsg) }, /* 113 = old recvmsg */
139 { compat(SYF_MPSAFE | AS(osendmsg_args),sendmsg) }, /* 114 = old sendmsg */
140 { 0, (sy_call_t *)nosys }, /* 115 = obsolete vtrace */
141 { SYF_MPSAFE | AS(gettimeofday_args), (sy_call_t *)gettimeofday }, /* 116 = gettimeofday */
142 { SYF_MPSAFE | AS(getrusage_args), (sy_call_t *)getrusage }, /* 117 = getrusage */
143 { SYF_MPSAFE | AS(getsockopt_args), (sy_call_t *)getsockopt }, /* 118 = getsockopt */
144 { 0, (sy_call_t *)nosys }, /* 119 = resuba */
145 { SYF_MPSAFE | AS(readv_args), (sy_call_t *)readv }, /* 120 = readv */
146 { SYF_MPSAFE | AS(writev_args), (sy_call_t *)writev }, /* 121 = writev */
147 { SYF_MPSAFE | AS(settimeofday_args), (sy_call_t *)settimeofday }, /* 122 = settimeofday */
148 { AS(fchown_args), (sy_call_t *)fchown }, /* 123 = fchown */
149 { AS(fchmod_args), (sy_call_t *)fchmod }, /* 124 = fchmod */
150 { compat(SYF_MPSAFE | AS(recvfrom_args),recvfrom) }, /* 125 = old recvfrom */
151 { SYF_MPSAFE | AS(setreuid_args), (sy_call_t *)setreuid }, /* 126 = setreuid */
152 { SYF_MPSAFE | AS(setregid_args), (sy_call_t *)setregid }, /* 127 = setregid */
153 { AS(rename_args), (sy_call_t *)rename }, /* 128 = rename */
154 { compat(AS(otruncate_args),truncate) }, /* 129 = old truncate */
155 { compat(AS(oftruncate_args),ftruncate) }, /* 130 = old ftruncate */
156 { SYF_MPSAFE | AS(flock_args), (sy_call_t *)flock }, /* 131 = flock */
157 { AS(mkfifo_args), (sy_call_t *)mkfifo }, /* 132 = mkfifo */
158 { SYF_MPSAFE | AS(sendto_args), (sy_call_t *)sendto }, /* 133 = sendto */
159 { SYF_MPSAFE | AS(shutdown_args), (sy_call_t *)shutdown }, /* 134 = shutdown */
160 { SYF_MPSAFE | AS(socketpair_args), (sy_call_t *)socketpair }, /* 135 = socketpair */
161 { AS(mkdir_args), (sy_call_t *)mkdir }, /* 136 = mkdir */
162 { AS(rmdir_args), (sy_call_t *)rmdir }, /* 137 = rmdir */
163 { AS(utimes_args), (sy_call_t *)utimes }, /* 138 = utimes */
164 { 0, (sy_call_t *)nosys }, /* 139 = obsolete 4.2 sigreturn */
165 { SYF_MPSAFE | AS(adjtime_args), (sy_call_t *)adjtime }, /* 140 = adjtime */
166 { compat(SYF_MPSAFE | AS(ogetpeername_args),getpeername) }, /* 141 = old getpeername */
167 { compat(SYF_MPSAFE | 0,gethostid) }, /* 142 = old gethostid */
168 { compat(SYF_MPSAFE | AS(osethostid_args),sethostid) }, /* 143 = old sethostid */
169 { compat(SYF_MPSAFE | AS(ogetrlimit_args),getrlimit) }, /* 144 = old getrlimit */
170 { compat(SYF_MPSAFE | AS(osetrlimit_args),setrlimit) }, /* 145 = old setrlimit */
171 { compat(SYF_MPSAFE | AS(okillpg_args),killpg) }, /* 146 = old killpg */
172 { SYF_MPSAFE | 0, (sy_call_t *)setsid }, /* 147 = setsid */
173 { AS(quotactl_args), (sy_call_t *)quotactl }, /* 148 = quotactl */
174 { compat(SYF_MPSAFE | 0,quota) }, /* 149 = old quota */
175 { compat(SYF_MPSAFE | AS(getsockname_args),getsockname) }, /* 150 = old getsockname */
176 { 0, (sy_call_t *)nosys }, /* 151 = sem_lock */
177 { 0, (sy_call_t *)nosys }, /* 152 = sem_wakeup */
178 { 0, (sy_call_t *)nosys }, /* 153 = asyncdaemon */
179 { 0, (sy_call_t *)nosys }, /* 154 = nosys */
180 { SYF_MPSAFE | AS(nfssvc_args), (sy_call_t *)nosys }, /* 155 = nfssvc */
181 { compat(AS(ogetdirentries_args),getdirentries) }, /* 156 = old getdirentries */
182 { AS(statfs_args), (sy_call_t *)statfs }, /* 157 = statfs */
183 { AS(fstatfs_args), (sy_call_t *)fstatfs }, /* 158 = fstatfs */
184 { 0, (sy_call_t *)nosys }, /* 159 = nosys */
185 { 0, (sy_call_t *)nosys }, /* 160 = nosys */
186 { AS(getfh_args), (sy_call_t *)getfh }, /* 161 = getfh */
187 { SYF_MPSAFE | AS(getdomainname_args), (sy_call_t *)getdomainname }, /* 162 = getdomainname */
188 { SYF_MPSAFE | AS(setdomainname_args), (sy_call_t *)setdomainname }, /* 163 = setdomainname */
189 { SYF_MPSAFE | AS(uname_args), (sy_call_t *)uname }, /* 164 = uname */
190 { AS(sysarch_args), (sy_call_t *)sysarch }, /* 165 = sysarch */
191 { SYF_MPSAFE | AS(rtprio_args), (sy_call_t *)rtprio }, /* 166 = rtprio */
192 { 0, (sy_call_t *)nosys }, /* 167 = nosys */
193 { 0, (sy_call_t *)nosys }, /* 168 = nosys */
194 { SYF_MPSAFE | AS(semsys_args), (sy_call_t *)lkmressys }, /* 169 = semsys */
195 { SYF_MPSAFE | AS(msgsys_args), (sy_call_t *)lkmressys }, /* 170 = msgsys */
196 { SYF_MPSAFE | AS(shmsys_args), (sy_call_t *)lkmressys }, /* 171 = shmsys */
197 { 0, (sy_call_t *)nosys }, /* 172 = nosys */
198 { SYF_MPSAFE | AS(pread_args), (sy_call_t *)pread }, /* 173 = pread */
199 { SYF_MPSAFE | AS(pwrite_args), (sy_call_t *)pwrite }, /* 174 = pwrite */
200 { 0, (sy_call_t *)nosys }, /* 175 = nosys */
201 { SYF_MPSAFE | AS(ntp_adjtime_args), (sy_call_t *)ntp_adjtime }, /* 176 = ntp_adjtime */
202 { 0, (sy_call_t *)nosys }, /* 177 = sfork */
203 { 0, (sy_call_t *)nosys }, /* 178 = getdescriptor */
204 { 0, (sy_call_t *)nosys }, /* 179 = setdescriptor */
205 { 0, (sy_call_t *)nosys }, /* 180 = nosys */
206 { SYF_MPSAFE | AS(setgid_args), (sy_call_t *)setgid }, /* 181 = setgid */
207 { SYF_MPSAFE | AS(setegid_args), (sy_call_t *)setegid }, /* 182 = setegid */
208 { SYF_MPSAFE | AS(seteuid_args), (sy_call_t *)seteuid }, /* 183 = seteuid */
209 { 0, (sy_call_t *)nosys }, /* 184 = lfs_bmapv */
210 { 0, (sy_call_t *)nosys }, /* 185 = lfs_markv */
211 { 0, (sy_call_t *)nosys }, /* 186 = lfs_segclean */
212 { 0, (sy_call_t *)nosys }, /* 187 = lfs_segwait */
213 { AS(stat_args), (sy_call_t *)stat }, /* 188 = stat */
214 { SYF_MPSAFE | AS(fstat_args), (sy_call_t *)fstat }, /* 189 = fstat */
215 { AS(lstat_args), (sy_call_t *)lstat }, /* 190 = lstat */
216 { AS(pathconf_args), (sy_call_t *)pathconf }, /* 191 = pathconf */
217 { SYF_MPSAFE | AS(fpathconf_args), (sy_call_t *)fpathconf }, /* 192 = fpathconf */
218 { 0, (sy_call_t *)nosys }, /* 193 = nosys */
219 { SYF_MPSAFE | AS(__getrlimit_args), (sy_call_t *)getrlimit }, /* 194 = getrlimit */
220 { SYF_MPSAFE | AS(__setrlimit_args), (sy_call_t *)setrlimit }, /* 195 = setrlimit */
221 { AS(getdirentries_args), (sy_call_t *)getdirentries }, /* 196 = getdirentries */
222 { SYF_MPSAFE | AS(mmap_args), (sy_call_t *)mmap }, /* 197 = mmap */
223 { 0, (sy_call_t *)nosys }, /* 198 = __syscall */
224 { AS(lseek_args), (sy_call_t *)lseek }, /* 199 = lseek */
225 { AS(truncate_args), (sy_call_t *)truncate }, /* 200 = truncate */
226 { AS(ftruncate_args), (sy_call_t *)ftruncate }, /* 201 = ftruncate */
227 { SYF_MPSAFE | AS(sysctl_args), (sy_call_t *)__sysctl }, /* 202 = __sysctl */
228 { SYF_MPSAFE | AS(mlock_args), (sy_call_t *)mlock }, /* 203 = mlock */
229 { SYF_MPSAFE | AS(munlock_args), (sy_call_t *)munlock }, /* 204 = munlock */
230 { AS(undelete_args), (sy_call_t *)undelete }, /* 205 = undelete */
231 { AS(futimes_args), (sy_call_t *)futimes }, /* 206 = futimes */
232 { SYF_MPSAFE | AS(getpgid_args), (sy_call_t *)getpgid }, /* 207 = getpgid */
233 { 0, (sy_call_t *)nosys }, /* 208 = newreboot */
234 { SYF_MPSAFE | AS(poll_args), (sy_call_t *)poll }, /* 209 = poll */
235 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 210 = lkmnosys */
236 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 211 = lkmnosys */
237 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 212 = lkmnosys */
238 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 213 = lkmnosys */
239 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 214 = lkmnosys */
240 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 215 = lkmnosys */
241 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 216 = lkmnosys */
242 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 217 = lkmnosys */
243 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 218 = lkmnosys */
244 { AS(nosys_args), (sy_call_t *)lkmnosys }, /* 219 = lkmnosys */
245 { SYF_MPSAFE | AS(__semctl_args), (sy_call_t *)lkmressys }, /* 220 = __semctl */
246 { SYF_MPSAFE | AS(semget_args), (sy_call_t *)lkmressys }, /* 221 = semget */
247 { SYF_MPSAFE | AS(semop_args), (sy_call_t *)lkmressys }, /* 222 = semop */
248 { 0, (sy_call_t *)nosys }, /* 223 = semconfig */
249 { SYF_MPSAFE | AS(msgctl_args), (sy_call_t *)lkmressys }, /* 224 = msgctl */
250 { SYF_MPSAFE | AS(msgget_args), (sy_call_t *)lkmressys }, /* 225 = msgget */
251 { SYF_MPSAFE | AS(msgsnd_args), (sy_call_t *)lkmressys }, /* 226 = msgsnd */
252 { SYF_MPSAFE | AS(msgrcv_args), (sy_call_t *)lkmressys }, /* 227 = msgrcv */
253 { SYF_MPSAFE | AS(shmat_args), (sy_call_t *)lkmressys }, /* 228 = shmat */
254 { SYF_MPSAFE | AS(shmctl_args), (sy_call_t *)lkmressys }, /* 229 = shmctl */
255 { SYF_MPSAFE | AS(shmdt_args), (sy_call_t *)lkmressys }, /* 230 = shmdt */
256 { SYF_MPSAFE | AS(shmget_args), (sy_call_t *)lkmressys }, /* 231 = shmget */
257 { SYF_MPSAFE | AS(clock_gettime_args), (sy_call_t *)clock_gettime }, /* 232 = clock_gettime */
258 { SYF_MPSAFE | AS(clock_settime_args), (sy_call_t *)clock_settime }, /* 233 = clock_settime */
259 { SYF_MPSAFE | AS(clock_getres_args), (sy_call_t *)clock_getres }, /* 234 = clock_getres */
260 { 0, (sy_call_t *)nosys }, /* 235 = timer_create */
261 { 0, (sy_call_t *)nosys }, /* 236 = timer_delete */
262 { 0, (sy_call_t *)nosys }, /* 237 = timer_settime */
263 { 0, (sy_call_t *)nosys }, /* 238 = timer_gettime */
264 { 0, (sy_call_t *)nosys }, /* 239 = timer_getoverrun */
265 { SYF_MPSAFE | AS(nanosleep_args), (sy_call_t *)nanosleep }, /* 240 = nanosleep */
266 { 0, (sy_call_t *)nosys }, /* 241 = nosys */
267 { 0, (sy_call_t *)nosys }, /* 242 = nosys */
268 { 0, (sy_call_t *)nosys }, /* 243 = nosys */
269 { 0, (sy_call_t *)nosys }, /* 244 = nosys */
270 { 0, (sy_call_t *)nosys }, /* 245 = nosys */
271 { 0, (sy_call_t *)nosys }, /* 246 = nosys */
272 { 0, (sy_call_t *)nosys }, /* 247 = nosys */
273 { 0, (sy_call_t *)nosys }, /* 248 = nosys */
274 { 0, (sy_call_t *)nosys }, /* 249 = nosys */
275 { SYF_MPSAFE | AS(minherit_args), (sy_call_t *)minherit }, /* 250 = minherit */
276 { SYF_MPSAFE | AS(rfork_args), (sy_call_t *)rfork }, /* 251 = rfork */
277 { SYF_MPSAFE | AS(openbsd_poll_args), (sy_call_t *)openbsd_poll }, /* 252 = openbsd_poll */
278 { 0, (sy_call_t *)issetugid }, /* 253 = issetugid */
279 { AS(lchown_args), (sy_call_t *)lchown }, /* 254 = lchown */
280 { 0, (sy_call_t *)nosys }, /* 255 = nosys */
281 { 0, (sy_call_t *)nosys }, /* 256 = nosys */
282 { 0, (sy_call_t *)nosys }, /* 257 = nosys */
283 { 0, (sy_call_t *)nosys }, /* 258 = nosys */
284 { 0, (sy_call_t *)nosys }, /* 259 = nosys */
285 { 0, (sy_call_t *)nosys }, /* 260 = nosys */
286 { 0, (sy_call_t *)nosys }, /* 261 = nosys */
287 { 0, (sy_call_t *)nosys }, /* 262 = nosys */
288 { 0, (sy_call_t *)nosys }, /* 263 = nosys */
289 { 0, (sy_call_t *)nosys }, /* 264 = nosys */
290 { 0, (sy_call_t *)nosys }, /* 265 = nosys */
291 { 0, (sy_call_t *)nosys }, /* 266 = nosys */
292 { 0, (sy_call_t *)nosys }, /* 267 = nosys */
293 { 0, (sy_call_t *)nosys }, /* 268 = nosys */
294 { 0, (sy_call_t *)nosys }, /* 269 = nosys */
295 { 0, (sy_call_t *)nosys }, /* 270 = nosys */
296 { 0, (sy_call_t *)nosys }, /* 271 = nosys */
297 { AS(getdents_args), (sy_call_t *)getdents }, /* 272 = getdents */
298 { 0, (sy_call_t *)nosys }, /* 273 = nosys */
299 { AS(lchmod_args), (sy_call_t *)lchmod }, /* 274 = lchmod */
300 { AS(lchown_args), (sy_call_t *)lchown }, /* 275 = netbsd_lchown */
301 { AS(lutimes_args), (sy_call_t *)lutimes }, /* 276 = lutimes */
302 { SYF_MPSAFE | AS(msync_args), (sy_call_t *)msync }, /* 277 = netbsd_msync */
303 { AS(nstat_args), (sy_call_t *)nstat }, /* 278 = nstat */
304 { SYF_MPSAFE | AS(nfstat_args), (sy_call_t *)nfstat }, /* 279 = nfstat */
305 { AS(nlstat_args), (sy_call_t *)nlstat }, /* 280 = nlstat */
306 { 0, (sy_call_t *)nosys }, /* 281 = nosys */
307 { 0, (sy_call_t *)nosys }, /* 282 = nosys */
308 { 0, (sy_call_t *)nosys }, /* 283 = nosys */
309 { 0, (sy_call_t *)nosys }, /* 284 = nosys */
310 { 0, (sy_call_t *)nosys }, /* 285 = nosys */
311 { 0, (sy_call_t *)nosys }, /* 286 = nosys */
312 { 0, (sy_call_t *)nosys }, /* 287 = nosys */
313 { 0, (sy_call_t *)nosys }, /* 288 = nosys */
314 { 0, (sy_call_t *)nosys }, /* 289 = nosys */
315 { 0, (sy_call_t *)nosys }, /* 290 = nosys */
316 { 0, (sy_call_t *)nosys }, /* 291 = nosys */
317 { 0, (sy_call_t *)nosys }, /* 292 = nosys */
318 { 0, (sy_call_t *)nosys }, /* 293 = nosys */
319 { 0, (sy_call_t *)nosys }, /* 294 = nosys */
320 { 0, (sy_call_t *)nosys }, /* 295 = nosys */
321 { 0, (sy_call_t *)nosys }, /* 296 = nosys */
322 { AS(fhstatfs_args), (sy_call_t *)fhstatfs }, /* 297 = fhstatfs */
323 { AS(fhopen_args), (sy_call_t *)fhopen }, /* 298 = fhopen */
324 { AS(fhstat_args), (sy_call_t *)fhstat }, /* 299 = fhstat */
325 { SYF_MPSAFE | AS(modnext_args), (sy_call_t *)modnext }, /* 300 = modnext */
326 { SYF_MPSAFE | AS(modstat_args), (sy_call_t *)modstat }, /* 301 = modstat */
327 { SYF_MPSAFE | AS(modfnext_args), (sy_call_t *)modfnext }, /* 302 = modfnext */
328 { SYF_MPSAFE | AS(modfind_args), (sy_call_t *)modfind }, /* 303 = modfind */
329 { SYF_MPSAFE | AS(kldload_args), (sy_call_t *)kldload }, /* 304 = kldload */
330 { SYF_MPSAFE | AS(kldunload_args), (sy_call_t *)kldunload }, /* 305 = kldunload */
331 { SYF_MPSAFE | AS(kldfind_args), (sy_call_t *)kldfind }, /* 306 = kldfind */
332 { SYF_MPSAFE | AS(kldnext_args), (sy_call_t *)kldnext }, /* 307 = kldnext */
333 { SYF_MPSAFE | AS(kldstat_args), (sy_call_t *)kldstat }, /* 308 = kldstat */
334 { SYF_MPSAFE | AS(kldfirstmod_args), (sy_call_t *)kldfirstmod }, /* 309 = kldfirstmod */
335 { SYF_MPSAFE | AS(getsid_args), (sy_call_t *)getsid }, /* 310 = getsid */
336 { SYF_MPSAFE | AS(setresuid_args), (sy_call_t *)setresuid }, /* 311 = setresuid */
337 { SYF_MPSAFE | AS(setresgid_args), (sy_call_t *)setresgid }, /* 312 = setresgid */
338 { 0, (sy_call_t *)nosys }, /* 313 = obsolete signanosleep */
339 { AS(aio_return_args), (sy_call_t *)lkmressys }, /* 314 = aio_return */
340 { AS(aio_suspend_args), (sy_call_t *)lkmressys }, /* 315 = aio_suspend */
341 { AS(aio_cancel_args), (sy_call_t *)lkmressys }, /* 316 = aio_cancel */
342 { AS(aio_error_args), (sy_call_t *)lkmressys }, /* 317 = aio_error */
343 { AS(aio_read_args), (sy_call_t *)lkmressys }, /* 318 = aio_read */
344 { AS(aio_write_args), (sy_call_t *)lkmressys }, /* 319 = aio_write */
345 { AS(lio_listio_args), (sy_call_t *)lkmressys }, /* 320 = lio_listio */
346 { SYF_MPSAFE | 0, (sy_call_t *)yield }, /* 321 = yield */
347 { 0, (sy_call_t *)nosys }, /* 322 = obsolete thr_sleep */
348 { 0, (sy_call_t *)nosys }, /* 323 = obsolete thr_wakeup */
349 { SYF_MPSAFE | AS(mlockall_args), (sy_call_t *)mlockall }, /* 324 = mlockall */
350 { SYF_MPSAFE | 0, (sy_call_t *)munlockall }, /* 325 = munlockall */
351 { AS(__getcwd_args), (sy_call_t *)__getcwd }, /* 326 = __getcwd */
352 { SYF_MPSAFE | AS(sched_setparam_args), (sy_call_t *)sched_setparam }, /* 327 = sched_setparam */
353 { SYF_MPSAFE | AS(sched_getparam_args), (sy_call_t *)sched_getparam }, /* 328 = sched_getparam */
354 { SYF_MPSAFE | AS(sched_setscheduler_args), (sy_call_t *)sched_setscheduler }, /* 329 = sched_setscheduler */
355 { SYF_MPSAFE | AS(sched_getscheduler_args), (sy_call_t *)sched_getscheduler }, /* 330 = sched_getscheduler */
356 { SYF_MPSAFE | 0, (sy_call_t *)sched_yield }, /* 331 = sched_yield */
357 { SYF_MPSAFE | AS(sched_get_priority_max_args), (sy_call_t *)sched_get_priority_max }, /* 332 = sched_get_priority_max */
358 { SYF_MPSAFE | AS(sched_get_priority_min_args), (sy_call_t *)sched_get_priority_min }, /* 333 = sched_get_priority_min */
359 { SYF_MPSAFE | AS(sched_rr_get_interval_args), (sy_call_t *)sched_rr_get_interval }, /* 334 = sched_rr_get_interval */
360 { AS(utrace_args), (sy_call_t *)utrace }, /* 335 = utrace */
361 { SYF_MPSAFE | AS(sendfile_args), (sy_call_t *)sendfile }, /* 336 = sendfile */
362 { AS(kldsym_args), (sy_call_t *)kldsym }, /* 337 = kldsym */
363 { SYF_MPSAFE | AS(jail_args), (sy_call_t *)jail }, /* 338 = jail */
364 { 0, (sy_call_t *)nosys }, /* 339 = pioctl */
365 { SYF_MPSAFE | AS(sigprocmask_args), (sy_call_t *)sigprocmask }, /* 340 = sigprocmask */
366 { SYF_MPSAFE | AS(sigsuspend_args), (sy_call_t *)sigsuspend }, /* 341 = sigsuspend */
367 { SYF_MPSAFE | AS(sigaction_args), (sy_call_t *)sigaction }, /* 342 = sigaction */
368 { SYF_MPSAFE | AS(sigpending_args), (sy_call_t *)sigpending }, /* 343 = sigpending */
369 { AS(sigreturn_args), (sy_call_t *)sigreturn }, /* 344 = sigreturn */
370 { 0, (sy_call_t *)nosys }, /* 345 = sigtimedwait */
371 { 0, (sy_call_t *)nosys }, /* 346 = sigwaitinfo */
372 { SYF_MPSAFE | AS(__acl_get_file_args), (sy_call_t *)__acl_get_file }, /* 347 = __acl_get_file */
373 { SYF_MPSAFE | AS(__acl_set_file_args), (sy_call_t *)__acl_set_file }, /* 348 = __acl_set_file */
374 { SYF_MPSAFE | AS(__acl_get_fd_args), (sy_call_t *)__acl_get_fd }, /* 349 = __acl_get_fd */
375 { SYF_MPSAFE | AS(__acl_set_fd_args), (sy_call_t *)__acl_set_fd }, /* 350 = __acl_set_fd */
376 { SYF_MPSAFE | AS(__acl_delete_file_args), (sy_call_t *)__acl_delete_file }, /* 351 = __acl_delete_file */
377 { SYF_MPSAFE | AS(__acl_delete_fd_args), (sy_call_t *)__acl_delete_fd }, /* 352 = __acl_delete_fd */
378 { SYF_MPSAFE | AS(__acl_aclcheck_file_args), (sy_call_t *)__acl_aclcheck_file }, /* 353 = __acl_aclcheck_file */
379 { SYF_MPSAFE | AS(__acl_aclcheck_fd_args), (sy_call_t *)__acl_aclcheck_fd }, /* 354 = __acl_aclcheck_fd */
380 { AS(extattrctl_args), (sy_call_t *)extattrctl }, /* 355 = extattrctl */
381 { AS(extattr_set_file_args), (sy_call_t *)extattr_set_file }, /* 356 = extattr_set_file */
382 { AS(extattr_get_file_args), (sy_call_t *)extattr_get_file }, /* 357 = extattr_get_file */
383 { AS(extattr_delete_file_args), (sy_call_t *)extattr_delete_file }, /* 358 = extattr_delete_file */
384 { AS(aio_waitcomplete_args), (sy_call_t *)lkmressys }, /* 359 = aio_waitcomplete */
385 { SYF_MPSAFE | AS(getresuid_args), (sy_call_t *)getresuid }, /* 360 = getresuid */
386 { SYF_MPSAFE | AS(getresgid_args), (sy_call_t *)getresgid }, /* 361 = getresgid */
387 { SYF_MPSAFE | 0, (sy_call_t *)kqueue }, /* 362 = kqueue */
388 { SYF_MPSAFE | AS(kevent_args), (sy_call_t *)kevent }, /* 363 = kevent */
389 { AS(__cap_get_proc_args), (sy_call_t *)__cap_get_proc }, /* 364 = __cap_get_proc */
390 { AS(__cap_set_proc_args), (sy_call_t *)__cap_set_proc }, /* 365 = __cap_set_proc */
391 { AS(__cap_get_fd_args), (sy_call_t *)__cap_get_fd }, /* 366 = __cap_get_fd */
392 { AS(__cap_get_file_args), (sy_call_t *)__cap_get_file }, /* 367 = __cap_get_file */
393 { AS(__cap_set_fd_args), (sy_call_t *)__cap_set_fd }, /* 368 = __cap_set_fd */
394 { AS(__cap_set_file_args), (sy_call_t *)__cap_set_file }, /* 369 = __cap_set_file */
395 { AS(nosys_args), (sy_call_t *)lkmressys }, /* 370 = lkmressys */
396 { AS(extattr_set_fd_args), (sy_call_t *)extattr_set_fd }, /* 371 = extattr_set_fd */
397 { AS(extattr_get_fd_args), (sy_call_t *)extattr_get_fd }, /* 372 = extattr_get_fd */
398 { AS(extattr_delete_fd_args), (sy_call_t *)extattr_delete_fd }, /* 373 = extattr_delete_fd */
399 { SYF_MPSAFE | AS(__setugid_args), (sy_call_t *)__setugid }, /* 374 = __setugid */
400 { AS(nfsclnt_args), (sy_call_t *)nosys }, /* 375 = nfsclnt */
401 { AS(eaccess_args), (sy_call_t *)eaccess }, /* 376 = eaccess */
402 { 0, (sy_call_t *)nosys }, /* 377 = afs_syscall */
403 { AS(nmount_args), (sy_call_t *)nmount }, /* 378 = nmount */
404 { 0, (sy_call_t *)kse_exit }, /* 379 = kse_exit */
405 { 0, (sy_call_t *)kse_wakeup }, /* 380 = kse_wakeup */
406 { AS(kse_new_args), (sy_call_t *)kse_new }, /* 381 = kse_new */
407 { AS(thread_wakeup_args), (sy_call_t *)thread_wakeup }, /* 382 = thread_wakeup */
408 { 0, (sy_call_t *)kse_yield }, /* 383 = kse_yield */
409 { 0, (sy_call_t *)nosys }, /* 384 = __mac_get_proc */
410 { 0, (sy_call_t *)nosys }, /* 385 = __mac_set_proc */
411 { 0, (sy_call_t *)nosys }, /* 386 = __mac_get_fd */
412 { 0, (sy_call_t *)nosys }, /* 387 = __mac_get_file */
413 { 0, (sy_call_t *)nosys }, /* 388 = __mac_set_fd */
414 { 0, (sy_call_t *)nosys }, /* 389 = __mac_set_file */