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