sunos_sysent.c revision 1.42 1 /* $NetBSD: sunos_sysent.c,v 1.42 1998/02/19 00:44:20 thorpej Exp $ */
2
3 /*
4 * System call switch table.
5 *
6 * DO NOT EDIT-- this file is automatically generated.
7 * created from NetBSD: syscalls.master,v 1.45 1998/02/19 00:43:56 thorpej Exp
8 */
9
10 #include "fs_nfs.h"
11 #include <sys/param.h>
12 #include <sys/systm.h>
13 #include <sys/signal.h>
14 #include <sys/mount.h>
15 #include <sys/poll.h>
16 #include <sys/syscallargs.h>
17 #include <compat/sunos/sunos.h>
18 #include <compat/sunos/sunos_syscallargs.h>
19
20 #ifdef COMPAT_43
21 #define compat_43(func) __CONCAT(compat_43_,func)
22 #else
23 #define compat_43(func) sys_nosys
24 #endif
25
26 #ifdef COMPAT_09
27 #define compat_09(func) __CONCAT(compat_09_,func)
28 #else
29 #define compat_09(func) sys_nosys
30 #endif
31
32 #ifdef COMPAT_10
33 #define compat_10(func) __CONCAT(compat_10_,func)
34 #else
35 #define compat_10(func) sys_nosys
36 #endif
37
38 #define s(type) sizeof(type)
39
40 struct sysent sunos_sysent[] = {
41 { 0, 0,
42 sys_nosys }, /* 0 = syscall */
43 { 1, s(struct sys_exit_args),
44 sys_exit }, /* 1 = exit */
45 { 0, 0,
46 sys_fork }, /* 2 = fork */
47 { 3, s(struct sys_read_args),
48 sys_read }, /* 3 = read */
49 { 3, s(struct sys_write_args),
50 sys_write }, /* 4 = write */
51 { 3, s(struct sunos_sys_open_args),
52 sunos_sys_open }, /* 5 = open */
53 { 1, s(struct sys_close_args),
54 sys_close }, /* 6 = close */
55 { 4, s(struct sunos_sys_wait4_args),
56 sunos_sys_wait4 }, /* 7 = wait4 */
57 { 2, s(struct sunos_sys_creat_args),
58 sunos_sys_creat }, /* 8 = creat */
59 { 2, s(struct sys_link_args),
60 sys_link }, /* 9 = link */
61 { 1, s(struct sys_unlink_args),
62 sys_unlink }, /* 10 = unlink */
63 { 2, s(struct sunos_sys_execv_args),
64 sunos_sys_execv }, /* 11 = execv */
65 { 1, s(struct sys_chdir_args),
66 sys_chdir }, /* 12 = chdir */
67 { 0, 0,
68 sys_nosys }, /* 13 = obsolete time */
69 { 3, s(struct sunos_sys_mknod_args),
70 sunos_sys_mknod }, /* 14 = mknod */
71 { 2, s(struct sys_chmod_args),
72 sys_chmod }, /* 15 = chmod */
73 { 3, s(struct sys_chown_args),
74 sys_chown }, /* 16 = chown */
75 { 1, s(struct sys_obreak_args),
76 sys_obreak }, /* 17 = break */
77 { 0, 0,
78 sys_nosys }, /* 18 = obsolete stat */
79 { 3, s(struct compat_43_sys_lseek_args),
80 compat_43_sys_lseek }, /* 19 = lseek */
81 { 0, 0,
82 sys_getpid }, /* 20 = getpid */
83 { 0, 0,
84 sys_nosys }, /* 21 = obsolete sunos_old_mount */
85 { 0, 0,
86 sys_nosys }, /* 22 = unimplemented System V umount */
87 { 1, s(struct sys_setuid_args),
88 sys_setuid }, /* 23 = setuid */
89 { 0, 0,
90 sys_getuid }, /* 24 = getuid */
91 { 1, s(struct sunos_sys_stime_args),
92 sunos_sys_stime }, /* 25 = stime */
93 { 5, s(struct sunos_sys_ptrace_args),
94 sunos_sys_ptrace }, /* 26 = ptrace */
95 { 0, 0,
96 sys_nosys }, /* 27 = unimplemented sunos_alarm */
97 { 0, 0,
98 sys_nosys }, /* 28 = unimplemented sunos_fstat */
99 { 0, 0,
100 sys_nosys }, /* 29 = unimplemented sunos_pause */
101 { 0, 0,
102 sys_nosys }, /* 30 = unimplemented sunos_utime */
103 { 0, 0,
104 sys_nosys }, /* 31 = unimplemented sunos_stty */
105 { 0, 0,
106 sys_nosys }, /* 32 = unimplemented sunos_gtty */
107 { 2, s(struct sunos_sys_access_args),
108 sunos_sys_access }, /* 33 = access */
109 { 0, 0,
110 sys_nosys }, /* 34 = unimplemented sunos_nice */
111 { 0, 0,
112 sys_nosys }, /* 35 = unimplemented sunos_ftime */
113 { 0, 0,
114 sys_sync }, /* 36 = sync */
115 { 2, s(struct sys_kill_args),
116 sys_kill }, /* 37 = kill */
117 { 2, s(struct sunos_sys_stat_args),
118 sunos_sys_stat }, /* 38 = stat */
119 { 0, 0,
120 sys_nosys }, /* 39 = unimplemented sunos_setpgrp */
121 { 2, s(struct sunos_sys_lstat_args),
122 sunos_sys_lstat }, /* 40 = lstat */
123 { 1, s(struct sys_dup_args),
124 sys_dup }, /* 41 = dup */
125 { 0, 0,
126 sys_pipe }, /* 42 = pipe */
127 { 0, 0,
128 sys_nosys }, /* 43 = unimplemented sunos_times */
129 { 4, s(struct sys_profil_args),
130 sys_profil }, /* 44 = profil */
131 { 0, 0,
132 sys_nosys }, /* 45 = unimplemented */
133 { 1, s(struct sys_setgid_args),
134 sys_setgid }, /* 46 = setgid */
135 { 0, 0,
136 sys_getgid }, /* 47 = getgid */
137 { 0, 0,
138 sys_nosys }, /* 48 = unimplemented sunos_ssig */
139 { 0, 0,
140 sys_nosys }, /* 49 = unimplemented reserved for USG */
141 { 0, 0,
142 sys_nosys }, /* 50 = unimplemented reserved for USG */
143 { 1, s(struct sys_acct_args),
144 sys_acct }, /* 51 = acct */
145 { 0, 0,
146 sys_nosys }, /* 52 = unimplemented */
147 { 4, s(struct sunos_sys_mctl_args),
148 sunos_sys_mctl }, /* 53 = mctl */
149 { 3, s(struct sunos_sys_ioctl_args),
150 sunos_sys_ioctl }, /* 54 = ioctl */
151 { 2, s(struct sunos_sys_reboot_args),
152 sunos_sys_reboot }, /* 55 = reboot */
153 { 0, 0,
154 sys_nosys }, /* 56 = obsolete sunos_owait3 */
155 { 2, s(struct sys_symlink_args),
156 sys_symlink }, /* 57 = symlink */
157 { 3, s(struct sys_readlink_args),
158 sys_readlink }, /* 58 = readlink */
159 { 3, s(struct sunos_sys_execve_args),
160 sunos_sys_execve }, /* 59 = execve */
161 { 1, s(struct sys_umask_args),
162 sys_umask }, /* 60 = umask */
163 { 1, s(struct sys_chroot_args),
164 sys_chroot }, /* 61 = chroot */
165 { 2, s(struct compat_43_sys_fstat_args),
166 compat_43_sys_fstat }, /* 62 = fstat */
167 { 0, 0,
168 sys_nosys }, /* 63 = unimplemented */
169 { 0, 0,
170 compat_43_sys_getpagesize }, /* 64 = getpagesize */
171 { 3, s(struct sunos_sys_omsync_args),
172 sunos_sys_omsync }, /* 65 = omsync */
173 { 0, 0,
174 sys_vfork }, /* 66 = vfork */
175 { 0, 0,
176 sys_nosys }, /* 67 = obsolete vread */
177 { 0, 0,
178 sys_nosys }, /* 68 = obsolete vwrite */
179 { 1, s(struct sys_sbrk_args),
180 sys_sbrk }, /* 69 = sbrk */
181 { 1, s(struct sys_sstk_args),
182 sys_sstk }, /* 70 = sstk */
183 { 6, s(struct sunos_sys_mmap_args),
184 sunos_sys_mmap }, /* 71 = mmap */
185 { 1, s(struct sys_ovadvise_args),
186 sys_ovadvise }, /* 72 = vadvise */
187 { 2, s(struct sys_munmap_args),
188 sys_munmap }, /* 73 = munmap */
189 { 3, s(struct sys_mprotect_args),
190 sys_mprotect }, /* 74 = mprotect */
191 { 3, s(struct sys_madvise_args),
192 sys_madvise }, /* 75 = madvise */
193 { 0, 0,
194 sunos_sys_vhangup }, /* 76 = vhangup */
195 { 0, 0,
196 sys_nosys }, /* 77 = unimplemented vlimit */
197 { 3, s(struct sys_mincore_args),
198 sys_mincore }, /* 78 = mincore */
199 { 2, s(struct sys_getgroups_args),
200 sys_getgroups }, /* 79 = getgroups */
201 { 2, s(struct sys_setgroups_args),
202 sys_setgroups }, /* 80 = setgroups */
203 { 0, 0,
204 sys_getpgrp }, /* 81 = getpgrp */
205 { 2, s(struct sunos_sys_setpgrp_args),
206 sunos_sys_setpgrp }, /* 82 = setpgrp */
207 { 3, s(struct sys_setitimer_args),
208 sys_setitimer }, /* 83 = setitimer */
209 { 0, 0,
210 sys_nosys }, /* 84 = unimplemented { int sunos_sys_wait ( void ) ; } */
211 { 1, s(struct compat_12_sys_swapon_args),
212 compat_12_sys_swapon }, /* 85 = swapon */
213 { 2, s(struct sys_getitimer_args),
214 sys_getitimer }, /* 86 = getitimer */
215 { 2, s(struct compat_43_sys_gethostname_args),
216 compat_43_sys_gethostname }, /* 87 = gethostname */
217 { 2, s(struct compat_43_sys_sethostname_args),
218 compat_43_sys_sethostname }, /* 88 = sethostname */
219 { 0, 0,
220 compat_43_sys_getdtablesize }, /* 89 = getdtablesize */
221 { 2, s(struct sys_dup2_args),
222 sys_dup2 }, /* 90 = dup2 */
223 { 0, 0,
224 sys_nosys }, /* 91 = unimplemented getdopt */
225 { 3, s(struct sunos_sys_fcntl_args),
226 sunos_sys_fcntl }, /* 92 = fcntl */
227 { 5, s(struct sys_select_args),
228 sys_select }, /* 93 = select */
229 { 0, 0,
230 sys_nosys }, /* 94 = unimplemented setdopt */
231 { 1, s(struct sys_fsync_args),
232 sys_fsync }, /* 95 = fsync */
233 { 3, s(struct sys_setpriority_args),
234 sys_setpriority }, /* 96 = setpriority */
235 { 3, s(struct sys_socket_args),
236 sys_socket }, /* 97 = socket */
237 { 3, s(struct sys_connect_args),
238 sys_connect }, /* 98 = connect */
239 { 3, s(struct compat_43_sys_accept_args),
240 compat_43_sys_accept }, /* 99 = accept */
241 { 2, s(struct sys_getpriority_args),
242 sys_getpriority }, /* 100 = getpriority */
243 { 4, s(struct compat_43_sys_send_args),
244 compat_43_sys_send }, /* 101 = send */
245 { 4, s(struct compat_43_sys_recv_args),
246 compat_43_sys_recv }, /* 102 = recv */
247 { 0, 0,
248 sys_nosys }, /* 103 = unimplemented old socketaddr */
249 { 3, s(struct sys_bind_args),
250 sys_bind }, /* 104 = bind */
251 { 5, s(struct sunos_sys_setsockopt_args),
252 sunos_sys_setsockopt }, /* 105 = setsockopt */
253 { 2, s(struct sys_listen_args),
254 sys_listen }, /* 106 = listen */
255 { 0, 0,
256 sys_nosys }, /* 107 = unimplemented vtimes */
257 { 3, s(struct sunos_sys_sigvec_args),
258 sunos_sys_sigvec }, /* 108 = sigvec */
259 { 1, s(struct compat_43_sys_sigblock_args),
260 compat_43_sys_sigblock }, /* 109 = sigblock */
261 { 1, s(struct compat_43_sys_sigsetmask_args),
262 compat_43_sys_sigsetmask }, /* 110 = sigsetmask */
263 { 1, s(struct sys_sigsuspend_args),
264 sys_sigsuspend }, /* 111 = sigsuspend */
265 { 2, s(struct compat_43_sys_sigstack_args),
266 compat_43_sys_sigstack }, /* 112 = sigstack */
267 { 3, s(struct compat_43_sys_recvmsg_args),
268 compat_43_sys_recvmsg }, /* 113 = recvmsg */
269 { 3, s(struct compat_43_sys_sendmsg_args),
270 compat_43_sys_sendmsg }, /* 114 = sendmsg */
271 { 0, 0,
272 sys_nosys }, /* 115 = obsolete vtrace */
273 { 2, s(struct sys_gettimeofday_args),
274 sys_gettimeofday }, /* 116 = gettimeofday */
275 { 2, s(struct sys_getrusage_args),
276 sys_getrusage }, /* 117 = getrusage */
277 { 5, s(struct sys_getsockopt_args),
278 sys_getsockopt }, /* 118 = getsockopt */
279 { 0, 0,
280 sys_nosys }, /* 119 = unimplemented */
281 { 3, s(struct sys_readv_args),
282 sys_readv }, /* 120 = readv */
283 { 3, s(struct sys_writev_args),
284 sys_writev }, /* 121 = writev */
285 { 2, s(struct sys_settimeofday_args),
286 sys_settimeofday }, /* 122 = settimeofday */
287 { 3, s(struct sys_fchown_args),
288 sys_fchown }, /* 123 = fchown */
289 { 2, s(struct sys_fchmod_args),
290 sys_fchmod }, /* 124 = fchmod */
291 { 6, s(struct compat_43_sys_recvfrom_args),
292 compat_43_sys_recvfrom }, /* 125 = recvfrom */
293 { 2, s(struct sys_setreuid_args),
294 sys_setreuid }, /* 126 = setreuid */
295 { 2, s(struct sys_setregid_args),
296 sys_setregid }, /* 127 = setregid */
297 { 2, s(struct sys_rename_args),
298 sys_rename }, /* 128 = rename */
299 { 2, s(struct compat_43_sys_truncate_args),
300 compat_43_sys_truncate }, /* 129 = truncate */
301 { 2, s(struct compat_43_sys_ftruncate_args),
302 compat_43_sys_ftruncate }, /* 130 = ftruncate */
303 { 2, s(struct sys_flock_args),
304 sys_flock }, /* 131 = flock */
305 { 0, 0,
306 sys_nosys }, /* 132 = unimplemented */
307 { 6, s(struct sys_sendto_args),
308 sys_sendto }, /* 133 = sendto */
309 { 2, s(struct sys_shutdown_args),
310 sys_shutdown }, /* 134 = shutdown */
311 { 4, s(struct sys_socketpair_args),
312 sys_socketpair }, /* 135 = socketpair */
313 { 2, s(struct sys_mkdir_args),
314 sys_mkdir }, /* 136 = mkdir */
315 { 1, s(struct sys_rmdir_args),
316 sys_rmdir }, /* 137 = rmdir */
317 { 2, s(struct sys_utimes_args),
318 sys_utimes }, /* 138 = utimes */
319 { 1, s(struct sunos_sys_sigreturn_args),
320 sunos_sys_sigreturn }, /* 139 = sigreturn */
321 { 2, s(struct sys_adjtime_args),
322 sys_adjtime }, /* 140 = adjtime */
323 { 3, s(struct compat_43_sys_getpeername_args),
324 compat_43_sys_getpeername }, /* 141 = getpeername */
325 { 0, 0,
326 compat_43_sys_gethostid }, /* 142 = gethostid */
327 { 0, 0,
328 sys_nosys }, /* 143 = unimplemented old sethostid */
329 { 2, s(struct sunos_sys_getrlimit_args),
330 sunos_sys_getrlimit }, /* 144 = getrlimit */
331 { 2, s(struct sunos_sys_setrlimit_args),
332 sunos_sys_setrlimit }, /* 145 = setrlimit */
333 { 2, s(struct compat_43_sys_killpg_args),
334 compat_43_sys_killpg }, /* 146 = killpg */
335 { 0, 0,
336 sys_nosys }, /* 147 = unimplemented */
337 { 0, 0,
338 sys_nosys }, /* 148 = unimplemented */
339 { 0, 0,
340 sys_nosys }, /* 149 = unimplemented */
341 { 3, s(struct compat_43_sys_getsockname_args),
342 compat_43_sys_getsockname }, /* 150 = getsockname */
343 { 0, 0,
344 sys_nosys }, /* 151 = unimplemented getmsg */
345 { 0, 0,
346 sys_nosys }, /* 152 = unimplemented putmsg */
347 { 3, s(struct sys_poll_args),
348 sys_poll }, /* 153 = poll */
349 { 0, 0,
350 sys_nosys }, /* 154 = unimplemented */
351 #ifdef NFSSERVER
352 { 1, s(struct sunos_sys_nfssvc_args),
353 sunos_sys_nfssvc }, /* 155 = nfssvc */
354 #else
355 { 0, 0,
356 sys_nosys }, /* 155 = unimplemented */
357 #endif
358 { 4, s(struct compat_12_sys_getdirentries_args),
359 compat_12_sys_getdirentries }, /* 156 = getdirentries */
360 { 2, s(struct sunos_sys_statfs_args),
361 sunos_sys_statfs }, /* 157 = statfs */
362 { 2, s(struct sunos_sys_fstatfs_args),
363 sunos_sys_fstatfs }, /* 158 = fstatfs */
364 { 1, s(struct sunos_sys_unmount_args),
365 sunos_sys_unmount }, /* 159 = unmount */
366 #ifdef NFS
367 { 0, 0,
368 async_daemon }, /* 160 = async_daemon */
369 { 2, s(struct sys_getfh_args),
370 sys_getfh }, /* 161 = getfh */
371 #else
372 { 0, 0,
373 sys_nosys }, /* 160 = unimplemented */
374 { 0, 0,
375 sys_nosys }, /* 161 = unimplemented */
376 #endif
377 { 2, s(struct compat_09_sys_getdomainname_args),
378 compat_09_sys_getdomainname }, /* 162 = getdomainname */
379 { 2, s(struct compat_09_sys_setdomainname_args),
380 compat_09_sys_setdomainname }, /* 163 = setdomainname */
381 { 0, 0,
382 sys_nosys }, /* 164 = unimplemented rtschedule */
383 { 4, s(struct sunos_sys_quotactl_args),
384 sunos_sys_quotactl }, /* 165 = quotactl */
385 { 2, s(struct sunos_sys_exportfs_args),
386 sunos_sys_exportfs }, /* 166 = exportfs */
387 { 4, s(struct sunos_sys_mount_args),
388 sunos_sys_mount }, /* 167 = mount */
389 { 2, s(struct sunos_sys_ustat_args),
390 sunos_sys_ustat }, /* 168 = ustat */
391 #ifdef SYSVSEM
392 { 5, s(struct compat_10_sys_semsys_args),
393 compat_10_sys_semsys }, /* 169 = semsys */
394 #else
395 { 0, 0,
396 sys_nosys }, /* 169 = unimplemented semsys */
397 #endif
398 #ifdef SYSVMSG
399 { 6, s(struct compat_10_sys_msgsys_args),
400 compat_10_sys_msgsys }, /* 170 = msgsys */
401 #else
402 { 0, 0,
403 sys_nosys }, /* 170 = unimplemented msgsys */
404 #endif
405 #ifdef SYSVSHM
406 { 4, s(struct compat_10_sys_shmsys_args),
407 compat_10_sys_shmsys }, /* 171 = shmsys */
408 #else
409 { 0, 0,
410 sys_nosys }, /* 171 = unimplemented shmsys */
411 #endif
412 { 1, s(struct sunos_sys_auditsys_args),
413 sunos_sys_auditsys }, /* 172 = auditsys */
414 { 0, 0,
415 sys_nosys }, /* 173 = unimplemented rfssys */
416 { 3, s(struct sunos_sys_getdents_args),
417 sunos_sys_getdents }, /* 174 = getdents */
418 { 0, 0,
419 sys_setsid }, /* 175 = setsid */
420 { 1, s(struct sys_fchdir_args),
421 sys_fchdir }, /* 176 = fchdir */
422 { 1, s(struct sunos_sys_fchroot_args),
423 sunos_sys_fchroot }, /* 177 = fchroot */
424 { 0, 0,
425 sys_nosys }, /* 178 = unimplemented vpixsys */
426 { 0, 0,
427 sys_nosys }, /* 179 = unimplemented aioread */
428 { 0, 0,
429 sys_nosys }, /* 180 = unimplemented aiowrite */
430 { 0, 0,
431 sys_nosys }, /* 181 = unimplemented aiowait */
432 { 0, 0,
433 sys_nosys }, /* 182 = unimplemented aiocancel */
434 { 1, s(struct sunos_sys_sigpending_args),
435 sunos_sys_sigpending }, /* 183 = sigpending */
436 { 0, 0,
437 sys_nosys }, /* 184 = unimplemented */
438 { 2, s(struct sys_setpgid_args),
439 sys_setpgid }, /* 185 = setpgid */
440 { 2, s(struct sys_pathconf_args),
441 sys_pathconf }, /* 186 = pathconf */
442 { 2, s(struct sys_fpathconf_args),
443 sys_fpathconf }, /* 187 = fpathconf */
444 { 1, s(struct sunos_sys_sysconf_args),
445 sunos_sys_sysconf }, /* 188 = sysconf */
446 { 1, s(struct sunos_sys_uname_args),
447 sunos_sys_uname }, /* 189 = uname */
448 };
449
450