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