Home | History | Annotate | Line # | Download | only in sunos
sunos_sysent.c revision 1.18
      1 /*
      2  * System call switch table.
      3  *
      4  * DO NOT EDIT-- this file is automatically generated.
      5  * created from	NetBSD: syscalls.master,v 1.26 1995/04/22 23:45:33 christos 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 int	nosys();
     16 int	exit();
     17 int	fork();
     18 int	read();
     19 int	write();
     20 int	sunos_open();
     21 int	close();
     22 int	sunos_wait4();
     23 int	sunos_creat();
     24 int	link();
     25 int	unlink();
     26 int	sunos_execv();
     27 int	chdir();
     28 int	sunos_mknod();
     29 int	chmod();
     30 int	chown();
     31 int	obreak();
     32 int	compat_43_lseek();
     33 int	getpid();
     34 int	setuid();
     35 int	getuid();
     36 int	sunos_ptrace();
     37 int	access();
     38 int	sync();
     39 int	kill();
     40 int	compat_43_stat();
     41 int	compat_43_lstat();
     42 int	dup();
     43 int	pipe();
     44 int	profil();
     45 int	setgid();
     46 int	getgid();
     47 int	acct();
     48 int	sunos_mctl();
     49 int	sunos_ioctl();
     50 int	sunos_reboot();
     51 int	symlink();
     52 int	readlink();
     53 int	execve();
     54 int	umask();
     55 int	chroot();
     56 int	compat_43_fstat();
     57 int	compat_43_getpagesize();
     58 int	sunos_omsync();
     59 int	vfork();
     60 int	sbrk();
     61 int	sstk();
     62 int	sunos_mmap();
     63 int	ovadvise();
     64 int	munmap();
     65 int	mprotect();
     66 int	madvise();
     67 int	sunos_vhangup();
     68 int	mincore();
     69 int	getgroups();
     70 int	setgroups();
     71 int	getpgrp();
     72 int	sunos_setpgid();
     73 int	setitimer();
     74 int	swapon();
     75 int	getitimer();
     76 int	compat_43_gethostname();
     77 int	compat_43_sethostname();
     78 int	compat_43_getdtablesize();
     79 int	dup2();
     80 int	fcntl();
     81 int	select();
     82 int	fsync();
     83 int	setpriority();
     84 int	socket();
     85 int	connect();
     86 int	compat_43_accept();
     87 int	getpriority();
     88 int	compat_43_send();
     89 int	compat_43_recv();
     90 int	bind();
     91 int	sunos_setsockopt();
     92 int	listen();
     93 int	compat_43_sigvec();
     94 int	compat_43_sigblock();
     95 int	compat_43_sigsetmask();
     96 int	sigsuspend();
     97 int	compat_43_sigstack();
     98 int	compat_43_recvmsg();
     99 int	compat_43_sendmsg();
    100 int	gettimeofday();
    101 int	getrusage();
    102 int	getsockopt();
    103 int	readv();
    104 int	writev();
    105 int	settimeofday();
    106 int	fchown();
    107 int	fchmod();
    108 int	compat_43_recvfrom();
    109 int	compat_43_setreuid();
    110 int	compat_43_setregid();
    111 int	rename();
    112 int	compat_43_truncate();
    113 int	compat_43_ftruncate();
    114 int	flock();
    115 int	sendto();
    116 int	shutdown();
    117 int	socketpair();
    118 int	mkdir();
    119 int	rmdir();
    120 int	utimes();
    121 int	sunos_sigreturn();
    122 int	adjtime();
    123 int	compat_43_getpeername();
    124 int	compat_43_gethostid();
    125 int	sunos_getrlimit();
    126 int	sunos_setrlimit();
    127 int	compat_43_killpg();
    128 int	compat_43_getsockname();
    129 int	sunos_poll();
    130 #ifdef NFSSERVER
    131 int	sunos_nfssvc();
    132 #else
    133 #endif
    134 int	getdirentries();
    135 int	sunos_statfs();
    136 int	sunos_fstatfs();
    137 int	sunos_unmount();
    138 #ifdef NFSCLIENT
    139 int	async_daemon();
    140 int	getfh();
    141 #else
    142 #endif
    143 int	compat_09_getdomainname();
    144 int	compat_09_setdomainname();
    145 int	sunos_quotactl();
    146 int	sunos_exportfs();
    147 int	sunos_mount();
    148 int	sunos_ustat();
    149 #ifdef SYSVSEM
    150 int	compat_10_semsys();
    151 #else
    152 #endif
    153 #ifdef SYSVMSG
    154 int	compat_10_msgsys();
    155 #else
    156 #endif
    157 #ifdef SYSVSHM
    158 int	compat_10_shmsys();
    159 #else
    160 #endif
    161 int	sunos_auditsys();
    162 int	sunos_getdents();
    163 int	setsid();
    164 int	fchdir();
    165 int	sunos_fchroot();
    166 int	sunos_sigpending();
    167 int	setpgid();
    168 int	pathconf();
    169 int	fpathconf();
    170 int	sunos_sysconf();
    171 int	sunos_uname();
    172 
    173 #ifdef COMPAT_43
    174 #define compat_43(func) __CONCAT(compat_43_,func)
    175 
    176 #ifdef NFSSERVER
    177 #else
    178 #endif
    179 #ifdef NFSCLIENT
    180 #else
    181 #endif
    182 #ifdef SYSVSEM
    183 #else
    184 #endif
    185 #ifdef SYSVMSG
    186 #else
    187 #endif
    188 #ifdef SYSVSHM
    189 #else
    190 #endif
    191 
    192 #else /* COMPAT_43 */
    193 #define compat_43(func) nosys
    194 #endif /* COMPAT_43 */
    195 
    196 
    197 #ifdef COMPAT_09
    198 #define compat_09(func) __CONCAT(compat_09_,func)
    199 
    200 #ifdef NFSSERVER
    201 #else
    202 #endif
    203 #ifdef NFSCLIENT
    204 #else
    205 #endif
    206 #ifdef SYSVSEM
    207 #else
    208 #endif
    209 #ifdef SYSVMSG
    210 #else
    211 #endif
    212 #ifdef SYSVSHM
    213 #else
    214 #endif
    215 
    216 #else /* COMPAT_09 */
    217 #define compat_09(func) nosys
    218 #endif /* COMPAT_09 */
    219 
    220 
    221 #ifdef COMPAT_10
    222 #define compat_10(func) __CONCAT(compat_10_,func)
    223 
    224 #ifdef NFSSERVER
    225 #else
    226 #endif
    227 #ifdef NFSCLIENT
    228 #else
    229 #endif
    230 #ifdef SYSVSEM
    231 #else
    232 #endif
    233 #ifdef SYSVMSG
    234 #else
    235 #endif
    236 #ifdef SYSVSHM
    237 #else
    238 #endif
    239 
    240 #else /* COMPAT_10 */
    241 #define compat_10(func) nosys
    242 #endif /* COMPAT_10 */
    243 
    244 #define	s(type)	sizeof(type)
    245 
    246 struct sysent sunos_sysent[] = {
    247 	{ 0, 0,
    248 	    nosys },				/* 0 = syscall */
    249 	{ 1, s(struct exit_args),
    250 	    exit },				/* 1 = exit */
    251 	{ 0, 0,
    252 	    fork },				/* 2 = fork */
    253 	{ 3, s(struct read_args),
    254 	    read },				/* 3 = read */
    255 	{ 3, s(struct write_args),
    256 	    write },				/* 4 = write */
    257 	{ 3, s(struct sunos_open_args),
    258 	    sunos_open },			/* 5 = sunos_open */
    259 	{ 1, s(struct close_args),
    260 	    close },				/* 6 = close */
    261 	{ 4, s(struct sunos_wait4_args),
    262 	    sunos_wait4 },			/* 7 = sunos_wait4 */
    263 	{ 2, s(struct sunos_creat_args),
    264 	    sunos_creat },			/* 8 = sunos_creat */
    265 	{ 2, s(struct link_args),
    266 	    link },				/* 9 = link */
    267 	{ 1, s(struct unlink_args),
    268 	    unlink },				/* 10 = unlink */
    269 	{ 2, s(struct sunos_execv_args),
    270 	    sunos_execv },			/* 11 = sunos_execv */
    271 	{ 1, s(struct chdir_args),
    272 	    chdir },				/* 12 = chdir */
    273 	{ 0, 0,
    274 	    nosys },				/* 13 = obsolete time */
    275 	{ 3, s(struct sunos_mknod_args),
    276 	    sunos_mknod },			/* 14 = sunos_mknod */
    277 	{ 2, s(struct chmod_args),
    278 	    chmod },				/* 15 = chmod */
    279 	{ 3, s(struct chown_args),
    280 	    chown },				/* 16 = chown */
    281 	{ 1, s(struct obreak_args),
    282 	    obreak },				/* 17 = break */
    283 	{ 0, 0,
    284 	    nosys },				/* 18 = obsolete stat */
    285 	{ 3, s(struct compat_43_lseek_args),
    286 	    compat_43_lseek },			/* 19 = compat_43_lseek */
    287 	{ 0, 0,
    288 	    getpid },				/* 20 = getpid */
    289 	{ 0, 0,
    290 	    nosys },				/* 21 = obsolete sunos_old_mount */
    291 	{ 0, 0,
    292 	    nosys },				/* 22 = unimplemented System V umount */
    293 	{ 1, s(struct setuid_args),
    294 	    setuid },				/* 23 = setuid */
    295 	{ 0, 0,
    296 	    getuid },				/* 24 = getuid */
    297 	{ 0, 0,
    298 	    nosys },				/* 25 = unimplemented sunos_stime */
    299 	{ 5, s(struct sunos_ptrace_args),
    300 	    sunos_ptrace },			/* 26 = sunos_ptrace */
    301 	{ 0, 0,
    302 	    nosys },				/* 27 = unimplemented sunos_alarm */
    303 	{ 0, 0,
    304 	    nosys },				/* 28 = unimplemented sunos_fstat */
    305 	{ 0, 0,
    306 	    nosys },				/* 29 = unimplemented sunos_pause */
    307 	{ 0, 0,
    308 	    nosys },				/* 30 = unimplemented sunos_utime */
    309 	{ 0, 0,
    310 	    nosys },				/* 31 = unimplemented sunos_stty */
    311 	{ 0, 0,
    312 	    nosys },				/* 32 = unimplemented sunos_gtty */
    313 	{ 2, s(struct access_args),
    314 	    access },				/* 33 = access */
    315 	{ 0, 0,
    316 	    nosys },				/* 34 = unimplemented sunos_nice */
    317 	{ 0, 0,
    318 	    nosys },				/* 35 = unimplemented sunos_ftime */
    319 	{ 0, 0,
    320 	    sync },				/* 36 = sync */
    321 	{ 2, s(struct kill_args),
    322 	    kill },				/* 37 = kill */
    323 	{ 2, s(struct compat_43_stat_args),
    324 	    compat_43_stat },			/* 38 = compat_43_stat */
    325 	{ 0, 0,
    326 	    nosys },				/* 39 = unimplemented sunos_setpgrp */
    327 	{ 2, s(struct compat_43_lstat_args),
    328 	    compat_43_lstat },			/* 40 = compat_43_lstat */
    329 	{ 1, s(struct dup_args),
    330 	    dup },				/* 41 = dup */
    331 	{ 0, 0,
    332 	    pipe },				/* 42 = pipe */
    333 	{ 0, 0,
    334 	    nosys },				/* 43 = unimplemented sunos_times */
    335 	{ 4, s(struct profil_args),
    336 	    profil },				/* 44 = profil */
    337 	{ 0, 0,
    338 	    nosys },				/* 45 = unimplemented */
    339 	{ 1, s(struct setgid_args),
    340 	    setgid },				/* 46 = setgid */
    341 	{ 0, 0,
    342 	    getgid },				/* 47 = getgid */
    343 	{ 0, 0,
    344 	    nosys },				/* 48 = unimplemented sunos_ssig */
    345 	{ 0, 0,
    346 	    nosys },				/* 49 = unimplemented reserved for USG */
    347 	{ 0, 0,
    348 	    nosys },				/* 50 = unimplemented reserved for USG */
    349 	{ 1, s(struct acct_args),
    350 	    acct },				/* 51 = acct */
    351 	{ 0, 0,
    352 	    nosys },				/* 52 = unimplemented */
    353 	{ 4, s(struct sunos_mctl_args),
    354 	    sunos_mctl },			/* 53 = sunos_mctl */
    355 	{ 3, s(struct sunos_ioctl_args),
    356 	    sunos_ioctl },			/* 54 = sunos_ioctl */
    357 	{ 2, s(struct sunos_reboot_args),
    358 	    sunos_reboot },			/* 55 = sunos_reboot */
    359 	{ 0, 0,
    360 	    nosys },				/* 56 = obsolete sunos_owait3 */
    361 	{ 2, s(struct symlink_args),
    362 	    symlink },				/* 57 = symlink */
    363 	{ 3, s(struct readlink_args),
    364 	    readlink },				/* 58 = readlink */
    365 	{ 3, s(struct execve_args),
    366 	    execve },				/* 59 = execve */
    367 	{ 1, s(struct umask_args),
    368 	    umask },				/* 60 = umask */
    369 	{ 1, s(struct chroot_args),
    370 	    chroot },				/* 61 = chroot */
    371 	{ 2, s(struct compat_43_fstat_args),
    372 	    compat_43_fstat },			/* 62 = compat_43_fstat */
    373 	{ 0, 0,
    374 	    nosys },				/* 63 = unimplemented */
    375 	{ 0, 0,
    376 	    compat_43_getpagesize },		/* 64 = compat_43_getpagesize */
    377 	{ 3, s(struct sunos_omsync_args),
    378 	    sunos_omsync },			/* 65 = sunos_omsync */
    379 	{ 0, 0,
    380 	    vfork },				/* 66 = vfork */
    381 	{ 0, 0,
    382 	    nosys },				/* 67 = obsolete vread */
    383 	{ 0, 0,
    384 	    nosys },				/* 68 = obsolete vwrite */
    385 	{ 1, s(struct sbrk_args),
    386 	    sbrk },				/* 69 = sbrk */
    387 	{ 1, s(struct sstk_args),
    388 	    sstk },				/* 70 = sstk */
    389 	{ 6, s(struct sunos_mmap_args),
    390 	    sunos_mmap },			/* 71 = sunos_mmap */
    391 	{ 1, s(struct ovadvise_args),
    392 	    ovadvise },				/* 72 = vadvise */
    393 	{ 2, s(struct munmap_args),
    394 	    munmap },				/* 73 = munmap */
    395 	{ 3, s(struct mprotect_args),
    396 	    mprotect },				/* 74 = mprotect */
    397 	{ 3, s(struct madvise_args),
    398 	    madvise },				/* 75 = madvise */
    399 	{ 0, 0,
    400 	    sunos_vhangup },			/* 76 = sunos_vhangup */
    401 	{ 0, 0,
    402 	    nosys },				/* 77 = unimplemented vlimit */
    403 	{ 3, s(struct mincore_args),
    404 	    mincore },				/* 78 = mincore */
    405 	{ 2, s(struct getgroups_args),
    406 	    getgroups },			/* 79 = getgroups */
    407 	{ 2, s(struct setgroups_args),
    408 	    setgroups },			/* 80 = setgroups */
    409 	{ 0, 0,
    410 	    getpgrp },				/* 81 = getpgrp */
    411 	{ 2, s(struct sunos_setpgid_args),
    412 	    sunos_setpgid },			/* 82 = sunos_setpgid */
    413 	{ 3, s(struct setitimer_args),
    414 	    setitimer },			/* 83 = setitimer */
    415 	{ 0, 0,
    416 	    nosys },				/* 84 = unimplemented { int sunos_wait ( void ) ; } */
    417 	{ 1, s(struct swapon_args),
    418 	    swapon },				/* 85 = swapon */
    419 	{ 2, s(struct getitimer_args),
    420 	    getitimer },			/* 86 = getitimer */
    421 	{ 2, s(struct compat_43_gethostname_args),
    422 	    compat_43_gethostname },		/* 87 = compat_43_gethostname */
    423 	{ 2, s(struct compat_43_sethostname_args),
    424 	    compat_43_sethostname },		/* 88 = compat_43_sethostname */
    425 	{ 0, 0,
    426 	    compat_43_getdtablesize },		/* 89 = compat_43_getdtablesize */
    427 	{ 2, s(struct dup2_args),
    428 	    dup2 },				/* 90 = dup2 */
    429 	{ 0, 0,
    430 	    nosys },				/* 91 = unimplemented getdopt */
    431 	{ 3, s(struct fcntl_args),
    432 	    fcntl },				/* 92 = fcntl */
    433 	{ 5, s(struct select_args),
    434 	    select },				/* 93 = select */
    435 	{ 0, 0,
    436 	    nosys },				/* 94 = unimplemented setdopt */
    437 	{ 1, s(struct fsync_args),
    438 	    fsync },				/* 95 = fsync */
    439 	{ 3, s(struct setpriority_args),
    440 	    setpriority },			/* 96 = setpriority */
    441 	{ 3, s(struct socket_args),
    442 	    socket },				/* 97 = socket */
    443 	{ 3, s(struct connect_args),
    444 	    connect },				/* 98 = connect */
    445 	{ 3, s(struct compat_43_accept_args),
    446 	    compat_43_accept },			/* 99 = compat_43_accept */
    447 	{ 2, s(struct getpriority_args),
    448 	    getpriority },			/* 100 = getpriority */
    449 	{ 4, s(struct compat_43_send_args),
    450 	    compat_43_send },			/* 101 = compat_43_send */
    451 	{ 4, s(struct compat_43_recv_args),
    452 	    compat_43_recv },			/* 102 = compat_43_recv */
    453 	{ 0, 0,
    454 	    nosys },				/* 103 = unimplemented old socketaddr */
    455 	{ 3, s(struct bind_args),
    456 	    bind },				/* 104 = bind */
    457 	{ 5, s(struct sunos_setsockopt_args),
    458 	    sunos_setsockopt },			/* 105 = sunos_setsockopt */
    459 	{ 2, s(struct listen_args),
    460 	    listen },				/* 106 = listen */
    461 	{ 0, 0,
    462 	    nosys },				/* 107 = unimplemented vtimes */
    463 	{ 3, s(struct compat_43_sigvec_args),
    464 	    compat_43_sigvec },			/* 108 = compat_43_sigvec */
    465 	{ 1, s(struct compat_43_sigblock_args),
    466 	    compat_43_sigblock },		/* 109 = compat_43_sigblock */
    467 	{ 1, s(struct compat_43_sigsetmask_args),
    468 	    compat_43_sigsetmask },		/* 110 = compat_43_sigsetmask */
    469 	{ 1, s(struct sigsuspend_args),
    470 	    sigsuspend },			/* 111 = sigsuspend */
    471 	{ 2, s(struct compat_43_sigstack_args),
    472 	    compat_43_sigstack },		/* 112 = compat_43_sigstack */
    473 	{ 3, s(struct compat_43_recvmsg_args),
    474 	    compat_43_recvmsg },		/* 113 = compat_43_recvmsg */
    475 	{ 3, s(struct compat_43_sendmsg_args),
    476 	    compat_43_sendmsg },		/* 114 = compat_43_sendmsg */
    477 	{ 0, 0,
    478 	    nosys },				/* 115 = obsolete vtrace */
    479 	{ 2, s(struct gettimeofday_args),
    480 	    gettimeofday },			/* 116 = gettimeofday */
    481 	{ 2, s(struct getrusage_args),
    482 	    getrusage },			/* 117 = getrusage */
    483 	{ 5, s(struct getsockopt_args),
    484 	    getsockopt },			/* 118 = getsockopt */
    485 	{ 0, 0,
    486 	    nosys },				/* 119 = unimplemented */
    487 	{ 3, s(struct readv_args),
    488 	    readv },				/* 120 = readv */
    489 	{ 3, s(struct writev_args),
    490 	    writev },				/* 121 = writev */
    491 	{ 2, s(struct settimeofday_args),
    492 	    settimeofday },			/* 122 = settimeofday */
    493 	{ 3, s(struct fchown_args),
    494 	    fchown },				/* 123 = fchown */
    495 	{ 2, s(struct fchmod_args),
    496 	    fchmod },				/* 124 = fchmod */
    497 	{ 6, s(struct compat_43_recvfrom_args),
    498 	    compat_43_recvfrom },		/* 125 = compat_43_recvfrom */
    499 	{ 2, s(struct compat_43_setreuid_args),
    500 	    compat_43_setreuid },		/* 126 = compat_43_setreuid */
    501 	{ 2, s(struct compat_43_setregid_args),
    502 	    compat_43_setregid },		/* 127 = compat_43_setregid */
    503 	{ 2, s(struct rename_args),
    504 	    rename },				/* 128 = rename */
    505 	{ 2, s(struct compat_43_truncate_args),
    506 	    compat_43_truncate },		/* 129 = compat_43_truncate */
    507 	{ 2, s(struct compat_43_ftruncate_args),
    508 	    compat_43_ftruncate },		/* 130 = compat_43_ftruncate */
    509 	{ 2, s(struct flock_args),
    510 	    flock },				/* 131 = flock */
    511 	{ 0, 0,
    512 	    nosys },				/* 132 = unimplemented */
    513 	{ 6, s(struct sendto_args),
    514 	    sendto },				/* 133 = sendto */
    515 	{ 2, s(struct shutdown_args),
    516 	    shutdown },				/* 134 = shutdown */
    517 	{ 4, s(struct socketpair_args),
    518 	    socketpair },			/* 135 = socketpair */
    519 	{ 2, s(struct mkdir_args),
    520 	    mkdir },				/* 136 = mkdir */
    521 	{ 1, s(struct rmdir_args),
    522 	    rmdir },				/* 137 = rmdir */
    523 	{ 2, s(struct utimes_args),
    524 	    utimes },				/* 138 = utimes */
    525 	{ 1, s(struct sunos_sigreturn_args),
    526 	    sunos_sigreturn },			/* 139 = sunos_sigreturn */
    527 	{ 2, s(struct adjtime_args),
    528 	    adjtime },				/* 140 = adjtime */
    529 	{ 3, s(struct compat_43_getpeername_args),
    530 	    compat_43_getpeername },		/* 141 = compat_43_getpeername */
    531 	{ 0, 0,
    532 	    compat_43_gethostid },		/* 142 = compat_43_gethostid */
    533 	{ 0, 0,
    534 	    nosys },				/* 143 = unimplemented old sethostid */
    535 	{ 2, s(struct sunos_getrlimit_args),
    536 	    sunos_getrlimit },			/* 144 = sunos_getrlimit */
    537 	{ 2, s(struct sunos_setrlimit_args),
    538 	    sunos_setrlimit },			/* 145 = sunos_setrlimit */
    539 	{ 2, s(struct compat_43_killpg_args),
    540 	    compat_43_killpg },			/* 146 = compat_43_killpg */
    541 	{ 0, 0,
    542 	    nosys },				/* 147 = unimplemented */
    543 	{ 0, 0,
    544 	    nosys },				/* 148 = unimplemented */
    545 	{ 0, 0,
    546 	    nosys },				/* 149 = unimplemented */
    547 	{ 3, s(struct compat_43_getsockname_args),
    548 	    compat_43_getsockname },		/* 150 = compat_43_getsockname */
    549 	{ 0, 0,
    550 	    nosys },				/* 151 = unimplemented getmsg */
    551 	{ 0, 0,
    552 	    nosys },				/* 152 = unimplemented putmsg */
    553 	{ 3, s(struct sunos_poll_args),
    554 	    sunos_poll },			/* 153 = sunos_poll */
    555 	{ 0, 0,
    556 	    nosys },				/* 154 = unimplemented */
    557 #ifdef NFSSERVER
    558 	{ 1, s(struct sunos_nfssvc_args),
    559 	    sunos_nfssvc },			/* 155 = sunos_nfssvc */
    560 #else
    561 	{ 0, 0,
    562 	    nosys },				/* 155 = unimplemented */
    563 #endif
    564 	{ 4, s(struct getdirentries_args),
    565 	    getdirentries },			/* 156 = getdirentries */
    566 	{ 2, s(struct sunos_statfs_args),
    567 	    sunos_statfs },			/* 157 = sunos_statfs */
    568 	{ 2, s(struct sunos_fstatfs_args),
    569 	    sunos_fstatfs },			/* 158 = sunos_fstatfs */
    570 	{ 2, s(struct sunos_unmount_args),
    571 	    sunos_unmount },			/* 159 = sunos_unmount */
    572 #ifdef NFSCLIENT
    573 	{ 0, 0,
    574 	    async_daemon },			/* 160 = async_daemon */
    575 	{ 2, s(struct getfh_args),
    576 	    getfh },				/* 161 = getfh */
    577 #else
    578 	{ 0, 0,
    579 	    nosys },				/* 160 = unimplemented */
    580 	{ 0, 0,
    581 	    nosys },				/* 161 = unimplemented */
    582 #endif
    583 	{ 2, s(struct compat_09_getdomainname_args),
    584 	    compat_09_getdomainname },		/* 162 = compat_09_getdomainname */
    585 	{ 2, s(struct compat_09_setdomainname_args),
    586 	    compat_09_setdomainname },		/* 163 = compat_09_setdomainname */
    587 	{ 0, 0,
    588 	    nosys },				/* 164 = unimplemented rtschedule */
    589 	{ 4, s(struct sunos_quotactl_args),
    590 	    sunos_quotactl },			/* 165 = sunos_quotactl */
    591 	{ 2, s(struct sunos_exportfs_args),
    592 	    sunos_exportfs },			/* 166 = sunos_exportfs */
    593 	{ 4, s(struct sunos_mount_args),
    594 	    sunos_mount },			/* 167 = sunos_mount */
    595 	{ 2, s(struct sunos_ustat_args),
    596 	    sunos_ustat },			/* 168 = sunos_ustat */
    597 #ifdef SYSVSEM
    598 	{ 5, s(struct compat_10_semsys_args),
    599 	    compat_10_semsys },			/* 169 = compat_10_semsys */
    600 #else
    601 	{ 0, 0,
    602 	    nosys },				/* 169 = unimplemented nosys */
    603 #endif
    604 #ifdef SYSVMSG
    605 	{ 6, s(struct compat_10_msgsys_args),
    606 	    compat_10_msgsys },			/* 170 = compat_10_msgsys */
    607 #else
    608 	{ 0, 0,
    609 	    nosys },				/* 170 = unimplemented nosys */
    610 #endif
    611 #ifdef SYSVSHM
    612 	{ 4, s(struct compat_10_shmsys_args),
    613 	    compat_10_shmsys },			/* 171 = compat_10_shmsys */
    614 #else
    615 	{ 0, 0,
    616 	    nosys },				/* 171 = unimplemented nosys */
    617 #endif
    618 	{ 1, s(struct sunos_auditsys_args),
    619 	    sunos_auditsys },			/* 172 = sunos_auditsys */
    620 	{ 0, 0,
    621 	    nosys },				/* 173 = unimplemented rfssys */
    622 	{ 3, s(struct sunos_getdents_args),
    623 	    sunos_getdents },			/* 174 = sunos_getdents */
    624 	{ 0, 0,
    625 	    setsid },				/* 175 = setsid */
    626 	{ 1, s(struct fchdir_args),
    627 	    fchdir },				/* 176 = fchdir */
    628 	{ 1, s(struct sunos_fchroot_args),
    629 	    sunos_fchroot },			/* 177 = sunos_fchroot */
    630 	{ 0, 0,
    631 	    nosys },				/* 178 = unimplemented vpixsys */
    632 	{ 0, 0,
    633 	    nosys },				/* 179 = unimplemented aioread */
    634 	{ 0, 0,
    635 	    nosys },				/* 180 = unimplemented aiowrite */
    636 	{ 0, 0,
    637 	    nosys },				/* 181 = unimplemented aiowait */
    638 	{ 0, 0,
    639 	    nosys },				/* 182 = unimplemented aiocancel */
    640 	{ 1, s(struct sunos_sigpending_args),
    641 	    sunos_sigpending },			/* 183 = sunos_sigpending */
    642 	{ 0, 0,
    643 	    nosys },				/* 184 = unimplemented */
    644 	{ 2, s(struct setpgid_args),
    645 	    setpgid },				/* 185 = setpgid */
    646 	{ 2, s(struct pathconf_args),
    647 	    pathconf },				/* 186 = pathconf */
    648 	{ 2, s(struct fpathconf_args),
    649 	    fpathconf },			/* 187 = fpathconf */
    650 	{ 1, s(struct sunos_sysconf_args),
    651 	    sunos_sysconf },			/* 188 = sunos_sysconf */
    652 	{ 1, s(struct sunos_uname_args),
    653 	    sunos_uname },			/* 189 = sunos_uname */
    654 };
    655 
    656