sunos_sysent.c revision 1.24 1 /*
2 * System call switch table.
3 *
4 * DO NOT EDIT-- this file is automatically generated.
5 * created from NetBSD: syscalls.master,v 1.31 1995/07/05 13:14:17 pk Exp
6 */
7
8 #include <sys/param.h>
9 #include <sys/systm.h>
10 #include <sys/signal.h>
11 #include <sys/mount.h>
12 #include <sys/syscallargs.h>
13 #include <compat/sunos/sunos.h>
14 #include <compat/sunos/sunos_syscallargs.h>
15 #define s(type) sizeof(type)
16
17 struct sysent sunos_sysent[] = {
18 { 0, 0,
19 nosys }, /* 0 = syscall */
20 { 1, s(struct exit_args),
21 exit }, /* 1 = exit */
22 { 0, 0,
23 fork }, /* 2 = fork */
24 { 3, s(struct read_args),
25 read }, /* 3 = read */
26 { 3, s(struct write_args),
27 write }, /* 4 = write */
28 { 3, s(struct sunos_open_args),
29 sunos_open }, /* 5 = sunos_open */
30 { 1, s(struct close_args),
31 close }, /* 6 = close */
32 { 4, s(struct sunos_wait4_args),
33 sunos_wait4 }, /* 7 = sunos_wait4 */
34 { 2, s(struct sunos_creat_args),
35 sunos_creat }, /* 8 = sunos_creat */
36 { 2, s(struct link_args),
37 link }, /* 9 = link */
38 { 1, s(struct unlink_args),
39 unlink }, /* 10 = unlink */
40 { 2, s(struct sunos_execv_args),
41 sunos_execv }, /* 11 = sunos_execv */
42 { 1, s(struct chdir_args),
43 chdir }, /* 12 = chdir */
44 { 0, 0,
45 nosys }, /* 13 = obsolete time */
46 { 3, s(struct sunos_mknod_args),
47 sunos_mknod }, /* 14 = sunos_mknod */
48 { 2, s(struct chmod_args),
49 chmod }, /* 15 = chmod */
50 { 3, s(struct chown_args),
51 chown }, /* 16 = chown */
52 { 1, s(struct obreak_args),
53 obreak }, /* 17 = break */
54 { 0, 0,
55 nosys }, /* 18 = obsolete stat */
56 { 3, s(struct compat_43_lseek_args),
57 compat_43_lseek }, /* 19 = compat_43_lseek */
58 { 0, 0,
59 getpid }, /* 20 = getpid */
60 { 0, 0,
61 nosys }, /* 21 = obsolete sunos_old_mount */
62 { 0, 0,
63 nosys }, /* 22 = unimplemented System V umount */
64 { 1, s(struct setuid_args),
65 setuid }, /* 23 = setuid */
66 { 0, 0,
67 getuid }, /* 24 = getuid */
68 { 0, 0,
69 nosys }, /* 25 = unimplemented sunos_stime */
70 { 5, s(struct sunos_ptrace_args),
71 sunos_ptrace }, /* 26 = sunos_ptrace */
72 { 0, 0,
73 nosys }, /* 27 = unimplemented sunos_alarm */
74 { 0, 0,
75 nosys }, /* 28 = unimplemented sunos_fstat */
76 { 0, 0,
77 nosys }, /* 29 = unimplemented sunos_pause */
78 { 0, 0,
79 nosys }, /* 30 = unimplemented sunos_utime */
80 { 0, 0,
81 nosys }, /* 31 = unimplemented sunos_stty */
82 { 0, 0,
83 nosys }, /* 32 = unimplemented sunos_gtty */
84 { 2, s(struct sunos_access_args),
85 sunos_access }, /* 33 = sunos_access */
86 { 0, 0,
87 nosys }, /* 34 = unimplemented sunos_nice */
88 { 0, 0,
89 nosys }, /* 35 = unimplemented sunos_ftime */
90 { 0, 0,
91 sync }, /* 36 = sync */
92 { 2, s(struct kill_args),
93 kill }, /* 37 = kill */
94 { 2, s(struct sunos_stat_args),
95 sunos_stat }, /* 38 = sunos_stat */
96 { 0, 0,
97 nosys }, /* 39 = unimplemented sunos_setpgrp */
98 { 2, s(struct sunos_lstat_args),
99 sunos_lstat }, /* 40 = sunos_lstat */
100 { 1, s(struct dup_args),
101 dup }, /* 41 = dup */
102 { 0, 0,
103 pipe }, /* 42 = pipe */
104 { 0, 0,
105 nosys }, /* 43 = unimplemented sunos_times */
106 { 4, s(struct profil_args),
107 profil }, /* 44 = profil */
108 { 0, 0,
109 nosys }, /* 45 = unimplemented */
110 { 1, s(struct setgid_args),
111 setgid }, /* 46 = setgid */
112 { 0, 0,
113 getgid }, /* 47 = getgid */
114 { 0, 0,
115 nosys }, /* 48 = unimplemented sunos_ssig */
116 { 0, 0,
117 nosys }, /* 49 = unimplemented reserved for USG */
118 { 0, 0,
119 nosys }, /* 50 = unimplemented reserved for USG */
120 { 1, s(struct acct_args),
121 acct }, /* 51 = acct */
122 { 0, 0,
123 nosys }, /* 52 = unimplemented */
124 { 4, s(struct sunos_mctl_args),
125 sunos_mctl }, /* 53 = sunos_mctl */
126 { 3, s(struct sunos_ioctl_args),
127 sunos_ioctl }, /* 54 = sunos_ioctl */
128 { 2, s(struct sunos_reboot_args),
129 sunos_reboot }, /* 55 = sunos_reboot */
130 { 0, 0,
131 nosys }, /* 56 = obsolete sunos_owait3 */
132 { 2, s(struct symlink_args),
133 symlink }, /* 57 = symlink */
134 { 3, s(struct readlink_args),
135 readlink }, /* 58 = readlink */
136 { 3, s(struct execve_args),
137 execve }, /* 59 = execve */
138 { 1, s(struct umask_args),
139 umask }, /* 60 = umask */
140 { 1, s(struct chroot_args),
141 chroot }, /* 61 = chroot */
142 { 2, s(struct compat_43_fstat_args),
143 compat_43_fstat }, /* 62 = compat_43_fstat */
144 { 0, 0,
145 nosys }, /* 63 = unimplemented */
146 { 0, 0,
147 compat_43_getpagesize }, /* 64 = compat_43_getpagesize */
148 { 3, s(struct sunos_omsync_args),
149 sunos_omsync }, /* 65 = sunos_omsync */
150 { 0, 0,
151 vfork }, /* 66 = vfork */
152 { 0, 0,
153 nosys }, /* 67 = obsolete vread */
154 { 0, 0,
155 nosys }, /* 68 = obsolete vwrite */
156 { 1, s(struct sbrk_args),
157 sbrk }, /* 69 = sbrk */
158 { 1, s(struct sstk_args),
159 sstk }, /* 70 = sstk */
160 { 6, s(struct sunos_mmap_args),
161 sunos_mmap }, /* 71 = sunos_mmap */
162 { 1, s(struct ovadvise_args),
163 ovadvise }, /* 72 = vadvise */
164 { 2, s(struct munmap_args),
165 munmap }, /* 73 = munmap */
166 { 3, s(struct mprotect_args),
167 mprotect }, /* 74 = mprotect */
168 { 3, s(struct madvise_args),
169 madvise }, /* 75 = madvise */
170 { 0, 0,
171 sunos_vhangup }, /* 76 = sunos_vhangup */
172 { 0, 0,
173 nosys }, /* 77 = unimplemented vlimit */
174 { 3, s(struct mincore_args),
175 mincore }, /* 78 = mincore */
176 { 2, s(struct getgroups_args),
177 getgroups }, /* 79 = getgroups */
178 { 2, s(struct setgroups_args),
179 setgroups }, /* 80 = setgroups */
180 { 0, 0,
181 getpgrp }, /* 81 = getpgrp */
182 { 2, s(struct sunos_setpgid_args),
183 sunos_setpgid }, /* 82 = sunos_setpgid */
184 { 3, s(struct setitimer_args),
185 setitimer }, /* 83 = setitimer */
186 { 0, 0,
187 nosys }, /* 84 = unimplemented { int sunos_wait ( void ) ; } */
188 { 1, s(struct swapon_args),
189 swapon }, /* 85 = swapon */
190 { 2, s(struct getitimer_args),
191 getitimer }, /* 86 = getitimer */
192 { 2, s(struct compat_43_gethostname_args),
193 compat_43_gethostname }, /* 87 = compat_43_gethostname */
194 { 2, s(struct compat_43_sethostname_args),
195 compat_43_sethostname }, /* 88 = compat_43_sethostname */
196 { 0, 0,
197 compat_43_getdtablesize }, /* 89 = compat_43_getdtablesize */
198 { 2, s(struct dup2_args),
199 dup2 }, /* 90 = dup2 */
200 { 0, 0,
201 nosys }, /* 91 = unimplemented getdopt */
202 { 3, s(struct fcntl_args),
203 fcntl }, /* 92 = fcntl */
204 { 5, s(struct select_args),
205 select }, /* 93 = select */
206 { 0, 0,
207 nosys }, /* 94 = unimplemented setdopt */
208 { 1, s(struct fsync_args),
209 fsync }, /* 95 = fsync */
210 { 3, s(struct setpriority_args),
211 setpriority }, /* 96 = setpriority */
212 { 3, s(struct socket_args),
213 socket }, /* 97 = socket */
214 { 3, s(struct connect_args),
215 connect }, /* 98 = connect */
216 { 3, s(struct compat_43_accept_args),
217 compat_43_accept }, /* 99 = compat_43_accept */
218 { 2, s(struct getpriority_args),
219 getpriority }, /* 100 = getpriority */
220 { 4, s(struct compat_43_send_args),
221 compat_43_send }, /* 101 = compat_43_send */
222 { 4, s(struct compat_43_recv_args),
223 compat_43_recv }, /* 102 = compat_43_recv */
224 { 0, 0,
225 nosys }, /* 103 = unimplemented old socketaddr */
226 { 3, s(struct bind_args),
227 bind }, /* 104 = bind */
228 { 5, s(struct sunos_setsockopt_args),
229 sunos_setsockopt }, /* 105 = sunos_setsockopt */
230 { 2, s(struct listen_args),
231 listen }, /* 106 = listen */
232 { 0, 0,
233 nosys }, /* 107 = unimplemented vtimes */
234 { 3, s(struct sunos_sigvec_args),
235 sunos_sigvec }, /* 108 = sunos_sigvec */
236 { 1, s(struct compat_43_sigblock_args),
237 compat_43_sigblock }, /* 109 = compat_43_sigblock */
238 { 1, s(struct compat_43_sigsetmask_args),
239 compat_43_sigsetmask }, /* 110 = compat_43_sigsetmask */
240 { 1, s(struct sigsuspend_args),
241 sigsuspend }, /* 111 = sigsuspend */
242 { 2, s(struct compat_43_sigstack_args),
243 compat_43_sigstack }, /* 112 = compat_43_sigstack */
244 { 3, s(struct compat_43_recvmsg_args),
245 compat_43_recvmsg }, /* 113 = compat_43_recvmsg */
246 { 3, s(struct compat_43_sendmsg_args),
247 compat_43_sendmsg }, /* 114 = compat_43_sendmsg */
248 { 0, 0,
249 nosys }, /* 115 = obsolete vtrace */
250 { 2, s(struct gettimeofday_args),
251 gettimeofday }, /* 116 = gettimeofday */
252 { 2, s(struct getrusage_args),
253 getrusage }, /* 117 = getrusage */
254 { 5, s(struct getsockopt_args),
255 getsockopt }, /* 118 = getsockopt */
256 { 0, 0,
257 nosys }, /* 119 = unimplemented */
258 { 3, s(struct readv_args),
259 readv }, /* 120 = readv */
260 { 3, s(struct writev_args),
261 writev }, /* 121 = writev */
262 { 2, s(struct settimeofday_args),
263 settimeofday }, /* 122 = settimeofday */
264 { 3, s(struct fchown_args),
265 fchown }, /* 123 = fchown */
266 { 2, s(struct fchmod_args),
267 fchmod }, /* 124 = fchmod */
268 { 6, s(struct compat_43_recvfrom_args),
269 compat_43_recvfrom }, /* 125 = compat_43_recvfrom */
270 { 2, s(struct compat_43_setreuid_args),
271 compat_43_setreuid }, /* 126 = compat_43_setreuid */
272 { 2, s(struct compat_43_setregid_args),
273 compat_43_setregid }, /* 127 = compat_43_setregid */
274 { 2, s(struct rename_args),
275 rename }, /* 128 = rename */
276 { 2, s(struct compat_43_truncate_args),
277 compat_43_truncate }, /* 129 = compat_43_truncate */
278 { 2, s(struct compat_43_ftruncate_args),
279 compat_43_ftruncate }, /* 130 = compat_43_ftruncate */
280 { 2, s(struct flock_args),
281 flock }, /* 131 = flock */
282 { 0, 0,
283 nosys }, /* 132 = unimplemented */
284 { 6, s(struct sendto_args),
285 sendto }, /* 133 = sendto */
286 { 2, s(struct shutdown_args),
287 shutdown }, /* 134 = shutdown */
288 { 4, s(struct socketpair_args),
289 socketpair }, /* 135 = socketpair */
290 { 2, s(struct mkdir_args),
291 mkdir }, /* 136 = mkdir */
292 { 1, s(struct rmdir_args),
293 rmdir }, /* 137 = rmdir */
294 { 2, s(struct utimes_args),
295 utimes }, /* 138 = utimes */
296 { 1, s(struct sunos_sigreturn_args),
297 sunos_sigreturn }, /* 139 = sunos_sigreturn */
298 { 2, s(struct adjtime_args),
299 adjtime }, /* 140 = adjtime */
300 { 3, s(struct compat_43_getpeername_args),
301 compat_43_getpeername }, /* 141 = compat_43_getpeername */
302 { 0, 0,
303 compat_43_gethostid }, /* 142 = compat_43_gethostid */
304 { 0, 0,
305 nosys }, /* 143 = unimplemented old sethostid */
306 { 2, s(struct sunos_getrlimit_args),
307 sunos_getrlimit }, /* 144 = sunos_getrlimit */
308 { 2, s(struct sunos_setrlimit_args),
309 sunos_setrlimit }, /* 145 = sunos_setrlimit */
310 { 2, s(struct compat_43_killpg_args),
311 compat_43_killpg }, /* 146 = compat_43_killpg */
312 { 0, 0,
313 nosys }, /* 147 = unimplemented */
314 { 0, 0,
315 nosys }, /* 148 = unimplemented */
316 { 0, 0,
317 nosys }, /* 149 = unimplemented */
318 { 3, s(struct compat_43_getsockname_args),
319 compat_43_getsockname }, /* 150 = compat_43_getsockname */
320 { 0, 0,
321 nosys }, /* 151 = unimplemented getmsg */
322 { 0, 0,
323 nosys }, /* 152 = unimplemented putmsg */
324 { 3, s(struct sunos_poll_args),
325 sunos_poll }, /* 153 = sunos_poll */
326 { 0, 0,
327 nosys }, /* 154 = unimplemented */
328 #ifdef NFSSERVER
329 { 1, s(struct sunos_nfssvc_args),
330 sunos_nfssvc }, /* 155 = sunos_nfssvc */
331 #else
332 { 0, 0,
333 nosys }, /* 155 = unimplemented */
334 #endif
335 { 4, s(struct getdirentries_args),
336 getdirentries }, /* 156 = getdirentries */
337 { 2, s(struct sunos_statfs_args),
338 sunos_statfs }, /* 157 = sunos_statfs */
339 { 2, s(struct sunos_fstatfs_args),
340 sunos_fstatfs }, /* 158 = sunos_fstatfs */
341 { 2, s(struct sunos_unmount_args),
342 sunos_unmount }, /* 159 = sunos_unmount */
343 #ifdef NFSCLIENT
344 { 0, 0,
345 async_daemon }, /* 160 = async_daemon */
346 { 2, s(struct getfh_args),
347 getfh }, /* 161 = getfh */
348 #else
349 { 0, 0,
350 nosys }, /* 160 = unimplemented */
351 { 0, 0,
352 nosys }, /* 161 = unimplemented */
353 #endif
354 { 2, s(struct compat_09_getdomainname_args),
355 compat_09_getdomainname }, /* 162 = compat_09_getdomainname */
356 { 2, s(struct compat_09_setdomainname_args),
357 compat_09_setdomainname }, /* 163 = compat_09_setdomainname */
358 { 0, 0,
359 nosys }, /* 164 = unimplemented rtschedule */
360 { 4, s(struct sunos_quotactl_args),
361 sunos_quotactl }, /* 165 = sunos_quotactl */
362 { 2, s(struct sunos_exportfs_args),
363 sunos_exportfs }, /* 166 = sunos_exportfs */
364 { 4, s(struct sunos_mount_args),
365 sunos_mount }, /* 167 = sunos_mount */
366 { 2, s(struct sunos_ustat_args),
367 sunos_ustat }, /* 168 = sunos_ustat */
368 #ifdef SYSVSEM
369 { 5, s(struct compat_10_semsys_args),
370 compat_10_semsys }, /* 169 = compat_10_semsys */
371 #else
372 { 0, 0,
373 nosys }, /* 169 = unimplemented nosys */
374 #endif
375 #ifdef SYSVMSG
376 { 6, s(struct compat_10_msgsys_args),
377 compat_10_msgsys }, /* 170 = compat_10_msgsys */
378 #else
379 { 0, 0,
380 nosys }, /* 170 = unimplemented nosys */
381 #endif
382 #ifdef SYSVSHM
383 { 4, s(struct compat_10_shmsys_args),
384 compat_10_shmsys }, /* 171 = compat_10_shmsys */
385 #else
386 { 0, 0,
387 nosys }, /* 171 = unimplemented nosys */
388 #endif
389 { 1, s(struct sunos_auditsys_args),
390 sunos_auditsys }, /* 172 = sunos_auditsys */
391 { 0, 0,
392 nosys }, /* 173 = unimplemented rfssys */
393 { 3, s(struct sunos_getdents_args),
394 sunos_getdents }, /* 174 = sunos_getdents */
395 { 0, 0,
396 setsid }, /* 175 = setsid */
397 { 1, s(struct fchdir_args),
398 fchdir }, /* 176 = fchdir */
399 { 1, s(struct sunos_fchroot_args),
400 sunos_fchroot }, /* 177 = sunos_fchroot */
401 { 0, 0,
402 nosys }, /* 178 = unimplemented vpixsys */
403 { 0, 0,
404 nosys }, /* 179 = unimplemented aioread */
405 { 0, 0,
406 nosys }, /* 180 = unimplemented aiowrite */
407 { 0, 0,
408 nosys }, /* 181 = unimplemented aiowait */
409 { 0, 0,
410 nosys }, /* 182 = unimplemented aiocancel */
411 { 1, s(struct sunos_sigpending_args),
412 sunos_sigpending }, /* 183 = sunos_sigpending */
413 { 0, 0,
414 nosys }, /* 184 = unimplemented */
415 { 2, s(struct setpgid_args),
416 setpgid }, /* 185 = setpgid */
417 { 2, s(struct pathconf_args),
418 pathconf }, /* 186 = pathconf */
419 { 2, s(struct fpathconf_args),
420 fpathconf }, /* 187 = fpathconf */
421 { 1, s(struct sunos_sysconf_args),
422 sunos_sysconf }, /* 188 = sunos_sysconf */
423 { 1, s(struct sunos_uname_args),
424 sunos_uname }, /* 189 = sunos_uname */
425 };
426
427