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