Home | History | Annotate | Line # | Download | only in kern
init_sysent.c revision 1.51
      1   1.1      cgd /*
      2   1.1      cgd  * System call switch table.
      3   1.1      cgd  *
      4   1.1      cgd  * DO NOT EDIT-- this file is automatically generated.
      5  1.51      cgd  * created from	NetBSD: syscalls.master,v 1.43 1996/12/22 06:46:50 cgd Exp
      6   1.1      cgd  */
      7   1.1      cgd 
      8  1.17      cgd #include <sys/param.h>
      9  1.17      cgd #include <sys/systm.h>
     10  1.28      cgd #include <sys/signal.h>
     11  1.28      cgd #include <sys/mount.h>
     12  1.28      cgd #include <sys/syscallargs.h>
     13  1.37  mycroft 
     14  1.37  mycroft #ifdef COMPAT_43
     15  1.37  mycroft #define compat_43(func) __CONCAT(compat_43_,func)
     16  1.37  mycroft #else
     17  1.37  mycroft #define compat_43(func) sys_nosys
     18  1.37  mycroft #endif
     19  1.37  mycroft 
     20  1.37  mycroft #ifdef COMPAT_09
     21  1.37  mycroft #define compat_09(func) __CONCAT(compat_09_,func)
     22  1.37  mycroft #else
     23  1.37  mycroft #define compat_09(func) sys_nosys
     24  1.37  mycroft #endif
     25  1.37  mycroft 
     26  1.37  mycroft #ifdef COMPAT_10
     27  1.37  mycroft #define compat_10(func) __CONCAT(compat_10_,func)
     28  1.37  mycroft #else
     29  1.37  mycroft #define compat_10(func) sys_nosys
     30  1.37  mycroft #endif
     31  1.37  mycroft 
     32  1.43      mrg #ifdef COMPAT_11
     33  1.43      mrg #define compat_11(func) __CONCAT(compat_11_,func)
     34  1.43      mrg #else
     35  1.43      mrg #define compat_11(func) sys_nosys
     36  1.43      mrg #endif
     37  1.43      mrg 
     38  1.43      mrg #ifdef COMPAT_12
     39  1.43      mrg #define compat_12(func) __CONCAT(compat_12_,func)
     40  1.43      mrg #else
     41  1.43      mrg #define compat_12(func) sys_nosys
     42  1.43      mrg #endif
     43  1.43      mrg 
     44  1.28      cgd #define	s(type)	sizeof(type)
     45  1.28      cgd 
     46  1.28      cgd struct sysent sysent[] = {
     47  1.28      cgd 	{ 0, 0,
     48  1.51      cgd 	    sys_nosys },			/* 0 = syscall (indir) */
     49  1.37  mycroft 	{ 1, s(struct sys_exit_args),
     50  1.37  mycroft 	    sys_exit },				/* 1 = exit */
     51  1.37  mycroft 	{ 0, 0,
     52  1.37  mycroft 	    sys_fork },				/* 2 = fork */
     53  1.37  mycroft 	{ 3, s(struct sys_read_args),
     54  1.37  mycroft 	    sys_read },				/* 3 = read */
     55  1.37  mycroft 	{ 3, s(struct sys_write_args),
     56  1.37  mycroft 	    sys_write },			/* 4 = write */
     57  1.37  mycroft 	{ 3, s(struct sys_open_args),
     58  1.37  mycroft 	    sys_open },				/* 5 = open */
     59  1.37  mycroft 	{ 1, s(struct sys_close_args),
     60  1.37  mycroft 	    sys_close },			/* 6 = close */
     61  1.37  mycroft 	{ 4, s(struct sys_wait4_args),
     62  1.37  mycroft 	    sys_wait4 },			/* 7 = wait4 */
     63  1.37  mycroft 	{ 2, s(struct compat_43_sys_creat_args),
     64  1.38  mycroft 	    compat_43(sys_creat) },		/* 8 = compat_43 ocreat */
     65  1.37  mycroft 	{ 2, s(struct sys_link_args),
     66  1.37  mycroft 	    sys_link },				/* 9 = link */
     67  1.37  mycroft 	{ 1, s(struct sys_unlink_args),
     68  1.37  mycroft 	    sys_unlink },			/* 10 = unlink */
     69  1.37  mycroft 	{ 0, 0,
     70  1.37  mycroft 	    sys_nosys },			/* 11 = obsolete execv */
     71  1.37  mycroft 	{ 1, s(struct sys_chdir_args),
     72  1.37  mycroft 	    sys_chdir },			/* 12 = chdir */
     73  1.37  mycroft 	{ 1, s(struct sys_fchdir_args),
     74  1.37  mycroft 	    sys_fchdir },			/* 13 = fchdir */
     75  1.37  mycroft 	{ 3, s(struct sys_mknod_args),
     76  1.37  mycroft 	    sys_mknod },			/* 14 = mknod */
     77  1.37  mycroft 	{ 2, s(struct sys_chmod_args),
     78  1.37  mycroft 	    sys_chmod },			/* 15 = chmod */
     79  1.37  mycroft 	{ 3, s(struct sys_chown_args),
     80  1.37  mycroft 	    sys_chown },			/* 16 = chown */
     81  1.37  mycroft 	{ 1, s(struct sys_obreak_args),
     82  1.37  mycroft 	    sys_obreak },			/* 17 = break */
     83  1.37  mycroft 	{ 3, s(struct sys_getfsstat_args),
     84  1.37  mycroft 	    sys_getfsstat },			/* 18 = getfsstat */
     85  1.37  mycroft 	{ 3, s(struct compat_43_sys_lseek_args),
     86  1.38  mycroft 	    compat_43(sys_lseek) },		/* 19 = compat_43 olseek */
     87  1.37  mycroft 	{ 0, 0,
     88  1.37  mycroft 	    sys_getpid },			/* 20 = getpid */
     89  1.37  mycroft 	{ 4, s(struct sys_mount_args),
     90  1.37  mycroft 	    sys_mount },			/* 21 = mount */
     91  1.37  mycroft 	{ 2, s(struct sys_unmount_args),
     92  1.37  mycroft 	    sys_unmount },			/* 22 = unmount */
     93  1.37  mycroft 	{ 1, s(struct sys_setuid_args),
     94  1.37  mycroft 	    sys_setuid },			/* 23 = setuid */
     95  1.37  mycroft 	{ 0, 0,
     96  1.37  mycroft 	    sys_getuid },			/* 24 = getuid */
     97  1.37  mycroft 	{ 0, 0,
     98  1.37  mycroft 	    sys_geteuid },			/* 25 = geteuid */
     99  1.37  mycroft 	{ 4, s(struct sys_ptrace_args),
    100  1.37  mycroft 	    sys_ptrace },			/* 26 = ptrace */
    101  1.37  mycroft 	{ 3, s(struct sys_recvmsg_args),
    102  1.37  mycroft 	    sys_recvmsg },			/* 27 = recvmsg */
    103  1.37  mycroft 	{ 3, s(struct sys_sendmsg_args),
    104  1.37  mycroft 	    sys_sendmsg },			/* 28 = sendmsg */
    105  1.37  mycroft 	{ 6, s(struct sys_recvfrom_args),
    106  1.37  mycroft 	    sys_recvfrom },			/* 29 = recvfrom */
    107  1.37  mycroft 	{ 3, s(struct sys_accept_args),
    108  1.37  mycroft 	    sys_accept },			/* 30 = accept */
    109  1.37  mycroft 	{ 3, s(struct sys_getpeername_args),
    110  1.37  mycroft 	    sys_getpeername },			/* 31 = getpeername */
    111  1.37  mycroft 	{ 3, s(struct sys_getsockname_args),
    112  1.37  mycroft 	    sys_getsockname },			/* 32 = getsockname */
    113  1.37  mycroft 	{ 2, s(struct sys_access_args),
    114  1.37  mycroft 	    sys_access },			/* 33 = access */
    115  1.37  mycroft 	{ 2, s(struct sys_chflags_args),
    116  1.37  mycroft 	    sys_chflags },			/* 34 = chflags */
    117  1.37  mycroft 	{ 2, s(struct sys_fchflags_args),
    118  1.37  mycroft 	    sys_fchflags },			/* 35 = fchflags */
    119  1.37  mycroft 	{ 0, 0,
    120  1.37  mycroft 	    sys_sync },				/* 36 = sync */
    121  1.37  mycroft 	{ 2, s(struct sys_kill_args),
    122  1.37  mycroft 	    sys_kill },				/* 37 = kill */
    123  1.37  mycroft 	{ 2, s(struct compat_43_sys_stat_args),
    124  1.38  mycroft 	    compat_43(sys_stat) },		/* 38 = compat_43 ostat */
    125  1.37  mycroft 	{ 0, 0,
    126  1.37  mycroft 	    sys_getppid },			/* 39 = getppid */
    127  1.37  mycroft 	{ 2, s(struct compat_43_sys_lstat_args),
    128  1.38  mycroft 	    compat_43(sys_lstat) },		/* 40 = compat_43 olstat */
    129  1.37  mycroft 	{ 1, s(struct sys_dup_args),
    130  1.37  mycroft 	    sys_dup },				/* 41 = dup */
    131  1.37  mycroft 	{ 0, 0,
    132  1.37  mycroft 	    sys_pipe },				/* 42 = pipe */
    133  1.37  mycroft 	{ 0, 0,
    134  1.37  mycroft 	    sys_getegid },			/* 43 = getegid */
    135  1.37  mycroft 	{ 4, s(struct sys_profil_args),
    136  1.37  mycroft 	    sys_profil },			/* 44 = profil */
    137  1.28      cgd #ifdef KTRACE
    138  1.37  mycroft 	{ 4, s(struct sys_ktrace_args),
    139  1.37  mycroft 	    sys_ktrace },			/* 45 = ktrace */
    140  1.28      cgd #else
    141  1.28      cgd 	{ 0, 0,
    142  1.37  mycroft 	    sys_nosys },			/* 45 = unimplemented ktrace */
    143  1.28      cgd #endif
    144  1.37  mycroft 	{ 3, s(struct sys_sigaction_args),
    145  1.37  mycroft 	    sys_sigaction },			/* 46 = sigaction */
    146  1.28      cgd 	{ 0, 0,
    147  1.37  mycroft 	    sys_getgid },			/* 47 = getgid */
    148  1.37  mycroft 	{ 2, s(struct sys_sigprocmask_args),
    149  1.37  mycroft 	    sys_sigprocmask },			/* 48 = sigprocmask */
    150  1.46      jtc 	{ 2, s(struct sys___getlogin_args),
    151  1.46      jtc 	    sys___getlogin },			/* 49 = __getlogin */
    152  1.37  mycroft 	{ 1, s(struct sys_setlogin_args),
    153  1.37  mycroft 	    sys_setlogin },			/* 50 = setlogin */
    154  1.37  mycroft 	{ 1, s(struct sys_acct_args),
    155  1.37  mycroft 	    sys_acct },				/* 51 = acct */
    156  1.37  mycroft 	{ 0, 0,
    157  1.37  mycroft 	    sys_sigpending },			/* 52 = sigpending */
    158  1.37  mycroft 	{ 2, s(struct sys_sigaltstack_args),
    159  1.37  mycroft 	    sys_sigaltstack },			/* 53 = sigaltstack */
    160  1.37  mycroft 	{ 3, s(struct sys_ioctl_args),
    161  1.37  mycroft 	    sys_ioctl },			/* 54 = ioctl */
    162  1.43      mrg 	{ 1, s(struct compat_12_sys_reboot_args),
    163  1.43      mrg 	    compat_12(sys_reboot) },		/* 55 = compat_12 oreboot */
    164  1.37  mycroft 	{ 1, s(struct sys_revoke_args),
    165  1.37  mycroft 	    sys_revoke },			/* 56 = revoke */
    166  1.37  mycroft 	{ 2, s(struct sys_symlink_args),
    167  1.37  mycroft 	    sys_symlink },			/* 57 = symlink */
    168  1.37  mycroft 	{ 3, s(struct sys_readlink_args),
    169  1.37  mycroft 	    sys_readlink },			/* 58 = readlink */
    170  1.37  mycroft 	{ 3, s(struct sys_execve_args),
    171  1.37  mycroft 	    sys_execve },			/* 59 = execve */
    172  1.37  mycroft 	{ 1, s(struct sys_umask_args),
    173  1.37  mycroft 	    sys_umask },			/* 60 = umask */
    174  1.37  mycroft 	{ 1, s(struct sys_chroot_args),
    175  1.37  mycroft 	    sys_chroot },			/* 61 = chroot */
    176  1.37  mycroft 	{ 2, s(struct compat_43_sys_fstat_args),
    177  1.38  mycroft 	    compat_43(sys_fstat) },		/* 62 = compat_43 ofstat */
    178  1.37  mycroft 	{ 4, s(struct compat_43_sys_getkerninfo_args),
    179  1.38  mycroft 	    compat_43(sys_getkerninfo) },	/* 63 = compat_43 ogetkerninfo */
    180  1.37  mycroft 	{ 0, 0,
    181  1.38  mycroft 	    compat_43(sys_getpagesize) },	/* 64 = compat_43 ogetpagesize */
    182  1.37  mycroft 	{ 2, s(struct sys_msync_args),
    183  1.37  mycroft 	    sys_msync },			/* 65 = msync */
    184  1.37  mycroft 	{ 0, 0,
    185  1.37  mycroft 	    sys_vfork },			/* 66 = vfork */
    186  1.37  mycroft 	{ 0, 0,
    187  1.37  mycroft 	    sys_nosys },			/* 67 = obsolete vread */
    188  1.37  mycroft 	{ 0, 0,
    189  1.37  mycroft 	    sys_nosys },			/* 68 = obsolete vwrite */
    190  1.37  mycroft 	{ 1, s(struct sys_sbrk_args),
    191  1.37  mycroft 	    sys_sbrk },				/* 69 = sbrk */
    192  1.37  mycroft 	{ 1, s(struct sys_sstk_args),
    193  1.37  mycroft 	    sys_sstk },				/* 70 = sstk */
    194  1.37  mycroft 	{ 6, s(struct compat_43_sys_mmap_args),
    195  1.38  mycroft 	    compat_43(sys_mmap) },		/* 71 = compat_43 ommap */
    196  1.37  mycroft 	{ 1, s(struct sys_ovadvise_args),
    197  1.37  mycroft 	    sys_ovadvise },			/* 72 = vadvise */
    198  1.37  mycroft 	{ 2, s(struct sys_munmap_args),
    199  1.37  mycroft 	    sys_munmap },			/* 73 = munmap */
    200  1.37  mycroft 	{ 3, s(struct sys_mprotect_args),
    201  1.37  mycroft 	    sys_mprotect },			/* 74 = mprotect */
    202  1.37  mycroft 	{ 3, s(struct sys_madvise_args),
    203  1.37  mycroft 	    sys_madvise },			/* 75 = madvise */
    204  1.37  mycroft 	{ 0, 0,
    205  1.37  mycroft 	    sys_nosys },			/* 76 = obsolete vhangup */
    206  1.37  mycroft 	{ 0, 0,
    207  1.37  mycroft 	    sys_nosys },			/* 77 = obsolete vlimit */
    208  1.37  mycroft 	{ 3, s(struct sys_mincore_args),
    209  1.37  mycroft 	    sys_mincore },			/* 78 = mincore */
    210  1.37  mycroft 	{ 2, s(struct sys_getgroups_args),
    211  1.37  mycroft 	    sys_getgroups },			/* 79 = getgroups */
    212  1.37  mycroft 	{ 2, s(struct sys_setgroups_args),
    213  1.37  mycroft 	    sys_setgroups },			/* 80 = setgroups */
    214  1.37  mycroft 	{ 0, 0,
    215  1.37  mycroft 	    sys_getpgrp },			/* 81 = getpgrp */
    216  1.37  mycroft 	{ 2, s(struct sys_setpgid_args),
    217  1.37  mycroft 	    sys_setpgid },			/* 82 = setpgid */
    218  1.37  mycroft 	{ 3, s(struct sys_setitimer_args),
    219  1.37  mycroft 	    sys_setitimer },			/* 83 = setitimer */
    220  1.37  mycroft 	{ 0, 0,
    221  1.38  mycroft 	    compat_43(sys_wait) },		/* 84 = compat_43 owait */
    222  1.37  mycroft 	{ 1, s(struct sys_swapon_args),
    223  1.37  mycroft 	    sys_swapon },			/* 85 = swapon */
    224  1.37  mycroft 	{ 2, s(struct sys_getitimer_args),
    225  1.37  mycroft 	    sys_getitimer },			/* 86 = getitimer */
    226  1.37  mycroft 	{ 2, s(struct compat_43_sys_gethostname_args),
    227  1.38  mycroft 	    compat_43(sys_gethostname) },	/* 87 = compat_43 ogethostname */
    228  1.37  mycroft 	{ 2, s(struct compat_43_sys_sethostname_args),
    229  1.38  mycroft 	    compat_43(sys_sethostname) },	/* 88 = compat_43 osethostname */
    230  1.37  mycroft 	{ 0, 0,
    231  1.38  mycroft 	    compat_43(sys_getdtablesize) },	/* 89 = compat_43 ogetdtablesize */
    232  1.37  mycroft 	{ 2, s(struct sys_dup2_args),
    233  1.37  mycroft 	    sys_dup2 },				/* 90 = dup2 */
    234  1.37  mycroft 	{ 0, 0,
    235  1.37  mycroft 	    sys_nosys },			/* 91 = unimplemented getdopt */
    236  1.37  mycroft 	{ 3, s(struct sys_fcntl_args),
    237  1.37  mycroft 	    sys_fcntl },			/* 92 = fcntl */
    238  1.37  mycroft 	{ 5, s(struct sys_select_args),
    239  1.37  mycroft 	    sys_select },			/* 93 = select */
    240  1.37  mycroft 	{ 0, 0,
    241  1.37  mycroft 	    sys_nosys },			/* 94 = unimplemented setdopt */
    242  1.37  mycroft 	{ 1, s(struct sys_fsync_args),
    243  1.37  mycroft 	    sys_fsync },			/* 95 = fsync */
    244  1.37  mycroft 	{ 3, s(struct sys_setpriority_args),
    245  1.37  mycroft 	    sys_setpriority },			/* 96 = setpriority */
    246  1.37  mycroft 	{ 3, s(struct sys_socket_args),
    247  1.37  mycroft 	    sys_socket },			/* 97 = socket */
    248  1.37  mycroft 	{ 3, s(struct sys_connect_args),
    249  1.37  mycroft 	    sys_connect },			/* 98 = connect */
    250  1.37  mycroft 	{ 3, s(struct compat_43_sys_accept_args),
    251  1.38  mycroft 	    compat_43(sys_accept) },		/* 99 = compat_43 oaccept */
    252  1.37  mycroft 	{ 2, s(struct sys_getpriority_args),
    253  1.37  mycroft 	    sys_getpriority },			/* 100 = getpriority */
    254  1.37  mycroft 	{ 4, s(struct compat_43_sys_send_args),
    255  1.38  mycroft 	    compat_43(sys_send) },		/* 101 = compat_43 osend */
    256  1.37  mycroft 	{ 4, s(struct compat_43_sys_recv_args),
    257  1.38  mycroft 	    compat_43(sys_recv) },		/* 102 = compat_43 orecv */
    258  1.37  mycroft 	{ 1, s(struct sys_sigreturn_args),
    259  1.37  mycroft 	    sys_sigreturn },			/* 103 = sigreturn */
    260  1.37  mycroft 	{ 3, s(struct sys_bind_args),
    261  1.37  mycroft 	    sys_bind },				/* 104 = bind */
    262  1.37  mycroft 	{ 5, s(struct sys_setsockopt_args),
    263  1.37  mycroft 	    sys_setsockopt },			/* 105 = setsockopt */
    264  1.37  mycroft 	{ 2, s(struct sys_listen_args),
    265  1.37  mycroft 	    sys_listen },			/* 106 = listen */
    266  1.37  mycroft 	{ 0, 0,
    267  1.37  mycroft 	    sys_nosys },			/* 107 = obsolete vtimes */
    268  1.37  mycroft 	{ 3, s(struct compat_43_sys_sigvec_args),
    269  1.38  mycroft 	    compat_43(sys_sigvec) },		/* 108 = compat_43 osigvec */
    270  1.37  mycroft 	{ 1, s(struct compat_43_sys_sigblock_args),
    271  1.38  mycroft 	    compat_43(sys_sigblock) },		/* 109 = compat_43 osigblock */
    272  1.37  mycroft 	{ 1, s(struct compat_43_sys_sigsetmask_args),
    273  1.38  mycroft 	    compat_43(sys_sigsetmask) },	/* 110 = compat_43 osigsetmask */
    274  1.37  mycroft 	{ 1, s(struct sys_sigsuspend_args),
    275  1.37  mycroft 	    sys_sigsuspend },			/* 111 = sigsuspend */
    276  1.37  mycroft 	{ 2, s(struct compat_43_sys_sigstack_args),
    277  1.38  mycroft 	    compat_43(sys_sigstack) },		/* 112 = compat_43 osigstack */
    278  1.37  mycroft 	{ 3, s(struct compat_43_sys_recvmsg_args),
    279  1.38  mycroft 	    compat_43(sys_recvmsg) },		/* 113 = compat_43 orecvmsg */
    280  1.37  mycroft 	{ 3, s(struct compat_43_sys_sendmsg_args),
    281  1.38  mycroft 	    compat_43(sys_sendmsg) },		/* 114 = compat_43 osendmsg */
    282  1.28      cgd #ifdef TRACE
    283  1.37  mycroft 	{ 2, s(struct sys_vtrace_args),
    284  1.37  mycroft 	    sys_vtrace },			/* 115 = vtrace */
    285  1.28      cgd #else
    286  1.28      cgd 	{ 0, 0,
    287  1.37  mycroft 	    sys_nosys },			/* 115 = obsolete vtrace */
    288  1.28      cgd #endif
    289  1.37  mycroft 	{ 2, s(struct sys_gettimeofday_args),
    290  1.37  mycroft 	    sys_gettimeofday },			/* 116 = gettimeofday */
    291  1.37  mycroft 	{ 2, s(struct sys_getrusage_args),
    292  1.37  mycroft 	    sys_getrusage },			/* 117 = getrusage */
    293  1.37  mycroft 	{ 5, s(struct sys_getsockopt_args),
    294  1.37  mycroft 	    sys_getsockopt },			/* 118 = getsockopt */
    295  1.37  mycroft 	{ 0, 0,
    296  1.37  mycroft 	    sys_nosys },			/* 119 = obsolete resuba */
    297  1.37  mycroft 	{ 3, s(struct sys_readv_args),
    298  1.37  mycroft 	    sys_readv },			/* 120 = readv */
    299  1.37  mycroft 	{ 3, s(struct sys_writev_args),
    300  1.37  mycroft 	    sys_writev },			/* 121 = writev */
    301  1.37  mycroft 	{ 2, s(struct sys_settimeofday_args),
    302  1.37  mycroft 	    sys_settimeofday },			/* 122 = settimeofday */
    303  1.37  mycroft 	{ 3, s(struct sys_fchown_args),
    304  1.37  mycroft 	    sys_fchown },			/* 123 = fchown */
    305  1.37  mycroft 	{ 2, s(struct sys_fchmod_args),
    306  1.37  mycroft 	    sys_fchmod },			/* 124 = fchmod */
    307  1.37  mycroft 	{ 6, s(struct compat_43_sys_recvfrom_args),
    308  1.38  mycroft 	    compat_43(sys_recvfrom) },		/* 125 = compat_43 orecvfrom */
    309  1.42  mycroft 	{ 2, s(struct sys_setreuid_args),
    310  1.42  mycroft 	    sys_setreuid },			/* 126 = setreuid */
    311  1.42  mycroft 	{ 2, s(struct sys_setregid_args),
    312  1.42  mycroft 	    sys_setregid },			/* 127 = setregid */
    313  1.37  mycroft 	{ 2, s(struct sys_rename_args),
    314  1.37  mycroft 	    sys_rename },			/* 128 = rename */
    315  1.37  mycroft 	{ 2, s(struct compat_43_sys_truncate_args),
    316  1.38  mycroft 	    compat_43(sys_truncate) },		/* 129 = compat_43 otruncate */
    317  1.37  mycroft 	{ 2, s(struct compat_43_sys_ftruncate_args),
    318  1.38  mycroft 	    compat_43(sys_ftruncate) },		/* 130 = compat_43 oftruncate */
    319  1.37  mycroft 	{ 2, s(struct sys_flock_args),
    320  1.37  mycroft 	    sys_flock },			/* 131 = flock */
    321  1.37  mycroft 	{ 2, s(struct sys_mkfifo_args),
    322  1.37  mycroft 	    sys_mkfifo },			/* 132 = mkfifo */
    323  1.37  mycroft 	{ 6, s(struct sys_sendto_args),
    324  1.37  mycroft 	    sys_sendto },			/* 133 = sendto */
    325  1.37  mycroft 	{ 2, s(struct sys_shutdown_args),
    326  1.37  mycroft 	    sys_shutdown },			/* 134 = shutdown */
    327  1.37  mycroft 	{ 4, s(struct sys_socketpair_args),
    328  1.37  mycroft 	    sys_socketpair },			/* 135 = socketpair */
    329  1.37  mycroft 	{ 2, s(struct sys_mkdir_args),
    330  1.37  mycroft 	    sys_mkdir },			/* 136 = mkdir */
    331  1.37  mycroft 	{ 1, s(struct sys_rmdir_args),
    332  1.37  mycroft 	    sys_rmdir },			/* 137 = rmdir */
    333  1.37  mycroft 	{ 2, s(struct sys_utimes_args),
    334  1.37  mycroft 	    sys_utimes },			/* 138 = utimes */
    335  1.37  mycroft 	{ 0, 0,
    336  1.37  mycroft 	    sys_nosys },			/* 139 = obsolete 4.2 sigreturn */
    337  1.37  mycroft 	{ 2, s(struct sys_adjtime_args),
    338  1.37  mycroft 	    sys_adjtime },			/* 140 = adjtime */
    339  1.37  mycroft 	{ 3, s(struct compat_43_sys_getpeername_args),
    340  1.38  mycroft 	    compat_43(sys_getpeername) },	/* 141 = compat_43 ogetpeername */
    341  1.37  mycroft 	{ 0, 0,
    342  1.38  mycroft 	    compat_43(sys_gethostid) },		/* 142 = compat_43 ogethostid */
    343  1.37  mycroft 	{ 1, s(struct compat_43_sys_sethostid_args),
    344  1.38  mycroft 	    compat_43(sys_sethostid) },		/* 143 = compat_43 osethostid */
    345  1.37  mycroft 	{ 2, s(struct compat_43_sys_getrlimit_args),
    346  1.38  mycroft 	    compat_43(sys_getrlimit) },		/* 144 = compat_43 ogetrlimit */
    347  1.37  mycroft 	{ 2, s(struct compat_43_sys_setrlimit_args),
    348  1.38  mycroft 	    compat_43(sys_setrlimit) },		/* 145 = compat_43 osetrlimit */
    349  1.37  mycroft 	{ 2, s(struct compat_43_sys_killpg_args),
    350  1.38  mycroft 	    compat_43(sys_killpg) },		/* 146 = compat_43 okillpg */
    351  1.37  mycroft 	{ 0, 0,
    352  1.37  mycroft 	    sys_setsid },			/* 147 = setsid */
    353  1.37  mycroft 	{ 4, s(struct sys_quotactl_args),
    354  1.37  mycroft 	    sys_quotactl },			/* 148 = quotactl */
    355  1.37  mycroft 	{ 0, 0,
    356  1.38  mycroft 	    compat_43(sys_quota) },		/* 149 = compat_43 oquota */
    357  1.37  mycroft 	{ 3, s(struct compat_43_sys_getsockname_args),
    358  1.38  mycroft 	    compat_43(sys_getsockname) },	/* 150 = compat_43 ogetsockname */
    359  1.28      cgd 	{ 0, 0,
    360  1.37  mycroft 	    sys_nosys },			/* 151 = unimplemented */
    361  1.28      cgd 	{ 0, 0,
    362  1.37  mycroft 	    sys_nosys },			/* 152 = unimplemented */
    363  1.28      cgd 	{ 0, 0,
    364  1.37  mycroft 	    sys_nosys },			/* 153 = unimplemented */
    365  1.28      cgd 	{ 0, 0,
    366  1.37  mycroft 	    sys_nosys },			/* 154 = unimplemented */
    367  1.28      cgd #if defined(NFSCLIENT) || defined(NFSSERVER)
    368  1.37  mycroft 	{ 2, s(struct sys_nfssvc_args),
    369  1.37  mycroft 	    sys_nfssvc },			/* 155 = nfssvc */
    370  1.28      cgd #else
    371  1.28      cgd 	{ 0, 0,
    372  1.37  mycroft 	    sys_nosys },			/* 155 = unimplemented */
    373  1.28      cgd #endif
    374  1.37  mycroft 	{ 4, s(struct compat_43_sys_getdirentries_args),
    375  1.38  mycroft 	    compat_43(sys_getdirentries) },	/* 156 = compat_43 ogetdirentries */
    376  1.37  mycroft 	{ 2, s(struct sys_statfs_args),
    377  1.37  mycroft 	    sys_statfs },			/* 157 = statfs */
    378  1.37  mycroft 	{ 2, s(struct sys_fstatfs_args),
    379  1.37  mycroft 	    sys_fstatfs },			/* 158 = fstatfs */
    380  1.28      cgd 	{ 0, 0,
    381  1.37  mycroft 	    sys_nosys },			/* 159 = unimplemented */
    382  1.28      cgd 	{ 0, 0,
    383  1.37  mycroft 	    sys_nosys },			/* 160 = unimplemented */
    384  1.49  thorpej #if defined(NFSCLIENT) || defined(NFSSERVER)
    385  1.37  mycroft 	{ 2, s(struct sys_getfh_args),
    386  1.37  mycroft 	    sys_getfh },			/* 161 = getfh */
    387  1.28      cgd #else
    388  1.28      cgd 	{ 0, 0,
    389  1.37  mycroft 	    sys_nosys },			/* 161 = unimplemented getfh */
    390  1.28      cgd #endif
    391  1.37  mycroft 	{ 2, s(struct compat_09_sys_getdomainname_args),
    392  1.38  mycroft 	    compat_09(sys_getdomainname) },	/* 162 = compat_09 ogetdomainname */
    393  1.37  mycroft 	{ 2, s(struct compat_09_sys_setdomainname_args),
    394  1.38  mycroft 	    compat_09(sys_setdomainname) },	/* 163 = compat_09 osetdomainname */
    395  1.37  mycroft 	{ 1, s(struct compat_09_sys_uname_args),
    396  1.38  mycroft 	    compat_09(sys_uname) },		/* 164 = compat_09 ouname */
    397  1.37  mycroft 	{ 2, s(struct sys_sysarch_args),
    398  1.37  mycroft 	    sys_sysarch },			/* 165 = sysarch */
    399  1.28      cgd 	{ 0, 0,
    400  1.37  mycroft 	    sys_nosys },			/* 166 = unimplemented */
    401  1.28      cgd 	{ 0, 0,
    402  1.37  mycroft 	    sys_nosys },			/* 167 = unimplemented */
    403  1.28      cgd 	{ 0, 0,
    404  1.37  mycroft 	    sys_nosys },			/* 168 = unimplemented */
    405  1.28      cgd #if defined(SYSVSEM) && !defined(alpha)
    406  1.37  mycroft 	{ 5, s(struct compat_10_sys_semsys_args),
    407  1.38  mycroft 	    compat_10(sys_semsys) },		/* 169 = compat_10 osemsys */
    408  1.28      cgd #else
    409  1.28      cgd 	{ 0, 0,
    410  1.37  mycroft 	    sys_nosys },			/* 169 = unimplemented 1.0 semsys */
    411  1.28      cgd #endif
    412  1.28      cgd #if defined(SYSVMSG) && !defined(alpha)
    413  1.37  mycroft 	{ 6, s(struct compat_10_sys_msgsys_args),
    414  1.38  mycroft 	    compat_10(sys_msgsys) },		/* 170 = compat_10 omsgsys */
    415  1.28      cgd #else
    416  1.28      cgd 	{ 0, 0,
    417  1.37  mycroft 	    sys_nosys },			/* 170 = unimplemented 1.0 msgsys */
    418  1.28      cgd #endif
    419  1.28      cgd #if defined(SYSVSHM) && !defined(alpha)
    420  1.37  mycroft 	{ 4, s(struct compat_10_sys_shmsys_args),
    421  1.38  mycroft 	    compat_10(sys_shmsys) },		/* 171 = compat_10 oshmsys */
    422  1.28      cgd #else
    423  1.28      cgd 	{ 0, 0,
    424  1.37  mycroft 	    sys_nosys },			/* 171 = unimplemented 1.0 shmsys */
    425  1.28      cgd #endif
    426  1.28      cgd 	{ 0, 0,
    427  1.37  mycroft 	    sys_nosys },			/* 172 = unimplemented */
    428  1.28      cgd 	{ 0, 0,
    429  1.37  mycroft 	    sys_nosys },			/* 173 = unimplemented */
    430  1.28      cgd 	{ 0, 0,
    431  1.37  mycroft 	    sys_nosys },			/* 174 = unimplemented */
    432  1.47  thorpej 	{ 1, s(struct sys_ntp_gettime_args),
    433  1.47  thorpej 	    sys_ntp_gettime },			/* 175 = ntp_gettime */
    434  1.47  thorpej 	{ 1, s(struct sys_ntp_adjtime_args),
    435  1.47  thorpej 	    sys_ntp_adjtime },			/* 176 = ntp_adjtime */
    436  1.28      cgd 	{ 0, 0,
    437  1.37  mycroft 	    sys_nosys },			/* 177 = unimplemented */
    438  1.28      cgd 	{ 0, 0,
    439  1.37  mycroft 	    sys_nosys },			/* 178 = unimplemented */
    440  1.28      cgd 	{ 0, 0,
    441  1.37  mycroft 	    sys_nosys },			/* 179 = unimplemented */
    442  1.28      cgd 	{ 0, 0,
    443  1.37  mycroft 	    sys_nosys },			/* 180 = unimplemented */
    444  1.37  mycroft 	{ 1, s(struct sys_setgid_args),
    445  1.37  mycroft 	    sys_setgid },			/* 181 = setgid */
    446  1.37  mycroft 	{ 1, s(struct sys_setegid_args),
    447  1.37  mycroft 	    sys_setegid },			/* 182 = setegid */
    448  1.37  mycroft 	{ 1, s(struct sys_seteuid_args),
    449  1.37  mycroft 	    sys_seteuid },			/* 183 = seteuid */
    450  1.22      cgd #ifdef LFS
    451  1.28      cgd 	{ 3, s(struct lfs_bmapv_args),
    452  1.28      cgd 	    lfs_bmapv },			/* 184 = lfs_bmapv */
    453  1.28      cgd 	{ 3, s(struct lfs_markv_args),
    454  1.28      cgd 	    lfs_markv },			/* 185 = lfs_markv */
    455  1.28      cgd 	{ 2, s(struct lfs_segclean_args),
    456  1.28      cgd 	    lfs_segclean },			/* 186 = lfs_segclean */
    457  1.28      cgd 	{ 2, s(struct lfs_segwait_args),
    458  1.28      cgd 	    lfs_segwait },			/* 187 = lfs_segwait */
    459  1.28      cgd #else
    460  1.28      cgd 	{ 0, 0,
    461  1.37  mycroft 	    sys_nosys },			/* 184 = unimplemented */
    462  1.28      cgd 	{ 0, 0,
    463  1.37  mycroft 	    sys_nosys },			/* 185 = unimplemented */
    464  1.28      cgd 	{ 0, 0,
    465  1.37  mycroft 	    sys_nosys },			/* 186 = unimplemented */
    466  1.28      cgd 	{ 0, 0,
    467  1.37  mycroft 	    sys_nosys },			/* 187 = unimplemented */
    468  1.28      cgd #endif
    469  1.37  mycroft 	{ 2, s(struct sys_stat_args),
    470  1.37  mycroft 	    sys_stat },				/* 188 = stat */
    471  1.37  mycroft 	{ 2, s(struct sys_fstat_args),
    472  1.37  mycroft 	    sys_fstat },			/* 189 = fstat */
    473  1.37  mycroft 	{ 2, s(struct sys_lstat_args),
    474  1.37  mycroft 	    sys_lstat },			/* 190 = lstat */
    475  1.37  mycroft 	{ 2, s(struct sys_pathconf_args),
    476  1.37  mycroft 	    sys_pathconf },			/* 191 = pathconf */
    477  1.37  mycroft 	{ 2, s(struct sys_fpathconf_args),
    478  1.37  mycroft 	    sys_fpathconf },			/* 192 = fpathconf */
    479  1.37  mycroft 	{ 0, 0,
    480  1.37  mycroft 	    sys_nosys },			/* 193 = unimplemented */
    481  1.37  mycroft 	{ 2, s(struct sys_getrlimit_args),
    482  1.37  mycroft 	    sys_getrlimit },			/* 194 = getrlimit */
    483  1.37  mycroft 	{ 2, s(struct sys_setrlimit_args),
    484  1.37  mycroft 	    sys_setrlimit },			/* 195 = setrlimit */
    485  1.37  mycroft 	{ 4, s(struct sys_getdirentries_args),
    486  1.37  mycroft 	    sys_getdirentries },		/* 196 = getdirentries */
    487  1.37  mycroft 	{ 7, s(struct sys_mmap_args),
    488  1.37  mycroft 	    sys_mmap },				/* 197 = mmap */
    489  1.37  mycroft 	{ 0, 0,
    490  1.51      cgd 	    sys_nosys },			/* 198 = __syscall (indir) */
    491  1.37  mycroft 	{ 4, s(struct sys_lseek_args),
    492  1.37  mycroft 	    sys_lseek },			/* 199 = lseek */
    493  1.37  mycroft 	{ 3, s(struct sys_truncate_args),
    494  1.37  mycroft 	    sys_truncate },			/* 200 = truncate */
    495  1.37  mycroft 	{ 3, s(struct sys_ftruncate_args),
    496  1.37  mycroft 	    sys_ftruncate },			/* 201 = ftruncate */
    497  1.37  mycroft 	{ 6, s(struct sys___sysctl_args),
    498  1.37  mycroft 	    sys___sysctl },			/* 202 = __sysctl */
    499  1.37  mycroft 	{ 2, s(struct sys_mlock_args),
    500  1.37  mycroft 	    sys_mlock },			/* 203 = mlock */
    501  1.37  mycroft 	{ 2, s(struct sys_munlock_args),
    502  1.37  mycroft 	    sys_munlock },			/* 204 = munlock */
    503  1.37  mycroft 	{ 1, s(struct sys_undelete_args),
    504  1.37  mycroft 	    sys_undelete },			/* 205 = undelete */
    505  1.41  mycroft 	{ 2, s(struct sys_futimes_args),
    506  1.41  mycroft 	    sys_futimes },			/* 206 = futimes */
    507  1.43      mrg 	{ 1, s(struct sys_getpgid_args),
    508  1.43      mrg 	    sys_getpgid },			/* 207 = getpgid */
    509  1.43      mrg 	{ 2, s(struct sys_reboot_args),
    510  1.43      mrg 	    sys_reboot },			/* 208 = reboot */
    511  1.44  mycroft 	{ 3, s(struct sys_poll_args),
    512  1.44  mycroft 	    sys_poll },				/* 209 = poll */
    513  1.16      cgd #ifdef LKM
    514  1.28      cgd 	{ 0, 0,
    515  1.37  mycroft 	    sys_lkmnosys },			/* 210 = lkmnosys */
    516  1.28      cgd 	{ 0, 0,
    517  1.37  mycroft 	    sys_lkmnosys },			/* 211 = lkmnosys */
    518  1.28      cgd 	{ 0, 0,
    519  1.37  mycroft 	    sys_lkmnosys },			/* 212 = lkmnosys */
    520  1.28      cgd 	{ 0, 0,
    521  1.37  mycroft 	    sys_lkmnosys },			/* 213 = lkmnosys */
    522  1.28      cgd 	{ 0, 0,
    523  1.37  mycroft 	    sys_lkmnosys },			/* 214 = lkmnosys */
    524  1.28      cgd 	{ 0, 0,
    525  1.37  mycroft 	    sys_lkmnosys },			/* 215 = lkmnosys */
    526  1.28      cgd 	{ 0, 0,
    527  1.37  mycroft 	    sys_lkmnosys },			/* 216 = lkmnosys */
    528  1.28      cgd 	{ 0, 0,
    529  1.37  mycroft 	    sys_lkmnosys },			/* 217 = lkmnosys */
    530  1.28      cgd 	{ 0, 0,
    531  1.37  mycroft 	    sys_lkmnosys },			/* 218 = lkmnosys */
    532  1.28      cgd 	{ 0, 0,
    533  1.37  mycroft 	    sys_lkmnosys },			/* 219 = lkmnosys */
    534  1.16      cgd #else	/* !LKM */
    535  1.28      cgd 	{ 0, 0,
    536  1.37  mycroft 	    sys_nosys },			/* 210 = unimplemented */
    537  1.28      cgd 	{ 0, 0,
    538  1.37  mycroft 	    sys_nosys },			/* 211 = unimplemented */
    539  1.28      cgd 	{ 0, 0,
    540  1.37  mycroft 	    sys_nosys },			/* 212 = unimplemented */
    541  1.28      cgd 	{ 0, 0,
    542  1.37  mycroft 	    sys_nosys },			/* 213 = unimplemented */
    543  1.28      cgd 	{ 0, 0,
    544  1.37  mycroft 	    sys_nosys },			/* 214 = unimplemented */
    545  1.28      cgd 	{ 0, 0,
    546  1.37  mycroft 	    sys_nosys },			/* 215 = unimplemented */
    547  1.28      cgd 	{ 0, 0,
    548  1.37  mycroft 	    sys_nosys },			/* 216 = unimplemented */
    549  1.28      cgd 	{ 0, 0,
    550  1.37  mycroft 	    sys_nosys },			/* 217 = unimplemented */
    551  1.28      cgd 	{ 0, 0,
    552  1.37  mycroft 	    sys_nosys },			/* 218 = unimplemented */
    553  1.28      cgd 	{ 0, 0,
    554  1.37  mycroft 	    sys_nosys },			/* 219 = unimplemented */
    555  1.11   brezak #endif	/* !LKM */
    556  1.28      cgd #ifdef SYSVSEM
    557  1.37  mycroft 	{ 4, s(struct sys___semctl_args),
    558  1.37  mycroft 	    sys___semctl },			/* 220 = __semctl */
    559  1.37  mycroft 	{ 3, s(struct sys_semget_args),
    560  1.37  mycroft 	    sys_semget },			/* 221 = semget */
    561  1.37  mycroft 	{ 3, s(struct sys_semop_args),
    562  1.37  mycroft 	    sys_semop },			/* 222 = semop */
    563  1.37  mycroft 	{ 1, s(struct sys_semconfig_args),
    564  1.37  mycroft 	    sys_semconfig },			/* 223 = semconfig */
    565  1.28      cgd #else
    566  1.28      cgd 	{ 0, 0,
    567  1.37  mycroft 	    sys_nosys },			/* 220 = unimplemented semctl */
    568  1.28      cgd 	{ 0, 0,
    569  1.37  mycroft 	    sys_nosys },			/* 221 = unimplemented semget */
    570  1.28      cgd 	{ 0, 0,
    571  1.37  mycroft 	    sys_nosys },			/* 222 = unimplemented semop */
    572  1.28      cgd 	{ 0, 0,
    573  1.37  mycroft 	    sys_nosys },			/* 223 = unimplemented semconfig */
    574  1.28      cgd #endif
    575  1.28      cgd #ifdef SYSVMSG
    576  1.37  mycroft 	{ 3, s(struct sys_msgctl_args),
    577  1.37  mycroft 	    sys_msgctl },			/* 224 = msgctl */
    578  1.37  mycroft 	{ 2, s(struct sys_msgget_args),
    579  1.37  mycroft 	    sys_msgget },			/* 225 = msgget */
    580  1.37  mycroft 	{ 4, s(struct sys_msgsnd_args),
    581  1.37  mycroft 	    sys_msgsnd },			/* 226 = msgsnd */
    582  1.37  mycroft 	{ 5, s(struct sys_msgrcv_args),
    583  1.37  mycroft 	    sys_msgrcv },			/* 227 = msgrcv */
    584  1.28      cgd #else
    585  1.28      cgd 	{ 0, 0,
    586  1.37  mycroft 	    sys_nosys },			/* 224 = unimplemented msgctl */
    587  1.28      cgd 	{ 0, 0,
    588  1.37  mycroft 	    sys_nosys },			/* 225 = unimplemented msgget */
    589  1.28      cgd 	{ 0, 0,
    590  1.37  mycroft 	    sys_nosys },			/* 226 = unimplemented msgsnd */
    591  1.28      cgd 	{ 0, 0,
    592  1.37  mycroft 	    sys_nosys },			/* 227 = unimplemented msgrcv */
    593  1.28      cgd #endif
    594  1.28      cgd #ifdef SYSVSHM
    595  1.37  mycroft 	{ 3, s(struct sys_shmat_args),
    596  1.37  mycroft 	    sys_shmat },			/* 228 = shmat */
    597  1.37  mycroft 	{ 3, s(struct sys_shmctl_args),
    598  1.37  mycroft 	    sys_shmctl },			/* 229 = shmctl */
    599  1.37  mycroft 	{ 1, s(struct sys_shmdt_args),
    600  1.37  mycroft 	    sys_shmdt },			/* 230 = shmdt */
    601  1.37  mycroft 	{ 3, s(struct sys_shmget_args),
    602  1.37  mycroft 	    sys_shmget },			/* 231 = shmget */
    603  1.28      cgd #else
    604  1.28      cgd 	{ 0, 0,
    605  1.37  mycroft 	    sys_nosys },			/* 228 = unimplemented shmat */
    606  1.28      cgd 	{ 0, 0,
    607  1.37  mycroft 	    sys_nosys },			/* 229 = unimplemented shmctl */
    608  1.28      cgd 	{ 0, 0,
    609  1.37  mycroft 	    sys_nosys },			/* 230 = unimplemented shmdt */
    610  1.28      cgd 	{ 0, 0,
    611  1.37  mycroft 	    sys_nosys },			/* 231 = unimplemented shmget */
    612  1.28      cgd #endif
    613  1.48      jtc 	{ 2, s(struct sys_clock_gettime_args),
    614  1.48      jtc 	    sys_clock_gettime },		/* 232 = clock_gettime */
    615  1.48      jtc 	{ 2, s(struct sys_clock_settime_args),
    616  1.48      jtc 	    sys_clock_settime },		/* 233 = clock_settime */
    617  1.48      jtc 	{ 2, s(struct sys_clock_getres_args),
    618  1.48      jtc 	    sys_clock_getres },			/* 234 = clock_getres */
    619  1.48      jtc 	{ 0, 0,
    620  1.48      jtc 	    sys_nosys },			/* 235 = unimplemented timer_create */
    621  1.48      jtc 	{ 0, 0,
    622  1.48      jtc 	    sys_nosys },			/* 236 = unimplemented timer_delete */
    623  1.48      jtc 	{ 0, 0,
    624  1.48      jtc 	    sys_nosys },			/* 237 = unimplemented timer_settime */
    625  1.48      jtc 	{ 0, 0,
    626  1.48      jtc 	    sys_nosys },			/* 238 = unimplemented timer_gettime */
    627  1.48      jtc 	{ 0, 0,
    628  1.48      jtc 	    sys_nosys },			/* 239 = unimplemented timer_getoverrun */
    629  1.48      jtc 	{ 0, 0,
    630  1.48      jtc 	    sys_nosys },			/* 240 = unimplemented nanosleep */
    631   1.1      cgd };
    632   1.1      cgd 
    633