Home | History | Annotate | Line # | Download | only in kern
init_sysent.c revision 1.111.2.1
      1  1.111.2.1    bouyer /* $NetBSD: init_sysent.c,v 1.111.2.1 2000/11/20 18:08:56 bouyer Exp $ */
      2       1.77   thorpej 
      3        1.1       cgd /*
      4        1.1       cgd  * System call switch table.
      5        1.1       cgd  *
      6        1.1       cgd  * DO NOT EDIT-- this file is automatically generated.
      7  1.111.2.1    bouyer  * created from	NetBSD: syscalls.master,v 1.102 2000/08/07 17:59:33 bjh21 Exp
      8        1.1       cgd  */
      9        1.1       cgd 
     10       1.90   thorpej #include "opt_ktrace.h"
     11       1.91   thorpej #include "opt_nfsserver.h"
     12  1.111.2.1    bouyer #include "opt_ntp.h"
     13       1.94  jonathan #include "opt_compat_netbsd.h"
     14       1.99      tron #include "opt_sysv.h"
     15      1.101  christos #include "opt_compat_43.h"
     16       1.81   thorpej #include "fs_lfs.h"
     17       1.81   thorpej #include "fs_nfs.h"
     18       1.17       cgd #include <sys/param.h>
     19       1.17       cgd #include <sys/systm.h>
     20       1.28       cgd #include <sys/signal.h>
     21       1.28       cgd #include <sys/mount.h>
     22       1.28       cgd #include <sys/syscallargs.h>
     23       1.37   mycroft 
     24       1.37   mycroft #ifdef COMPAT_43
     25       1.37   mycroft #define compat_43(func) __CONCAT(compat_43_,func)
     26       1.37   mycroft #else
     27       1.37   mycroft #define compat_43(func) sys_nosys
     28       1.37   mycroft #endif
     29       1.37   mycroft 
     30       1.37   mycroft #ifdef COMPAT_09
     31       1.37   mycroft #define compat_09(func) __CONCAT(compat_09_,func)
     32       1.37   mycroft #else
     33       1.37   mycroft #define compat_09(func) sys_nosys
     34       1.37   mycroft #endif
     35       1.37   mycroft 
     36       1.37   mycroft #ifdef COMPAT_10
     37       1.37   mycroft #define compat_10(func) __CONCAT(compat_10_,func)
     38       1.37   mycroft #else
     39       1.37   mycroft #define compat_10(func) sys_nosys
     40       1.37   mycroft #endif
     41       1.37   mycroft 
     42       1.43       mrg #ifdef COMPAT_11
     43       1.43       mrg #define compat_11(func) __CONCAT(compat_11_,func)
     44       1.43       mrg #else
     45       1.43       mrg #define compat_11(func) sys_nosys
     46       1.43       mrg #endif
     47       1.43       mrg 
     48       1.43       mrg #ifdef COMPAT_12
     49       1.43       mrg #define compat_12(func) __CONCAT(compat_12_,func)
     50       1.43       mrg #else
     51       1.43       mrg #define compat_12(func) sys_nosys
     52       1.43       mrg #endif
     53       1.43       mrg 
     54       1.71    kleink #ifdef COMPAT_13
     55       1.71    kleink #define compat_13(func) __CONCAT(compat_13_,func)
     56       1.71    kleink #else
     57       1.71    kleink #define compat_13(func) sys_nosys
     58       1.71    kleink #endif
     59       1.71    kleink 
     60      1.111   thorpej #ifdef COMPAT_14
     61      1.111   thorpej #define compat_14(func) __CONCAT(compat_14_,func)
     62      1.111   thorpej #else
     63      1.111   thorpej #define compat_14(func) sys_nosys
     64      1.111   thorpej #endif
     65      1.111   thorpej 
     66       1.28       cgd #define	s(type)	sizeof(type)
     67       1.28       cgd 
     68       1.28       cgd struct sysent sysent[] = {
     69       1.28       cgd 	{ 0, 0,
     70       1.51       cgd 	    sys_nosys },			/* 0 = syscall (indir) */
     71       1.37   mycroft 	{ 1, s(struct sys_exit_args),
     72       1.37   mycroft 	    sys_exit },				/* 1 = exit */
     73       1.37   mycroft 	{ 0, 0,
     74       1.37   mycroft 	    sys_fork },				/* 2 = fork */
     75       1.37   mycroft 	{ 3, s(struct sys_read_args),
     76       1.37   mycroft 	    sys_read },				/* 3 = read */
     77       1.37   mycroft 	{ 3, s(struct sys_write_args),
     78       1.37   mycroft 	    sys_write },			/* 4 = write */
     79       1.37   mycroft 	{ 3, s(struct sys_open_args),
     80       1.37   mycroft 	    sys_open },				/* 5 = open */
     81       1.37   mycroft 	{ 1, s(struct sys_close_args),
     82       1.37   mycroft 	    sys_close },			/* 6 = close */
     83       1.37   mycroft 	{ 4, s(struct sys_wait4_args),
     84       1.37   mycroft 	    sys_wait4 },			/* 7 = wait4 */
     85       1.37   mycroft 	{ 2, s(struct compat_43_sys_creat_args),
     86       1.38   mycroft 	    compat_43(sys_creat) },		/* 8 = compat_43 ocreat */
     87       1.37   mycroft 	{ 2, s(struct sys_link_args),
     88       1.37   mycroft 	    sys_link },				/* 9 = link */
     89       1.37   mycroft 	{ 1, s(struct sys_unlink_args),
     90       1.37   mycroft 	    sys_unlink },			/* 10 = unlink */
     91       1.37   mycroft 	{ 0, 0,
     92       1.37   mycroft 	    sys_nosys },			/* 11 = obsolete execv */
     93       1.37   mycroft 	{ 1, s(struct sys_chdir_args),
     94       1.37   mycroft 	    sys_chdir },			/* 12 = chdir */
     95       1.37   mycroft 	{ 1, s(struct sys_fchdir_args),
     96       1.37   mycroft 	    sys_fchdir },			/* 13 = fchdir */
     97       1.37   mycroft 	{ 3, s(struct sys_mknod_args),
     98       1.37   mycroft 	    sys_mknod },			/* 14 = mknod */
     99       1.37   mycroft 	{ 2, s(struct sys_chmod_args),
    100       1.37   mycroft 	    sys_chmod },			/* 15 = chmod */
    101       1.37   mycroft 	{ 3, s(struct sys_chown_args),
    102       1.37   mycroft 	    sys_chown },			/* 16 = chown */
    103       1.37   mycroft 	{ 1, s(struct sys_obreak_args),
    104       1.37   mycroft 	    sys_obreak },			/* 17 = break */
    105       1.37   mycroft 	{ 3, s(struct sys_getfsstat_args),
    106       1.37   mycroft 	    sys_getfsstat },			/* 18 = getfsstat */
    107       1.37   mycroft 	{ 3, s(struct compat_43_sys_lseek_args),
    108       1.38   mycroft 	    compat_43(sys_lseek) },		/* 19 = compat_43 olseek */
    109       1.37   mycroft 	{ 0, 0,
    110       1.37   mycroft 	    sys_getpid },			/* 20 = getpid */
    111       1.37   mycroft 	{ 4, s(struct sys_mount_args),
    112       1.37   mycroft 	    sys_mount },			/* 21 = mount */
    113       1.37   mycroft 	{ 2, s(struct sys_unmount_args),
    114       1.37   mycroft 	    sys_unmount },			/* 22 = unmount */
    115       1.37   mycroft 	{ 1, s(struct sys_setuid_args),
    116       1.37   mycroft 	    sys_setuid },			/* 23 = setuid */
    117       1.37   mycroft 	{ 0, 0,
    118       1.37   mycroft 	    sys_getuid },			/* 24 = getuid */
    119       1.37   mycroft 	{ 0, 0,
    120       1.37   mycroft 	    sys_geteuid },			/* 25 = geteuid */
    121       1.37   mycroft 	{ 4, s(struct sys_ptrace_args),
    122       1.37   mycroft 	    sys_ptrace },			/* 26 = ptrace */
    123       1.37   mycroft 	{ 3, s(struct sys_recvmsg_args),
    124       1.37   mycroft 	    sys_recvmsg },			/* 27 = recvmsg */
    125       1.37   mycroft 	{ 3, s(struct sys_sendmsg_args),
    126       1.37   mycroft 	    sys_sendmsg },			/* 28 = sendmsg */
    127       1.37   mycroft 	{ 6, s(struct sys_recvfrom_args),
    128       1.37   mycroft 	    sys_recvfrom },			/* 29 = recvfrom */
    129       1.37   mycroft 	{ 3, s(struct sys_accept_args),
    130       1.37   mycroft 	    sys_accept },			/* 30 = accept */
    131       1.37   mycroft 	{ 3, s(struct sys_getpeername_args),
    132       1.37   mycroft 	    sys_getpeername },			/* 31 = getpeername */
    133       1.37   mycroft 	{ 3, s(struct sys_getsockname_args),
    134       1.37   mycroft 	    sys_getsockname },			/* 32 = getsockname */
    135       1.37   mycroft 	{ 2, s(struct sys_access_args),
    136       1.37   mycroft 	    sys_access },			/* 33 = access */
    137       1.37   mycroft 	{ 2, s(struct sys_chflags_args),
    138       1.37   mycroft 	    sys_chflags },			/* 34 = chflags */
    139       1.37   mycroft 	{ 2, s(struct sys_fchflags_args),
    140       1.37   mycroft 	    sys_fchflags },			/* 35 = fchflags */
    141       1.37   mycroft 	{ 0, 0,
    142       1.37   mycroft 	    sys_sync },				/* 36 = sync */
    143       1.37   mycroft 	{ 2, s(struct sys_kill_args),
    144       1.37   mycroft 	    sys_kill },				/* 37 = kill */
    145       1.37   mycroft 	{ 2, s(struct compat_43_sys_stat_args),
    146       1.66  christos 	    compat_43(sys_stat) },		/* 38 = compat_43 stat43 */
    147       1.37   mycroft 	{ 0, 0,
    148       1.37   mycroft 	    sys_getppid },			/* 39 = getppid */
    149       1.37   mycroft 	{ 2, s(struct compat_43_sys_lstat_args),
    150       1.66  christos 	    compat_43(sys_lstat) },		/* 40 = compat_43 lstat43 */
    151       1.37   mycroft 	{ 1, s(struct sys_dup_args),
    152       1.37   mycroft 	    sys_dup },				/* 41 = dup */
    153       1.37   mycroft 	{ 0, 0,
    154       1.37   mycroft 	    sys_pipe },				/* 42 = pipe */
    155       1.37   mycroft 	{ 0, 0,
    156       1.37   mycroft 	    sys_getegid },			/* 43 = getegid */
    157       1.37   mycroft 	{ 4, s(struct sys_profil_args),
    158       1.37   mycroft 	    sys_profil },			/* 44 = profil */
    159      1.106  christos #if defined(KTRACE) || !defined(_KERNEL)
    160       1.37   mycroft 	{ 4, s(struct sys_ktrace_args),
    161       1.37   mycroft 	    sys_ktrace },			/* 45 = ktrace */
    162       1.28       cgd #else
    163       1.28       cgd 	{ 0, 0,
    164      1.106  christos 	    sys_nosys },			/* 45 = excluded ktrace */
    165       1.28       cgd #endif
    166       1.95   mycroft 	{ 3, s(struct compat_13_sys_sigaction_args),
    167       1.95   mycroft 	    compat_13(sys_sigaction) },		/* 46 = compat_13 sigaction13 */
    168       1.28       cgd 	{ 0, 0,
    169       1.37   mycroft 	    sys_getgid },			/* 47 = getgid */
    170       1.95   mycroft 	{ 2, s(struct compat_13_sys_sigprocmask_args),
    171       1.95   mycroft 	    compat_13(sys_sigprocmask) },	/* 48 = compat_13 sigprocmask13 */
    172       1.46       jtc 	{ 2, s(struct sys___getlogin_args),
    173       1.46       jtc 	    sys___getlogin },			/* 49 = __getlogin */
    174       1.37   mycroft 	{ 1, s(struct sys_setlogin_args),
    175       1.37   mycroft 	    sys_setlogin },			/* 50 = setlogin */
    176       1.37   mycroft 	{ 1, s(struct sys_acct_args),
    177       1.37   mycroft 	    sys_acct },				/* 51 = acct */
    178       1.37   mycroft 	{ 0, 0,
    179       1.95   mycroft 	    compat_13(sys_sigpending) },	/* 52 = compat_13 sigpending13 */
    180       1.71    kleink 	{ 2, s(struct compat_13_sys_sigaltstack_args),
    181       1.71    kleink 	    compat_13(sys_sigaltstack) },	/* 53 = compat_13 sigaltstack13 */
    182       1.37   mycroft 	{ 3, s(struct sys_ioctl_args),
    183       1.37   mycroft 	    sys_ioctl },			/* 54 = ioctl */
    184       1.43       mrg 	{ 1, s(struct compat_12_sys_reboot_args),
    185       1.43       mrg 	    compat_12(sys_reboot) },		/* 55 = compat_12 oreboot */
    186       1.37   mycroft 	{ 1, s(struct sys_revoke_args),
    187       1.37   mycroft 	    sys_revoke },			/* 56 = revoke */
    188       1.37   mycroft 	{ 2, s(struct sys_symlink_args),
    189       1.37   mycroft 	    sys_symlink },			/* 57 = symlink */
    190       1.37   mycroft 	{ 3, s(struct sys_readlink_args),
    191       1.37   mycroft 	    sys_readlink },			/* 58 = readlink */
    192       1.37   mycroft 	{ 3, s(struct sys_execve_args),
    193       1.37   mycroft 	    sys_execve },			/* 59 = execve */
    194       1.37   mycroft 	{ 1, s(struct sys_umask_args),
    195       1.37   mycroft 	    sys_umask },			/* 60 = umask */
    196       1.37   mycroft 	{ 1, s(struct sys_chroot_args),
    197       1.37   mycroft 	    sys_chroot },			/* 61 = chroot */
    198       1.37   mycroft 	{ 2, s(struct compat_43_sys_fstat_args),
    199       1.66  christos 	    compat_43(sys_fstat) },		/* 62 = compat_43 fstat43 */
    200       1.37   mycroft 	{ 4, s(struct compat_43_sys_getkerninfo_args),
    201       1.38   mycroft 	    compat_43(sys_getkerninfo) },	/* 63 = compat_43 ogetkerninfo */
    202       1.37   mycroft 	{ 0, 0,
    203       1.38   mycroft 	    compat_43(sys_getpagesize) },	/* 64 = compat_43 ogetpagesize */
    204       1.66  christos 	{ 2, s(struct compat_12_sys_msync_args),
    205       1.66  christos 	    compat_12(sys_msync) },		/* 65 = compat_12 msync */
    206       1.37   mycroft 	{ 0, 0,
    207       1.37   mycroft 	    sys_vfork },			/* 66 = vfork */
    208       1.37   mycroft 	{ 0, 0,
    209       1.37   mycroft 	    sys_nosys },			/* 67 = obsolete vread */
    210       1.37   mycroft 	{ 0, 0,
    211       1.37   mycroft 	    sys_nosys },			/* 68 = obsolete vwrite */
    212       1.37   mycroft 	{ 1, s(struct sys_sbrk_args),
    213       1.37   mycroft 	    sys_sbrk },				/* 69 = sbrk */
    214       1.37   mycroft 	{ 1, s(struct sys_sstk_args),
    215       1.37   mycroft 	    sys_sstk },				/* 70 = sstk */
    216       1.37   mycroft 	{ 6, s(struct compat_43_sys_mmap_args),
    217       1.38   mycroft 	    compat_43(sys_mmap) },		/* 71 = compat_43 ommap */
    218       1.37   mycroft 	{ 1, s(struct sys_ovadvise_args),
    219       1.37   mycroft 	    sys_ovadvise },			/* 72 = vadvise */
    220       1.37   mycroft 	{ 2, s(struct sys_munmap_args),
    221       1.37   mycroft 	    sys_munmap },			/* 73 = munmap */
    222       1.37   mycroft 	{ 3, s(struct sys_mprotect_args),
    223       1.37   mycroft 	    sys_mprotect },			/* 74 = mprotect */
    224       1.37   mycroft 	{ 3, s(struct sys_madvise_args),
    225       1.37   mycroft 	    sys_madvise },			/* 75 = madvise */
    226       1.37   mycroft 	{ 0, 0,
    227       1.37   mycroft 	    sys_nosys },			/* 76 = obsolete vhangup */
    228       1.37   mycroft 	{ 0, 0,
    229       1.37   mycroft 	    sys_nosys },			/* 77 = obsolete vlimit */
    230       1.37   mycroft 	{ 3, s(struct sys_mincore_args),
    231       1.37   mycroft 	    sys_mincore },			/* 78 = mincore */
    232       1.37   mycroft 	{ 2, s(struct sys_getgroups_args),
    233       1.37   mycroft 	    sys_getgroups },			/* 79 = getgroups */
    234       1.37   mycroft 	{ 2, s(struct sys_setgroups_args),
    235       1.37   mycroft 	    sys_setgroups },			/* 80 = setgroups */
    236       1.37   mycroft 	{ 0, 0,
    237       1.37   mycroft 	    sys_getpgrp },			/* 81 = getpgrp */
    238       1.37   mycroft 	{ 2, s(struct sys_setpgid_args),
    239       1.37   mycroft 	    sys_setpgid },			/* 82 = setpgid */
    240       1.37   mycroft 	{ 3, s(struct sys_setitimer_args),
    241       1.37   mycroft 	    sys_setitimer },			/* 83 = setitimer */
    242       1.37   mycroft 	{ 0, 0,
    243       1.38   mycroft 	    compat_43(sys_wait) },		/* 84 = compat_43 owait */
    244       1.58       mrg 	{ 1, s(struct compat_12_sys_swapon_args),
    245       1.58       mrg 	    compat_12(sys_swapon) },		/* 85 = compat_12 oswapon */
    246       1.37   mycroft 	{ 2, s(struct sys_getitimer_args),
    247       1.37   mycroft 	    sys_getitimer },			/* 86 = getitimer */
    248       1.37   mycroft 	{ 2, s(struct compat_43_sys_gethostname_args),
    249       1.38   mycroft 	    compat_43(sys_gethostname) },	/* 87 = compat_43 ogethostname */
    250       1.37   mycroft 	{ 2, s(struct compat_43_sys_sethostname_args),
    251       1.38   mycroft 	    compat_43(sys_sethostname) },	/* 88 = compat_43 osethostname */
    252       1.37   mycroft 	{ 0, 0,
    253       1.38   mycroft 	    compat_43(sys_getdtablesize) },	/* 89 = compat_43 ogetdtablesize */
    254       1.37   mycroft 	{ 2, s(struct sys_dup2_args),
    255       1.37   mycroft 	    sys_dup2 },				/* 90 = dup2 */
    256       1.37   mycroft 	{ 0, 0,
    257       1.37   mycroft 	    sys_nosys },			/* 91 = unimplemented getdopt */
    258       1.37   mycroft 	{ 3, s(struct sys_fcntl_args),
    259       1.37   mycroft 	    sys_fcntl },			/* 92 = fcntl */
    260       1.37   mycroft 	{ 5, s(struct sys_select_args),
    261       1.37   mycroft 	    sys_select },			/* 93 = select */
    262       1.37   mycroft 	{ 0, 0,
    263       1.37   mycroft 	    sys_nosys },			/* 94 = unimplemented setdopt */
    264       1.37   mycroft 	{ 1, s(struct sys_fsync_args),
    265       1.37   mycroft 	    sys_fsync },			/* 95 = fsync */
    266       1.37   mycroft 	{ 3, s(struct sys_setpriority_args),
    267       1.37   mycroft 	    sys_setpriority },			/* 96 = setpriority */
    268       1.37   mycroft 	{ 3, s(struct sys_socket_args),
    269       1.37   mycroft 	    sys_socket },			/* 97 = socket */
    270       1.37   mycroft 	{ 3, s(struct sys_connect_args),
    271       1.37   mycroft 	    sys_connect },			/* 98 = connect */
    272       1.37   mycroft 	{ 3, s(struct compat_43_sys_accept_args),
    273       1.38   mycroft 	    compat_43(sys_accept) },		/* 99 = compat_43 oaccept */
    274       1.37   mycroft 	{ 2, s(struct sys_getpriority_args),
    275       1.37   mycroft 	    sys_getpriority },			/* 100 = getpriority */
    276       1.37   mycroft 	{ 4, s(struct compat_43_sys_send_args),
    277       1.38   mycroft 	    compat_43(sys_send) },		/* 101 = compat_43 osend */
    278       1.37   mycroft 	{ 4, s(struct compat_43_sys_recv_args),
    279       1.38   mycroft 	    compat_43(sys_recv) },		/* 102 = compat_43 orecv */
    280       1.96   mycroft 	{ 1, s(struct compat_13_sys_sigreturn_args),
    281       1.96   mycroft 	    compat_13(sys_sigreturn) },		/* 103 = compat_13 sigreturn13 */
    282       1.37   mycroft 	{ 3, s(struct sys_bind_args),
    283       1.37   mycroft 	    sys_bind },				/* 104 = bind */
    284       1.37   mycroft 	{ 5, s(struct sys_setsockopt_args),
    285       1.37   mycroft 	    sys_setsockopt },			/* 105 = setsockopt */
    286       1.37   mycroft 	{ 2, s(struct sys_listen_args),
    287       1.37   mycroft 	    sys_listen },			/* 106 = listen */
    288       1.37   mycroft 	{ 0, 0,
    289       1.37   mycroft 	    sys_nosys },			/* 107 = obsolete vtimes */
    290       1.37   mycroft 	{ 3, s(struct compat_43_sys_sigvec_args),
    291       1.38   mycroft 	    compat_43(sys_sigvec) },		/* 108 = compat_43 osigvec */
    292       1.37   mycroft 	{ 1, s(struct compat_43_sys_sigblock_args),
    293       1.38   mycroft 	    compat_43(sys_sigblock) },		/* 109 = compat_43 osigblock */
    294       1.37   mycroft 	{ 1, s(struct compat_43_sys_sigsetmask_args),
    295       1.38   mycroft 	    compat_43(sys_sigsetmask) },	/* 110 = compat_43 osigsetmask */
    296       1.95   mycroft 	{ 1, s(struct compat_13_sys_sigsuspend_args),
    297       1.95   mycroft 	    compat_13(sys_sigsuspend) },	/* 111 = compat_13 sigsuspend13 */
    298       1.37   mycroft 	{ 2, s(struct compat_43_sys_sigstack_args),
    299       1.38   mycroft 	    compat_43(sys_sigstack) },		/* 112 = compat_43 osigstack */
    300       1.37   mycroft 	{ 3, s(struct compat_43_sys_recvmsg_args),
    301       1.38   mycroft 	    compat_43(sys_recvmsg) },		/* 113 = compat_43 orecvmsg */
    302       1.37   mycroft 	{ 3, s(struct compat_43_sys_sendmsg_args),
    303       1.38   mycroft 	    compat_43(sys_sendmsg) },		/* 114 = compat_43 osendmsg */
    304       1.28       cgd 	{ 0, 0,
    305       1.37   mycroft 	    sys_nosys },			/* 115 = obsolete vtrace */
    306       1.37   mycroft 	{ 2, s(struct sys_gettimeofday_args),
    307       1.37   mycroft 	    sys_gettimeofday },			/* 116 = gettimeofday */
    308       1.37   mycroft 	{ 2, s(struct sys_getrusage_args),
    309       1.37   mycroft 	    sys_getrusage },			/* 117 = getrusage */
    310       1.37   mycroft 	{ 5, s(struct sys_getsockopt_args),
    311       1.37   mycroft 	    sys_getsockopt },			/* 118 = getsockopt */
    312       1.37   mycroft 	{ 0, 0,
    313       1.37   mycroft 	    sys_nosys },			/* 119 = obsolete resuba */
    314       1.37   mycroft 	{ 3, s(struct sys_readv_args),
    315       1.37   mycroft 	    sys_readv },			/* 120 = readv */
    316       1.37   mycroft 	{ 3, s(struct sys_writev_args),
    317       1.37   mycroft 	    sys_writev },			/* 121 = writev */
    318       1.37   mycroft 	{ 2, s(struct sys_settimeofday_args),
    319       1.37   mycroft 	    sys_settimeofday },			/* 122 = settimeofday */
    320       1.37   mycroft 	{ 3, s(struct sys_fchown_args),
    321       1.37   mycroft 	    sys_fchown },			/* 123 = fchown */
    322       1.37   mycroft 	{ 2, s(struct sys_fchmod_args),
    323       1.37   mycroft 	    sys_fchmod },			/* 124 = fchmod */
    324       1.37   mycroft 	{ 6, s(struct compat_43_sys_recvfrom_args),
    325       1.38   mycroft 	    compat_43(sys_recvfrom) },		/* 125 = compat_43 orecvfrom */
    326       1.42   mycroft 	{ 2, s(struct sys_setreuid_args),
    327       1.42   mycroft 	    sys_setreuid },			/* 126 = setreuid */
    328       1.42   mycroft 	{ 2, s(struct sys_setregid_args),
    329       1.42   mycroft 	    sys_setregid },			/* 127 = setregid */
    330       1.37   mycroft 	{ 2, s(struct sys_rename_args),
    331       1.37   mycroft 	    sys_rename },			/* 128 = rename */
    332       1.37   mycroft 	{ 2, s(struct compat_43_sys_truncate_args),
    333       1.38   mycroft 	    compat_43(sys_truncate) },		/* 129 = compat_43 otruncate */
    334       1.37   mycroft 	{ 2, s(struct compat_43_sys_ftruncate_args),
    335       1.38   mycroft 	    compat_43(sys_ftruncate) },		/* 130 = compat_43 oftruncate */
    336       1.37   mycroft 	{ 2, s(struct sys_flock_args),
    337       1.37   mycroft 	    sys_flock },			/* 131 = flock */
    338       1.37   mycroft 	{ 2, s(struct sys_mkfifo_args),
    339       1.37   mycroft 	    sys_mkfifo },			/* 132 = mkfifo */
    340       1.37   mycroft 	{ 6, s(struct sys_sendto_args),
    341       1.37   mycroft 	    sys_sendto },			/* 133 = sendto */
    342       1.37   mycroft 	{ 2, s(struct sys_shutdown_args),
    343       1.37   mycroft 	    sys_shutdown },			/* 134 = shutdown */
    344       1.37   mycroft 	{ 4, s(struct sys_socketpair_args),
    345       1.37   mycroft 	    sys_socketpair },			/* 135 = socketpair */
    346       1.37   mycroft 	{ 2, s(struct sys_mkdir_args),
    347       1.37   mycroft 	    sys_mkdir },			/* 136 = mkdir */
    348       1.37   mycroft 	{ 1, s(struct sys_rmdir_args),
    349       1.37   mycroft 	    sys_rmdir },			/* 137 = rmdir */
    350       1.37   mycroft 	{ 2, s(struct sys_utimes_args),
    351       1.37   mycroft 	    sys_utimes },			/* 138 = utimes */
    352       1.37   mycroft 	{ 0, 0,
    353       1.37   mycroft 	    sys_nosys },			/* 139 = obsolete 4.2 sigreturn */
    354       1.37   mycroft 	{ 2, s(struct sys_adjtime_args),
    355       1.37   mycroft 	    sys_adjtime },			/* 140 = adjtime */
    356       1.37   mycroft 	{ 3, s(struct compat_43_sys_getpeername_args),
    357       1.38   mycroft 	    compat_43(sys_getpeername) },	/* 141 = compat_43 ogetpeername */
    358       1.37   mycroft 	{ 0, 0,
    359       1.38   mycroft 	    compat_43(sys_gethostid) },		/* 142 = compat_43 ogethostid */
    360       1.37   mycroft 	{ 1, s(struct compat_43_sys_sethostid_args),
    361       1.38   mycroft 	    compat_43(sys_sethostid) },		/* 143 = compat_43 osethostid */
    362       1.37   mycroft 	{ 2, s(struct compat_43_sys_getrlimit_args),
    363       1.38   mycroft 	    compat_43(sys_getrlimit) },		/* 144 = compat_43 ogetrlimit */
    364       1.37   mycroft 	{ 2, s(struct compat_43_sys_setrlimit_args),
    365       1.38   mycroft 	    compat_43(sys_setrlimit) },		/* 145 = compat_43 osetrlimit */
    366       1.37   mycroft 	{ 2, s(struct compat_43_sys_killpg_args),
    367       1.38   mycroft 	    compat_43(sys_killpg) },		/* 146 = compat_43 okillpg */
    368       1.37   mycroft 	{ 0, 0,
    369       1.37   mycroft 	    sys_setsid },			/* 147 = setsid */
    370       1.37   mycroft 	{ 4, s(struct sys_quotactl_args),
    371       1.37   mycroft 	    sys_quotactl },			/* 148 = quotactl */
    372       1.37   mycroft 	{ 0, 0,
    373       1.38   mycroft 	    compat_43(sys_quota) },		/* 149 = compat_43 oquota */
    374       1.37   mycroft 	{ 3, s(struct compat_43_sys_getsockname_args),
    375       1.38   mycroft 	    compat_43(sys_getsockname) },	/* 150 = compat_43 ogetsockname */
    376       1.28       cgd 	{ 0, 0,
    377       1.37   mycroft 	    sys_nosys },			/* 151 = unimplemented */
    378       1.28       cgd 	{ 0, 0,
    379       1.37   mycroft 	    sys_nosys },			/* 152 = unimplemented */
    380       1.28       cgd 	{ 0, 0,
    381       1.37   mycroft 	    sys_nosys },			/* 153 = unimplemented */
    382       1.28       cgd 	{ 0, 0,
    383       1.37   mycroft 	    sys_nosys },			/* 154 = unimplemented */
    384      1.106  christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
    385       1.37   mycroft 	{ 2, s(struct sys_nfssvc_args),
    386       1.37   mycroft 	    sys_nfssvc },			/* 155 = nfssvc */
    387       1.28       cgd #else
    388       1.28       cgd 	{ 0, 0,
    389      1.106  christos 	    sys_nosys },			/* 155 = excluded nfssvc */
    390       1.28       cgd #endif
    391       1.37   mycroft 	{ 4, s(struct compat_43_sys_getdirentries_args),
    392       1.38   mycroft 	    compat_43(sys_getdirentries) },	/* 156 = compat_43 ogetdirentries */
    393       1.37   mycroft 	{ 2, s(struct sys_statfs_args),
    394       1.37   mycroft 	    sys_statfs },			/* 157 = statfs */
    395       1.37   mycroft 	{ 2, s(struct sys_fstatfs_args),
    396       1.37   mycroft 	    sys_fstatfs },			/* 158 = fstatfs */
    397       1.28       cgd 	{ 0, 0,
    398       1.37   mycroft 	    sys_nosys },			/* 159 = unimplemented */
    399       1.28       cgd 	{ 0, 0,
    400       1.37   mycroft 	    sys_nosys },			/* 160 = unimplemented */
    401       1.37   mycroft 	{ 2, s(struct sys_getfh_args),
    402       1.37   mycroft 	    sys_getfh },			/* 161 = getfh */
    403       1.37   mycroft 	{ 2, s(struct compat_09_sys_getdomainname_args),
    404       1.38   mycroft 	    compat_09(sys_getdomainname) },	/* 162 = compat_09 ogetdomainname */
    405       1.37   mycroft 	{ 2, s(struct compat_09_sys_setdomainname_args),
    406       1.38   mycroft 	    compat_09(sys_setdomainname) },	/* 163 = compat_09 osetdomainname */
    407       1.37   mycroft 	{ 1, s(struct compat_09_sys_uname_args),
    408       1.38   mycroft 	    compat_09(sys_uname) },		/* 164 = compat_09 ouname */
    409       1.37   mycroft 	{ 2, s(struct sys_sysarch_args),
    410       1.37   mycroft 	    sys_sysarch },			/* 165 = sysarch */
    411       1.28       cgd 	{ 0, 0,
    412       1.37   mycroft 	    sys_nosys },			/* 166 = unimplemented */
    413       1.28       cgd 	{ 0, 0,
    414       1.37   mycroft 	    sys_nosys },			/* 167 = unimplemented */
    415       1.28       cgd 	{ 0, 0,
    416       1.37   mycroft 	    sys_nosys },			/* 168 = unimplemented */
    417      1.106  christos #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha)
    418       1.37   mycroft 	{ 5, s(struct compat_10_sys_semsys_args),
    419       1.38   mycroft 	    compat_10(sys_semsys) },		/* 169 = compat_10 osemsys */
    420       1.28       cgd #else
    421       1.28       cgd 	{ 0, 0,
    422      1.106  christos 	    sys_nosys },			/* 169 = excluded 1.0 semsys */
    423       1.28       cgd #endif
    424      1.106  christos #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha)
    425       1.37   mycroft 	{ 6, s(struct compat_10_sys_msgsys_args),
    426       1.38   mycroft 	    compat_10(sys_msgsys) },		/* 170 = compat_10 omsgsys */
    427       1.28       cgd #else
    428       1.28       cgd 	{ 0, 0,
    429      1.106  christos 	    sys_nosys },			/* 170 = excluded 1.0 msgsys */
    430       1.28       cgd #endif
    431      1.106  christos #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha)
    432       1.37   mycroft 	{ 4, s(struct compat_10_sys_shmsys_args),
    433       1.38   mycroft 	    compat_10(sys_shmsys) },		/* 171 = compat_10 oshmsys */
    434       1.28       cgd #else
    435       1.28       cgd 	{ 0, 0,
    436      1.106  christos 	    sys_nosys },			/* 171 = excluded 1.0 shmsys */
    437       1.28       cgd #endif
    438       1.28       cgd 	{ 0, 0,
    439       1.37   mycroft 	    sys_nosys },			/* 172 = unimplemented */
    440       1.93   thorpej 	{ 5, s(struct sys_pread_args),
    441       1.92   thorpej 	    sys_pread },			/* 173 = pread */
    442       1.93   thorpej 	{ 5, s(struct sys_pwrite_args),
    443       1.92   thorpej 	    sys_pwrite },			/* 174 = pwrite */
    444       1.47   thorpej 	{ 1, s(struct sys_ntp_gettime_args),
    445       1.47   thorpej 	    sys_ntp_gettime },			/* 175 = ntp_gettime */
    446  1.111.2.1    bouyer #if defined(NTP) || !defined(_KERNEL)
    447       1.47   thorpej 	{ 1, s(struct sys_ntp_adjtime_args),
    448       1.47   thorpej 	    sys_ntp_adjtime },			/* 176 = ntp_adjtime */
    449  1.111.2.1    bouyer #else
    450  1.111.2.1    bouyer 	{ 0, 0,
    451  1.111.2.1    bouyer 	    sys_nosys },			/* 176 = excluded ntp_adjtime */
    452  1.111.2.1    bouyer #endif
    453       1.28       cgd 	{ 0, 0,
    454       1.37   mycroft 	    sys_nosys },			/* 177 = unimplemented */
    455       1.28       cgd 	{ 0, 0,
    456       1.37   mycroft 	    sys_nosys },			/* 178 = unimplemented */
    457       1.28       cgd 	{ 0, 0,
    458       1.37   mycroft 	    sys_nosys },			/* 179 = unimplemented */
    459       1.28       cgd 	{ 0, 0,
    460       1.37   mycroft 	    sys_nosys },			/* 180 = unimplemented */
    461       1.37   mycroft 	{ 1, s(struct sys_setgid_args),
    462       1.37   mycroft 	    sys_setgid },			/* 181 = setgid */
    463       1.37   mycroft 	{ 1, s(struct sys_setegid_args),
    464       1.37   mycroft 	    sys_setegid },			/* 182 = setegid */
    465       1.37   mycroft 	{ 1, s(struct sys_seteuid_args),
    466       1.37   mycroft 	    sys_seteuid },			/* 183 = seteuid */
    467      1.106  christos #if defined(LFS) || !defined(_KERNEL)
    468      1.106  christos 	{ 3, s(struct sys_lfs_bmapv_args),
    469      1.106  christos 	    sys_lfs_bmapv },			/* 184 = lfs_bmapv */
    470      1.106  christos 	{ 3, s(struct sys_lfs_markv_args),
    471      1.106  christos 	    sys_lfs_markv },			/* 185 = lfs_markv */
    472      1.106  christos 	{ 2, s(struct sys_lfs_segclean_args),
    473      1.106  christos 	    sys_lfs_segclean },			/* 186 = lfs_segclean */
    474      1.106  christos 	{ 2, s(struct sys_lfs_segwait_args),
    475      1.106  christos 	    sys_lfs_segwait },			/* 187 = lfs_segwait */
    476       1.28       cgd #else
    477       1.28       cgd 	{ 0, 0,
    478      1.106  christos 	    sys_nosys },			/* 184 = excluded lfs_bmapv */
    479       1.28       cgd 	{ 0, 0,
    480      1.106  christos 	    sys_nosys },			/* 185 = excluded lfs_markv */
    481       1.28       cgd 	{ 0, 0,
    482      1.106  christos 	    sys_nosys },			/* 186 = excluded lfs_segclean */
    483       1.28       cgd 	{ 0, 0,
    484      1.106  christos 	    sys_nosys },			/* 187 = excluded lfs_segwait */
    485       1.28       cgd #endif
    486       1.66  christos 	{ 2, s(struct compat_12_sys_stat_args),
    487       1.66  christos 	    compat_12(sys_stat) },		/* 188 = compat_12 stat12 */
    488       1.66  christos 	{ 2, s(struct compat_12_sys_fstat_args),
    489       1.66  christos 	    compat_12(sys_fstat) },		/* 189 = compat_12 fstat12 */
    490       1.66  christos 	{ 2, s(struct compat_12_sys_lstat_args),
    491       1.66  christos 	    compat_12(sys_lstat) },		/* 190 = compat_12 lstat12 */
    492       1.37   mycroft 	{ 2, s(struct sys_pathconf_args),
    493       1.37   mycroft 	    sys_pathconf },			/* 191 = pathconf */
    494       1.37   mycroft 	{ 2, s(struct sys_fpathconf_args),
    495       1.37   mycroft 	    sys_fpathconf },			/* 192 = fpathconf */
    496       1.37   mycroft 	{ 0, 0,
    497       1.37   mycroft 	    sys_nosys },			/* 193 = unimplemented */
    498       1.37   mycroft 	{ 2, s(struct sys_getrlimit_args),
    499       1.37   mycroft 	    sys_getrlimit },			/* 194 = getrlimit */
    500       1.37   mycroft 	{ 2, s(struct sys_setrlimit_args),
    501       1.37   mycroft 	    sys_setrlimit },			/* 195 = setrlimit */
    502       1.63      fvdl 	{ 4, s(struct compat_12_sys_getdirentries_args),
    503       1.63      fvdl 	    compat_12(sys_getdirentries) },	/* 196 = compat_12 getdirentries */
    504       1.37   mycroft 	{ 7, s(struct sys_mmap_args),
    505       1.37   mycroft 	    sys_mmap },				/* 197 = mmap */
    506       1.37   mycroft 	{ 0, 0,
    507       1.51       cgd 	    sys_nosys },			/* 198 = __syscall (indir) */
    508       1.37   mycroft 	{ 4, s(struct sys_lseek_args),
    509       1.37   mycroft 	    sys_lseek },			/* 199 = lseek */
    510       1.37   mycroft 	{ 3, s(struct sys_truncate_args),
    511       1.37   mycroft 	    sys_truncate },			/* 200 = truncate */
    512       1.37   mycroft 	{ 3, s(struct sys_ftruncate_args),
    513       1.37   mycroft 	    sys_ftruncate },			/* 201 = ftruncate */
    514       1.37   mycroft 	{ 6, s(struct sys___sysctl_args),
    515       1.37   mycroft 	    sys___sysctl },			/* 202 = __sysctl */
    516       1.37   mycroft 	{ 2, s(struct sys_mlock_args),
    517       1.37   mycroft 	    sys_mlock },			/* 203 = mlock */
    518       1.37   mycroft 	{ 2, s(struct sys_munlock_args),
    519       1.37   mycroft 	    sys_munlock },			/* 204 = munlock */
    520       1.37   mycroft 	{ 1, s(struct sys_undelete_args),
    521       1.37   mycroft 	    sys_undelete },			/* 205 = undelete */
    522       1.41   mycroft 	{ 2, s(struct sys_futimes_args),
    523       1.41   mycroft 	    sys_futimes },			/* 206 = futimes */
    524       1.43       mrg 	{ 1, s(struct sys_getpgid_args),
    525       1.43       mrg 	    sys_getpgid },			/* 207 = getpgid */
    526       1.43       mrg 	{ 2, s(struct sys_reboot_args),
    527       1.43       mrg 	    sys_reboot },			/* 208 = reboot */
    528       1.44   mycroft 	{ 3, s(struct sys_poll_args),
    529       1.44   mycroft 	    sys_poll },				/* 209 = poll */
    530      1.106  christos #if defined(LKM) || !defined(_KERNEL)
    531       1.28       cgd 	{ 0, 0,
    532       1.37   mycroft 	    sys_lkmnosys },			/* 210 = lkmnosys */
    533       1.28       cgd 	{ 0, 0,
    534       1.37   mycroft 	    sys_lkmnosys },			/* 211 = lkmnosys */
    535       1.28       cgd 	{ 0, 0,
    536       1.37   mycroft 	    sys_lkmnosys },			/* 212 = lkmnosys */
    537       1.28       cgd 	{ 0, 0,
    538       1.37   mycroft 	    sys_lkmnosys },			/* 213 = lkmnosys */
    539       1.28       cgd 	{ 0, 0,
    540       1.37   mycroft 	    sys_lkmnosys },			/* 214 = lkmnosys */
    541       1.28       cgd 	{ 0, 0,
    542       1.37   mycroft 	    sys_lkmnosys },			/* 215 = lkmnosys */
    543       1.28       cgd 	{ 0, 0,
    544       1.37   mycroft 	    sys_lkmnosys },			/* 216 = lkmnosys */
    545       1.28       cgd 	{ 0, 0,
    546       1.37   mycroft 	    sys_lkmnosys },			/* 217 = lkmnosys */
    547       1.28       cgd 	{ 0, 0,
    548       1.37   mycroft 	    sys_lkmnosys },			/* 218 = lkmnosys */
    549       1.28       cgd 	{ 0, 0,
    550       1.37   mycroft 	    sys_lkmnosys },			/* 219 = lkmnosys */
    551       1.16       cgd #else	/* !LKM */
    552       1.28       cgd 	{ 0, 0,
    553      1.106  christos 	    sys_nosys },			/* 210 = excluded lkmnosys */
    554       1.28       cgd 	{ 0, 0,
    555      1.106  christos 	    sys_nosys },			/* 211 = excluded lkmnosys */
    556       1.28       cgd 	{ 0, 0,
    557      1.106  christos 	    sys_nosys },			/* 212 = excluded lkmnosys */
    558       1.28       cgd 	{ 0, 0,
    559      1.106  christos 	    sys_nosys },			/* 213 = excluded lkmnosys */
    560       1.28       cgd 	{ 0, 0,
    561      1.106  christos 	    sys_nosys },			/* 214 = excluded lkmnosys */
    562       1.28       cgd 	{ 0, 0,
    563      1.106  christos 	    sys_nosys },			/* 215 = excluded lkmnosys */
    564       1.28       cgd 	{ 0, 0,
    565      1.106  christos 	    sys_nosys },			/* 216 = excluded lkmnosys */
    566       1.28       cgd 	{ 0, 0,
    567      1.106  christos 	    sys_nosys },			/* 217 = excluded lkmnosys */
    568       1.28       cgd 	{ 0, 0,
    569      1.106  christos 	    sys_nosys },			/* 218 = excluded lkmnosys */
    570       1.28       cgd 	{ 0, 0,
    571      1.106  christos 	    sys_nosys },			/* 219 = excluded lkmnosys */
    572       1.11    brezak #endif	/* !LKM */
    573      1.106  christos #if defined(SYSVSEM) || !defined(_KERNEL)
    574      1.111   thorpej 	{ 4, s(struct compat_14_sys___semctl_args),
    575      1.111   thorpej 	    compat_14(sys___semctl) },		/* 220 = compat_14 __semctl */
    576       1.37   mycroft 	{ 3, s(struct sys_semget_args),
    577       1.37   mycroft 	    sys_semget },			/* 221 = semget */
    578       1.37   mycroft 	{ 3, s(struct sys_semop_args),
    579       1.37   mycroft 	    sys_semop },			/* 222 = semop */
    580       1.37   mycroft 	{ 1, s(struct sys_semconfig_args),
    581       1.37   mycroft 	    sys_semconfig },			/* 223 = semconfig */
    582       1.28       cgd #else
    583       1.28       cgd 	{ 0, 0,
    584      1.111   thorpej 	    sys_nosys },			/* 220 = excluded compat_14_semctl */
    585       1.28       cgd 	{ 0, 0,
    586      1.106  christos 	    sys_nosys },			/* 221 = excluded semget */
    587       1.28       cgd 	{ 0, 0,
    588      1.106  christos 	    sys_nosys },			/* 222 = excluded semop */
    589       1.28       cgd 	{ 0, 0,
    590      1.106  christos 	    sys_nosys },			/* 223 = excluded semconfig */
    591       1.28       cgd #endif
    592      1.106  christos #if defined(SYSVMSG) || !defined(_KERNEL)
    593      1.111   thorpej 	{ 3, s(struct compat_14_sys_msgctl_args),
    594      1.111   thorpej 	    compat_14(sys_msgctl) },		/* 224 = compat_14 msgctl */
    595       1.37   mycroft 	{ 2, s(struct sys_msgget_args),
    596       1.37   mycroft 	    sys_msgget },			/* 225 = msgget */
    597       1.37   mycroft 	{ 4, s(struct sys_msgsnd_args),
    598       1.37   mycroft 	    sys_msgsnd },			/* 226 = msgsnd */
    599       1.37   mycroft 	{ 5, s(struct sys_msgrcv_args),
    600       1.37   mycroft 	    sys_msgrcv },			/* 227 = msgrcv */
    601       1.28       cgd #else
    602       1.28       cgd 	{ 0, 0,
    603      1.111   thorpej 	    sys_nosys },			/* 224 = excluded compat_14_msgctl */
    604       1.28       cgd 	{ 0, 0,
    605      1.106  christos 	    sys_nosys },			/* 225 = excluded msgget */
    606       1.28       cgd 	{ 0, 0,
    607      1.106  christos 	    sys_nosys },			/* 226 = excluded msgsnd */
    608       1.28       cgd 	{ 0, 0,
    609      1.106  christos 	    sys_nosys },			/* 227 = excluded msgrcv */
    610       1.28       cgd #endif
    611      1.106  christos #if defined(SYSVSHM) || !defined(_KERNEL)
    612       1.37   mycroft 	{ 3, s(struct sys_shmat_args),
    613       1.37   mycroft 	    sys_shmat },			/* 228 = shmat */
    614      1.111   thorpej 	{ 3, s(struct compat_14_sys_shmctl_args),
    615      1.111   thorpej 	    compat_14(sys_shmctl) },		/* 229 = compat_14 shmctl */
    616       1.37   mycroft 	{ 1, s(struct sys_shmdt_args),
    617       1.37   mycroft 	    sys_shmdt },			/* 230 = shmdt */
    618       1.37   mycroft 	{ 3, s(struct sys_shmget_args),
    619       1.37   mycroft 	    sys_shmget },			/* 231 = shmget */
    620       1.28       cgd #else
    621       1.28       cgd 	{ 0, 0,
    622      1.106  christos 	    sys_nosys },			/* 228 = excluded shmat */
    623       1.28       cgd 	{ 0, 0,
    624      1.111   thorpej 	    sys_nosys },			/* 229 = excluded compat_14_shmctl */
    625       1.28       cgd 	{ 0, 0,
    626      1.106  christos 	    sys_nosys },			/* 230 = excluded shmdt */
    627       1.28       cgd 	{ 0, 0,
    628      1.106  christos 	    sys_nosys },			/* 231 = excluded shmget */
    629       1.28       cgd #endif
    630       1.48       jtc 	{ 2, s(struct sys_clock_gettime_args),
    631       1.48       jtc 	    sys_clock_gettime },		/* 232 = clock_gettime */
    632       1.48       jtc 	{ 2, s(struct sys_clock_settime_args),
    633       1.48       jtc 	    sys_clock_settime },		/* 233 = clock_settime */
    634       1.48       jtc 	{ 2, s(struct sys_clock_getres_args),
    635       1.48       jtc 	    sys_clock_getres },			/* 234 = clock_getres */
    636       1.48       jtc 	{ 0, 0,
    637       1.48       jtc 	    sys_nosys },			/* 235 = unimplemented timer_create */
    638       1.48       jtc 	{ 0, 0,
    639       1.48       jtc 	    sys_nosys },			/* 236 = unimplemented timer_delete */
    640       1.48       jtc 	{ 0, 0,
    641       1.48       jtc 	    sys_nosys },			/* 237 = unimplemented timer_settime */
    642       1.48       jtc 	{ 0, 0,
    643       1.48       jtc 	    sys_nosys },			/* 238 = unimplemented timer_gettime */
    644       1.48       jtc 	{ 0, 0,
    645       1.48       jtc 	    sys_nosys },			/* 239 = unimplemented timer_getoverrun */
    646       1.54       jtc 	{ 2, s(struct sys_nanosleep_args),
    647       1.54       jtc 	    sys_nanosleep },			/* 240 = nanosleep */
    648       1.89    kleink 	{ 1, s(struct sys_fdatasync_args),
    649       1.89    kleink 	    sys_fdatasync },			/* 241 = fdatasync */
    650      1.107   thorpej 	{ 1, s(struct sys_mlockall_args),
    651      1.107   thorpej 	    sys_mlockall },			/* 242 = mlockall */
    652       1.55    kleink 	{ 0, 0,
    653      1.107   thorpej 	    sys_munlockall },			/* 243 = munlockall */
    654       1.55    kleink 	{ 0, 0,
    655       1.55    kleink 	    sys_nosys },			/* 244 = unimplemented */
    656       1.55    kleink 	{ 0, 0,
    657       1.55    kleink 	    sys_nosys },			/* 245 = unimplemented */
    658       1.55    kleink 	{ 0, 0,
    659       1.55    kleink 	    sys_nosys },			/* 246 = unimplemented */
    660       1.55    kleink 	{ 0, 0,
    661       1.55    kleink 	    sys_nosys },			/* 247 = unimplemented */
    662       1.55    kleink 	{ 0, 0,
    663       1.55    kleink 	    sys_nosys },			/* 248 = unimplemented */
    664       1.55    kleink 	{ 0, 0,
    665       1.55    kleink 	    sys_nosys },			/* 249 = unimplemented */
    666       1.60     veego 	{ 0, 0,
    667       1.60     veego 	    sys_nosys },			/* 250 = unimplemented */
    668       1.55    kleink 	{ 0, 0,
    669       1.55    kleink 	    sys_nosys },			/* 251 = unimplemented */
    670       1.55    kleink 	{ 0, 0,
    671       1.55    kleink 	    sys_nosys },			/* 252 = unimplemented */
    672       1.55    kleink 	{ 0, 0,
    673       1.55    kleink 	    sys_nosys },			/* 253 = unimplemented */
    674       1.55    kleink 	{ 0, 0,
    675       1.55    kleink 	    sys_nosys },			/* 254 = unimplemented */
    676       1.55    kleink 	{ 0, 0,
    677       1.55    kleink 	    sys_nosys },			/* 255 = unimplemented */
    678       1.55    kleink 	{ 0, 0,
    679       1.55    kleink 	    sys_nosys },			/* 256 = unimplemented */
    680       1.55    kleink 	{ 0, 0,
    681       1.55    kleink 	    sys_nosys },			/* 257 = unimplemented */
    682       1.55    kleink 	{ 0, 0,
    683       1.55    kleink 	    sys_nosys },			/* 258 = unimplemented */
    684       1.55    kleink 	{ 0, 0,
    685       1.55    kleink 	    sys_nosys },			/* 259 = unimplemented */
    686       1.55    kleink 	{ 0, 0,
    687       1.55    kleink 	    sys_nosys },			/* 260 = unimplemented */
    688       1.55    kleink 	{ 0, 0,
    689       1.55    kleink 	    sys_nosys },			/* 261 = unimplemented */
    690       1.55    kleink 	{ 0, 0,
    691       1.55    kleink 	    sys_nosys },			/* 262 = unimplemented */
    692       1.55    kleink 	{ 0, 0,
    693       1.55    kleink 	    sys_nosys },			/* 263 = unimplemented */
    694       1.55    kleink 	{ 0, 0,
    695       1.55    kleink 	    sys_nosys },			/* 264 = unimplemented */
    696       1.55    kleink 	{ 0, 0,
    697       1.55    kleink 	    sys_nosys },			/* 265 = unimplemented */
    698       1.55    kleink 	{ 0, 0,
    699       1.55    kleink 	    sys_nosys },			/* 266 = unimplemented */
    700       1.55    kleink 	{ 0, 0,
    701       1.55    kleink 	    sys_nosys },			/* 267 = unimplemented */
    702       1.55    kleink 	{ 0, 0,
    703       1.55    kleink 	    sys_nosys },			/* 268 = unimplemented */
    704       1.55    kleink 	{ 0, 0,
    705       1.55    kleink 	    sys_nosys },			/* 269 = unimplemented */
    706       1.80    kleink 	{ 2, s(struct sys___posix_rename_args),
    707       1.80    kleink 	    sys___posix_rename },		/* 270 = __posix_rename */
    708       1.56       mrg 	{ 3, s(struct sys_swapctl_args),
    709       1.56       mrg 	    sys_swapctl },			/* 271 = swapctl */
    710       1.63      fvdl 	{ 3, s(struct sys_getdents_args),
    711       1.63      fvdl 	    sys_getdents },			/* 272 = getdents */
    712       1.60     veego 	{ 3, s(struct sys_minherit_args),
    713       1.60     veego 	    sys_minherit },			/* 273 = minherit */
    714       1.61     enami 	{ 2, s(struct sys_lchmod_args),
    715       1.61     enami 	    sys_lchmod },			/* 274 = lchmod */
    716       1.61     enami 	{ 3, s(struct sys_lchown_args),
    717       1.61     enami 	    sys_lchown },			/* 275 = lchown */
    718       1.61     enami 	{ 2, s(struct sys_lutimes_args),
    719       1.61     enami 	    sys_lutimes },			/* 276 = lutimes */
    720       1.69   thorpej 	{ 3, s(struct sys___msync13_args),
    721       1.69   thorpej 	    sys___msync13 },			/* 277 = __msync13 */
    722       1.69   thorpej 	{ 2, s(struct sys___stat13_args),
    723       1.69   thorpej 	    sys___stat13 },			/* 278 = __stat13 */
    724       1.69   thorpej 	{ 2, s(struct sys___fstat13_args),
    725       1.69   thorpej 	    sys___fstat13 },			/* 279 = __fstat13 */
    726       1.69   thorpej 	{ 2, s(struct sys___lstat13_args),
    727       1.69   thorpej 	    sys___lstat13 },			/* 280 = __lstat13 */
    728       1.73    kleink 	{ 2, s(struct sys___sigaltstack14_args),
    729       1.73    kleink 	    sys___sigaltstack14 },		/* 281 = __sigaltstack14 */
    730       1.74   thorpej 	{ 0, 0,
    731       1.74   thorpej 	    sys___vfork14 },			/* 282 = __vfork14 */
    732       1.80    kleink 	{ 3, s(struct sys___posix_chown_args),
    733       1.80    kleink 	    sys___posix_chown },		/* 283 = __posix_chown */
    734       1.80    kleink 	{ 3, s(struct sys___posix_fchown_args),
    735       1.80    kleink 	    sys___posix_fchown },		/* 284 = __posix_fchown */
    736       1.80    kleink 	{ 3, s(struct sys___posix_lchown_args),
    737       1.80    kleink 	    sys___posix_lchown },		/* 285 = __posix_lchown */
    738       1.79   thorpej 	{ 1, s(struct sys_getsid_args),
    739       1.79   thorpej 	    sys_getsid },			/* 286 = getsid */
    740       1.85  christos 	{ 0, 0,
    741       1.85  christos 	    sys_nosys },			/* 287 = unimplemented */
    742      1.106  christos #if defined(KTRACE) || !defined(_KERNEL)
    743       1.85  christos 	{ 4, s(struct sys_fktrace_args),
    744       1.85  christos 	    sys_fktrace },			/* 288 = fktrace */
    745       1.85  christos #else
    746       1.85  christos 	{ 0, 0,
    747      1.106  christos 	    sys_nosys },			/* 288 = excluded ktrace */
    748       1.85  christos #endif
    749       1.93   thorpej 	{ 5, s(struct sys_preadv_args),
    750       1.92   thorpej 	    sys_preadv },			/* 289 = preadv */
    751       1.93   thorpej 	{ 5, s(struct sys_pwritev_args),
    752       1.92   thorpej 	    sys_pwritev },			/* 290 = pwritev */
    753       1.95   mycroft 	{ 3, s(struct sys___sigaction14_args),
    754       1.95   mycroft 	    sys___sigaction14 },		/* 291 = __sigaction14 */
    755       1.95   mycroft 	{ 1, s(struct sys___sigpending14_args),
    756       1.95   mycroft 	    sys___sigpending14 },		/* 292 = __sigpending14 */
    757       1.95   mycroft 	{ 3, s(struct sys___sigprocmask14_args),
    758       1.95   mycroft 	    sys___sigprocmask14 },		/* 293 = __sigprocmask14 */
    759       1.95   mycroft 	{ 1, s(struct sys___sigsuspend14_args),
    760       1.95   mycroft 	    sys___sigsuspend14 },		/* 294 = __sigsuspend14 */
    761       1.96   mycroft 	{ 1, s(struct sys___sigreturn14_args),
    762       1.96   mycroft 	    sys___sigreturn14 },		/* 295 = __sigreturn14 */
    763      1.103  sommerfe 	{ 2, s(struct sys___getcwd_args),
    764      1.103  sommerfe 	    sys___getcwd },			/* 296 = __getcwd */
    765      1.103  sommerfe 	{ 1, s(struct sys_fchroot_args),
    766      1.103  sommerfe 	    sys_fchroot },			/* 297 = fchroot */
    767      1.108  wrstuden 	{ 2, s(struct sys_fhopen_args),
    768      1.108  wrstuden 	    sys_fhopen },			/* 298 = fhopen */
    769      1.108  wrstuden 	{ 2, s(struct sys_fhstat_args),
    770      1.108  wrstuden 	    sys_fhstat },			/* 299 = fhstat */
    771      1.108  wrstuden 	{ 2, s(struct sys_fhstatfs_args),
    772      1.108  wrstuden 	    sys_fhstatfs },			/* 300 = fhstatfs */
    773      1.111   thorpej #if defined(SYSVSEM) || !defined(_KERNEL)
    774  1.111.2.1    bouyer 	{ 4, s(struct sys_____semctl13_args),
    775  1.111.2.1    bouyer 	    sys_____semctl13 },			/* 301 = ____semctl13 */
    776      1.111   thorpej #else
    777      1.111   thorpej 	{ 0, 0,
    778  1.111.2.1    bouyer 	    sys_nosys },			/* 301 = excluded ____semctl13 */
    779      1.111   thorpej #endif
    780      1.111   thorpej #if defined(SYSVMSG) || !defined(_KERNEL)
    781      1.111   thorpej 	{ 3, s(struct sys___msgctl13_args),
    782      1.111   thorpej 	    sys___msgctl13 },			/* 302 = __msgctl13 */
    783      1.111   thorpej #else
    784      1.111   thorpej 	{ 0, 0,
    785      1.111   thorpej 	    sys_nosys },			/* 302 = excluded __msgctl13 */
    786      1.111   thorpej #endif
    787      1.111   thorpej #if defined(SYSVSHM) || !defined(_KERNEL)
    788      1.111   thorpej 	{ 3, s(struct sys___shmctl13_args),
    789      1.111   thorpej 	    sys___shmctl13 },			/* 303 = __shmctl13 */
    790      1.111   thorpej #else
    791      1.111   thorpej 	{ 0, 0,
    792      1.111   thorpej 	    sys_nosys },			/* 303 = excluded __shmctl13 */
    793      1.111   thorpej #endif
    794  1.111.2.1    bouyer 	{ 2, s(struct sys_lchflags_args),
    795  1.111.2.1    bouyer 	    sys_lchflags },			/* 304 = lchflags */
    796  1.111.2.1    bouyer 	{ 0, 0,
    797  1.111.2.1    bouyer 	    sys_issetugid },			/* 305 = issetugid */
    798        1.1       cgd };
    799        1.1       cgd 
    800