xref: /netbsd-src/sys/compat/ultrix/ultrix_sysent.c (revision ae9172d6cd9432a6a1a56760d86b32c57a66c39c)
1 /*
2  * System call switch table.
3  *
4  * DO NOT EDIT-- this file is automatically generated.
5  * created from	NetBSD: syscalls.master,v 1.6 1994/11/23 17:49:07 dean 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/ultrix/ultrix_syscallargs.h>
14 int	nosys();
15 int	exit();
16 int	fork();
17 int	read();
18 int	write();
19 int	sun_open();
20 int	close();
21 int	sun_creat();
22 int	link();
23 int	unlink();
24 int	sun_execv();
25 int	chdir();
26 int	sun_mknod();
27 int	chmod();
28 int	chown();
29 int	obreak();
30 int	compat_43_lseek();
31 int	getpid();
32 int	setuid();
33 int	getuid();
34 int	access();
35 int	sync();
36 int	kill();
37 int	compat_43_stat();
38 int	compat_43_lstat();
39 int	dup();
40 int	pipe();
41 int	profil();
42 int	getgid();
43 int	acct();
44 int	reboot();
45 int	symlink();
46 int	readlink();
47 int	execve();
48 int	umask();
49 int	chroot();
50 int	compat_43_fstat();
51 int	compat_43_getpagesize();
52 int	vfork();
53 int	sbrk();
54 int	sstk();
55 int	sun_mmap();
56 int	ovadvise();
57 int	munmap();
58 int	mprotect();
59 int	madvise();
60 int	sun_vhangup();
61 int	mincore();
62 int	getgroups();
63 int	setgroups();
64 int	getpgrp();
65 int	sun_setpgid();
66 int	setitimer();
67 int	sun_wait3();
68 int	swapon();
69 int	getitimer();
70 int	compat_43_gethostname();
71 int	compat_43_sethostname();
72 int	compat_43_getdtablesize();
73 int	dup2();
74 int	fcntl();
75 int	select();
76 int	fsync();
77 int	setpriority();
78 int	socket();
79 int	connect();
80 int	compat_43_accept();
81 int	getpriority();
82 int	compat_43_send();
83 int	compat_43_recv();
84 int	sigreturn();
85 int	bind();
86 int	sun_setsockopt();
87 int	listen();
88 int	compat_43_sigvec();
89 int	compat_43_sigblock();
90 int	compat_43_sigsetmask();
91 int	sigsuspend();
92 int	compat_43_sigstack();
93 int	compat_43_recvmsg();
94 int	compat_43_sendmsg();
95 int	gettimeofday();
96 int	getrusage();
97 int	getsockopt();
98 int	readv();
99 int	writev();
100 int	settimeofday();
101 int	fchown();
102 int	fchmod();
103 int	compat_43_recvfrom();
104 int	compat_43_setreuid();
105 int	compat_43_setregid();
106 int	rename();
107 int	compat_43_truncate();
108 int	compat_43_ftruncate();
109 int	flock();
110 int	sendto();
111 int	shutdown();
112 int	socketpair();
113 int	mkdir();
114 int	rmdir();
115 int	utimes();
116 int	sigreturn();
117 int	adjtime();
118 int	compat_43_getpeername();
119 int	compat_43_gethostid();
120 int	compat_43_getrlimit();
121 int	compat_43_setrlimit();
122 int	compat_43_killpg();
123 int	compat_43_getsockname();
124 #ifdef NFSSERVER
125 int	sun_nfssvc();
126 #else
127 #endif
128 int	getdirentries();
129 int	sun_statfs();
130 int	sun_fstatfs();
131 int	sun_unmount();
132 #ifdef NFSCLIENT
133 int	async_daemon();
134 int	getfh();
135 #else
136 #endif
137 int	compat_09_getdomainname();
138 int	compat_09_setdomainname();
139 int	sun_quotactl();
140 int	sun_exportfs();
141 #ifdef SYSVMSG
142 #else
143 #endif
144 #ifdef SYSVSEM
145 #else
146 #endif
147 int	sun_uname();
148 #ifdef SYSVSHM
149 int	shmsys();
150 #else
151 #endif
152 int	sun_ustat();
153 int	sun_sigpending();
154 int	setsid();
155 int	ultrix_waitpid();
156 int	ultrix_getsysinfo();
157 int	ultrix_setsysinfo();
158 
159 #ifdef COMPAT_43
160 #define compat_43(func) __CONCAT(compat_43_,func)
161 
162 #ifdef NFSSERVER
163 #else
164 #endif
165 #ifdef NFSCLIENT
166 #else
167 #endif
168 #ifdef SYSVMSG
169 #else
170 #endif
171 #ifdef SYSVSEM
172 #else
173 #endif
174 #ifdef SYSVSHM
175 #else
176 #endif
177 
178 #else /* COMPAT_43 */
179 #define compat_43(func) nosys
180 #endif /* COMPAT_43 */
181 
182 
183 #ifdef COMPAT_09
184 #define compat_09(func) __CONCAT(compat_09_,func)
185 
186 #ifdef NFSSERVER
187 #else
188 #endif
189 #ifdef NFSCLIENT
190 #else
191 #endif
192 #ifdef SYSVMSG
193 #else
194 #endif
195 #ifdef SYSVSEM
196 #else
197 #endif
198 #ifdef SYSVSHM
199 #else
200 #endif
201 
202 #else /* COMPAT_09 */
203 #define compat_09(func) nosys
204 #endif /* COMPAT_09 */
205 
206 
207 #ifdef COMPAT_10
208 #define compat_10(func) __CONCAT(compat_10_,func)
209 
210 #ifdef NFSSERVER
211 #else
212 #endif
213 #ifdef NFSCLIENT
214 #else
215 #endif
216 #ifdef SYSVMSG
217 #else
218 #endif
219 #ifdef SYSVSEM
220 #else
221 #endif
222 #ifdef SYSVSHM
223 #else
224 #endif
225 
226 #else /* COMPAT_10 */
227 #define compat_10(func) nosys
228 #endif /* COMPAT_10 */
229 
230 #define	s(type)	sizeof(type)
231 
232 struct sysent ultrix_sysent[] = {
233 	{ 0, 0,
234 	    nosys },				/* 0 = syscall */
235 	{ 1, s(struct exit_args),
236 	    exit },				/* 1 = exit */
237 	{ 0, 0,
238 	    fork },				/* 2 = fork */
239 	{ 3, s(struct read_args),
240 	    read },				/* 3 = read */
241 	{ 3, s(struct write_args),
242 	    write },				/* 4 = write */
243 	{ 3, s(struct sun_open_args),
244 	    sun_open },				/* 5 = sun_open */
245 	{ 1, s(struct close_args),
246 	    close },				/* 6 = close */
247 	{ 0, 0,
248 	    nosys },				/* 7 = unimplemented 0 old_wait */
249 	{ 2, s(struct sun_creat_args),
250 	    sun_creat },			/* 8 = sun_creat */
251 	{ 2, s(struct link_args),
252 	    link },				/* 9 = link */
253 	{ 1, s(struct unlink_args),
254 	    unlink },				/* 10 = unlink */
255 	{ 2, s(struct sun_execv_args),
256 	    sun_execv },			/* 11 = sun_execv */
257 	{ 1, s(struct chdir_args),
258 	    chdir },				/* 12 = chdir */
259 	{ 0, 0,
260 	    nosys },				/* 13 = obsolete sun_time */
261 	{ 3, s(struct sun_mknod_args),
262 	    sun_mknod },			/* 14 = sun_mknod */
263 	{ 2, s(struct chmod_args),
264 	    chmod },				/* 15 = chmod */
265 	{ 3, s(struct chown_args),
266 	    chown },				/* 16 = chown */
267 	{ 1, s(struct obreak_args),
268 	    obreak },				/* 17 = break */
269 	{ 0, 0,
270 	    nosys },				/* 18 = obsolete sun_stat */
271 	{ 3, s(struct compat_43_lseek_args),
272 	    compat_43_lseek },			/* 19 = compat_43_lseek */
273 	{ 0, 0,
274 	    getpid },				/* 20 = getpid */
275 	{ 0, 0,
276 	    nosys },				/* 21 = obsolete ultrix_mount */
277 	{ 0, 0,
278 	    nosys },				/* 22 = obsolete sun_or_sysV_unmount */
279 	{ 1, s(struct setuid_args),
280 	    setuid },				/* 23 = setuid */
281 	{ 0, 0,
282 	    getuid },				/* 24 = getuid */
283 	{ 0, 0,
284 	    nosys },				/* 25 = obsolete v7 stime */
285 	{ 0, 0,
286 	    nosys },				/* 26 = obsolete v7 ptrace */
287 	{ 0, 0,
288 	    nosys },				/* 27 = obsolete v7 alarm */
289 	{ 0, 0,
290 	    nosys },				/* 28 = obsolete v7 fstat */
291 	{ 0, 0,
292 	    nosys },				/* 29 = obsolete v7 pause */
293 	{ 0, 0,
294 	    nosys },				/* 30 = obsolete v7 utime */
295 	{ 0, 0,
296 	    nosys },				/* 31 = obsolete v7 stty */
297 	{ 0, 0,
298 	    nosys },				/* 32 = obsolete v7 gtty */
299 	{ 2, s(struct access_args),
300 	    access },				/* 33 = access */
301 	{ 0, 0,
302 	    nosys },				/* 34 = obsolete v7 nice */
303 	{ 0, 0,
304 	    nosys },				/* 35 = obsolete v7 ftime */
305 	{ 0, 0,
306 	    sync },				/* 36 = sync */
307 	{ 2, s(struct kill_args),
308 	    kill },				/* 37 = kill */
309 	{ 2, s(struct compat_43_stat_args),
310 	    compat_43_stat },			/* 38 = compat_43_stat */
311 	{ 0, 0,
312 	    nosys },				/* 39 = obsolete v7 setpgrp */
313 	{ 2, s(struct compat_43_lstat_args),
314 	    compat_43_lstat },			/* 40 = compat_43_lstat */
315 	{ 1, s(struct dup_args),
316 	    dup },				/* 41 = dup */
317 	{ 0, 0,
318 	    pipe },				/* 42 = pipe */
319 	{ 0, 0,
320 	    nosys },				/* 43 = obsolete v7 times */
321 	{ 4, s(struct profil_args),
322 	    profil },				/* 44 = profil */
323 	{ 0, 0,
324 	    nosys },				/* 45 = unimplemented 0 nosys */
325 	{ 0, 0,
326 	    nosys },				/* 46 = obsolete v7 setgid */
327 	{ 0, 0,
328 	    getgid },				/* 47 = getgid */
329 	{ 0, 0,
330 	    nosys },				/* 48 = unimplemented sun_ssig */
331 	{ 0, 0,
332 	    nosys },				/* 49 = unimplemented reserved for USG */
333 	{ 0, 0,
334 	    nosys },				/* 50 = unimplemented reserved for USG */
335 	{ 1, s(struct acct_args),
336 	    acct },				/* 51 = acct */
337 	{ 0, 0,
338 	    nosys },				/* 52 = unimplemented 0 nosys */
339 	{ 0, 0,
340 	    nosys },				/* 53 = unimplemented 0 syslock */
341 	{ 0, 0,
342 	    nosys },				/* 54 = unimplemented { int sunos_ioctl ( int fd , u_long com , caddr_t data ) ; } */
343 	{ 1, s(struct reboot_args),
344 	    reboot },				/* 55 = reboot */
345 	{ 0, 0,
346 	    nosys },				/* 56 = unimplemented 7thedition mpxchan */
347 	{ 2, s(struct symlink_args),
348 	    symlink },				/* 57 = symlink */
349 	{ 3, s(struct readlink_args),
350 	    readlink },				/* 58 = readlink */
351 	{ 3, s(struct execve_args),
352 	    execve },				/* 59 = execve */
353 	{ 1, s(struct umask_args),
354 	    umask },				/* 60 = umask */
355 	{ 1, s(struct chroot_args),
356 	    chroot },				/* 61 = chroot */
357 	{ 2, s(struct compat_43_fstat_args),
358 	    compat_43_fstat },			/* 62 = compat_43_fstat */
359 	{ 0, 0,
360 	    nosys },				/* 63 = unimplemented nosys */
361 	{ 0, 0,
362 	    compat_43_getpagesize },		/* 64 = compat_43_getpagesize */
363 	{ 0, 0,
364 	    nosys },				/* 65 = unimplemented mremap */
365 	{ 0, 0,
366 	    vfork },				/* 66 = vfork */
367 	{ 0, 0,
368 	    nosys },				/* 67 = obsolete vread */
369 	{ 0, 0,
370 	    nosys },				/* 68 = obsolete vwrite */
371 	{ 1, s(struct sbrk_args),
372 	    sbrk },				/* 69 = sbrk */
373 	{ 1, s(struct sstk_args),
374 	    sstk },				/* 70 = sstk */
375 	{ 6, s(struct sun_mmap_args),
376 	    sun_mmap },				/* 71 = sun_mmap */
377 	{ 1, s(struct ovadvise_args),
378 	    ovadvise },				/* 72 = vadvise */
379 	{ 2, s(struct munmap_args),
380 	    munmap },				/* 73 = munmap */
381 	{ 3, s(struct mprotect_args),
382 	    mprotect },				/* 74 = mprotect */
383 	{ 3, s(struct madvise_args),
384 	    madvise },				/* 75 = madvise */
385 	{ 0, 0,
386 	    sun_vhangup },			/* 76 = sun_vhangup */
387 	{ 0, 0,
388 	    nosys },				/* 77 = unimplemented old vlimit */
389 	{ 3, s(struct mincore_args),
390 	    mincore },				/* 78 = mincore */
391 	{ 2, s(struct getgroups_args),
392 	    getgroups },			/* 79 = getgroups */
393 	{ 2, s(struct setgroups_args),
394 	    setgroups },			/* 80 = setgroups */
395 	{ 0, 0,
396 	    getpgrp },				/* 81 = getpgrp */
397 	{ 2, s(struct sun_setpgid_args),
398 	    sun_setpgid },			/* 82 = sun_setpgid */
399 	{ 3, s(struct setitimer_args),
400 	    setitimer },			/* 83 = setitimer */
401 	{ 3, s(struct sun_wait3_args),
402 	    sun_wait3 },			/* 84 = sun_wait3 */
403 	{ 1, s(struct swapon_args),
404 	    swapon },				/* 85 = swapon */
405 	{ 2, s(struct getitimer_args),
406 	    getitimer },			/* 86 = getitimer */
407 	{ 2, s(struct compat_43_gethostname_args),
408 	    compat_43_gethostname },		/* 87 = compat_43_gethostname */
409 	{ 2, s(struct compat_43_sethostname_args),
410 	    compat_43_sethostname },		/* 88 = compat_43_sethostname */
411 	{ 0, 0,
412 	    compat_43_getdtablesize },		/* 89 = compat_43_getdtablesize */
413 	{ 2, s(struct dup2_args),
414 	    dup2 },				/* 90 = dup2 */
415 	{ 0, 0,
416 	    nosys },				/* 91 = unimplemented getdopt */
417 	{ 3, s(struct fcntl_args),
418 	    fcntl },				/* 92 = fcntl */
419 	{ 5, s(struct select_args),
420 	    select },				/* 93 = select */
421 	{ 0, 0,
422 	    nosys },				/* 94 = unimplemented setdopt */
423 	{ 1, s(struct fsync_args),
424 	    fsync },				/* 95 = fsync */
425 	{ 3, s(struct setpriority_args),
426 	    setpriority },			/* 96 = setpriority */
427 	{ 3, s(struct socket_args),
428 	    socket },				/* 97 = socket */
429 	{ 3, s(struct connect_args),
430 	    connect },				/* 98 = connect */
431 	{ 3, s(struct compat_43_accept_args),
432 	    compat_43_accept },			/* 99 = compat_43_accept */
433 	{ 2, s(struct getpriority_args),
434 	    getpriority },			/* 100 = getpriority */
435 	{ 4, s(struct compat_43_send_args),
436 	    compat_43_send },			/* 101 = compat_43_send */
437 	{ 4, s(struct compat_43_recv_args),
438 	    compat_43_recv },			/* 102 = compat_43_recv */
439 	{ 1, s(struct sigreturn_args),
440 	    sigreturn },			/* 103 = sigreturn */
441 	{ 3, s(struct bind_args),
442 	    bind },				/* 104 = bind */
443 	{ 5, s(struct sun_setsockopt_args),
444 	    sun_setsockopt },			/* 105 = sun_setsockopt */
445 	{ 2, s(struct listen_args),
446 	    listen },				/* 106 = listen */
447 	{ 0, 0,
448 	    nosys },				/* 107 = unimplemented vtimes */
449 	{ 3, s(struct compat_43_sigvec_args),
450 	    compat_43_sigvec },			/* 108 = compat_43_sigvec */
451 	{ 1, s(struct compat_43_sigblock_args),
452 	    compat_43_sigblock },		/* 109 = compat_43_sigblock */
453 	{ 1, s(struct compat_43_sigsetmask_args),
454 	    compat_43_sigsetmask },		/* 110 = compat_43_sigsetmask */
455 	{ 1, s(struct sigsuspend_args),
456 	    sigsuspend },			/* 111 = sigsuspend */
457 	{ 2, s(struct compat_43_sigstack_args),
458 	    compat_43_sigstack },		/* 112 = compat_43_sigstack */
459 	{ 3, s(struct compat_43_recvmsg_args),
460 	    compat_43_recvmsg },		/* 113 = compat_43_recvmsg */
461 	{ 3, s(struct compat_43_sendmsg_args),
462 	    compat_43_sendmsg },		/* 114 = compat_43_sendmsg */
463 	{ 0, 0,
464 	    nosys },				/* 115 = obsolete vtrace */
465 	{ 2, s(struct gettimeofday_args),
466 	    gettimeofday },			/* 116 = gettimeofday */
467 	{ 2, s(struct getrusage_args),
468 	    getrusage },			/* 117 = getrusage */
469 	{ 5, s(struct getsockopt_args),
470 	    getsockopt },			/* 118 = getsockopt */
471 	{ 0, 0,
472 	    nosys },				/* 119 = unimplemented resuba */
473 	{ 3, s(struct readv_args),
474 	    readv },				/* 120 = readv */
475 	{ 3, s(struct writev_args),
476 	    writev },				/* 121 = writev */
477 	{ 2, s(struct settimeofday_args),
478 	    settimeofday },			/* 122 = settimeofday */
479 	{ 3, s(struct fchown_args),
480 	    fchown },				/* 123 = fchown */
481 	{ 2, s(struct fchmod_args),
482 	    fchmod },				/* 124 = fchmod */
483 	{ 6, s(struct compat_43_recvfrom_args),
484 	    compat_43_recvfrom },		/* 125 = compat_43_recvfrom */
485 	{ 2, s(struct compat_43_setreuid_args),
486 	    compat_43_setreuid },		/* 126 = compat_43_setreuid */
487 	{ 2, s(struct compat_43_setregid_args),
488 	    compat_43_setregid },		/* 127 = compat_43_setregid */
489 	{ 2, s(struct rename_args),
490 	    rename },				/* 128 = rename */
491 	{ 2, s(struct compat_43_truncate_args),
492 	    compat_43_truncate },		/* 129 = compat_43_truncate */
493 	{ 2, s(struct compat_43_ftruncate_args),
494 	    compat_43_ftruncate },		/* 130 = compat_43_ftruncate */
495 	{ 2, s(struct flock_args),
496 	    flock },				/* 131 = flock */
497 	{ 0, 0,
498 	    nosys },				/* 132 = unimplemented nosys */
499 	{ 6, s(struct sendto_args),
500 	    sendto },				/* 133 = sendto */
501 	{ 2, s(struct shutdown_args),
502 	    shutdown },				/* 134 = shutdown */
503 	{ 4, s(struct socketpair_args),
504 	    socketpair },			/* 135 = socketpair */
505 	{ 2, s(struct mkdir_args),
506 	    mkdir },				/* 136 = mkdir */
507 	{ 1, s(struct rmdir_args),
508 	    rmdir },				/* 137 = rmdir */
509 	{ 2, s(struct utimes_args),
510 	    utimes },				/* 138 = utimes */
511 	{ 1, s(struct sigreturn_args),
512 	    sigreturn },			/* 139 = sigreturn */
513 	{ 2, s(struct adjtime_args),
514 	    adjtime },				/* 140 = adjtime */
515 	{ 3, s(struct compat_43_getpeername_args),
516 	    compat_43_getpeername },		/* 141 = compat_43_getpeername */
517 	{ 0, 0,
518 	    compat_43_gethostid },		/* 142 = compat_43_gethostid */
519 	{ 0, 0,
520 	    nosys },				/* 143 = unimplemented old sethostid */
521 	{ 2, s(struct compat_43_getrlimit_args),
522 	    compat_43_getrlimit },		/* 144 = compat_43_getrlimit */
523 	{ 2, s(struct compat_43_setrlimit_args),
524 	    compat_43_setrlimit },		/* 145 = compat_43_setrlimit */
525 	{ 2, s(struct compat_43_killpg_args),
526 	    compat_43_killpg },			/* 146 = compat_43_killpg */
527 	{ 0, 0,
528 	    nosys },				/* 147 = unimplemented nosys */
529 	{ 0, 0,
530 	    nosys },				/* 148 = unimplemented setquota */
531 	{ 0, 0,
532 	    nosys },				/* 149 = unimplemented quota / * needs to be nullop to boot on Ultrix root partition * / */
533 	{ 3, s(struct compat_43_getsockname_args),
534 	    compat_43_getsockname },		/* 150 = compat_43_getsockname */
535 	{ 0, 0,
536 	    nosys },				/* 151 = unimplemented sysmips / * 4 args * / */
537 	{ 0, 0,
538 	    nosys },				/* 152 = unimplemented cacheflush / * 4 args * / */
539 	{ 0, 0,
540 	    nosys },				/* 153 = unimplemented cachectl / * 3 args * / */
541 	{ 0, 0,
542 	    nosys },				/* 154 = unimplemented nosys */
543 	{ 0, 0,
544 	    nosys },				/* 155 = unimplemented atomic_op */
545 	{ 0, 0,
546 	    nosys },				/* 156 = unimplemented nosys */
547 	{ 0, 0,
548 	    nosys },				/* 157 = unimplemented nosys */
549 #ifdef NFSSERVER
550 	{ 1, s(struct sun_nfssvc_args),
551 	    sun_nfssvc },			/* 158 = sun_nfssvc */
552 #else
553 	{ 0, 0,
554 	    nosys },				/* 158 = unimplemented */
555 #endif
556 	{ 4, s(struct getdirentries_args),
557 	    getdirentries },			/* 159 = getdirentries */
558 	{ 2, s(struct sun_statfs_args),
559 	    sun_statfs },			/* 160 = sun_statfs */
560 	{ 2, s(struct sun_fstatfs_args),
561 	    sun_fstatfs },			/* 161 = sun_fstatfs */
562 	{ 2, s(struct sun_unmount_args),
563 	    sun_unmount },			/* 162 = sun_unmount */
564 #ifdef NFSCLIENT
565 	{ 0, 0,
566 	    async_daemon },			/* 163 = async_daemon */
567 	{ 2, s(struct getfh_args),
568 	    getfh },				/* 164 = getfh */
569 #else
570 	{ 0, 0,
571 	    nosys },				/* 163 = unimplemented async_daemon */
572 	{ 0, 0,
573 	    nosys },				/* 164 = unimplemented getfh */
574 #endif
575 	{ 2, s(struct compat_09_getdomainname_args),
576 	    compat_09_getdomainname },		/* 165 = compat_09_getdomainname */
577 	{ 2, s(struct compat_09_setdomainname_args),
578 	    compat_09_setdomainname },		/* 166 = compat_09_setdomainname */
579 	{ 0, 0,
580 	    nosys },				/* 167 = unimplemented 0 nosys */
581 	{ 4, s(struct sun_quotactl_args),
582 	    sun_quotactl },			/* 168 = sun_quotactl */
583 	{ 2, s(struct sun_exportfs_args),
584 	    sun_exportfs },			/* 169 = sun_exportfs */
585 	{ 0, 0,
586 	    nosys },				/* 170 = unimplemented ultrix_mount/ * implemented by jonathan@DSG.Stanford.EDU * / */
587 	{ 0, 0,
588 	    nosys },				/* 171 = unimplemented 4 hdwconf */
589 #ifdef SYSVMSG
590 	{ 0, 0,
591 	    nosys },				/* 172 = unimplemented 0 msgctl */
592 	{ 0, 0,
593 	    nosys },				/* 173 = unimplemented 0 msgget */
594 	{ 0, 0,
595 	    nosys },				/* 174 = unimplemented 0 msgrcv */
596 	{ 0, 0,
597 	    nosys },				/* 175 = unimplemented 0 msgsnd */
598 #else
599 	{ 0, 0,
600 	    nosys },				/* 172 = unimplemented 0 msgctl */
601 	{ 0, 0,
602 	    nosys },				/* 173 = unimplemented 0 msgget */
603 	{ 0, 0,
604 	    nosys },				/* 174 = unimplemented 0 msgrcv */
605 	{ 0, 0,
606 	    nosys },				/* 175 = unimplemented 0 msgsnd */
607 #endif
608 #ifdef SYSVSEM
609 	{ 0, 0,
610 	    nosys },				/* 176 = unimplemented 0 semctl */
611 	{ 0, 0,
612 	    nosys },				/* 177 = unimplemented 0 semget */
613 	{ 0, 0,
614 	    nosys },				/* 178 = unimplemented 0 semop */
615 #else
616 	{ 0, 0,
617 	    nosys },				/* 176 = unimplemented 0 semctl */
618 	{ 0, 0,
619 	    nosys },				/* 177 = unimplemented 0 semget */
620 	{ 0, 0,
621 	    nosys },				/* 178 = unimplemented 0 semop */
622 #endif
623 	{ 1, s(struct sun_uname_args),
624 	    sun_uname },			/* 179 = sun_uname */
625 #ifdef SYSVSHM
626 	{ 4, s(struct shmsys_args),
627 	    shmsys },				/* 180 = shmsys */
628 #else
629 	{ 0, 0,
630 	    nosys },				/* 180 = unimplemented shmsys */
631 #endif
632 	{ 0, 0,
633 	    nosys },				/* 181 = unimplemented 0 plock */
634 	{ 0, 0,
635 	    nosys },				/* 182 = unimplemented 0 lockf */
636 	{ 2, s(struct sun_ustat_args),
637 	    sun_ustat },			/* 183 = sun_ustat */
638 	{ 0, 0,
639 	    nosys },				/* 184 = unimplemented ult_getmnt / * implemented by jonathan@DSG.Stanford.EDU * / */
640 	{ 0, 0,
641 	    nosys },				/* 185 = unimplemented notdef */
642 	{ 0, 0,
643 	    nosys },				/* 186 = unimplemented notdef */
644 	{ 1, s(struct sun_sigpending_args),
645 	    sun_sigpending },			/* 187 = sun_sigpending */
646 	{ 0, 0,
647 	    setsid },				/* 188 = setsid */
648 	{ 0, 0,
649 	    ultrix_waitpid },			/* 189 = ultrix_waitpid */
650 	{ 0, 0,
651 	    nosys },				/* 190 = unimplemented nosys */
652 	{ 0, 0,
653 	    nosys },				/* 191 = unimplemented nosys */
654 	{ 0, 0,
655 	    nosys },				/* 192 = unimplemented nosys */
656 	{ 0, 0,
657 	    nosys },				/* 193 = unimplemented nosys */
658 	{ 0, 0,
659 	    nosys },				/* 194 = unimplemented nosys */
660 	{ 0, 0,
661 	    nosys },				/* 195 = unimplemented nosys */
662 	{ 0, 0,
663 	    nosys },				/* 196 = unimplemented nosys */
664 	{ 0, 0,
665 	    nosys },				/* 197 = unimplemented nosys */
666 	{ 0, 0,
667 	    nosys },				/* 198 = unimplemented nosys */
668 	{ 0, 0,
669 	    nosys },				/* 199 = unimplemented nosys */
670 	{ 0, 0,
671 	    nosys },				/* 200 = unimplemented nosys */
672 	{ 0, 0,
673 	    nosys },				/* 201 = unimplemented nosys */
674 	{ 0, 0,
675 	    nosys },				/* 202 = unimplemented nosys */
676 	{ 0, 0,
677 	    nosys },				/* 203 = unimplemented nosys */
678 	{ 0, 0,
679 	    nosys },				/* 204 = unimplemented nosys */
680 	{ 0, 0,
681 	    nosys },				/* 205 = unimplemented nosys */
682 	{ 0, 0,
683 	    nosys },				/* 206 = unimplemented nosys */
684 	{ 0, 0,
685 	    nosys },				/* 207 = unimplemented nosys */
686 	{ 0, 0,
687 	    nosys },				/* 208 = unimplemented nosys */
688 	{ 0, 0,
689 	    nosys },				/* 209 = unimplemented nosys */
690 	{ 0, 0,
691 	    nosys },				/* 210 = unimplemented nosys */
692 	{ 0, 0,
693 	    nosys },				/* 211 = unimplemented nosys */
694 	{ 0, 0,
695 	    nosys },				/* 212 = unimplemented nosys */
696 	{ 0, 0,
697 	    nosys },				/* 213 = unimplemented nosys */
698 	{ 0, 0,
699 	    nosys },				/* 214 = unimplemented nosys */
700 	{ 0, 0,
701 	    nosys },				/* 215 = unimplemented nosys */
702 	{ 0, 0,
703 	    nosys },				/* 216 = unimplemented nosys */
704 	{ 0, 0,
705 	    nosys },				/* 217 = unimplemented nosys */
706 	{ 0, 0,
707 	    nosys },				/* 218 = unimplemented nosys */
708 	{ 0, 0,
709 	    nosys },				/* 219 = unimplemented nosys */
710 	{ 0, 0,
711 	    nosys },				/* 220 = unimplemented nosys */
712 	{ 0, 0,
713 	    nosys },				/* 221 = unimplemented nosys */
714 	{ 0, 0,
715 	    nosys },				/* 222 = unimplemented nosys */
716 	{ 0, 0,
717 	    nosys },				/* 223 = unimplemented nosys */
718 	{ 0, 0,
719 	    nosys },				/* 224 = unimplemented nosys */
720 	{ 0, 0,
721 	    nosys },				/* 225 = unimplemented nosys */
722 	{ 0, 0,
723 	    nosys },				/* 226 = unimplemented nosys */
724 	{ 0, 0,
725 	    nosys },				/* 227 = unimplemented nosys */
726 	{ 0, 0,
727 	    nosys },				/* 228 = unimplemented nosys */
728 	{ 0, 0,
729 	    nosys },				/* 229 = unimplemented nosys */
730 	{ 0, 0,
731 	    nosys },				/* 230 = unimplemented nosys */
732 	{ 0, 0,
733 	    nosys },				/* 231 = unimplemented nosys */
734 	{ 0, 0,
735 	    nosys },				/* 232 = unimplemented nosys */
736 	{ 0, 0,
737 	    nosys },				/* 233 = unimplemented 1 utc_gettime */
738 	{ 0, 0,
739 	    nosys },				/* 234 = unimplemented 2 utc_adjtime */
740 	{ 0, 0,
741 	    nosys },				/* 235 = unimplemented nosys */
742 	{ 0, 0,
743 	    nosys },				/* 236 = unimplemented nosys */
744 	{ 0, 0,
745 	    nosys },				/* 237 = unimplemented nosys */
746 	{ 0, 0,
747 	    nosys },				/* 238 = unimplemented nosys */
748 	{ 0, 0,
749 	    nosys },				/* 239 = unimplemented nosys */
750 	{ 0, 0,
751 	    nosys },				/* 240 = unimplemented nosys */
752 	{ 0, 0,
753 	    nosys },				/* 241 = unimplemented nosys */
754 	{ 0, 0,
755 	    nosys },				/* 242 = unimplemented nosys */
756 	{ 0, 0,
757 	    nosys },				/* 243 = unimplemented nosys */
758 	{ 0, 0,
759 	    nosys },				/* 244 = unimplemented nosys */
760 	{ 0, 0,
761 	    nosys },				/* 245 = unimplemented nosys */
762 	{ 0, 0,
763 	    nosys },				/* 246 = unimplemented nosys */
764 	{ 0, 0,
765 	    nosys },				/* 247 = unimplemented nosys */
766 	{ 0, 0,
767 	    nosys },				/* 248 = unimplemented nosys */
768 	{ 0, 0,
769 	    nosys },				/* 249 = unimplemented nosys */
770 	{ 0, 0,
771 	    nosys },				/* 250 = unimplemented nosys */
772 	{ 0, 0,
773 	    nosys },				/* 251 = unimplemented nosys */
774 	{ 0, 0,
775 	    nosys },				/* 252 = unimplemented audctl / * Make no-op for installation on Ultrix rootpartition? * / */
776 	{ 0, 0,
777 	    nosys },				/* 253 = unimplemented audgen / * Make no-op for installation on Ultrix rootpartition? * / */
778 	{ 0, 0,
779 	    nosys },				/* 254 = unimplemented startcpu */
780 	{ 0, 0,
781 	    nosys },				/* 255 = unimplemented stopcpu */
782 	{ 5, s(struct ultrix_getsysinfo_args),
783 	    ultrix_getsysinfo },		/* 256 = ultrix_getsysinfo */
784 	{ 5, s(struct ultrix_setsysinfo_args),
785 	    ultrix_setsysinfo },		/* 257 = ultrix_setsysinfo */
786 };
787 
788 int	nultrix_sysent= sizeof(ultrix_sysent) / sizeof(ultrix_sysent[0]);
789