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