netbsd32_sysent.c revision 1.21.2.4 1 1.21.2.3 nathanw /* $NetBSD: netbsd32_sysent.c,v 1.21.2.4 2002/06/20 03:43:12 nathanw Exp $ */
2 1.1 mrg
3 1.1 mrg /*
4 1.1 mrg * System call switch table.
5 1.1 mrg *
6 1.1 mrg * DO NOT EDIT-- this file is automatically generated.
7 1.21.2.3 nathanw * created from NetBSD: syscalls.master,v 1.18.2.2 2002/05/29 21:32:50 nathanw Exp
8 1.1 mrg */
9 1.21.2.2 nathanw
10 1.21.2.2 nathanw #include <sys/cdefs.h>
11 1.21.2.2 nathanw __KERNEL_RCSID(0, "$NetBSD: netbsd32_sysent.c,v 1.21.2.4 2002/06/20 03:43:12 nathanw Exp $");
12 1.1 mrg
13 1.21.2.1 nathanw #if defined(_KERNEL_OPT)
14 1.1 mrg #include "opt_ktrace.h"
15 1.1 mrg #include "opt_nfsserver.h"
16 1.1 mrg #include "opt_compat_netbsd.h"
17 1.4 eeh #include "opt_ntp.h"
18 1.5 tron #include "opt_sysv.h"
19 1.6 christos #include "opt_compat_43.h"
20 1.1 mrg #include "fs_lfs.h"
21 1.1 mrg #include "fs_nfs.h"
22 1.17 jdolecek #endif
23 1.1 mrg #include <sys/param.h>
24 1.1 mrg #include <sys/systm.h>
25 1.1 mrg #include <sys/signal.h>
26 1.1 mrg #include <sys/mount.h>
27 1.21.2.3 nathanw #include <sys/sa.h>
28 1.1 mrg #include <sys/syscallargs.h>
29 1.8 mrg #include <compat/netbsd32/netbsd32.h>
30 1.8 mrg #include <compat/netbsd32/netbsd32_syscallargs.h>
31 1.1 mrg
32 1.1 mrg #ifdef COMPAT_43
33 1.21.2.1 nathanw #define compat_43(func) __CONCAT(compat_43_,func)
34 1.1 mrg #else
35 1.21.2.1 nathanw #define compat_43(func) sys_nosys
36 1.1 mrg #endif
37 1.1 mrg
38 1.1 mrg #ifdef COMPAT_09
39 1.21.2.1 nathanw #define compat_09(func) __CONCAT(compat_09_,func)
40 1.1 mrg #else
41 1.21.2.1 nathanw #define compat_09(func) sys_nosys
42 1.1 mrg #endif
43 1.1 mrg
44 1.1 mrg #ifdef COMPAT_10
45 1.21.2.1 nathanw #define compat_10(func) __CONCAT(compat_10_,func)
46 1.1 mrg #else
47 1.21.2.1 nathanw #define compat_10(func) sys_nosys
48 1.1 mrg #endif
49 1.1 mrg
50 1.1 mrg #ifdef COMPAT_11
51 1.21.2.1 nathanw #define compat_11(func) __CONCAT(compat_11_,func)
52 1.1 mrg #else
53 1.21.2.1 nathanw #define compat_11(func) sys_nosys
54 1.1 mrg #endif
55 1.1 mrg
56 1.1 mrg #ifdef COMPAT_12
57 1.21.2.1 nathanw #define compat_12(func) __CONCAT(compat_12_,func)
58 1.1 mrg #else
59 1.21.2.1 nathanw #define compat_12(func) sys_nosys
60 1.1 mrg #endif
61 1.1 mrg
62 1.1 mrg #ifdef COMPAT_13
63 1.21.2.1 nathanw #define compat_13(func) __CONCAT(compat_13_,func)
64 1.1 mrg #else
65 1.21.2.1 nathanw #define compat_13(func) sys_nosys
66 1.1 mrg #endif
67 1.1 mrg
68 1.11 eeh #ifdef COMPAT_14
69 1.21.2.1 nathanw #define compat_14(func) __CONCAT(compat_14_,func)
70 1.11 eeh #else
71 1.21.2.1 nathanw #define compat_14(func) sys_nosys
72 1.11 eeh #endif
73 1.11 eeh
74 1.1 mrg #define s(type) sizeof(type)
75 1.1 mrg
76 1.8 mrg struct sysent netbsd32_sysent[] = {
77 1.19 thorpej { 0, 0, 0,
78 1.1 mrg sys_nosys }, /* 0 = syscall (indir) */
79 1.19 thorpej { 1, s(struct netbsd32_exit_args), 0,
80 1.11 eeh netbsd32_exit }, /* 1 = netbsd32_exit */
81 1.19 thorpej { 0, 0, 0,
82 1.1 mrg sys_fork }, /* 2 = fork */
83 1.19 thorpej { 3, s(struct netbsd32_read_args), 0,
84 1.11 eeh netbsd32_read }, /* 3 = netbsd32_read */
85 1.19 thorpej { 3, s(struct netbsd32_write_args), 0,
86 1.11 eeh netbsd32_write }, /* 4 = netbsd32_write */
87 1.19 thorpej { 3, s(struct netbsd32_open_args), 0,
88 1.11 eeh netbsd32_open }, /* 5 = netbsd32_open */
89 1.19 thorpej { 1, s(struct netbsd32_close_args), 0,
90 1.11 eeh netbsd32_close }, /* 6 = netbsd32_close */
91 1.19 thorpej { 4, s(struct netbsd32_wait4_args), 0,
92 1.11 eeh netbsd32_wait4 }, /* 7 = netbsd32_wait4 */
93 1.19 thorpej { 2, s(struct compat_43_netbsd32_ocreat_args), 0,
94 1.11 eeh compat_43(netbsd32_ocreat) }, /* 8 = compat_43 netbsd32_ocreat */
95 1.19 thorpej { 2, s(struct netbsd32_link_args), 0,
96 1.11 eeh netbsd32_link }, /* 9 = netbsd32_link */
97 1.19 thorpej { 1, s(struct netbsd32_unlink_args), 0,
98 1.11 eeh netbsd32_unlink }, /* 10 = netbsd32_unlink */
99 1.19 thorpej { 0, 0, 0,
100 1.1 mrg sys_nosys }, /* 11 = obsolete execv */
101 1.19 thorpej { 1, s(struct netbsd32_chdir_args), 0,
102 1.11 eeh netbsd32_chdir }, /* 12 = netbsd32_chdir */
103 1.19 thorpej { 1, s(struct netbsd32_fchdir_args), 0,
104 1.11 eeh netbsd32_fchdir }, /* 13 = netbsd32_fchdir */
105 1.19 thorpej { 3, s(struct netbsd32_mknod_args), 0,
106 1.11 eeh netbsd32_mknod }, /* 14 = netbsd32_mknod */
107 1.19 thorpej { 2, s(struct netbsd32_chmod_args), 0,
108 1.11 eeh netbsd32_chmod }, /* 15 = netbsd32_chmod */
109 1.19 thorpej { 3, s(struct netbsd32_chown_args), 0,
110 1.11 eeh netbsd32_chown }, /* 16 = netbsd32_chown */
111 1.19 thorpej { 1, s(struct netbsd32_break_args), 0,
112 1.11 eeh netbsd32_break }, /* 17 = netbsd32_break */
113 1.19 thorpej { 3, s(struct netbsd32_getfsstat_args), 0,
114 1.11 eeh netbsd32_getfsstat }, /* 18 = netbsd32_getfsstat */
115 1.19 thorpej { 3, s(struct compat_43_netbsd32_olseek_args), 0,
116 1.11 eeh compat_43(netbsd32_olseek) }, /* 19 = compat_43 netbsd32_olseek */
117 1.20 thorpej { 0, 0, SYCALL_MPSAFE | 0,
118 1.1 mrg sys_getpid }, /* 20 = getpid */
119 1.19 thorpej { 4, s(struct netbsd32_mount_args), 0,
120 1.11 eeh netbsd32_mount }, /* 21 = netbsd32_mount */
121 1.19 thorpej { 2, s(struct netbsd32_unmount_args), 0,
122 1.11 eeh netbsd32_unmount }, /* 22 = netbsd32_unmount */
123 1.19 thorpej { 1, s(struct netbsd32_setuid_args), 0,
124 1.11 eeh netbsd32_setuid }, /* 23 = netbsd32_setuid */
125 1.19 thorpej { 0, 0, 0,
126 1.1 mrg sys_getuid }, /* 24 = getuid */
127 1.19 thorpej { 0, 0, 0,
128 1.1 mrg sys_geteuid }, /* 25 = geteuid */
129 1.19 thorpej { 4, s(struct netbsd32_ptrace_args), 0,
130 1.11 eeh netbsd32_ptrace }, /* 26 = netbsd32_ptrace */
131 1.19 thorpej { 3, s(struct netbsd32_recvmsg_args), 0,
132 1.11 eeh netbsd32_recvmsg }, /* 27 = netbsd32_recvmsg */
133 1.19 thorpej { 3, s(struct netbsd32_sendmsg_args), 0,
134 1.11 eeh netbsd32_sendmsg }, /* 28 = netbsd32_sendmsg */
135 1.19 thorpej { 6, s(struct netbsd32_recvfrom_args), 0,
136 1.11 eeh netbsd32_recvfrom }, /* 29 = netbsd32_recvfrom */
137 1.19 thorpej { 3, s(struct netbsd32_accept_args), 0,
138 1.11 eeh netbsd32_accept }, /* 30 = netbsd32_accept */
139 1.19 thorpej { 3, s(struct netbsd32_getpeername_args), 0,
140 1.11 eeh netbsd32_getpeername }, /* 31 = netbsd32_getpeername */
141 1.19 thorpej { 3, s(struct netbsd32_getsockname_args), 0,
142 1.11 eeh netbsd32_getsockname }, /* 32 = netbsd32_getsockname */
143 1.19 thorpej { 2, s(struct netbsd32_access_args), 0,
144 1.11 eeh netbsd32_access }, /* 33 = netbsd32_access */
145 1.19 thorpej { 2, s(struct netbsd32_chflags_args), 0,
146 1.11 eeh netbsd32_chflags }, /* 34 = netbsd32_chflags */
147 1.19 thorpej { 2, s(struct netbsd32_fchflags_args), 0,
148 1.11 eeh netbsd32_fchflags }, /* 35 = netbsd32_fchflags */
149 1.19 thorpej { 0, 0, 0,
150 1.1 mrg sys_sync }, /* 36 = sync */
151 1.19 thorpej { 2, s(struct netbsd32_kill_args), 0,
152 1.11 eeh netbsd32_kill }, /* 37 = netbsd32_kill */
153 1.19 thorpej { 2, s(struct compat_43_netbsd32_stat43_args), 0,
154 1.11 eeh compat_43(netbsd32_stat43) }, /* 38 = compat_43 netbsd32_stat43 */
155 1.19 thorpej { 0, 0, 0,
156 1.1 mrg sys_getppid }, /* 39 = getppid */
157 1.19 thorpej { 2, s(struct compat_43_netbsd32_lstat43_args), 0,
158 1.11 eeh compat_43(netbsd32_lstat43) }, /* 40 = compat_43 netbsd32_lstat43 */
159 1.19 thorpej { 1, s(struct netbsd32_dup_args), 0,
160 1.11 eeh netbsd32_dup }, /* 41 = netbsd32_dup */
161 1.19 thorpej { 0, 0, 0,
162 1.1 mrg sys_pipe }, /* 42 = pipe */
163 1.19 thorpej { 0, 0, 0,
164 1.1 mrg sys_getegid }, /* 43 = getegid */
165 1.19 thorpej { 4, s(struct netbsd32_profil_args), 0,
166 1.11 eeh netbsd32_profil }, /* 44 = netbsd32_profil */
167 1.10 christos #if defined(KTRACE) || !defined(_KERNEL)
168 1.19 thorpej { 4, s(struct netbsd32_ktrace_args), 0,
169 1.11 eeh netbsd32_ktrace }, /* 45 = netbsd32_ktrace */
170 1.1 mrg #else
171 1.19 thorpej { 0, 0, 0,
172 1.11 eeh sys_nosys }, /* 45 = excluded netbsd32_ktrace */
173 1.1 mrg #endif
174 1.19 thorpej { 3, s(struct netbsd32_sigaction_args), 0,
175 1.11 eeh netbsd32_sigaction }, /* 46 = netbsd32_sigaction */
176 1.19 thorpej { 0, 0, 0,
177 1.1 mrg sys_getgid }, /* 47 = getgid */
178 1.19 thorpej { 2, s(struct compat_13_netbsd32_sigprocmask_args), 0,
179 1.11 eeh compat_13(netbsd32_sigprocmask) }, /* 48 = compat_13 sigprocmask13 */
180 1.19 thorpej { 2, s(struct netbsd32___getlogin_args), 0,
181 1.11 eeh netbsd32___getlogin }, /* 49 = netbsd32___getlogin */
182 1.19 thorpej { 1, s(struct netbsd32_setlogin_args), 0,
183 1.11 eeh netbsd32_setlogin }, /* 50 = netbsd32_setlogin */
184 1.19 thorpej { 1, s(struct netbsd32_acct_args), 0,
185 1.11 eeh netbsd32_acct }, /* 51 = netbsd32_acct */
186 1.19 thorpej { 0, 0, 0,
187 1.4 eeh compat_13(sys_sigpending) }, /* 52 = compat_13 sigpending13 */
188 1.19 thorpej { 2, s(struct compat_13_netbsd32_sigaltstack13_args), 0,
189 1.11 eeh compat_13(netbsd32_sigaltstack13) },/* 53 = compat_13 netbsd32_sigaltstack13 */
190 1.19 thorpej { 3, s(struct netbsd32_ioctl_args), 0,
191 1.11 eeh netbsd32_ioctl }, /* 54 = netbsd32_ioctl */
192 1.19 thorpej { 1, s(struct compat_12_netbsd32_reboot_args), 0,
193 1.11 eeh compat_12(netbsd32_reboot) }, /* 55 = compat_12 netbsd32_reboot */
194 1.19 thorpej { 1, s(struct netbsd32_revoke_args), 0,
195 1.11 eeh netbsd32_revoke }, /* 56 = netbsd32_revoke */
196 1.19 thorpej { 2, s(struct netbsd32_symlink_args), 0,
197 1.11 eeh netbsd32_symlink }, /* 57 = netbsd32_symlink */
198 1.19 thorpej { 3, s(struct netbsd32_readlink_args), 0,
199 1.11 eeh netbsd32_readlink }, /* 58 = netbsd32_readlink */
200 1.19 thorpej { 3, s(struct netbsd32_execve_args), 0,
201 1.11 eeh netbsd32_execve }, /* 59 = netbsd32_execve */
202 1.19 thorpej { 1, s(struct netbsd32_umask_args), 0,
203 1.11 eeh netbsd32_umask }, /* 60 = netbsd32_umask */
204 1.19 thorpej { 1, s(struct netbsd32_chroot_args), 0,
205 1.11 eeh netbsd32_chroot }, /* 61 = netbsd32_chroot */
206 1.19 thorpej { 2, s(struct compat_43_netbsd32_fstat43_args), 0,
207 1.11 eeh compat_43(netbsd32_fstat43) }, /* 62 = compat_43 netbsd32_fstat43 */
208 1.19 thorpej { 4, s(struct compat_43_netbsd32_ogetkerninfo_args), 0,
209 1.11 eeh compat_43(netbsd32_ogetkerninfo) }, /* 63 = compat_43 netbsd32_ogetkerninfo */
210 1.19 thorpej { 0, 0, 0,
211 1.1 mrg compat_43(sys_getpagesize) }, /* 64 = compat_43 ogetpagesize */
212 1.19 thorpej { 2, s(struct compat_12_netbsd32_msync_args), 0,
213 1.11 eeh compat_12(netbsd32_msync) }, /* 65 = compat_12 netbsd32_msync */
214 1.19 thorpej { 0, 0, 0,
215 1.1 mrg sys_vfork }, /* 66 = vfork */
216 1.19 thorpej { 0, 0, 0,
217 1.1 mrg sys_nosys }, /* 67 = obsolete vread */
218 1.19 thorpej { 0, 0, 0,
219 1.1 mrg sys_nosys }, /* 68 = obsolete vwrite */
220 1.19 thorpej { 1, s(struct netbsd32_sbrk_args), 0,
221 1.11 eeh netbsd32_sbrk }, /* 69 = netbsd32_sbrk */
222 1.19 thorpej { 1, s(struct netbsd32_sstk_args), 0,
223 1.11 eeh netbsd32_sstk }, /* 70 = netbsd32_sstk */
224 1.19 thorpej { 6, s(struct compat_43_netbsd32_ommap_args), 0,
225 1.11 eeh compat_43(netbsd32_ommap) }, /* 71 = compat_43 netbsd32_ommap */
226 1.19 thorpej { 1, s(struct netbsd32_ovadvise_args), 0,
227 1.11 eeh netbsd32_ovadvise }, /* 72 = vadvise */
228 1.19 thorpej { 2, s(struct netbsd32_munmap_args), 0,
229 1.11 eeh netbsd32_munmap }, /* 73 = netbsd32_munmap */
230 1.19 thorpej { 3, s(struct netbsd32_mprotect_args), 0,
231 1.11 eeh netbsd32_mprotect }, /* 74 = netbsd32_mprotect */
232 1.19 thorpej { 3, s(struct netbsd32_madvise_args), 0,
233 1.11 eeh netbsd32_madvise }, /* 75 = netbsd32_madvise */
234 1.19 thorpej { 0, 0, 0,
235 1.1 mrg sys_nosys }, /* 76 = obsolete vhangup */
236 1.19 thorpej { 0, 0, 0,
237 1.1 mrg sys_nosys }, /* 77 = obsolete vlimit */
238 1.19 thorpej { 3, s(struct netbsd32_mincore_args), 0,
239 1.11 eeh netbsd32_mincore }, /* 78 = netbsd32_mincore */
240 1.19 thorpej { 2, s(struct netbsd32_getgroups_args), 0,
241 1.11 eeh netbsd32_getgroups }, /* 79 = netbsd32_getgroups */
242 1.19 thorpej { 2, s(struct netbsd32_setgroups_args), 0,
243 1.11 eeh netbsd32_setgroups }, /* 80 = netbsd32_setgroups */
244 1.19 thorpej { 0, 0, 0,
245 1.1 mrg sys_getpgrp }, /* 81 = getpgrp */
246 1.19 thorpej { 2, s(struct netbsd32_setpgid_args), 0,
247 1.11 eeh netbsd32_setpgid }, /* 82 = netbsd32_setpgid */
248 1.19 thorpej { 3, s(struct netbsd32_setitimer_args), 0,
249 1.11 eeh netbsd32_setitimer }, /* 83 = netbsd32_setitimer */
250 1.19 thorpej { 0, 0, 0,
251 1.1 mrg compat_43(sys_wait) }, /* 84 = compat_43 owait */
252 1.19 thorpej { 1, s(struct compat_12_netbsd32_oswapon_args), 0,
253 1.11 eeh compat_12(netbsd32_oswapon) }, /* 85 = compat_12 netbsd32_oswapon */
254 1.19 thorpej { 2, s(struct netbsd32_getitimer_args), 0,
255 1.11 eeh netbsd32_getitimer }, /* 86 = netbsd32_getitimer */
256 1.19 thorpej { 2, s(struct compat_43_netbsd32_ogethostname_args), 0,
257 1.11 eeh compat_43(netbsd32_ogethostname) }, /* 87 = compat_43 netbsd32_ogethostname */
258 1.19 thorpej { 2, s(struct compat_43_netbsd32_osethostname_args), 0,
259 1.11 eeh compat_43(netbsd32_osethostname) }, /* 88 = compat_43 netbsd32_osethostname */
260 1.19 thorpej { 0, 0, 0,
261 1.1 mrg compat_43(sys_getdtablesize) }, /* 89 = compat_43 ogetdtablesize */
262 1.19 thorpej { 2, s(struct netbsd32_dup2_args), 0,
263 1.11 eeh netbsd32_dup2 }, /* 90 = netbsd32_dup2 */
264 1.19 thorpej { 0, 0, 0,
265 1.1 mrg sys_nosys }, /* 91 = unimplemented getdopt */
266 1.19 thorpej { 3, s(struct netbsd32_fcntl_args), 0,
267 1.11 eeh netbsd32_fcntl }, /* 92 = netbsd32_fcntl */
268 1.19 thorpej { 5, s(struct netbsd32_select_args), 0,
269 1.11 eeh netbsd32_select }, /* 93 = netbsd32_select */
270 1.19 thorpej { 0, 0, 0,
271 1.1 mrg sys_nosys }, /* 94 = unimplemented setdopt */
272 1.19 thorpej { 1, s(struct netbsd32_fsync_args), 0,
273 1.11 eeh netbsd32_fsync }, /* 95 = netbsd32_fsync */
274 1.19 thorpej { 3, s(struct netbsd32_setpriority_args), 0,
275 1.11 eeh netbsd32_setpriority }, /* 96 = netbsd32_setpriority */
276 1.19 thorpej { 3, s(struct netbsd32_socket_args), 0,
277 1.11 eeh netbsd32_socket }, /* 97 = netbsd32_socket */
278 1.19 thorpej { 3, s(struct netbsd32_connect_args), 0,
279 1.11 eeh netbsd32_connect }, /* 98 = netbsd32_connect */
280 1.19 thorpej { 3, s(struct compat_43_netbsd32_oaccept_args), 0,
281 1.11 eeh compat_43(netbsd32_oaccept) }, /* 99 = compat_43 netbsd32_oaccept */
282 1.19 thorpej { 2, s(struct netbsd32_getpriority_args), 0,
283 1.11 eeh netbsd32_getpriority }, /* 100 = netbsd32_getpriority */
284 1.19 thorpej { 4, s(struct compat_43_netbsd32_osend_args), 0,
285 1.11 eeh compat_43(netbsd32_osend) }, /* 101 = compat_43 netbsd32_osend */
286 1.19 thorpej { 4, s(struct compat_43_netbsd32_orecv_args), 0,
287 1.11 eeh compat_43(netbsd32_orecv) }, /* 102 = compat_43 netbsd32_orecv */
288 1.19 thorpej { 1, s(struct compat_13_netbsd32_sigreturn_args), 0,
289 1.12 eeh compat_13(netbsd32_sigreturn) }, /* 103 = compat_13 sigreturn13 */
290 1.19 thorpej { 3, s(struct netbsd32_bind_args), 0,
291 1.11 eeh netbsd32_bind }, /* 104 = netbsd32_bind */
292 1.19 thorpej { 5, s(struct netbsd32_setsockopt_args), 0,
293 1.11 eeh netbsd32_setsockopt }, /* 105 = netbsd32_setsockopt */
294 1.19 thorpej { 2, s(struct netbsd32_listen_args), 0,
295 1.11 eeh netbsd32_listen }, /* 106 = netbsd32_listen */
296 1.19 thorpej { 0, 0, 0,
297 1.1 mrg sys_nosys }, /* 107 = obsolete vtimes */
298 1.19 thorpej { 3, s(struct compat_43_netbsd32_osigvec_args), 0,
299 1.11 eeh compat_43(netbsd32_osigvec) }, /* 108 = compat_43 netbsd32_osigvec */
300 1.1 mrg #ifdef COMPAT_43
301 1.19 thorpej { 1, s(struct compat_43_netbsd32_sigblock_args), 0,
302 1.11 eeh compat_43(netbsd32_sigblock) }, /* 109 = compat_43 netbsd32_sigblock */
303 1.19 thorpej { 1, s(struct compat_43_netbsd32_sigsetmask_args), 0,
304 1.11 eeh compat_43(netbsd32_sigsetmask) }, /* 110 = compat_43 netbsd32_sigsetmask */
305 1.1 mrg #else
306 1.19 thorpej { 0, 0, 0,
307 1.1 mrg sys_nosys }, /* 109 = obsolete sigblock */
308 1.19 thorpej { 0, 0, 0,
309 1.1 mrg sys_nosys }, /* 110 = obsolete sigsetmask */
310 1.1 mrg #endif
311 1.19 thorpej { 1, s(struct compat_13_netbsd32_sigsuspend_args), 0,
312 1.11 eeh compat_13(netbsd32_sigsuspend) }, /* 111 = compat_13 sigsuspend13 */
313 1.19 thorpej { 2, s(struct compat_43_netbsd32_osigstack_args), 0,
314 1.11 eeh compat_43(netbsd32_osigstack) }, /* 112 = compat_43 netbsd32_osigstack */
315 1.19 thorpej { 3, s(struct compat_43_netbsd32_orecvmsg_args), 0,
316 1.11 eeh compat_43(netbsd32_orecvmsg) }, /* 113 = compat_43 netbsd32_orecvmsg */
317 1.19 thorpej { 3, s(struct compat_43_netbsd32_osendmsg_args), 0,
318 1.11 eeh compat_43(netbsd32_osendmsg) }, /* 114 = compat_43 netbsd32_osendmsg */
319 1.19 thorpej { 0, 0, 0,
320 1.1 mrg sys_nosys }, /* 115 = obsolete vtrace */
321 1.19 thorpej { 2, s(struct netbsd32_gettimeofday_args), 0,
322 1.11 eeh netbsd32_gettimeofday }, /* 116 = netbsd32_gettimeofday */
323 1.19 thorpej { 2, s(struct netbsd32_getrusage_args), 0,
324 1.11 eeh netbsd32_getrusage }, /* 117 = netbsd32_getrusage */
325 1.19 thorpej { 5, s(struct netbsd32_getsockopt_args), 0,
326 1.11 eeh netbsd32_getsockopt }, /* 118 = netbsd32_getsockopt */
327 1.19 thorpej { 0, 0, 0,
328 1.1 mrg sys_nosys }, /* 119 = obsolete resuba */
329 1.19 thorpej { 3, s(struct netbsd32_readv_args), 0,
330 1.11 eeh netbsd32_readv }, /* 120 = netbsd32_readv */
331 1.19 thorpej { 3, s(struct netbsd32_writev_args), 0,
332 1.11 eeh netbsd32_writev }, /* 121 = netbsd32_writev */
333 1.19 thorpej { 2, s(struct netbsd32_settimeofday_args), 0,
334 1.11 eeh netbsd32_settimeofday }, /* 122 = netbsd32_settimeofday */
335 1.19 thorpej { 3, s(struct netbsd32_fchown_args), 0,
336 1.11 eeh netbsd32_fchown }, /* 123 = netbsd32_fchown */
337 1.19 thorpej { 2, s(struct netbsd32_fchmod_args), 0,
338 1.11 eeh netbsd32_fchmod }, /* 124 = netbsd32_fchmod */
339 1.19 thorpej { 6, s(struct compat_43_netbsd32_orecvfrom_args), 0,
340 1.11 eeh compat_43(netbsd32_orecvfrom) }, /* 125 = compat_43 netbsd32_orecvfrom */
341 1.19 thorpej { 2, s(struct netbsd32_setreuid_args), 0,
342 1.11 eeh netbsd32_setreuid }, /* 126 = netbsd32_setreuid */
343 1.19 thorpej { 2, s(struct netbsd32_setregid_args), 0,
344 1.11 eeh netbsd32_setregid }, /* 127 = netbsd32_setregid */
345 1.19 thorpej { 2, s(struct netbsd32_rename_args), 0,
346 1.11 eeh netbsd32_rename }, /* 128 = netbsd32_rename */
347 1.19 thorpej { 2, s(struct compat_43_netbsd32_otruncate_args), 0,
348 1.11 eeh compat_43(netbsd32_otruncate) }, /* 129 = compat_43 netbsd32_otruncate */
349 1.19 thorpej { 2, s(struct compat_43_netbsd32_oftruncate_args), 0,
350 1.11 eeh compat_43(netbsd32_oftruncate) }, /* 130 = compat_43 netbsd32_oftruncate */
351 1.19 thorpej { 2, s(struct netbsd32_flock_args), 0,
352 1.11 eeh netbsd32_flock }, /* 131 = netbsd32_flock */
353 1.19 thorpej { 2, s(struct netbsd32_mkfifo_args), 0,
354 1.11 eeh netbsd32_mkfifo }, /* 132 = netbsd32_mkfifo */
355 1.19 thorpej { 6, s(struct netbsd32_sendto_args), 0,
356 1.11 eeh netbsd32_sendto }, /* 133 = netbsd32_sendto */
357 1.19 thorpej { 2, s(struct netbsd32_shutdown_args), 0,
358 1.11 eeh netbsd32_shutdown }, /* 134 = netbsd32_shutdown */
359 1.19 thorpej { 4, s(struct netbsd32_socketpair_args), 0,
360 1.11 eeh netbsd32_socketpair }, /* 135 = netbsd32_socketpair */
361 1.19 thorpej { 2, s(struct netbsd32_mkdir_args), 0,
362 1.11 eeh netbsd32_mkdir }, /* 136 = netbsd32_mkdir */
363 1.19 thorpej { 1, s(struct netbsd32_rmdir_args), 0,
364 1.11 eeh netbsd32_rmdir }, /* 137 = netbsd32_rmdir */
365 1.19 thorpej { 2, s(struct netbsd32_utimes_args), 0,
366 1.11 eeh netbsd32_utimes }, /* 138 = netbsd32_utimes */
367 1.19 thorpej { 0, 0, 0,
368 1.1 mrg sys_nosys }, /* 139 = obsolete 4.2 sigreturn */
369 1.19 thorpej { 2, s(struct netbsd32_adjtime_args), 0,
370 1.11 eeh netbsd32_adjtime }, /* 140 = netbsd32_adjtime */
371 1.19 thorpej { 3, s(struct compat_43_netbsd32_ogetpeername_args), 0,
372 1.11 eeh compat_43(netbsd32_ogetpeername) }, /* 141 = compat_43 netbsd32_ogetpeername */
373 1.19 thorpej { 0, 0, 0,
374 1.1 mrg compat_43(sys_gethostid) }, /* 142 = compat_43 ogethostid */
375 1.1 mrg #ifdef COMPAT_43
376 1.19 thorpej { 1, s(struct compat_43_netbsd32_sethostid_args), 0,
377 1.11 eeh compat_43(netbsd32_sethostid) }, /* 143 = compat_43 netbsd32_sethostid */
378 1.1 mrg #else
379 1.19 thorpej { 0, 0, 0,
380 1.1 mrg sys_nosys }, /* 143 = obsolete sethostid */
381 1.1 mrg #endif
382 1.19 thorpej { 2, s(struct compat_43_netbsd32_ogetrlimit_args), 0,
383 1.11 eeh compat_43(netbsd32_ogetrlimit) }, /* 144 = compat_43 netbsd32_ogetrlimit */
384 1.19 thorpej { 2, s(struct compat_43_netbsd32_osetrlimit_args), 0,
385 1.11 eeh compat_43(netbsd32_osetrlimit) }, /* 145 = compat_43 netbsd32_osetrlimit */
386 1.1 mrg #ifdef COMPAT_43
387 1.19 thorpej { 2, s(struct compat_43_netbsd32_killpg_args), 0,
388 1.11 eeh compat_43(netbsd32_killpg) }, /* 146 = compat_43 netbsd32_killpg */
389 1.1 mrg #else
390 1.19 thorpej { 0, 0, 0,
391 1.1 mrg sys_nosys }, /* 146 = obsolete killpg */
392 1.1 mrg #endif
393 1.19 thorpej { 0, 0, 0,
394 1.1 mrg sys_setsid }, /* 147 = setsid */
395 1.19 thorpej { 4, s(struct netbsd32_quotactl_args), 0,
396 1.11 eeh netbsd32_quotactl }, /* 148 = netbsd32_quotactl */
397 1.19 thorpej { 0, 0, 0,
398 1.1 mrg compat_43(sys_quota) }, /* 149 = compat_43 oquota */
399 1.19 thorpej { 3, s(struct compat_43_netbsd32_ogetsockname_args), 0,
400 1.11 eeh compat_43(netbsd32_ogetsockname) }, /* 150 = compat_43 netbsd32_ogetsockname */
401 1.19 thorpej { 0, 0, 0,
402 1.1 mrg sys_nosys }, /* 151 = unimplemented */
403 1.19 thorpej { 0, 0, 0,
404 1.1 mrg sys_nosys }, /* 152 = unimplemented */
405 1.19 thorpej { 0, 0, 0,
406 1.1 mrg sys_nosys }, /* 153 = unimplemented */
407 1.19 thorpej { 0, 0, 0,
408 1.1 mrg sys_nosys }, /* 154 = unimplemented */
409 1.10 christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
410 1.19 thorpej { 2, s(struct netbsd32_nfssvc_args), 0,
411 1.11 eeh netbsd32_nfssvc }, /* 155 = netbsd32_nfssvc */
412 1.1 mrg #else
413 1.19 thorpej { 0, 0, 0,
414 1.11 eeh sys_nosys }, /* 155 = excluded netbsd32_nfssvc */
415 1.1 mrg #endif
416 1.19 thorpej { 4, s(struct compat_43_netbsd32_ogetdirentries_args), 0,
417 1.11 eeh compat_43(netbsd32_ogetdirentries) },/* 156 = compat_43 netbsd32_ogetdirentries */
418 1.19 thorpej { 2, s(struct netbsd32_statfs_args), 0,
419 1.11 eeh netbsd32_statfs }, /* 157 = netbsd32_statfs */
420 1.19 thorpej { 2, s(struct netbsd32_fstatfs_args), 0,
421 1.11 eeh netbsd32_fstatfs }, /* 158 = netbsd32_fstatfs */
422 1.19 thorpej { 0, 0, 0,
423 1.1 mrg sys_nosys }, /* 159 = unimplemented */
424 1.19 thorpej { 0, 0, 0,
425 1.1 mrg sys_nosys }, /* 160 = unimplemented */
426 1.10 christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
427 1.19 thorpej { 2, s(struct netbsd32_getfh_args), 0,
428 1.11 eeh netbsd32_getfh }, /* 161 = netbsd32_getfh */
429 1.1 mrg #else
430 1.19 thorpej { 0, 0, 0,
431 1.11 eeh sys_nosys }, /* 161 = excluded netbsd32_getfh */
432 1.1 mrg #endif
433 1.19 thorpej { 2, s(struct compat_09_netbsd32_ogetdomainname_args), 0,
434 1.11 eeh compat_09(netbsd32_ogetdomainname) },/* 162 = compat_09 netbsd32_ogetdomainname */
435 1.19 thorpej { 2, s(struct compat_09_netbsd32_osetdomainname_args), 0,
436 1.11 eeh compat_09(netbsd32_osetdomainname) },/* 163 = compat_09 netbsd32_osetdomainname */
437 1.19 thorpej { 1, s(struct compat_09_netbsd32_uname_args), 0,
438 1.11 eeh compat_09(netbsd32_uname) }, /* 164 = compat_09 netbsd32_uname */
439 1.19 thorpej { 2, s(struct netbsd32_sysarch_args), 0,
440 1.11 eeh netbsd32_sysarch }, /* 165 = netbsd32_sysarch */
441 1.19 thorpej { 0, 0, 0,
442 1.1 mrg sys_nosys }, /* 166 = unimplemented */
443 1.19 thorpej { 0, 0, 0,
444 1.1 mrg sys_nosys }, /* 167 = unimplemented */
445 1.19 thorpej { 0, 0, 0,
446 1.1 mrg sys_nosys }, /* 168 = unimplemented */
447 1.21.2.4 nathanw #if defined(SYSVSEM) || !defined(_KERNEL)
448 1.21.2.4 nathanw { 5, s(struct compat_10_netbsd32_sys_semsys_args), 0,
449 1.21.2.4 nathanw compat_10(netbsd32_sys_semsys) }, /* 169 = compat_10 osemsys */
450 1.1 mrg #else
451 1.19 thorpej { 0, 0, 0,
452 1.21.2.4 nathanw sys_nosys }, /* 169 = excluded netbsd32_sys_semsys */
453 1.1 mrg #endif
454 1.21.2.4 nathanw #if defined(SYSVMSG) || !defined(_KERNEL)
455 1.21.2.4 nathanw { 6, s(struct compat_10_netbsd32_sys_msgsys_args), 0,
456 1.21.2.4 nathanw compat_10(netbsd32_sys_msgsys) }, /* 170 = compat_10 omsgsys */
457 1.1 mrg #else
458 1.19 thorpej { 0, 0, 0,
459 1.21.2.4 nathanw sys_nosys }, /* 170 = excluded netbsd32_sys_msgsys */
460 1.1 mrg #endif
461 1.21.2.4 nathanw #if defined(SYSVSHM) || !defined(_KERNEL)
462 1.21.2.4 nathanw { 4, s(struct compat_10_netbsd32_sys_shmsys_args), 0,
463 1.21.2.4 nathanw compat_10(netbsd32_sys_shmsys) }, /* 171 = compat_10 oshmsys */
464 1.1 mrg #else
465 1.19 thorpej { 0, 0, 0,
466 1.21.2.4 nathanw sys_nosys }, /* 171 = excluded netbsd32_sys_shmsys */
467 1.1 mrg #endif
468 1.19 thorpej { 0, 0, 0,
469 1.1 mrg sys_nosys }, /* 172 = unimplemented */
470 1.19 thorpej { 5, s(struct netbsd32_pread_args), 0,
471 1.11 eeh netbsd32_pread }, /* 173 = netbsd32_pread */
472 1.19 thorpej { 5, s(struct netbsd32_pwrite_args), 0,
473 1.11 eeh netbsd32_pwrite }, /* 174 = netbsd32_pwrite */
474 1.19 thorpej { 1, s(struct netbsd32_ntp_gettime_args), 0,
475 1.11 eeh netbsd32_ntp_gettime }, /* 175 = netbsd32_ntp_gettime */
476 1.19 thorpej { 1, s(struct netbsd32_ntp_adjtime_args), 0,
477 1.11 eeh netbsd32_ntp_adjtime }, /* 176 = netbsd32_ntp_adjtime */
478 1.19 thorpej { 0, 0, 0,
479 1.1 mrg sys_nosys }, /* 177 = unimplemented */
480 1.19 thorpej { 0, 0, 0,
481 1.1 mrg sys_nosys }, /* 178 = unimplemented */
482 1.19 thorpej { 0, 0, 0,
483 1.1 mrg sys_nosys }, /* 179 = unimplemented */
484 1.19 thorpej { 0, 0, 0,
485 1.1 mrg sys_nosys }, /* 180 = unimplemented */
486 1.19 thorpej { 1, s(struct netbsd32_setgid_args), 0,
487 1.11 eeh netbsd32_setgid }, /* 181 = netbsd32_setgid */
488 1.19 thorpej { 1, s(struct netbsd32_setegid_args), 0,
489 1.11 eeh netbsd32_setegid }, /* 182 = netbsd32_setegid */
490 1.19 thorpej { 1, s(struct netbsd32_seteuid_args), 0,
491 1.11 eeh netbsd32_seteuid }, /* 183 = netbsd32_seteuid */
492 1.10 christos #if defined(LFS) || !defined(_KERNEL)
493 1.19 thorpej { 3, s(struct netbsd32_sys_lfs_bmapv_args), 0,
494 1.11 eeh netbsd32_sys_lfs_bmapv }, /* 184 = lfs_bmapv */
495 1.19 thorpej { 3, s(struct netbsd32_sys_lfs_markv_args), 0,
496 1.11 eeh netbsd32_sys_lfs_markv }, /* 185 = lfs_markv */
497 1.19 thorpej { 2, s(struct netbsd32_sys_lfs_segclean_args), 0,
498 1.11 eeh netbsd32_sys_lfs_segclean }, /* 186 = lfs_segclean */
499 1.19 thorpej { 2, s(struct netbsd32_sys_lfs_segwait_args), 0,
500 1.11 eeh netbsd32_sys_lfs_segwait }, /* 187 = lfs_segwait */
501 1.11 eeh #else
502 1.19 thorpej { 0, 0, 0,
503 1.11 eeh sys_nosys }, /* 184 = excluded netbsd32_sys_lfs_bmapv */
504 1.19 thorpej { 0, 0, 0,
505 1.11 eeh sys_nosys }, /* 185 = excluded netbsd32_sys_lfs_markv */
506 1.19 thorpej { 0, 0, 0,
507 1.11 eeh sys_nosys }, /* 186 = excluded netbsd32_sys_lfs_segclean */
508 1.19 thorpej { 0, 0, 0,
509 1.11 eeh sys_nosys }, /* 187 = excluded netbsd32_sys_lfs_segwait */
510 1.11 eeh #endif
511 1.19 thorpej { 2, s(struct compat_12_netbsd32_stat12_args), 0,
512 1.11 eeh compat_12(netbsd32_stat12) }, /* 188 = compat_12 netbsd32_stat12 */
513 1.19 thorpej { 2, s(struct compat_12_netbsd32_fstat12_args), 0,
514 1.11 eeh compat_12(netbsd32_fstat12) }, /* 189 = compat_12 netbsd32_fstat12 */
515 1.19 thorpej { 2, s(struct compat_12_netbsd32_lstat12_args), 0,
516 1.11 eeh compat_12(netbsd32_lstat12) }, /* 190 = compat_12 netbsd32_lstat12 */
517 1.19 thorpej { 2, s(struct netbsd32_pathconf_args), 0,
518 1.11 eeh netbsd32_pathconf }, /* 191 = netbsd32_pathconf */
519 1.19 thorpej { 2, s(struct netbsd32_fpathconf_args), 0,
520 1.11 eeh netbsd32_fpathconf }, /* 192 = netbsd32_fpathconf */
521 1.19 thorpej { 0, 0, 0,
522 1.1 mrg sys_nosys }, /* 193 = unimplemented */
523 1.19 thorpej { 2, s(struct netbsd32_getrlimit_args), 0,
524 1.11 eeh netbsd32_getrlimit }, /* 194 = netbsd32_getrlimit */
525 1.19 thorpej { 2, s(struct netbsd32_setrlimit_args), 0,
526 1.11 eeh netbsd32_setrlimit }, /* 195 = netbsd32_setrlimit */
527 1.19 thorpej { 4, s(struct compat_12_netbsd32_getdirentries_args), 0,
528 1.11 eeh compat_12(netbsd32_getdirentries) },/* 196 = compat_12 netbsd32_getdirentries */
529 1.19 thorpej { 7, s(struct netbsd32_mmap_args), 0,
530 1.11 eeh netbsd32_mmap }, /* 197 = netbsd32_mmap */
531 1.19 thorpej { 0, 0, 0,
532 1.1 mrg sys_nosys }, /* 198 = __syscall (indir) */
533 1.19 thorpej { 4, s(struct netbsd32_lseek_args), 0,
534 1.11 eeh netbsd32_lseek }, /* 199 = netbsd32_lseek */
535 1.19 thorpej { 3, s(struct netbsd32_truncate_args), 0,
536 1.11 eeh netbsd32_truncate }, /* 200 = netbsd32_truncate */
537 1.19 thorpej { 3, s(struct netbsd32_ftruncate_args), 0,
538 1.11 eeh netbsd32_ftruncate }, /* 201 = netbsd32_ftruncate */
539 1.19 thorpej { 6, s(struct netbsd32___sysctl_args), 0,
540 1.11 eeh netbsd32___sysctl }, /* 202 = netbsd32___sysctl */
541 1.19 thorpej { 2, s(struct netbsd32_mlock_args), 0,
542 1.11 eeh netbsd32_mlock }, /* 203 = netbsd32_mlock */
543 1.19 thorpej { 2, s(struct netbsd32_munlock_args), 0,
544 1.11 eeh netbsd32_munlock }, /* 204 = netbsd32_munlock */
545 1.19 thorpej { 1, s(struct netbsd32_undelete_args), 0,
546 1.11 eeh netbsd32_undelete }, /* 205 = netbsd32_undelete */
547 1.19 thorpej { 2, s(struct netbsd32_futimes_args), 0,
548 1.11 eeh netbsd32_futimes }, /* 206 = netbsd32_futimes */
549 1.19 thorpej { 1, s(struct netbsd32_getpgid_args), 0,
550 1.11 eeh netbsd32_getpgid }, /* 207 = netbsd32_getpgid */
551 1.19 thorpej { 2, s(struct netbsd32_reboot_args), 0,
552 1.11 eeh netbsd32_reboot }, /* 208 = netbsd32_reboot */
553 1.19 thorpej { 3, s(struct netbsd32_poll_args), 0,
554 1.11 eeh netbsd32_poll }, /* 209 = netbsd32_poll */
555 1.10 christos #if defined(LKM) || !defined(_KERNEL)
556 1.19 thorpej { 0, 0, 0,
557 1.1 mrg sys_lkmnosys }, /* 210 = lkmnosys */
558 1.19 thorpej { 0, 0, 0,
559 1.1 mrg sys_lkmnosys }, /* 211 = lkmnosys */
560 1.19 thorpej { 0, 0, 0,
561 1.1 mrg sys_lkmnosys }, /* 212 = lkmnosys */
562 1.19 thorpej { 0, 0, 0,
563 1.1 mrg sys_lkmnosys }, /* 213 = lkmnosys */
564 1.19 thorpej { 0, 0, 0,
565 1.1 mrg sys_lkmnosys }, /* 214 = lkmnosys */
566 1.19 thorpej { 0, 0, 0,
567 1.1 mrg sys_lkmnosys }, /* 215 = lkmnosys */
568 1.19 thorpej { 0, 0, 0,
569 1.1 mrg sys_lkmnosys }, /* 216 = lkmnosys */
570 1.19 thorpej { 0, 0, 0,
571 1.1 mrg sys_lkmnosys }, /* 217 = lkmnosys */
572 1.19 thorpej { 0, 0, 0,
573 1.1 mrg sys_lkmnosys }, /* 218 = lkmnosys */
574 1.19 thorpej { 0, 0, 0,
575 1.1 mrg sys_lkmnosys }, /* 219 = lkmnosys */
576 1.10 christos #else /* !LKM || !_KERNEL */
577 1.19 thorpej { 0, 0, 0,
578 1.10 christos sys_nosys }, /* 210 = excluded lkmnosys */
579 1.19 thorpej { 0, 0, 0,
580 1.10 christos sys_nosys }, /* 211 = excluded lkmnosys */
581 1.19 thorpej { 0, 0, 0,
582 1.10 christos sys_nosys }, /* 212 = excluded lkmnosys */
583 1.19 thorpej { 0, 0, 0,
584 1.10 christos sys_nosys }, /* 213 = excluded lkmnosys */
585 1.19 thorpej { 0, 0, 0,
586 1.10 christos sys_nosys }, /* 214 = excluded lkmnosys */
587 1.19 thorpej { 0, 0, 0,
588 1.10 christos sys_nosys }, /* 215 = excluded lkmnosys */
589 1.19 thorpej { 0, 0, 0,
590 1.10 christos sys_nosys }, /* 216 = excluded lkmnosys */
591 1.19 thorpej { 0, 0, 0,
592 1.10 christos sys_nosys }, /* 217 = excluded lkmnosys */
593 1.19 thorpej { 0, 0, 0,
594 1.10 christos sys_nosys }, /* 218 = excluded lkmnosys */
595 1.19 thorpej { 0, 0, 0,
596 1.10 christos sys_nosys }, /* 219 = excluded lkmnosys */
597 1.10 christos #endif /* !LKM || !_KERNEL */
598 1.10 christos #if defined(SYSVSEM) || !defined(_KERNEL)
599 1.19 thorpej { 4, s(struct compat_14_netbsd32___semctl_args), 0,
600 1.11 eeh compat_14(netbsd32___semctl) }, /* 220 = compat_14 netbsd32___semctl */
601 1.19 thorpej { 3, s(struct netbsd32_semget_args), 0,
602 1.11 eeh netbsd32_semget }, /* 221 = netbsd32_semget */
603 1.19 thorpej { 3, s(struct netbsd32_semop_args), 0,
604 1.11 eeh netbsd32_semop }, /* 222 = netbsd32_semop */
605 1.19 thorpej { 1, s(struct netbsd32_semconfig_args), 0,
606 1.11 eeh netbsd32_semconfig }, /* 223 = netbsd32_semconfig */
607 1.1 mrg #else
608 1.19 thorpej { 0, 0, 0,
609 1.12 eeh sys_nosys }, /* 220 = excluded compat_14_netbsd32_semctl */
610 1.19 thorpej { 0, 0, 0,
611 1.11 eeh sys_nosys }, /* 221 = excluded netbsd32_semget */
612 1.19 thorpej { 0, 0, 0,
613 1.11 eeh sys_nosys }, /* 222 = excluded netbsd32_semop */
614 1.19 thorpej { 0, 0, 0,
615 1.11 eeh sys_nosys }, /* 223 = excluded netbsd32_semconfig */
616 1.1 mrg #endif
617 1.10 christos #if defined(SYSVMSG) || !defined(_KERNEL)
618 1.19 thorpej { 3, s(struct compat_14_netbsd32_msgctl_args), 0,
619 1.11 eeh compat_14(netbsd32_msgctl) }, /* 224 = compat_14 netbsd32_msgctl */
620 1.19 thorpej { 2, s(struct netbsd32_msgget_args), 0,
621 1.11 eeh netbsd32_msgget }, /* 225 = netbsd32_msgget */
622 1.19 thorpej { 4, s(struct netbsd32_msgsnd_args), 0,
623 1.11 eeh netbsd32_msgsnd }, /* 226 = netbsd32_msgsnd */
624 1.19 thorpej { 5, s(struct netbsd32_msgrcv_args), 0,
625 1.11 eeh netbsd32_msgrcv }, /* 227 = netbsd32_msgrcv */
626 1.1 mrg #else
627 1.19 thorpej { 0, 0, 0,
628 1.12 eeh sys_nosys }, /* 224 = excluded compat_14_netbsd32_msgctl */
629 1.19 thorpej { 0, 0, 0,
630 1.11 eeh sys_nosys }, /* 225 = excluded netbsd32_msgget */
631 1.19 thorpej { 0, 0, 0,
632 1.11 eeh sys_nosys }, /* 226 = excluded netbsd32_msgsnd */
633 1.19 thorpej { 0, 0, 0,
634 1.11 eeh sys_nosys }, /* 227 = excluded netbsd32_msgrcv */
635 1.1 mrg #endif
636 1.10 christos #if defined(SYSVSHM) || !defined(_KERNEL)
637 1.19 thorpej { 3, s(struct netbsd32_shmat_args), 0,
638 1.11 eeh netbsd32_shmat }, /* 228 = netbsd32_shmat */
639 1.19 thorpej { 3, s(struct compat_14_netbsd32_shmctl_args), 0,
640 1.11 eeh compat_14(netbsd32_shmctl) }, /* 229 = compat_14 netbsd32_shmctl */
641 1.19 thorpej { 1, s(struct netbsd32_shmdt_args), 0,
642 1.11 eeh netbsd32_shmdt }, /* 230 = netbsd32_shmdt */
643 1.19 thorpej { 3, s(struct netbsd32_shmget_args), 0,
644 1.11 eeh netbsd32_shmget }, /* 231 = netbsd32_shmget */
645 1.11 eeh #else
646 1.19 thorpej { 0, 0, 0,
647 1.11 eeh sys_nosys }, /* 228 = excluded netbsd32_shmat */
648 1.19 thorpej { 0, 0, 0,
649 1.12 eeh sys_nosys }, /* 229 = excluded compat_14_netbsd32_shmctl */
650 1.19 thorpej { 0, 0, 0,
651 1.11 eeh sys_nosys }, /* 230 = excluded netbsd32_shmdt */
652 1.19 thorpej { 0, 0, 0,
653 1.11 eeh sys_nosys }, /* 231 = excluded netbsd32_shmget */
654 1.11 eeh #endif
655 1.19 thorpej { 2, s(struct netbsd32_clock_gettime_args), 0,
656 1.11 eeh netbsd32_clock_gettime }, /* 232 = netbsd32_clock_gettime */
657 1.19 thorpej { 2, s(struct netbsd32_clock_settime_args), 0,
658 1.11 eeh netbsd32_clock_settime }, /* 233 = netbsd32_clock_settime */
659 1.19 thorpej { 2, s(struct netbsd32_clock_getres_args), 0,
660 1.11 eeh netbsd32_clock_getres }, /* 234 = netbsd32_clock_getres */
661 1.19 thorpej { 0, 0, 0,
662 1.1 mrg sys_nosys }, /* 235 = unimplemented timer_create */
663 1.19 thorpej { 0, 0, 0,
664 1.1 mrg sys_nosys }, /* 236 = unimplemented timer_delete */
665 1.19 thorpej { 0, 0, 0,
666 1.1 mrg sys_nosys }, /* 237 = unimplemented timer_settime */
667 1.19 thorpej { 0, 0, 0,
668 1.1 mrg sys_nosys }, /* 238 = unimplemented timer_gettime */
669 1.19 thorpej { 0, 0, 0,
670 1.1 mrg sys_nosys }, /* 239 = unimplemented timer_getoverrun */
671 1.19 thorpej { 2, s(struct netbsd32_nanosleep_args), 0,
672 1.11 eeh netbsd32_nanosleep }, /* 240 = netbsd32_nanosleep */
673 1.19 thorpej { 1, s(struct netbsd32_fdatasync_args), 0,
674 1.11 eeh netbsd32_fdatasync }, /* 241 = netbsd32_fdatasync */
675 1.19 thorpej { 0, 0, 0,
676 1.1 mrg sys_nosys }, /* 242 = unimplemented */
677 1.19 thorpej { 0, 0, 0,
678 1.1 mrg sys_nosys }, /* 243 = unimplemented */
679 1.19 thorpej { 0, 0, 0,
680 1.1 mrg sys_nosys }, /* 244 = unimplemented */
681 1.19 thorpej { 0, 0, 0,
682 1.1 mrg sys_nosys }, /* 245 = unimplemented */
683 1.19 thorpej { 0, 0, 0,
684 1.1 mrg sys_nosys }, /* 246 = unimplemented */
685 1.19 thorpej { 0, 0, 0,
686 1.1 mrg sys_nosys }, /* 247 = unimplemented */
687 1.19 thorpej { 0, 0, 0,
688 1.1 mrg sys_nosys }, /* 248 = unimplemented */
689 1.19 thorpej { 0, 0, 0,
690 1.1 mrg sys_nosys }, /* 249 = unimplemented */
691 1.19 thorpej { 0, 0, 0,
692 1.1 mrg sys_nosys }, /* 250 = unimplemented */
693 1.19 thorpej { 0, 0, 0,
694 1.1 mrg sys_nosys }, /* 251 = unimplemented */
695 1.19 thorpej { 0, 0, 0,
696 1.1 mrg sys_nosys }, /* 252 = unimplemented */
697 1.19 thorpej { 0, 0, 0,
698 1.1 mrg sys_nosys }, /* 253 = unimplemented */
699 1.19 thorpej { 0, 0, 0,
700 1.1 mrg sys_nosys }, /* 254 = unimplemented */
701 1.19 thorpej { 0, 0, 0,
702 1.1 mrg sys_nosys }, /* 255 = unimplemented */
703 1.19 thorpej { 0, 0, 0,
704 1.1 mrg sys_nosys }, /* 256 = unimplemented */
705 1.19 thorpej { 0, 0, 0,
706 1.1 mrg sys_nosys }, /* 257 = unimplemented */
707 1.19 thorpej { 0, 0, 0,
708 1.1 mrg sys_nosys }, /* 258 = unimplemented */
709 1.19 thorpej { 0, 0, 0,
710 1.1 mrg sys_nosys }, /* 259 = unimplemented */
711 1.19 thorpej { 0, 0, 0,
712 1.1 mrg sys_nosys }, /* 260 = unimplemented */
713 1.19 thorpej { 0, 0, 0,
714 1.1 mrg sys_nosys }, /* 261 = unimplemented */
715 1.19 thorpej { 0, 0, 0,
716 1.1 mrg sys_nosys }, /* 262 = unimplemented */
717 1.19 thorpej { 0, 0, 0,
718 1.1 mrg sys_nosys }, /* 263 = unimplemented */
719 1.19 thorpej { 0, 0, 0,
720 1.1 mrg sys_nosys }, /* 264 = unimplemented */
721 1.19 thorpej { 0, 0, 0,
722 1.1 mrg sys_nosys }, /* 265 = unimplemented */
723 1.19 thorpej { 0, 0, 0,
724 1.1 mrg sys_nosys }, /* 266 = unimplemented */
725 1.19 thorpej { 0, 0, 0,
726 1.1 mrg sys_nosys }, /* 267 = unimplemented */
727 1.19 thorpej { 0, 0, 0,
728 1.1 mrg sys_nosys }, /* 268 = unimplemented */
729 1.19 thorpej { 0, 0, 0,
730 1.1 mrg sys_nosys }, /* 269 = unimplemented */
731 1.19 thorpej { 2, s(struct netbsd32___posix_rename_args), 0,
732 1.11 eeh netbsd32___posix_rename }, /* 270 = netbsd32___posix_rename */
733 1.19 thorpej { 3, s(struct netbsd32_swapctl_args), 0,
734 1.11 eeh netbsd32_swapctl }, /* 271 = netbsd32_swapctl */
735 1.19 thorpej { 3, s(struct netbsd32_getdents_args), 0,
736 1.11 eeh netbsd32_getdents }, /* 272 = netbsd32_getdents */
737 1.19 thorpej { 3, s(struct netbsd32_minherit_args), 0,
738 1.11 eeh netbsd32_minherit }, /* 273 = netbsd32_minherit */
739 1.19 thorpej { 2, s(struct netbsd32_lchmod_args), 0,
740 1.11 eeh netbsd32_lchmod }, /* 274 = netbsd32_lchmod */
741 1.19 thorpej { 3, s(struct netbsd32_lchown_args), 0,
742 1.11 eeh netbsd32_lchown }, /* 275 = netbsd32_lchown */
743 1.19 thorpej { 2, s(struct netbsd32_lutimes_args), 0,
744 1.11 eeh netbsd32_lutimes }, /* 276 = netbsd32_lutimes */
745 1.19 thorpej { 3, s(struct netbsd32___msync13_args), 0,
746 1.11 eeh netbsd32___msync13 }, /* 277 = netbsd32___msync13 */
747 1.19 thorpej { 2, s(struct netbsd32___stat13_args), 0,
748 1.11 eeh netbsd32___stat13 }, /* 278 = netbsd32___stat13 */
749 1.19 thorpej { 2, s(struct netbsd32___fstat13_args), 0,
750 1.11 eeh netbsd32___fstat13 }, /* 279 = netbsd32___fstat13 */
751 1.19 thorpej { 2, s(struct netbsd32___lstat13_args), 0,
752 1.11 eeh netbsd32___lstat13 }, /* 280 = netbsd32___lstat13 */
753 1.19 thorpej { 2, s(struct netbsd32___sigaltstack14_args), 0,
754 1.11 eeh netbsd32___sigaltstack14 }, /* 281 = netbsd32___sigaltstack14 */
755 1.19 thorpej { 0, 0, 0,
756 1.1 mrg sys___vfork14 }, /* 282 = __vfork14 */
757 1.19 thorpej { 3, s(struct netbsd32___posix_chown_args), 0,
758 1.11 eeh netbsd32___posix_chown }, /* 283 = netbsd32___posix_chown */
759 1.19 thorpej { 3, s(struct netbsd32___posix_fchown_args), 0,
760 1.11 eeh netbsd32___posix_fchown }, /* 284 = netbsd32___posix_fchown */
761 1.19 thorpej { 3, s(struct netbsd32___posix_lchown_args), 0,
762 1.11 eeh netbsd32___posix_lchown }, /* 285 = netbsd32___posix_lchown */
763 1.19 thorpej { 1, s(struct netbsd32_getsid_args), 0,
764 1.11 eeh netbsd32_getsid }, /* 286 = netbsd32_getsid */
765 1.19 thorpej { 0, 0, 0,
766 1.1 mrg sys_nosys }, /* 287 = unimplemented */
767 1.10 christos #if defined(KTRACE) || !defined(_KERNEL)
768 1.19 thorpej { 4, s(struct netbsd32_fktrace_args), 0,
769 1.11 eeh netbsd32_fktrace }, /* 288 = netbsd32_fktrace */
770 1.1 mrg #else
771 1.19 thorpej { 0, 0, 0,
772 1.11 eeh sys_nosys }, /* 288 = excluded netbsd32_fktrace */
773 1.1 mrg #endif
774 1.19 thorpej { 5, s(struct netbsd32_preadv_args), 0,
775 1.11 eeh netbsd32_preadv }, /* 289 = netbsd32_preadv */
776 1.19 thorpej { 5, s(struct netbsd32_pwritev_args), 0,
777 1.11 eeh netbsd32_pwritev }, /* 290 = netbsd32_pwritev */
778 1.19 thorpej { 3, s(struct netbsd32___sigaction14_args), 0,
779 1.12 eeh netbsd32___sigaction14 }, /* 291 = netbsd32___sigaction14 */
780 1.19 thorpej { 1, s(struct netbsd32___sigpending14_args), 0,
781 1.12 eeh netbsd32___sigpending14 }, /* 292 = netbsd32___sigpending14 */
782 1.19 thorpej { 3, s(struct netbsd32___sigprocmask14_args), 0,
783 1.12 eeh netbsd32___sigprocmask14 }, /* 293 = netbsd32___sigprocmask14 */
784 1.19 thorpej { 1, s(struct netbsd32___sigsuspend14_args), 0,
785 1.12 eeh netbsd32___sigsuspend14 }, /* 294 = netbsd32___sigsuspend14 */
786 1.19 thorpej { 1, s(struct netbsd32___sigreturn14_args), 0,
787 1.12 eeh netbsd32___sigreturn14 }, /* 295 = netbsd32___sigreturn14 */
788 1.19 thorpej { 2, s(struct netbsd32___getcwd_args), 0,
789 1.12 eeh netbsd32___getcwd }, /* 296 = netbsd32___getcwd */
790 1.19 thorpej { 1, s(struct netbsd32_fchroot_args), 0,
791 1.12 eeh netbsd32_fchroot }, /* 297 = netbsd32_fchroot */
792 1.19 thorpej { 2, s(struct netbsd32_fhopen_args), 0,
793 1.12 eeh netbsd32_fhopen }, /* 298 = netbsd32_fhopen */
794 1.19 thorpej { 2, s(struct netbsd32_fhstat_args), 0,
795 1.12 eeh netbsd32_fhstat }, /* 299 = netbsd32_fhstat */
796 1.19 thorpej { 2, s(struct netbsd32_fhstatfs_args), 0,
797 1.12 eeh netbsd32_fhstatfs }, /* 300 = netbsd32_fhstatfs */
798 1.12 eeh #if defined(SYSVSEM) || !defined(_KERNEL)
799 1.19 thorpej { 4, s(struct netbsd32___semctl14_args), 0,
800 1.13 christos netbsd32___semctl14 }, /* 301 = netbsd32___semctl14 */
801 1.12 eeh #else
802 1.19 thorpej { 0, 0, 0,
803 1.13 christos sys_nosys }, /* 301 = excluded __semctl14 */
804 1.12 eeh #endif
805 1.12 eeh #if defined(SYSVMSG) || !defined(_KERNEL)
806 1.19 thorpej { 3, s(struct netbsd32___msgctl13_args), 0,
807 1.12 eeh netbsd32___msgctl13 }, /* 302 = netbsd32___msgctl13 */
808 1.12 eeh #else
809 1.19 thorpej { 0, 0, 0,
810 1.12 eeh sys_nosys }, /* 302 = excluded __msgctl13 */
811 1.12 eeh #endif
812 1.12 eeh #if defined(SYSVSHM) || !defined(_KERNEL)
813 1.19 thorpej { 3, s(struct netbsd32___shmctl13_args), 0,
814 1.12 eeh netbsd32___shmctl13 }, /* 303 = netbsd32___shmctl13 */
815 1.12 eeh #else
816 1.19 thorpej { 0, 0, 0,
817 1.12 eeh sys_nosys }, /* 303 = excluded __shmctl13 */
818 1.12 eeh #endif
819 1.21 mrg { 2, s(struct netbsd32_lchflags_args), 0,
820 1.21 mrg netbsd32_lchflags }, /* 304 = netbsd32_lchflags */
821 1.21 mrg { 0, 0, 0,
822 1.21 mrg sys_issetugid }, /* 305 = issetugid */
823 1.21 mrg { 3, s(struct netbsd32_utrace_args), 0,
824 1.21 mrg netbsd32_utrace }, /* 306 = netbsd32_utrace */
825 1.21 mrg { 0, 0, 0,
826 1.21 mrg sys_nosys }, /* 307 = unimplemented */
827 1.21 mrg { 0, 0, 0,
828 1.21 mrg sys_nosys }, /* 308 = unimplemented */
829 1.21 mrg { 0, 0, 0,
830 1.21 mrg sys_nosys }, /* 309 = unimplemented */
831 1.21 mrg { 0, 0, 0,
832 1.21 mrg sys_nosys }, /* 310 = unimplemented */
833 1.21 mrg { 0, 0, 0,
834 1.21 mrg sys_nosys }, /* 311 = unimplemented */
835 1.21 mrg { 0, 0, 0,
836 1.21 mrg sys_nosys }, /* 312 = unimplemented */
837 1.21 mrg { 0, 0, 0,
838 1.21 mrg sys_nosys }, /* 313 = unimplemented */
839 1.21 mrg { 0, 0, 0,
840 1.21 mrg sys_nosys }, /* 314 = unimplemented */
841 1.21 mrg { 0, 0, 0,
842 1.21 mrg sys_nosys }, /* 315 = unimplemented */
843 1.21 mrg { 0, 0, 0,
844 1.21 mrg sys_nosys }, /* 316 = unimplemented */
845 1.21 mrg { 0, 0, 0,
846 1.21 mrg sys_nosys }, /* 317 = unimplemented */
847 1.21 mrg { 0, 0, 0,
848 1.21 mrg sys_nosys }, /* 318 = unimplemented */
849 1.21 mrg { 0, 0, 0,
850 1.21 mrg sys_nosys }, /* 319 = unimplemented */
851 1.21 mrg { 0, 0, 0,
852 1.21 mrg sys_nosys }, /* 320 = unimplemented */
853 1.21 mrg { 0, 0, 0,
854 1.21 mrg sys_nosys }, /* 321 = unimplemented */
855 1.21 mrg { 0, 0, 0,
856 1.21 mrg sys_nosys }, /* 322 = unimplemented */
857 1.21 mrg { 0, 0, 0,
858 1.21 mrg sys_nosys }, /* 323 = unimplemented */
859 1.21 mrg { 0, 0, 0,
860 1.21 mrg sys_nosys }, /* 324 = unimplemented */
861 1.21 mrg { 0, 0, 0,
862 1.21 mrg sys_nosys }, /* 325 = unimplemented */
863 1.21 mrg { 0, 0, 0,
864 1.21 mrg sys_nosys }, /* 326 = unimplemented */
865 1.21 mrg { 0, 0, 0,
866 1.21 mrg sys_nosys }, /* 327 = unimplemented */
867 1.21 mrg { 0, 0, 0,
868 1.21 mrg sys_nosys }, /* 328 = unimplemented */
869 1.21 mrg { 0, 0, 0,
870 1.21 mrg sys_nosys }, /* 329 = unimplemented */
871 1.21 mrg { 0, 0, 0,
872 1.21 mrg sys_nosys }, /* 330 = unimplemented */
873 1.21 mrg { 0, 0, 0,
874 1.21 mrg sys_nosys }, /* 331 = unimplemented */
875 1.21 mrg { 0, 0, 0,
876 1.21 mrg sys_nosys }, /* 332 = unimplemented */
877 1.21 mrg { 0, 0, 0,
878 1.21 mrg sys_nosys }, /* 333 = unimplemented */
879 1.21 mrg { 0, 0, 0,
880 1.21 mrg sys_nosys }, /* 334 = unimplemented */
881 1.21 mrg { 0, 0, 0,
882 1.21 mrg sys_nosys }, /* 335 = unimplemented */
883 1.21 mrg { 0, 0, 0,
884 1.21 mrg sys_nosys }, /* 336 = unimplemented */
885 1.21 mrg { 0, 0, 0,
886 1.21 mrg sys_nosys }, /* 337 = unimplemented */
887 1.21 mrg { 0, 0, 0,
888 1.21 mrg sys_nosys }, /* 338 = unimplemented */
889 1.21 mrg { 0, 0, 0,
890 1.21 mrg sys_nosys }, /* 339 = unimplemented */
891 1.1 mrg };
892 1.1 mrg
893