Home | History | Annotate | Line # | Download | only in freebsd
freebsd_sysent.c revision 1.58.6.1
      1  1.58.6.1      yamt /* $NetBSD: freebsd_sysent.c,v 1.58.6.1 2005/03/19 08:33:31 yamt Exp $ */
      2      1.17   thorpej 
      3       1.1   mycroft /*
      4       1.1   mycroft  * System call switch table.
      5       1.1   mycroft  *
      6       1.1   mycroft  * DO NOT EDIT-- this file is automatically generated.
      7  1.58.6.1      yamt  * created from	NetBSD: syscalls.master,v 1.47 2005/02/22 16:14:50 heas Exp
      8       1.1   mycroft  */
      9       1.1   mycroft 
     10      1.47     lukem #include <sys/cdefs.h>
     11  1.58.6.1      yamt __KERNEL_RCSID(0, "$NetBSD: freebsd_sysent.c,v 1.58.6.1 2005/03/19 08:33:31 yamt Exp $");
     12      1.47     lukem 
     13      1.45       mrg #if defined(_KERNEL_OPT)
     14      1.24   thorpej #include "opt_ktrace.h"
     15      1.25   thorpej #include "opt_nfsserver.h"
     16      1.36     bjh21 #include "opt_ntp.h"
     17      1.27      tron #include "opt_sysv.h"
     18      1.28  christos #include "opt_compat_43.h"
     19      1.54  jdolecek #include "opt_posix.h"
     20      1.21   thorpej #include "fs_lfs.h"
     21      1.21   thorpej #include "fs_nfs.h"
     22      1.39  jdolecek #endif
     23       1.1   mycroft #include <sys/param.h>
     24       1.1   mycroft #include <sys/systm.h>
     25       1.1   mycroft #include <sys/signal.h>
     26       1.1   mycroft #include <sys/mount.h>
     27      1.51   thorpej #include <sys/sa.h>
     28       1.1   mycroft #include <sys/syscallargs.h>
     29       1.1   mycroft #include <compat/freebsd/freebsd_syscallargs.h>
     30       1.1   mycroft #include <machine/freebsd_machdep.h>
     31       1.1   mycroft 
     32       1.1   mycroft #define	s(type)	sizeof(type)
     33       1.1   mycroft 
     34       1.1   mycroft struct sysent freebsd_sysent[] = {
     35      1.44   thorpej 	{ 0, 0, 0,
     36       1.1   mycroft 	    sys_nosys },			/* 0 = syscall */
     37      1.44   thorpej 	{ 1, s(struct sys_exit_args), 0,
     38       1.1   mycroft 	    sys_exit },				/* 1 = exit */
     39      1.44   thorpej 	{ 0, 0, 0,
     40       1.1   mycroft 	    sys_fork },				/* 2 = fork */
     41      1.44   thorpej 	{ 3, s(struct sys_read_args), 0,
     42       1.1   mycroft 	    sys_read },				/* 3 = read */
     43      1.44   thorpej 	{ 3, s(struct sys_write_args), 0,
     44       1.1   mycroft 	    sys_write },			/* 4 = write */
     45      1.44   thorpej 	{ 3, s(struct freebsd_sys_open_args), 0,
     46       1.1   mycroft 	    freebsd_sys_open },			/* 5 = open */
     47      1.44   thorpej 	{ 1, s(struct sys_close_args), 0,
     48       1.1   mycroft 	    sys_close },			/* 6 = close */
     49      1.44   thorpej 	{ 4, s(struct sys_wait4_args), 0,
     50       1.1   mycroft 	    sys_wait4 },			/* 7 = wait4 */
     51      1.44   thorpej 	{ 2, s(struct compat_43_freebsd_sys_creat_args), 0,
     52       1.1   mycroft 	    compat_43_freebsd_sys_creat },	/* 8 = ocreat */
     53      1.44   thorpej 	{ 2, s(struct freebsd_sys_link_args), 0,
     54       1.1   mycroft 	    freebsd_sys_link },			/* 9 = link */
     55      1.44   thorpej 	{ 1, s(struct freebsd_sys_unlink_args), 0,
     56       1.1   mycroft 	    freebsd_sys_unlink },		/* 10 = unlink */
     57      1.44   thorpej 	{ 0, 0, 0,
     58       1.1   mycroft 	    sys_nosys },			/* 11 = obsolete execv */
     59      1.44   thorpej 	{ 1, s(struct freebsd_sys_chdir_args), 0,
     60       1.1   mycroft 	    freebsd_sys_chdir },		/* 12 = chdir */
     61      1.44   thorpej 	{ 1, s(struct sys_fchdir_args), 0,
     62       1.1   mycroft 	    sys_fchdir },			/* 13 = fchdir */
     63      1.44   thorpej 	{ 3, s(struct freebsd_sys_mknod_args), 0,
     64       1.1   mycroft 	    freebsd_sys_mknod },		/* 14 = mknod */
     65      1.44   thorpej 	{ 2, s(struct freebsd_sys_chmod_args), 0,
     66       1.1   mycroft 	    freebsd_sys_chmod },		/* 15 = chmod */
     67      1.44   thorpej 	{ 3, s(struct freebsd_sys_chown_args), 0,
     68       1.1   mycroft 	    freebsd_sys_chown },		/* 16 = chown */
     69      1.44   thorpej 	{ 1, s(struct sys_obreak_args), 0,
     70       1.1   mycroft 	    sys_obreak },			/* 17 = break */
     71      1.56  christos 	{ 3, s(struct compat_20_sys_getfsstat_args), 0,
     72      1.56  christos 	    compat_20_sys_getfsstat },		/* 18 = getfsstat */
     73      1.44   thorpej 	{ 3, s(struct compat_43_sys_lseek_args), 0,
     74       1.1   mycroft 	    compat_43_sys_lseek },		/* 19 = olseek */
     75      1.44   thorpej 	{ 0, 0, 0,
     76      1.42   mycroft 	    sys_getpid_with_ppid },		/* 20 = getpid_with_ppid */
     77      1.44   thorpej 	{ 4, s(struct freebsd_sys_mount_args), 0,
     78       1.1   mycroft 	    freebsd_sys_mount },		/* 21 = mount */
     79      1.44   thorpej 	{ 2, s(struct freebsd_sys_unmount_args), 0,
     80       1.1   mycroft 	    freebsd_sys_unmount },		/* 22 = unmount */
     81      1.44   thorpej 	{ 1, s(struct sys_setuid_args), 0,
     82       1.1   mycroft 	    sys_setuid },			/* 23 = setuid */
     83      1.44   thorpej 	{ 0, 0, 0,
     84      1.42   mycroft 	    sys_getuid_with_euid },		/* 24 = getuid_with_euid */
     85      1.44   thorpej 	{ 0, 0, 0,
     86       1.1   mycroft 	    sys_geteuid },			/* 25 = geteuid */
     87      1.44   thorpej 	{ 4, s(struct freebsd_sys_ptrace_args), 0,
     88       1.1   mycroft 	    freebsd_sys_ptrace },		/* 26 = ptrace */
     89      1.44   thorpej 	{ 3, s(struct sys_recvmsg_args), 0,
     90       1.1   mycroft 	    sys_recvmsg },			/* 27 = recvmsg */
     91      1.44   thorpej 	{ 3, s(struct sys_sendmsg_args), 0,
     92       1.1   mycroft 	    sys_sendmsg },			/* 28 = sendmsg */
     93      1.44   thorpej 	{ 6, s(struct sys_recvfrom_args), 0,
     94       1.1   mycroft 	    sys_recvfrom },			/* 29 = recvfrom */
     95      1.44   thorpej 	{ 3, s(struct sys_accept_args), 0,
     96       1.1   mycroft 	    sys_accept },			/* 30 = accept */
     97      1.44   thorpej 	{ 3, s(struct sys_getpeername_args), 0,
     98       1.1   mycroft 	    sys_getpeername },			/* 31 = getpeername */
     99      1.44   thorpej 	{ 3, s(struct sys_getsockname_args), 0,
    100       1.1   mycroft 	    sys_getsockname },			/* 32 = getsockname */
    101      1.44   thorpej 	{ 2, s(struct freebsd_sys_access_args), 0,
    102       1.1   mycroft 	    freebsd_sys_access },		/* 33 = access */
    103      1.44   thorpej 	{ 2, s(struct freebsd_sys_chflags_args), 0,
    104       1.1   mycroft 	    freebsd_sys_chflags },		/* 34 = chflags */
    105      1.44   thorpej 	{ 2, s(struct sys_fchflags_args), 0,
    106       1.1   mycroft 	    sys_fchflags },			/* 35 = fchflags */
    107      1.44   thorpej 	{ 0, 0, 0,
    108       1.1   mycroft 	    sys_sync },				/* 36 = sync */
    109      1.44   thorpej 	{ 2, s(struct sys_kill_args), 0,
    110       1.1   mycroft 	    sys_kill },				/* 37 = kill */
    111      1.44   thorpej 	{ 2, s(struct compat_43_freebsd_sys_stat_args), 0,
    112      1.12  christos 	    compat_43_freebsd_sys_stat },	/* 38 = stat43 */
    113      1.44   thorpej 	{ 0, 0, 0,
    114       1.4   mycroft 	    sys_getppid },			/* 39 = getppid */
    115      1.44   thorpej 	{ 2, s(struct compat_43_freebsd_sys_lstat_args), 0,
    116      1.12  christos 	    compat_43_freebsd_sys_lstat },	/* 40 = lstat43 */
    117      1.44   thorpej 	{ 1, s(struct sys_dup_args), 0,
    118       1.1   mycroft 	    sys_dup },				/* 41 = dup */
    119      1.44   thorpej 	{ 0, 0, 0,
    120       1.1   mycroft 	    sys_pipe },				/* 42 = pipe */
    121      1.44   thorpej 	{ 0, 0, 0,
    122       1.1   mycroft 	    sys_getegid },			/* 43 = getegid */
    123      1.44   thorpej 	{ 4, s(struct sys_profil_args), 0,
    124       1.1   mycroft 	    sys_profil },			/* 44 = profil */
    125       1.1   mycroft #ifdef KTRACE
    126      1.44   thorpej 	{ 4, s(struct sys_ktrace_args), 0,
    127       1.1   mycroft 	    sys_ktrace },			/* 45 = ktrace */
    128       1.1   mycroft #else
    129      1.44   thorpej 	{ 0, 0, 0,
    130      1.43  jdolecek 	    sys_nosys },			/* 45 = excluded ktrace */
    131       1.1   mycroft #endif
    132      1.44   thorpej 	{ 3, s(struct compat_13_sys_sigaction_args), 0,
    133      1.26   mycroft 	    compat_13_sys_sigaction },		/* 46 = sigaction */
    134      1.44   thorpej 	{ 0, 0, 0,
    135      1.42   mycroft 	    sys_getgid_with_egid },		/* 47 = getgid_with_egid */
    136      1.44   thorpej 	{ 2, s(struct compat_13_sys_sigprocmask_args), 0,
    137      1.26   mycroft 	    compat_13_sys_sigprocmask },	/* 48 = sigprocmask */
    138      1.44   thorpej 	{ 2, s(struct sys___getlogin_args), 0,
    139       1.6  christos 	    sys___getlogin },			/* 49 = __getlogin */
    140      1.51   thorpej 	{ 1, s(struct sys___setlogin_args), 0,
    141      1.51   thorpej 	    sys___setlogin },			/* 50 = __setlogin */
    142      1.44   thorpej 	{ 1, s(struct sys_acct_args), 0,
    143       1.1   mycroft 	    sys_acct },				/* 51 = acct */
    144      1.44   thorpej 	{ 0, 0, 0,
    145      1.26   mycroft 	    compat_13_sys_sigpending },		/* 52 = sigpending */
    146      1.44   thorpej 	{ 2, s(struct compat_13_sys_sigaltstack_args), 0,
    147      1.14     veego 	    compat_13_sys_sigaltstack },	/* 53 = sigaltstack */
    148      1.44   thorpej 	{ 3, s(struct freebsd_sys_ioctl_args), 0,
    149       1.1   mycroft 	    freebsd_sys_ioctl },		/* 54 = ioctl */
    150      1.44   thorpej 	{ 1, s(struct sys_reboot_args), 0,
    151      1.29  christos 	    sys_reboot },			/* 55 = oreboot */
    152      1.44   thorpej 	{ 1, s(struct freebsd_sys_revoke_args), 0,
    153       1.1   mycroft 	    freebsd_sys_revoke },		/* 56 = revoke */
    154      1.44   thorpej 	{ 2, s(struct freebsd_sys_symlink_args), 0,
    155       1.1   mycroft 	    freebsd_sys_symlink },		/* 57 = symlink */
    156      1.44   thorpej 	{ 3, s(struct freebsd_sys_readlink_args), 0,
    157       1.1   mycroft 	    freebsd_sys_readlink },		/* 58 = readlink */
    158      1.44   thorpej 	{ 3, s(struct freebsd_sys_execve_args), 0,
    159       1.1   mycroft 	    freebsd_sys_execve },		/* 59 = execve */
    160      1.44   thorpej 	{ 1, s(struct sys_umask_args), 0,
    161       1.1   mycroft 	    sys_umask },			/* 60 = umask */
    162      1.44   thorpej 	{ 1, s(struct freebsd_sys_chroot_args), 0,
    163       1.1   mycroft 	    freebsd_sys_chroot },		/* 61 = chroot */
    164      1.44   thorpej 	{ 2, s(struct compat_43_sys_fstat_args), 0,
    165      1.12  christos 	    compat_43_sys_fstat },		/* 62 = fstat43 */
    166      1.44   thorpej 	{ 4, s(struct compat_43_sys_getkerninfo_args), 0,
    167       1.1   mycroft 	    compat_43_sys_getkerninfo },	/* 63 = ogetkerninfo */
    168      1.44   thorpej 	{ 0, 0, 0,
    169       1.1   mycroft 	    compat_43_sys_getpagesize },	/* 64 = ogetpagesize */
    170      1.44   thorpej 	{ 3, s(struct freebsd_sys_msync_args), 0,
    171       1.1   mycroft 	    freebsd_sys_msync },		/* 65 = msync */
    172      1.44   thorpej 	{ 0, 0, 0,
    173       1.1   mycroft 	    sys_vfork },			/* 66 = vfork */
    174      1.44   thorpej 	{ 0, 0, 0,
    175       1.1   mycroft 	    sys_nosys },			/* 67 = obsolete vread */
    176      1.44   thorpej 	{ 0, 0, 0,
    177       1.1   mycroft 	    sys_nosys },			/* 68 = obsolete vwrite */
    178      1.44   thorpej 	{ 1, s(struct sys_sbrk_args), 0,
    179       1.1   mycroft 	    sys_sbrk },				/* 69 = sbrk */
    180      1.44   thorpej 	{ 1, s(struct sys_sstk_args), 0,
    181       1.1   mycroft 	    sys_sstk },				/* 70 = sstk */
    182      1.44   thorpej 	{ 6, s(struct compat_43_sys_mmap_args), 0,
    183       1.1   mycroft 	    compat_43_sys_mmap },		/* 71 = ommap */
    184      1.44   thorpej 	{ 1, s(struct sys_ovadvise_args), 0,
    185       1.1   mycroft 	    sys_ovadvise },			/* 72 = vadvise */
    186      1.44   thorpej 	{ 2, s(struct sys_munmap_args), 0,
    187       1.1   mycroft 	    sys_munmap },			/* 73 = munmap */
    188      1.44   thorpej 	{ 3, s(struct sys_mprotect_args), 0,
    189       1.1   mycroft 	    sys_mprotect },			/* 74 = mprotect */
    190      1.44   thorpej 	{ 3, s(struct sys_madvise_args), 0,
    191       1.1   mycroft 	    sys_madvise },			/* 75 = madvise */
    192      1.44   thorpej 	{ 0, 0, 0,
    193       1.1   mycroft 	    sys_nosys },			/* 76 = obsolete vhangup */
    194      1.44   thorpej 	{ 0, 0, 0,
    195       1.1   mycroft 	    sys_nosys },			/* 77 = obsolete vlimit */
    196      1.44   thorpej 	{ 3, s(struct sys_mincore_args), 0,
    197       1.1   mycroft 	    sys_mincore },			/* 78 = mincore */
    198      1.44   thorpej 	{ 2, s(struct sys_getgroups_args), 0,
    199       1.1   mycroft 	    sys_getgroups },			/* 79 = getgroups */
    200      1.44   thorpej 	{ 2, s(struct sys_setgroups_args), 0,
    201       1.1   mycroft 	    sys_setgroups },			/* 80 = setgroups */
    202      1.44   thorpej 	{ 0, 0, 0,
    203       1.1   mycroft 	    sys_getpgrp },			/* 81 = getpgrp */
    204      1.44   thorpej 	{ 2, s(struct sys_setpgid_args), 0,
    205       1.1   mycroft 	    sys_setpgid },			/* 82 = setpgid */
    206      1.44   thorpej 	{ 3, s(struct sys_setitimer_args), 0,
    207       1.1   mycroft 	    sys_setitimer },			/* 83 = setitimer */
    208      1.44   thorpej 	{ 0, 0, 0,
    209       1.1   mycroft 	    compat_43_sys_wait },		/* 84 = owait */
    210      1.44   thorpej 	{ 1, s(struct compat_12_sys_swapon_args), 0,
    211       1.8   thorpej 	    compat_12_sys_swapon },		/* 85 = swapon */
    212      1.44   thorpej 	{ 2, s(struct sys_getitimer_args), 0,
    213       1.1   mycroft 	    sys_getitimer },			/* 86 = getitimer */
    214      1.44   thorpej 	{ 2, s(struct compat_43_sys_gethostname_args), 0,
    215       1.1   mycroft 	    compat_43_sys_gethostname },	/* 87 = ogethostname */
    216      1.44   thorpej 	{ 2, s(struct compat_43_sys_sethostname_args), 0,
    217       1.1   mycroft 	    compat_43_sys_sethostname },	/* 88 = osethostname */
    218      1.44   thorpej 	{ 0, 0, 0,
    219       1.1   mycroft 	    compat_43_sys_getdtablesize },	/* 89 = ogetdtablesize */
    220      1.44   thorpej 	{ 2, s(struct sys_dup2_args), 0,
    221       1.1   mycroft 	    sys_dup2 },				/* 90 = dup2 */
    222      1.44   thorpej 	{ 0, 0, 0,
    223       1.1   mycroft 	    sys_nosys },			/* 91 = unimplemented getdopt */
    224      1.44   thorpej 	{ 3, s(struct sys_fcntl_args), 0,
    225       1.1   mycroft 	    sys_fcntl },			/* 92 = fcntl */
    226      1.44   thorpej 	{ 5, s(struct sys_select_args), 0,
    227       1.1   mycroft 	    sys_select },			/* 93 = select */
    228      1.44   thorpej 	{ 0, 0, 0,
    229       1.1   mycroft 	    sys_nosys },			/* 94 = unimplemented setdopt */
    230      1.44   thorpej 	{ 1, s(struct sys_fsync_args), 0,
    231       1.1   mycroft 	    sys_fsync },			/* 95 = fsync */
    232      1.44   thorpej 	{ 3, s(struct sys_setpriority_args), 0,
    233       1.1   mycroft 	    sys_setpriority },			/* 96 = setpriority */
    234      1.44   thorpej 	{ 3, s(struct sys_socket_args), 0,
    235       1.1   mycroft 	    sys_socket },			/* 97 = socket */
    236      1.44   thorpej 	{ 3, s(struct sys_connect_args), 0,
    237       1.1   mycroft 	    sys_connect },			/* 98 = connect */
    238      1.44   thorpej 	{ 3, s(struct compat_43_sys_accept_args), 0,
    239       1.1   mycroft 	    compat_43_sys_accept },		/* 99 = oaccept */
    240      1.44   thorpej 	{ 2, s(struct sys_getpriority_args), 0,
    241       1.1   mycroft 	    sys_getpriority },			/* 100 = getpriority */
    242      1.44   thorpej 	{ 4, s(struct compat_43_sys_send_args), 0,
    243       1.1   mycroft 	    compat_43_sys_send },		/* 101 = osend */
    244      1.44   thorpej 	{ 4, s(struct compat_43_sys_recv_args), 0,
    245       1.1   mycroft 	    compat_43_sys_recv },		/* 102 = orecv */
    246      1.44   thorpej 	{ 1, s(struct freebsd_sys_sigreturn_args), 0,
    247       1.1   mycroft 	    freebsd_sys_sigreturn },		/* 103 = sigreturn */
    248      1.44   thorpej 	{ 3, s(struct sys_bind_args), 0,
    249       1.1   mycroft 	    sys_bind },				/* 104 = bind */
    250      1.44   thorpej 	{ 5, s(struct sys_setsockopt_args), 0,
    251       1.1   mycroft 	    sys_setsockopt },			/* 105 = setsockopt */
    252      1.44   thorpej 	{ 2, s(struct sys_listen_args), 0,
    253       1.1   mycroft 	    sys_listen },			/* 106 = listen */
    254      1.44   thorpej 	{ 0, 0, 0,
    255       1.1   mycroft 	    sys_nosys },			/* 107 = obsolete vtimes */
    256      1.44   thorpej 	{ 3, s(struct compat_43_sys_sigvec_args), 0,
    257       1.1   mycroft 	    compat_43_sys_sigvec },		/* 108 = osigvec */
    258      1.44   thorpej 	{ 1, s(struct compat_43_sys_sigblock_args), 0,
    259       1.1   mycroft 	    compat_43_sys_sigblock },		/* 109 = osigblock */
    260      1.44   thorpej 	{ 1, s(struct compat_43_sys_sigsetmask_args), 0,
    261       1.1   mycroft 	    compat_43_sys_sigsetmask },		/* 110 = osigsetmask */
    262      1.44   thorpej 	{ 1, s(struct compat_13_sys_sigsuspend_args), 0,
    263      1.26   mycroft 	    compat_13_sys_sigsuspend },		/* 111 = sigsuspend */
    264      1.44   thorpej 	{ 2, s(struct compat_43_sys_sigstack_args), 0,
    265       1.1   mycroft 	    compat_43_sys_sigstack },		/* 112 = osigstack */
    266      1.44   thorpej 	{ 3, s(struct compat_43_sys_recvmsg_args), 0,
    267       1.1   mycroft 	    compat_43_sys_recvmsg },		/* 113 = orecvmsg */
    268      1.44   thorpej 	{ 3, s(struct compat_43_sys_sendmsg_args), 0,
    269       1.1   mycroft 	    compat_43_sys_sendmsg },		/* 114 = osendmsg */
    270       1.1   mycroft #ifdef TRACE
    271      1.44   thorpej 	{ 2, s(struct sys_vtrace_args), 0,
    272       1.1   mycroft 	    sys_vtrace },			/* 115 = vtrace */
    273       1.1   mycroft #else
    274      1.44   thorpej 	{ 0, 0, 0,
    275       1.1   mycroft 	    sys_nosys },			/* 115 = obsolete vtrace */
    276       1.1   mycroft #endif
    277      1.44   thorpej 	{ 2, s(struct sys_gettimeofday_args), 0,
    278       1.1   mycroft 	    sys_gettimeofday },			/* 116 = gettimeofday */
    279      1.44   thorpej 	{ 2, s(struct sys_getrusage_args), 0,
    280       1.1   mycroft 	    sys_getrusage },			/* 117 = getrusage */
    281      1.44   thorpej 	{ 5, s(struct sys_getsockopt_args), 0,
    282       1.1   mycroft 	    sys_getsockopt },			/* 118 = getsockopt */
    283      1.44   thorpej 	{ 0, 0, 0,
    284       1.1   mycroft 	    sys_nosys },			/* 119 = obsolete resuba */
    285      1.44   thorpej 	{ 3, s(struct sys_readv_args), 0,
    286       1.1   mycroft 	    sys_readv },			/* 120 = readv */
    287      1.44   thorpej 	{ 3, s(struct sys_writev_args), 0,
    288       1.1   mycroft 	    sys_writev },			/* 121 = writev */
    289      1.44   thorpej 	{ 2, s(struct sys_settimeofday_args), 0,
    290       1.1   mycroft 	    sys_settimeofday },			/* 122 = settimeofday */
    291      1.44   thorpej 	{ 3, s(struct sys_fchown_args), 0,
    292       1.1   mycroft 	    sys_fchown },			/* 123 = fchown */
    293      1.44   thorpej 	{ 2, s(struct sys_fchmod_args), 0,
    294       1.1   mycroft 	    sys_fchmod },			/* 124 = fchmod */
    295      1.44   thorpej 	{ 6, s(struct compat_43_sys_recvfrom_args), 0,
    296       1.1   mycroft 	    compat_43_sys_recvfrom },		/* 125 = orecvfrom */
    297      1.44   thorpej 	{ 2, s(struct sys_setreuid_args), 0,
    298       1.5   mycroft 	    sys_setreuid },			/* 126 = setreuid */
    299      1.44   thorpej 	{ 2, s(struct sys_setregid_args), 0,
    300       1.5   mycroft 	    sys_setregid },			/* 127 = setregid */
    301      1.44   thorpej 	{ 2, s(struct freebsd_sys_rename_args), 0,
    302       1.1   mycroft 	    freebsd_sys_rename },		/* 128 = rename */
    303      1.44   thorpej 	{ 2, s(struct compat_43_freebsd_sys_truncate_args), 0,
    304       1.1   mycroft 	    compat_43_freebsd_sys_truncate },	/* 129 = otruncate */
    305      1.44   thorpej 	{ 2, s(struct compat_43_sys_ftruncate_args), 0,
    306       1.3   mycroft 	    compat_43_sys_ftruncate },		/* 130 = oftruncate */
    307      1.44   thorpej 	{ 2, s(struct sys_flock_args), 0,
    308       1.3   mycroft 	    sys_flock },			/* 131 = flock */
    309      1.44   thorpej 	{ 2, s(struct freebsd_sys_mkfifo_args), 0,
    310       1.1   mycroft 	    freebsd_sys_mkfifo },		/* 132 = mkfifo */
    311      1.44   thorpej 	{ 6, s(struct sys_sendto_args), 0,
    312       1.1   mycroft 	    sys_sendto },			/* 133 = sendto */
    313      1.44   thorpej 	{ 2, s(struct sys_shutdown_args), 0,
    314       1.1   mycroft 	    sys_shutdown },			/* 134 = shutdown */
    315      1.44   thorpej 	{ 4, s(struct sys_socketpair_args), 0,
    316       1.1   mycroft 	    sys_socketpair },			/* 135 = socketpair */
    317      1.44   thorpej 	{ 2, s(struct freebsd_sys_mkdir_args), 0,
    318       1.1   mycroft 	    freebsd_sys_mkdir },		/* 136 = mkdir */
    319      1.44   thorpej 	{ 1, s(struct freebsd_sys_rmdir_args), 0,
    320       1.1   mycroft 	    freebsd_sys_rmdir },		/* 137 = rmdir */
    321      1.44   thorpej 	{ 2, s(struct sys_utimes_args), 0,
    322       1.1   mycroft 	    sys_utimes },			/* 138 = utimes */
    323      1.44   thorpej 	{ 0, 0, 0,
    324       1.1   mycroft 	    sys_nosys },			/* 139 = obsolete 4.2 sigreturn */
    325      1.44   thorpej 	{ 2, s(struct sys_adjtime_args), 0,
    326       1.1   mycroft 	    sys_adjtime },			/* 140 = adjtime */
    327      1.44   thorpej 	{ 3, s(struct compat_43_sys_getpeername_args), 0,
    328       1.1   mycroft 	    compat_43_sys_getpeername },	/* 141 = ogetpeername */
    329      1.44   thorpej 	{ 0, 0, 0,
    330       1.1   mycroft 	    compat_43_sys_gethostid },		/* 142 = ogethostid */
    331      1.44   thorpej 	{ 1, s(struct compat_43_sys_sethostid_args), 0,
    332       1.1   mycroft 	    compat_43_sys_sethostid },		/* 143 = osethostid */
    333      1.44   thorpej 	{ 2, s(struct compat_43_sys_getrlimit_args), 0,
    334       1.1   mycroft 	    compat_43_sys_getrlimit },		/* 144 = ogetrlimit */
    335      1.44   thorpej 	{ 2, s(struct compat_43_sys_setrlimit_args), 0,
    336       1.1   mycroft 	    compat_43_sys_setrlimit },		/* 145 = osetrlimit */
    337      1.44   thorpej 	{ 2, s(struct compat_43_sys_killpg_args), 0,
    338       1.1   mycroft 	    compat_43_sys_killpg },		/* 146 = okillpg */
    339      1.44   thorpej 	{ 0, 0, 0,
    340       1.1   mycroft 	    sys_setsid },			/* 147 = setsid */
    341      1.44   thorpej 	{ 4, s(struct sys_quotactl_args), 0,
    342       1.1   mycroft 	    sys_quotactl },			/* 148 = quotactl */
    343      1.44   thorpej 	{ 0, 0, 0,
    344       1.1   mycroft 	    compat_43_sys_quota },		/* 149 = oquota */
    345      1.44   thorpej 	{ 3, s(struct compat_43_sys_getsockname_args), 0,
    346       1.1   mycroft 	    compat_43_sys_getsockname },	/* 150 = ogetsockname */
    347      1.44   thorpej 	{ 0, 0, 0,
    348      1.34        tv 	    sys_nosys },			/* 151 = unimplemented sem_lock */
    349      1.44   thorpej 	{ 0, 0, 0,
    350      1.34        tv 	    sys_nosys },			/* 152 = unimplemented sem_wakeup */
    351      1.44   thorpej 	{ 0, 0, 0,
    352      1.34        tv 	    sys_nosys },			/* 153 = unimplemented asyncdaemon */
    353      1.44   thorpej 	{ 0, 0, 0,
    354       1.1   mycroft 	    sys_nosys },			/* 154 = unimplemented */
    355       1.7   thorpej #if defined(NFS) || defined(NFSSERVER)
    356      1.44   thorpej 	{ 2, s(struct sys_nfssvc_args), 0,
    357       1.1   mycroft 	    sys_nfssvc },			/* 155 = nfssvc */
    358       1.1   mycroft #else
    359      1.44   thorpej 	{ 0, 0, 0,
    360      1.34        tv 	    sys_nosys },			/* 155 = unimplemented nfssvc */
    361       1.1   mycroft #endif
    362      1.44   thorpej 	{ 4, s(struct compat_43_sys_getdirentries_args), 0,
    363       1.1   mycroft 	    compat_43_sys_getdirentries },	/* 156 = ogetdirentries */
    364      1.44   thorpej 	{ 2, s(struct freebsd_sys_statfs_args), 0,
    365       1.1   mycroft 	    freebsd_sys_statfs },		/* 157 = statfs */
    366      1.56  christos 	{ 2, s(struct compat_20_sys_fstatfs_args), 0,
    367      1.56  christos 	    compat_20_sys_fstatfs },		/* 158 = fstatfs */
    368      1.44   thorpej 	{ 0, 0, 0,
    369       1.1   mycroft 	    sys_nosys },			/* 159 = unimplemented */
    370      1.44   thorpej 	{ 0, 0, 0,
    371       1.1   mycroft 	    sys_nosys },			/* 160 = unimplemented */
    372       1.7   thorpej #ifdef NFS
    373      1.44   thorpej 	{ 2, s(struct freebsd_sys_getfh_args), 0,
    374       1.1   mycroft 	    freebsd_sys_getfh },		/* 161 = getfh */
    375       1.1   mycroft #else
    376      1.44   thorpej 	{ 0, 0, 0,
    377       1.1   mycroft 	    sys_nosys },			/* 161 = unimplemented getfh */
    378       1.1   mycroft #endif
    379      1.44   thorpej 	{ 2, s(struct compat_09_sys_getdomainname_args), 0,
    380       1.1   mycroft 	    compat_09_sys_getdomainname },	/* 162 = getdomainname */
    381      1.44   thorpej 	{ 2, s(struct compat_09_sys_setdomainname_args), 0,
    382       1.1   mycroft 	    compat_09_sys_setdomainname },	/* 163 = setdomainname */
    383      1.44   thorpej 	{ 1, s(struct compat_09_sys_uname_args), 0,
    384       1.1   mycroft 	    compat_09_sys_uname },		/* 164 = uname */
    385      1.44   thorpej 	{ 2, s(struct sys_sysarch_args), 0,
    386       1.1   mycroft 	    sys_sysarch },			/* 165 = sysarch */
    387      1.44   thorpej 	{ 3, s(struct freebsd_sys_rtprio_args), 0,
    388       1.1   mycroft 	    freebsd_sys_rtprio },		/* 166 = rtprio */
    389      1.44   thorpej 	{ 0, 0, 0,
    390       1.1   mycroft 	    sys_nosys },			/* 167 = unimplemented */
    391      1.44   thorpej 	{ 0, 0, 0,
    392       1.1   mycroft 	    sys_nosys },			/* 168 = unimplemented */
    393      1.48       eeh #if defined(SYSVSEM) && !defined(_LP64)
    394      1.44   thorpej 	{ 5, s(struct freebsd_sys_semsys_args), 0,
    395      1.19   mycroft 	    freebsd_sys_semsys },		/* 169 = semsys */
    396       1.1   mycroft #else
    397      1.44   thorpej 	{ 0, 0, 0,
    398       1.1   mycroft 	    sys_nosys },			/* 169 = unimplemented 1.0 semsys */
    399       1.1   mycroft #endif
    400      1.48       eeh #if defined(SYSVMSG) && !defined(_LP64)
    401      1.44   thorpej 	{ 6, s(struct freebsd_sys_msgsys_args), 0,
    402      1.19   mycroft 	    freebsd_sys_msgsys },		/* 170 = msgsys */
    403       1.1   mycroft #else
    404      1.44   thorpej 	{ 0, 0, 0,
    405       1.1   mycroft 	    sys_nosys },			/* 170 = unimplemented 1.0 msgsys */
    406       1.1   mycroft #endif
    407      1.48       eeh #if defined(SYSVSHM) && !defined(_LP64)
    408      1.44   thorpej 	{ 4, s(struct freebsd_sys_shmsys_args), 0,
    409      1.19   mycroft 	    freebsd_sys_shmsys },		/* 171 = shmsys */
    410       1.1   mycroft #else
    411      1.44   thorpej 	{ 0, 0, 0,
    412       1.1   mycroft 	    sys_nosys },			/* 171 = unimplemented 1.0 shmsys */
    413       1.1   mycroft #endif
    414      1.44   thorpej 	{ 0, 0, 0,
    415       1.1   mycroft 	    sys_nosys },			/* 172 = unimplemented */
    416      1.44   thorpej 	{ 5, s(struct sys_pread_args), 0,
    417      1.34        tv 	    sys_pread },			/* 173 = pread */
    418      1.44   thorpej 	{ 5, s(struct sys_pwrite_args), 0,
    419      1.34        tv 	    sys_pwrite },			/* 174 = pwrite */
    420      1.44   thorpej 	{ 0, 0, 0,
    421       1.1   mycroft 	    sys_nosys },			/* 175 = unimplemented */
    422      1.37    itojun #ifdef NTP
    423      1.44   thorpej 	{ 1, s(struct freebsd_ntp_adjtime_args), 0,
    424       1.1   mycroft 	    freebsd_ntp_adjtime },		/* 176 = freebsd_ntp_adjtime */
    425      1.36     bjh21 #else
    426      1.44   thorpej 	{ 0, 0, 0,
    427      1.36     bjh21 	    sys_nosys },			/* 176 = excluded ntp_adjtime */
    428      1.36     bjh21 #endif
    429      1.44   thorpej 	{ 0, 0, 0,
    430      1.34        tv 	    sys_nosys },			/* 177 = unimplemented sfork */
    431      1.44   thorpej 	{ 0, 0, 0,
    432      1.34        tv 	    sys_nosys },			/* 178 = unimplemented getdescriptor */
    433      1.44   thorpej 	{ 0, 0, 0,
    434      1.34        tv 	    sys_nosys },			/* 179 = unimplemented setdescriptor */
    435      1.44   thorpej 	{ 0, 0, 0,
    436       1.1   mycroft 	    sys_nosys },			/* 180 = unimplemented */
    437      1.44   thorpej 	{ 1, s(struct sys_setgid_args), 0,
    438       1.1   mycroft 	    sys_setgid },			/* 181 = setgid */
    439      1.44   thorpej 	{ 1, s(struct sys_setegid_args), 0,
    440       1.1   mycroft 	    sys_setegid },			/* 182 = setegid */
    441      1.44   thorpej 	{ 1, s(struct sys_seteuid_args), 0,
    442       1.1   mycroft 	    sys_seteuid },			/* 183 = seteuid */
    443       1.1   mycroft #ifdef LFS
    444      1.44   thorpej 	{ 3, s(struct sys_lfs_bmapv_args), 0,
    445      1.30  drochner 	    sys_lfs_bmapv },			/* 184 = lfs_bmapv */
    446      1.44   thorpej 	{ 3, s(struct sys_lfs_markv_args), 0,
    447      1.30  drochner 	    sys_lfs_markv },			/* 185 = lfs_markv */
    448      1.44   thorpej 	{ 2, s(struct sys_lfs_segclean_args), 0,
    449      1.30  drochner 	    sys_lfs_segclean },			/* 186 = lfs_segclean */
    450      1.44   thorpej 	{ 2, s(struct sys_lfs_segwait_args), 0,
    451      1.30  drochner 	    sys_lfs_segwait },			/* 187 = lfs_segwait */
    452       1.1   mycroft #else
    453      1.44   thorpej 	{ 0, 0, 0,
    454       1.1   mycroft 	    sys_nosys },			/* 184 = unimplemented */
    455      1.44   thorpej 	{ 0, 0, 0,
    456       1.1   mycroft 	    sys_nosys },			/* 185 = unimplemented */
    457      1.44   thorpej 	{ 0, 0, 0,
    458       1.1   mycroft 	    sys_nosys },			/* 186 = unimplemented */
    459      1.44   thorpej 	{ 0, 0, 0,
    460       1.1   mycroft 	    sys_nosys },			/* 187 = unimplemented */
    461       1.1   mycroft #endif
    462      1.44   thorpej 	{ 2, s(struct freebsd_sys_stat_args), 0,
    463       1.1   mycroft 	    freebsd_sys_stat },			/* 188 = stat */
    464      1.44   thorpej 	{ 2, s(struct compat_12_sys_fstat_args), 0,
    465      1.13  christos 	    compat_12_sys_fstat },		/* 189 = fstat */
    466      1.44   thorpej 	{ 2, s(struct freebsd_sys_lstat_args), 0,
    467       1.1   mycroft 	    freebsd_sys_lstat },		/* 190 = lstat */
    468      1.44   thorpej 	{ 2, s(struct freebsd_sys_pathconf_args), 0,
    469       1.1   mycroft 	    freebsd_sys_pathconf },		/* 191 = pathconf */
    470      1.44   thorpej 	{ 2, s(struct sys_fpathconf_args), 0,
    471       1.1   mycroft 	    sys_fpathconf },			/* 192 = fpathconf */
    472      1.44   thorpej 	{ 0, 0, 0,
    473       1.1   mycroft 	    sys_nosys },			/* 193 = unimplemented */
    474      1.44   thorpej 	{ 2, s(struct sys_getrlimit_args), 0,
    475       1.1   mycroft 	    sys_getrlimit },			/* 194 = getrlimit */
    476      1.44   thorpej 	{ 2, s(struct sys_setrlimit_args), 0,
    477       1.1   mycroft 	    sys_setrlimit },			/* 195 = setrlimit */
    478      1.44   thorpej 	{ 4, s(struct compat_12_sys_getdirentries_args), 0,
    479       1.9      fvdl 	    compat_12_sys_getdirentries },	/* 196 = getdirentries */
    480      1.53     pooka 	{ 7, s(struct freebsd_sys_mmap_args), 0,
    481      1.53     pooka 	    freebsd_sys_mmap },			/* 197 = mmap */
    482      1.44   thorpej 	{ 0, 0, 0,
    483       1.1   mycroft 	    sys_nosys },			/* 198 = __syscall */
    484      1.44   thorpej 	{ 4, s(struct sys_lseek_args), 0,
    485       1.1   mycroft 	    sys_lseek },			/* 199 = lseek */
    486      1.44   thorpej 	{ 3, s(struct freebsd_sys_truncate_args), 0,
    487       1.1   mycroft 	    freebsd_sys_truncate },		/* 200 = truncate */
    488      1.44   thorpej 	{ 3, s(struct sys_ftruncate_args), 0,
    489       1.1   mycroft 	    sys_ftruncate },			/* 201 = ftruncate */
    490  1.58.6.1      yamt 	{ 6, s(struct freebsd_sys_sysctl_args), 0,
    491  1.58.6.1      yamt 	    freebsd_sys_sysctl },		/* 202 = sysctl */
    492      1.44   thorpej 	{ 2, s(struct sys_mlock_args), 0,
    493       1.1   mycroft 	    sys_mlock },			/* 203 = mlock */
    494      1.44   thorpej 	{ 2, s(struct sys_munlock_args), 0,
    495       1.1   mycroft 	    sys_munlock },			/* 204 = munlock */
    496       1.1   mycroft #ifdef FREEBSD_BASED_ON_44LITE_R2
    497      1.44   thorpej 	{ 1, s(struct freebsd_sys_undelete_args), 0,
    498       1.1   mycroft 	    freebsd_sys_undelete },		/* 205 = undelete */
    499       1.1   mycroft #else
    500      1.44   thorpej 	{ 0, 0, 0,
    501      1.34        tv 	    sys_nosys },			/* 205 = unimplemented undelete */
    502       1.1   mycroft #endif
    503      1.44   thorpej 	{ 2, s(struct sys_futimes_args), 0,
    504      1.29  christos 	    sys_futimes },			/* 206 = futimes */
    505      1.44   thorpej 	{ 1, s(struct sys_getpgid_args), 0,
    506      1.29  christos 	    sys_getpgid },			/* 207 = getpgid */
    507      1.29  christos #if 0
    508      1.44   thorpej 	{ 2, s(struct sys_reboot_args), 0,
    509      1.29  christos 	    sys_reboot },			/* 208 = reboot */
    510      1.29  christos #else
    511      1.44   thorpej 	{ 0, 0, 0,
    512      1.29  christos 	    sys_nosys },			/* 208 = unimplemented newreboot */
    513      1.29  christos #endif
    514      1.44   thorpej 	{ 3, s(struct sys_poll_args), 0,
    515      1.29  christos 	    sys_poll },				/* 209 = poll */
    516      1.44   thorpej 	{ 0, 0, 0,
    517       1.1   mycroft 	    sys_nosys },			/* 210 = unimplemented */
    518      1.44   thorpej 	{ 0, 0, 0,
    519       1.1   mycroft 	    sys_nosys },			/* 211 = unimplemented */
    520      1.44   thorpej 	{ 0, 0, 0,
    521       1.1   mycroft 	    sys_nosys },			/* 212 = unimplemented */
    522      1.44   thorpej 	{ 0, 0, 0,
    523       1.1   mycroft 	    sys_nosys },			/* 213 = unimplemented */
    524      1.44   thorpej 	{ 0, 0, 0,
    525       1.1   mycroft 	    sys_nosys },			/* 214 = unimplemented */
    526      1.44   thorpej 	{ 0, 0, 0,
    527       1.1   mycroft 	    sys_nosys },			/* 215 = unimplemented */
    528      1.44   thorpej 	{ 0, 0, 0,
    529       1.1   mycroft 	    sys_nosys },			/* 216 = unimplemented */
    530      1.44   thorpej 	{ 0, 0, 0,
    531       1.1   mycroft 	    sys_nosys },			/* 217 = unimplemented */
    532      1.44   thorpej 	{ 0, 0, 0,
    533       1.1   mycroft 	    sys_nosys },			/* 218 = unimplemented */
    534      1.44   thorpej 	{ 0, 0, 0,
    535       1.1   mycroft 	    sys_nosys },			/* 219 = unimplemented */
    536      1.29  christos #ifdef SYSVSEM
    537      1.44   thorpej 	{ 4, s(struct compat_14_sys___semctl_args), 0,
    538      1.32   thorpej 	    compat_14_sys___semctl },		/* 220 = __semctl */
    539      1.44   thorpej 	{ 3, s(struct sys_semget_args), 0,
    540      1.29  christos 	    sys_semget },			/* 221 = semget */
    541      1.44   thorpej 	{ 3, s(struct sys_semop_args), 0,
    542      1.29  christos 	    sys_semop },			/* 222 = semop */
    543      1.44   thorpej 	{ 1, s(struct sys_semconfig_args), 0,
    544      1.29  christos 	    sys_semconfig },			/* 223 = semconfig */
    545      1.29  christos #else
    546      1.44   thorpej 	{ 0, 0, 0,
    547      1.29  christos 	    sys_nosys },			/* 220 = unimplemented semctl */
    548      1.44   thorpej 	{ 0, 0, 0,
    549      1.29  christos 	    sys_nosys },			/* 221 = unimplemented semget */
    550      1.44   thorpej 	{ 0, 0, 0,
    551      1.29  christos 	    sys_nosys },			/* 222 = unimplemented semop */
    552      1.44   thorpej 	{ 0, 0, 0,
    553      1.29  christos 	    sys_nosys },			/* 223 = unimplemented semconfig */
    554      1.29  christos #endif
    555      1.29  christos #ifdef SYSVMSG
    556      1.44   thorpej 	{ 3, s(struct compat_14_sys_msgctl_args), 0,
    557      1.32   thorpej 	    compat_14_sys_msgctl },		/* 224 = msgctl */
    558      1.44   thorpej 	{ 2, s(struct sys_msgget_args), 0,
    559      1.29  christos 	    sys_msgget },			/* 225 = msgget */
    560      1.44   thorpej 	{ 4, s(struct sys_msgsnd_args), 0,
    561      1.29  christos 	    sys_msgsnd },			/* 226 = msgsnd */
    562      1.44   thorpej 	{ 5, s(struct sys_msgrcv_args), 0,
    563      1.29  christos 	    sys_msgrcv },			/* 227 = msgrcv */
    564      1.29  christos #else
    565      1.44   thorpej 	{ 0, 0, 0,
    566      1.29  christos 	    sys_nosys },			/* 224 = unimplemented msgctl */
    567      1.44   thorpej 	{ 0, 0, 0,
    568      1.29  christos 	    sys_nosys },			/* 225 = unimplemented msgget */
    569      1.44   thorpej 	{ 0, 0, 0,
    570      1.29  christos 	    sys_nosys },			/* 226 = unimplemented msgsnd */
    571      1.44   thorpej 	{ 0, 0, 0,
    572      1.29  christos 	    sys_nosys },			/* 227 = unimplemented msgrcv */
    573      1.29  christos #endif
    574      1.29  christos #ifdef SYSVSHM
    575      1.44   thorpej 	{ 3, s(struct sys_shmat_args), 0,
    576      1.29  christos 	    sys_shmat },			/* 228 = shmat */
    577      1.44   thorpej 	{ 3, s(struct compat_14_sys_shmctl_args), 0,
    578      1.32   thorpej 	    compat_14_sys_shmctl },		/* 229 = shmctl */
    579      1.44   thorpej 	{ 1, s(struct sys_shmdt_args), 0,
    580      1.29  christos 	    sys_shmdt },			/* 230 = shmdt */
    581      1.44   thorpej 	{ 3, s(struct sys_shmget_args), 0,
    582      1.29  christos 	    sys_shmget },			/* 231 = shmget */
    583      1.29  christos #else
    584      1.44   thorpej 	{ 0, 0, 0,
    585      1.29  christos 	    sys_nosys },			/* 228 = unimplemented shmat */
    586      1.44   thorpej 	{ 0, 0, 0,
    587      1.29  christos 	    sys_nosys },			/* 229 = unimplemented shmctl */
    588      1.44   thorpej 	{ 0, 0, 0,
    589      1.29  christos 	    sys_nosys },			/* 230 = unimplemented shmdt */
    590      1.44   thorpej 	{ 0, 0, 0,
    591      1.29  christos 	    sys_nosys },			/* 231 = unimplemented shmget */
    592      1.29  christos #endif
    593      1.44   thorpej 	{ 2, s(struct sys_clock_gettime_args), 0,
    594      1.29  christos 	    sys_clock_gettime },		/* 232 = clock_gettime */
    595      1.44   thorpej 	{ 2, s(struct sys_clock_settime_args), 0,
    596      1.29  christos 	    sys_clock_settime },		/* 233 = clock_settime */
    597      1.44   thorpej 	{ 2, s(struct sys_clock_getres_args), 0,
    598      1.29  christos 	    sys_clock_getres },			/* 234 = clock_getres */
    599      1.44   thorpej 	{ 0, 0, 0,
    600      1.29  christos 	    sys_nosys },			/* 235 = unimplemented timer_create */
    601      1.44   thorpej 	{ 0, 0, 0,
    602      1.29  christos 	    sys_nosys },			/* 236 = unimplemented timer_delete */
    603      1.44   thorpej 	{ 0, 0, 0,
    604      1.29  christos 	    sys_nosys },			/* 237 = unimplemented timer_settime */
    605      1.44   thorpej 	{ 0, 0, 0,
    606      1.29  christos 	    sys_nosys },			/* 238 = unimplemented timer_gettime */
    607      1.44   thorpej 	{ 0, 0, 0,
    608      1.29  christos 	    sys_nosys },			/* 239 = unimplemented timer_getoverrun */
    609      1.44   thorpej 	{ 2, s(struct sys_nanosleep_args), 0,
    610      1.29  christos 	    sys_nanosleep },			/* 240 = nanosleep */
    611      1.44   thorpej 	{ 0, 0, 0,
    612      1.10     enami 	    sys_nosys },			/* 241 = unimplemented */
    613      1.44   thorpej 	{ 0, 0, 0,
    614      1.10     enami 	    sys_nosys },			/* 242 = unimplemented */
    615      1.44   thorpej 	{ 0, 0, 0,
    616      1.10     enami 	    sys_nosys },			/* 243 = unimplemented */
    617      1.44   thorpej 	{ 0, 0, 0,
    618      1.10     enami 	    sys_nosys },			/* 244 = unimplemented */
    619      1.44   thorpej 	{ 0, 0, 0,
    620      1.10     enami 	    sys_nosys },			/* 245 = unimplemented */
    621      1.44   thorpej 	{ 0, 0, 0,
    622      1.10     enami 	    sys_nosys },			/* 246 = unimplemented */
    623      1.44   thorpej 	{ 0, 0, 0,
    624      1.10     enami 	    sys_nosys },			/* 247 = unimplemented */
    625      1.44   thorpej 	{ 0, 0, 0,
    626      1.10     enami 	    sys_nosys },			/* 248 = unimplemented */
    627      1.44   thorpej 	{ 0, 0, 0,
    628      1.10     enami 	    sys_nosys },			/* 249 = unimplemented */
    629      1.46  jdolecek 	{ 3, s(struct sys_minherit_args), 0,
    630      1.46  jdolecek 	    sys_minherit },			/* 250 = minherit */
    631      1.49     pooka 	{ 1, s(struct freebsd_sys_rfork_args), 0,
    632      1.49     pooka 	    freebsd_sys_rfork },		/* 251 = rfork */
    633      1.44   thorpej 	{ 0, 0, 0,
    634      1.29  christos 	    sys_nosys },			/* 252 = unimplemented openbsd_poll */
    635      1.44   thorpej 	{ 0, 0, 0,
    636      1.33   minoura 	    sys_issetugid },			/* 253 = issetugid */
    637      1.44   thorpej 	{ 3, s(struct freebsd_sys_lchown_args), 0,
    638      1.10     enami 	    freebsd_sys_lchown },		/* 254 = lchown */
    639      1.44   thorpej 	{ 0, 0, 0,
    640      1.29  christos 	    sys_nosys },			/* 255 = unimplemented */
    641      1.44   thorpej 	{ 0, 0, 0,
    642      1.29  christos 	    sys_nosys },			/* 256 = unimplemented */
    643      1.44   thorpej 	{ 0, 0, 0,
    644      1.29  christos 	    sys_nosys },			/* 257 = unimplemented */
    645      1.44   thorpej 	{ 0, 0, 0,
    646      1.29  christos 	    sys_nosys },			/* 258 = unimplemented */
    647      1.44   thorpej 	{ 0, 0, 0,
    648      1.29  christos 	    sys_nosys },			/* 259 = unimplemented */
    649      1.44   thorpej 	{ 0, 0, 0,
    650      1.29  christos 	    sys_nosys },			/* 260 = unimplemented */
    651      1.44   thorpej 	{ 0, 0, 0,
    652      1.29  christos 	    sys_nosys },			/* 261 = unimplemented */
    653      1.44   thorpej 	{ 0, 0, 0,
    654      1.29  christos 	    sys_nosys },			/* 262 = unimplemented */
    655      1.44   thorpej 	{ 0, 0, 0,
    656      1.29  christos 	    sys_nosys },			/* 263 = unimplemented */
    657      1.44   thorpej 	{ 0, 0, 0,
    658      1.29  christos 	    sys_nosys },			/* 264 = unimplemented */
    659      1.44   thorpej 	{ 0, 0, 0,
    660      1.29  christos 	    sys_nosys },			/* 265 = unimplemented */
    661      1.44   thorpej 	{ 0, 0, 0,
    662      1.29  christos 	    sys_nosys },			/* 266 = unimplemented */
    663      1.44   thorpej 	{ 0, 0, 0,
    664      1.29  christos 	    sys_nosys },			/* 267 = unimplemented */
    665      1.44   thorpej 	{ 0, 0, 0,
    666      1.29  christos 	    sys_nosys },			/* 268 = unimplemented */
    667      1.44   thorpej 	{ 0, 0, 0,
    668      1.29  christos 	    sys_nosys },			/* 269 = unimplemented */
    669      1.44   thorpej 	{ 0, 0, 0,
    670      1.29  christos 	    sys_nosys },			/* 270 = unimplemented */
    671      1.44   thorpej 	{ 0, 0, 0,
    672      1.29  christos 	    sys_nosys },			/* 271 = unimplemented */
    673      1.44   thorpej 	{ 3, s(struct sys_getdents_args), 0,
    674      1.29  christos 	    sys_getdents },			/* 272 = getdents */
    675      1.44   thorpej 	{ 0, 0, 0,
    676      1.29  christos 	    sys_nosys },			/* 273 = unimplemented */
    677      1.44   thorpej 	{ 2, s(struct sys_lchmod_args), 0,
    678      1.29  christos 	    sys_lchmod },			/* 274 = lchmod */
    679      1.44   thorpej 	{ 3, s(struct sys_lchown_args), 0,
    680      1.29  christos 	    sys_lchown },			/* 275 = netbsd_lchown */
    681      1.44   thorpej 	{ 2, s(struct sys_lutimes_args), 0,
    682      1.29  christos 	    sys_lutimes },			/* 276 = lutimes */
    683      1.44   thorpej 	{ 3, s(struct sys___msync13_args), 0,
    684      1.29  christos 	    sys___msync13 },			/* 277 = __msync13 */
    685      1.44   thorpej 	{ 2, s(struct sys___stat13_args), 0,
    686      1.29  christos 	    sys___stat13 },			/* 278 = __stat13 */
    687      1.44   thorpej 	{ 2, s(struct sys___fstat13_args), 0,
    688      1.29  christos 	    sys___fstat13 },			/* 279 = __fstat13 */
    689      1.44   thorpej 	{ 2, s(struct sys___lstat13_args), 0,
    690      1.29  christos 	    sys___lstat13 },			/* 280 = __lstat13 */
    691      1.44   thorpej 	{ 0, 0, 0,
    692      1.29  christos 	    sys_nosys },			/* 281 = unimplemented */
    693      1.44   thorpej 	{ 0, 0, 0,
    694      1.29  christos 	    sys_nosys },			/* 282 = unimplemented */
    695      1.44   thorpej 	{ 0, 0, 0,
    696      1.29  christos 	    sys_nosys },			/* 283 = unimplemented */
    697      1.44   thorpej 	{ 0, 0, 0,
    698      1.29  christos 	    sys_nosys },			/* 284 = unimplemented */
    699      1.44   thorpej 	{ 0, 0, 0,
    700      1.29  christos 	    sys_nosys },			/* 285 = unimplemented */
    701      1.44   thorpej 	{ 0, 0, 0,
    702      1.29  christos 	    sys_nosys },			/* 286 = unimplemented */
    703      1.44   thorpej 	{ 0, 0, 0,
    704      1.29  christos 	    sys_nosys },			/* 287 = unimplemented */
    705      1.44   thorpej 	{ 0, 0, 0,
    706      1.29  christos 	    sys_nosys },			/* 288 = unimplemented */
    707      1.44   thorpej 	{ 0, 0, 0,
    708      1.29  christos 	    sys_nosys },			/* 289 = unimplemented */
    709      1.44   thorpej 	{ 0, 0, 0,
    710      1.29  christos 	    sys_nosys },			/* 290 = unimplemented */
    711      1.44   thorpej 	{ 0, 0, 0,
    712      1.29  christos 	    sys_nosys },			/* 291 = unimplemented */
    713      1.44   thorpej 	{ 0, 0, 0,
    714      1.29  christos 	    sys_nosys },			/* 292 = unimplemented */
    715      1.44   thorpej 	{ 0, 0, 0,
    716      1.29  christos 	    sys_nosys },			/* 293 = unimplemented */
    717      1.44   thorpej 	{ 0, 0, 0,
    718      1.29  christos 	    sys_nosys },			/* 294 = unimplemented */
    719      1.44   thorpej 	{ 0, 0, 0,
    720      1.29  christos 	    sys_nosys },			/* 295 = unimplemented */
    721      1.44   thorpej 	{ 0, 0, 0,
    722      1.29  christos 	    sys_nosys },			/* 296 = unimplemented */
    723      1.56  christos 	{ 2, s(struct compat_20_sys_fhstatfs_args), 0,
    724      1.56  christos 	    compat_20_sys_fhstatfs },		/* 297 = fhstatfs */
    725      1.46  jdolecek 	{ 2, s(struct sys_fhopen_args), 0,
    726      1.46  jdolecek 	    sys_fhopen },			/* 298 = fhopen */
    727      1.46  jdolecek 	{ 2, s(struct sys_fhstat_args), 0,
    728      1.46  jdolecek 	    sys_fhstat },			/* 299 = fhstat */
    729      1.44   thorpej 	{ 0, 0, 0,
    730      1.29  christos 	    sys_nosys },			/* 300 = unimplemented modnext */
    731      1.44   thorpej 	{ 0, 0, 0,
    732      1.29  christos 	    sys_nosys },			/* 301 = unimplemented modstat */
    733      1.44   thorpej 	{ 0, 0, 0,
    734      1.29  christos 	    sys_nosys },			/* 302 = unimplemented modfnext */
    735      1.44   thorpej 	{ 0, 0, 0,
    736      1.29  christos 	    sys_nosys },			/* 303 = unimplemented modfind */
    737      1.44   thorpej 	{ 0, 0, 0,
    738      1.29  christos 	    sys_nosys },			/* 304 = unimplemented kldload */
    739      1.44   thorpej 	{ 0, 0, 0,
    740      1.29  christos 	    sys_nosys },			/* 305 = unimplemented kldunload */
    741      1.44   thorpej 	{ 0, 0, 0,
    742      1.29  christos 	    sys_nosys },			/* 306 = unimplemented kldfind */
    743      1.44   thorpej 	{ 0, 0, 0,
    744      1.29  christos 	    sys_nosys },			/* 307 = unimplemented kldnext */
    745      1.44   thorpej 	{ 0, 0, 0,
    746      1.29  christos 	    sys_nosys },			/* 308 = unimplemented kldstat */
    747      1.44   thorpej 	{ 0, 0, 0,
    748      1.29  christos 	    sys_nosys },			/* 309 = unimplemented kldfirstmod */
    749      1.44   thorpej 	{ 1, s(struct sys_getsid_args), 0,
    750      1.34        tv 	    sys_getsid },			/* 310 = getsid */
    751      1.44   thorpej 	{ 0, 0, 0,
    752      1.29  christos 	    sys_nosys },			/* 311 = unimplemented setresuid */
    753      1.44   thorpej 	{ 0, 0, 0,
    754      1.29  christos 	    sys_nosys },			/* 312 = unimplemented setresgid */
    755      1.44   thorpej 	{ 0, 0, 0,
    756      1.29  christos 	    sys_nosys },			/* 313 = unimplemented signanosleep */
    757      1.44   thorpej 	{ 0, 0, 0,
    758      1.29  christos 	    sys_nosys },			/* 314 = unimplemented aio_return */
    759      1.44   thorpej 	{ 0, 0, 0,
    760      1.29  christos 	    sys_nosys },			/* 315 = unimplemented aio_suspend */
    761      1.44   thorpej 	{ 0, 0, 0,
    762      1.29  christos 	    sys_nosys },			/* 316 = unimplemented aio_cancel */
    763      1.44   thorpej 	{ 0, 0, 0,
    764      1.29  christos 	    sys_nosys },			/* 317 = unimplemented aio_error */
    765      1.44   thorpej 	{ 0, 0, 0,
    766      1.29  christos 	    sys_nosys },			/* 318 = unimplemented aio_read */
    767      1.44   thorpej 	{ 0, 0, 0,
    768      1.29  christos 	    sys_nosys },			/* 319 = unimplemented aio_write */
    769      1.44   thorpej 	{ 0, 0, 0,
    770      1.29  christos 	    sys_nosys },			/* 320 = unimplemented lio_listio */
    771      1.44   thorpej 	{ 0, 0, 0,
    772      1.50  gmcgarry 	    freebsd_sys_yield },		/* 321 = yield */
    773      1.44   thorpej 	{ 0, 0, 0,
    774      1.29  christos 	    sys_nosys },			/* 322 = unimplemented thr_sleep */
    775      1.44   thorpej 	{ 0, 0, 0,
    776      1.29  christos 	    sys_nosys },			/* 323 = unimplemented thr_wakeup */
    777      1.44   thorpej 	{ 1, s(struct sys_mlockall_args), 0,
    778      1.34        tv 	    sys_mlockall },			/* 324 = mlockall */
    779      1.44   thorpej 	{ 0, 0, 0,
    780      1.34        tv 	    sys_munlockall },			/* 325 = munlockall */
    781      1.44   thorpej 	{ 2, s(struct sys___getcwd_args), 0,
    782      1.34        tv 	    sys___getcwd },			/* 326 = __getcwd */
    783      1.50  gmcgarry 	{ 2, s(struct freebsd_sys_sched_setparam_args), 0,
    784      1.50  gmcgarry 	    freebsd_sys_sched_setparam },	/* 327 = sched_setparam */
    785      1.50  gmcgarry 	{ 2, s(struct freebsd_sys_sched_getparam_args), 0,
    786      1.50  gmcgarry 	    freebsd_sys_sched_getparam },	/* 328 = sched_getparam */
    787      1.50  gmcgarry 	{ 3, s(struct freebsd_sys_sched_setscheduler_args), 0,
    788      1.50  gmcgarry 	    freebsd_sys_sched_setscheduler },	/* 329 = sched_setscheduler */
    789      1.50  gmcgarry 	{ 1, s(struct freebsd_sys_sched_getscheduler_args), 0,
    790      1.50  gmcgarry 	    freebsd_sys_sched_getscheduler },	/* 330 = sched_getscheduler */
    791      1.50  gmcgarry 	{ 0, 0, 0,
    792      1.50  gmcgarry 	    freebsd_sys_sched_yield },		/* 331 = sched_yield */
    793      1.50  gmcgarry 	{ 1, s(struct freebsd_sys_sched_get_priority_max_args), 0,
    794      1.50  gmcgarry 	    freebsd_sys_sched_get_priority_max },/* 332 = sched_get_priority_max */
    795      1.50  gmcgarry 	{ 1, s(struct freebsd_sys_sched_get_priority_min_args), 0,
    796      1.50  gmcgarry 	    freebsd_sys_sched_get_priority_min },/* 333 = sched_get_priority_min */
    797      1.44   thorpej 	{ 0, 0, 0,
    798      1.29  christos 	    sys_nosys },			/* 334 = unimplemented sched_rr_get_interval */
    799      1.44   thorpej 	{ 2, s(struct freebsd_sys_utrace_args), 0,
    800      1.43  jdolecek 	    freebsd_sys_utrace },		/* 335 = utrace */
    801      1.44   thorpej 	{ 0, 0, 0,
    802      1.29  christos 	    sys_nosys },			/* 336 = unimplemented sendfile */
    803      1.44   thorpej 	{ 0, 0, 0,
    804      1.29  christos 	    sys_nosys },			/* 337 = unimplemented kldsym */
    805      1.44   thorpej 	{ 0, 0, 0,
    806      1.34        tv 	    sys_nosys },			/* 338 = unimplemented jail */
    807      1.44   thorpej 	{ 0, 0, 0,
    808      1.34        tv 	    sys_nosys },			/* 339 = unimplemented pioctl */
    809      1.44   thorpej 	{ 3, s(struct sys___sigprocmask14_args), 0,
    810      1.35      onoe 	    sys___sigprocmask14 },		/* 340 = __sigprocmask14 */
    811      1.44   thorpej 	{ 1, s(struct sys___sigsuspend14_args), 0,
    812      1.35      onoe 	    sys___sigsuspend14 },		/* 341 = __sigsuspend14 */
    813      1.44   thorpej 	{ 3, s(struct freebsd_sys_sigaction4_args), 0,
    814      1.35      onoe 	    freebsd_sys_sigaction4 },		/* 342 = sigaction4 */
    815      1.44   thorpej 	{ 1, s(struct sys___sigpending14_args), 0,
    816      1.35      onoe 	    sys___sigpending14 },		/* 343 = __sigpending14 */
    817      1.44   thorpej 	{ 0, 0, 0,
    818      1.34        tv 	    sys_nosys },			/* 344 = unimplemented 4.0 sigreturn */
    819      1.44   thorpej 	{ 0, 0, 0,
    820      1.34        tv 	    sys_nosys },			/* 345 = unimplemented sigtimedwait */
    821      1.44   thorpej 	{ 0, 0, 0,
    822      1.34        tv 	    sys_nosys },			/* 346 = unimplemented sigwaitinfo */
    823      1.44   thorpej 	{ 0, 0, 0,
    824      1.34        tv 	    sys_nosys },			/* 347 = unimplemented __acl_get_file */
    825      1.44   thorpej 	{ 0, 0, 0,
    826      1.34        tv 	    sys_nosys },			/* 348 = unimplemented __acl_set_file */
    827      1.44   thorpej 	{ 0, 0, 0,
    828      1.34        tv 	    sys_nosys },			/* 349 = unimplemented __acl_get_fd */
    829      1.44   thorpej 	{ 0, 0, 0,
    830      1.34        tv 	    sys_nosys },			/* 350 = unimplemented __acl_set_fd */
    831      1.44   thorpej 	{ 0, 0, 0,
    832      1.34        tv 	    sys_nosys },			/* 351 = unimplemented __acl_delete_file */
    833      1.44   thorpej 	{ 0, 0, 0,
    834      1.34        tv 	    sys_nosys },			/* 352 = unimplemented __acl_delete_fd */
    835      1.44   thorpej 	{ 0, 0, 0,
    836      1.34        tv 	    sys_nosys },			/* 353 = unimplemented __acl_aclcheck_file */
    837      1.44   thorpej 	{ 0, 0, 0,
    838      1.34        tv 	    sys_nosys },			/* 354 = unimplemented __acl_aclcheck_fd */
    839      1.44   thorpej 	{ 0, 0, 0,
    840      1.34        tv 	    sys_nosys },			/* 355 = unimplemented extattrctl */
    841      1.44   thorpej 	{ 0, 0, 0,
    842      1.34        tv 	    sys_nosys },			/* 356 = unimplemented extattr_set_file */
    843      1.44   thorpej 	{ 0, 0, 0,
    844      1.34        tv 	    sys_nosys },			/* 357 = unimplemented extattr_get_file */
    845      1.44   thorpej 	{ 0, 0, 0,
    846      1.34        tv 	    sys_nosys },			/* 358 = unimplemented extattr_delete_file */
    847      1.44   thorpej 	{ 0, 0, 0,
    848      1.34        tv 	    sys_nosys },			/* 359 = unimplemented aio_waitcomplete */
    849      1.44   thorpej 	{ 0, 0, 0,
    850      1.34        tv 	    sys_nosys },			/* 360 = unimplemented getresuid */
    851      1.44   thorpej 	{ 0, 0, 0,
    852      1.34        tv 	    sys_nosys },			/* 361 = unimplemented getresgid */
    853      1.44   thorpej 	{ 0, 0, 0,
    854      1.34        tv 	    sys_nosys },			/* 362 = unimplemented kqueue */
    855      1.44   thorpej 	{ 0, 0, 0,
    856      1.34        tv 	    sys_nosys },			/* 363 = unimplemented kevent */
    857      1.44   thorpej 	{ 0, 0, 0,
    858      1.54  jdolecek 	    sys_nosys },			/* 364 = unimplemented __cap_get_proc */
    859      1.44   thorpej 	{ 0, 0, 0,
    860      1.54  jdolecek 	    sys_nosys },			/* 365 = unimplemented __cap_set_proc */
    861      1.44   thorpej 	{ 0, 0, 0,
    862      1.54  jdolecek 	    sys_nosys },			/* 366 = unimplemented __cap_get_fd */
    863      1.44   thorpej 	{ 0, 0, 0,
    864      1.54  jdolecek 	    sys_nosys },			/* 367 = unimplemented __cap_get_file */
    865      1.44   thorpej 	{ 0, 0, 0,
    866      1.54  jdolecek 	    sys_nosys },			/* 368 = unimplemented __cap_set_fd */
    867      1.44   thorpej 	{ 0, 0, 0,
    868      1.54  jdolecek 	    sys_nosys },			/* 369 = unimplemented __cap_set_file */
    869      1.44   thorpej 	{ 0, 0, 0,
    870      1.54  jdolecek 	    sys_nosys },			/* 370 = unimplemented lkmressym */
    871      1.44   thorpej 	{ 0, 0, 0,
    872      1.54  jdolecek 	    sys_nosys },			/* 371 = unimplemented extattr_set_fd */
    873      1.44   thorpej 	{ 0, 0, 0,
    874      1.54  jdolecek 	    sys_nosys },			/* 372 = unimplemented extattr_get_fd */
    875      1.44   thorpej 	{ 0, 0, 0,
    876      1.54  jdolecek 	    sys_nosys },			/* 373 = unimplemented extattr_delete_fd */
    877      1.44   thorpej 	{ 0, 0, 0,
    878      1.54  jdolecek 	    sys_nosys },			/* 374 = unimplemented __setugid */
    879      1.44   thorpej 	{ 0, 0, 0,
    880      1.54  jdolecek 	    sys_nosys },			/* 375 = unimplemented nfsclnt */
    881      1.44   thorpej 	{ 0, 0, 0,
    882      1.54  jdolecek 	    sys_nosys },			/* 376 = unimplemented eaccess */
    883      1.44   thorpej 	{ 0, 0, 0,
    884      1.54  jdolecek 	    sys_nosys },			/* 377 = unimplemented afs_syscall */
    885      1.44   thorpej 	{ 0, 0, 0,
    886      1.54  jdolecek 	    sys_nosys },			/* 378 = unimplemented nmount */
    887      1.44   thorpej 	{ 0, 0, 0,
    888      1.54  jdolecek 	    sys_nosys },			/* 379 = unimplemented kse_exit */
    889      1.44   thorpej 	{ 0, 0, 0,
    890      1.54  jdolecek 	    sys_nosys },			/* 380 = unimplemented kse_wakeup */
    891      1.44   thorpej 	{ 0, 0, 0,
    892      1.54  jdolecek 	    sys_nosys },			/* 381 = unimplemented kse_create */
    893      1.44   thorpej 	{ 0, 0, 0,
    894      1.54  jdolecek 	    sys_nosys },			/* 382 = unimplemented kse_thr_interrupt */
    895      1.44   thorpej 	{ 0, 0, 0,
    896      1.54  jdolecek 	    sys_nosys },			/* 383 = unimplemented kse_release */
    897      1.44   thorpej 	{ 0, 0, 0,
    898      1.54  jdolecek 	    sys_nosys },			/* 384 = unimplemented __mac_get_proc */
    899      1.44   thorpej 	{ 0, 0, 0,
    900      1.54  jdolecek 	    sys_nosys },			/* 385 = unimplemented __mac_set_proc */
    901      1.44   thorpej 	{ 0, 0, 0,
    902      1.54  jdolecek 	    sys_nosys },			/* 386 = unimplemented __mac_get_fd */
    903      1.44   thorpej 	{ 0, 0, 0,
    904      1.54  jdolecek 	    sys_nosys },			/* 387 = unimplemented __mac_get_file */
    905      1.44   thorpej 	{ 0, 0, 0,
    906      1.54  jdolecek 	    sys_nosys },			/* 388 = unimplemented __mac_set_fd */
    907      1.44   thorpej 	{ 0, 0, 0,
    908      1.54  jdolecek 	    sys_nosys },			/* 389 = unimplemented __mac_set_file */
    909      1.44   thorpej 	{ 0, 0, 0,
    910      1.54  jdolecek 	    sys_nosys },			/* 390 = unimplemented kenv */
    911      1.54  jdolecek 	{ 2, s(struct sys_lchflags_args), 0,
    912      1.54  jdolecek 	    sys_lchflags },			/* 391 = lchflags */
    913      1.55    tsarna 	{ 2, s(struct sys_uuidgen_args), 0,
    914      1.55    tsarna 	    sys_uuidgen },			/* 392 = uuidgen */
    915      1.44   thorpej 	{ 0, 0, 0,
    916      1.54  jdolecek 	    sys_nosys },			/* 393 = unimplemented sendfile */
    917      1.44   thorpej 	{ 0, 0, 0,
    918      1.54  jdolecek 	    sys_nosys },			/* 394 = unimplemented mac_syscall */
    919      1.44   thorpej 	{ 0, 0, 0,
    920      1.54  jdolecek 	    sys_nosys },			/* 395 = unimplemented getfsstat */
    921      1.44   thorpej 	{ 0, 0, 0,
    922      1.54  jdolecek 	    sys_nosys },			/* 396 = unimplemented statfs */
    923      1.44   thorpej 	{ 0, 0, 0,
    924      1.54  jdolecek 	    sys_nosys },			/* 397 = unimplemented fsstatfs */
    925      1.44   thorpej 	{ 0, 0, 0,
    926      1.54  jdolecek 	    sys_nosys },			/* 398 = unimplemented fhstatfs */
    927      1.44   thorpej 	{ 0, 0, 0,
    928      1.54  jdolecek 	    sys_nosys },			/* 399 = unimplemented nosys */
    929      1.54  jdolecek #if defined(P1003_1B_SEMAPHORE) || !defined(_KERNEL)
    930      1.54  jdolecek 	{ 1, s(struct sys__ksem_close_args), 0,
    931      1.54  jdolecek 	    sys__ksem_close },			/* 400 = _ksem_close */
    932      1.54  jdolecek 	{ 1, s(struct sys__ksem_post_args), 0,
    933      1.54  jdolecek 	    sys__ksem_post },			/* 401 = _ksem_post */
    934      1.54  jdolecek 	{ 1, s(struct sys__ksem_wait_args), 0,
    935      1.54  jdolecek 	    sys__ksem_wait },			/* 402 = _ksem_wait */
    936      1.54  jdolecek 	{ 1, s(struct sys__ksem_trywait_args), 0,
    937      1.54  jdolecek 	    sys__ksem_trywait },		/* 403 = _ksem_trywait */
    938      1.44   thorpej 	{ 0, 0, 0,
    939      1.54  jdolecek 	    sys_nosys },			/* 404 = unimplemented ksem_init */
    940      1.44   thorpej 	{ 0, 0, 0,
    941      1.54  jdolecek 	    sys_nosys },			/* 405 = unimplemented ksem_open */
    942      1.54  jdolecek 	{ 1, s(struct sys__ksem_unlink_args), 0,
    943      1.54  jdolecek 	    sys__ksem_unlink },			/* 406 = _ksem_unlink */
    944      1.54  jdolecek 	{ 2, s(struct sys__ksem_getvalue_args), 0,
    945      1.54  jdolecek 	    sys__ksem_getvalue },		/* 407 = _ksem_getvalue */
    946      1.54  jdolecek 	{ 1, s(struct sys__ksem_destroy_args), 0,
    947      1.54  jdolecek 	    sys__ksem_destroy },		/* 408 = _ksem_destroy */
    948      1.54  jdolecek #else
    949      1.54  jdolecek 	{ 0, 0, 0,
    950      1.54  jdolecek 	    sys_nosys },			/* 400 = excluded ksem_close */
    951      1.44   thorpej 	{ 0, 0, 0,
    952      1.54  jdolecek 	    sys_nosys },			/* 401 = excluded ksem_post */
    953      1.44   thorpej 	{ 0, 0, 0,
    954      1.54  jdolecek 	    sys_nosys },			/* 402 = excluded ksem_wait */
    955      1.44   thorpej 	{ 0, 0, 0,
    956      1.54  jdolecek 	    sys_nosys },			/* 403 = excluded ksem_trywait */
    957      1.44   thorpej 	{ 0, 0, 0,
    958      1.54  jdolecek 	    sys_nosys },			/* 404 = excluded ksem_init */
    959      1.44   thorpej 	{ 0, 0, 0,
    960      1.54  jdolecek 	    sys_nosys },			/* 405 = excluded ksem_open */
    961      1.44   thorpej 	{ 0, 0, 0,
    962      1.54  jdolecek 	    sys_nosys },			/* 406 = excluded ksem_unlink */
    963      1.44   thorpej 	{ 0, 0, 0,
    964      1.54  jdolecek 	    sys_nosys },			/* 407 = excluded ksem_getvalue */
    965      1.44   thorpej 	{ 0, 0, 0,
    966      1.54  jdolecek 	    sys_nosys },			/* 408 = excluded ksem_destroy */
    967      1.54  jdolecek #endif
    968      1.44   thorpej 	{ 0, 0, 0,
    969      1.54  jdolecek 	    sys_nosys },			/* 409 = unimplemented __mac_get_pid */
    970      1.44   thorpej 	{ 0, 0, 0,
    971      1.54  jdolecek 	    sys_nosys },			/* 410 = unimplemented __mac_get_link */
    972      1.44   thorpej 	{ 0, 0, 0,
    973      1.54  jdolecek 	    sys_nosys },			/* 411 = unimplemented __mac_set_link */
    974      1.44   thorpej 	{ 0, 0, 0,
    975      1.54  jdolecek 	    sys_nosys },			/* 412 = unimplemented extattr_set_link */
    976      1.44   thorpej 	{ 0, 0, 0,
    977      1.54  jdolecek 	    sys_nosys },			/* 413 = unimplemented extattr_get_link */
    978      1.44   thorpej 	{ 0, 0, 0,
    979      1.54  jdolecek 	    sys_nosys },			/* 414 = unimplemented extattr_delete_link */
    980      1.44   thorpej 	{ 0, 0, 0,
    981      1.54  jdolecek 	    sys_nosys },			/* 415 = unimplemented __mac_execve */
    982      1.44   thorpej 	{ 0, 0, 0,
    983      1.54  jdolecek 	    sys_nosys },			/* 416 = unimplemented sigaction */
    984      1.44   thorpej 	{ 0, 0, 0,
    985      1.54  jdolecek 	    sys_nosys },			/* 417 = unimplemented sigreturn */
    986      1.44   thorpej 	{ 0, 0, 0,
    987      1.54  jdolecek 	    sys_nosys },			/* 418 = unimplemented __xstat */
    988      1.44   thorpej 	{ 0, 0, 0,
    989      1.54  jdolecek 	    sys_nosys },			/* 419 = unimplemented __xfstat */
    990      1.44   thorpej 	{ 0, 0, 0,
    991      1.54  jdolecek 	    sys_nosys },			/* 420 = unimplemented __xlstat */
    992      1.44   thorpej 	{ 0, 0, 0,
    993      1.54  jdolecek 	    sys_nosys },			/* 421 = unimplemented getcontext */
    994      1.44   thorpej 	{ 0, 0, 0,
    995      1.54  jdolecek 	    sys_nosys },			/* 422 = unimplemented setcontext */
    996      1.44   thorpej 	{ 0, 0, 0,
    997      1.54  jdolecek 	    sys_nosys },			/* 423 = unimplemented swapcontext */
    998      1.44   thorpej 	{ 0, 0, 0,
    999      1.54  jdolecek 	    sys_nosys },			/* 424 = unimplemented swapoff */
   1000      1.44   thorpej 	{ 0, 0, 0,
   1001      1.54  jdolecek 	    sys_nosys },			/* 425 = unimplemented __acl_get_link */
   1002      1.44   thorpej 	{ 0, 0, 0,
   1003      1.54  jdolecek 	    sys_nosys },			/* 426 = unimplemented __acl_set_link */
   1004      1.44   thorpej 	{ 0, 0, 0,
   1005      1.54  jdolecek 	    sys_nosys },			/* 427 = unimplemented __acl_delete_link */
   1006      1.44   thorpej 	{ 0, 0, 0,
   1007      1.54  jdolecek 	    sys_nosys },			/* 428 = unimplemented __acl_aclcheck_link */
   1008      1.44   thorpej 	{ 0, 0, 0,
   1009      1.54  jdolecek 	    sys_nosys },			/* 429 = unimplemented sigwait */
   1010      1.44   thorpej 	{ 0, 0, 0,
   1011      1.54  jdolecek 	    sys_nosys },			/* 430 = unimplemented thr_create */
   1012      1.44   thorpej 	{ 0, 0, 0,
   1013      1.54  jdolecek 	    sys_nosys },			/* 431 = unimplemented thr_exit */
   1014      1.44   thorpej 	{ 0, 0, 0,
   1015      1.54  jdolecek 	    sys_nosys },			/* 432 = unimplemented thr_self */
   1016      1.44   thorpej 	{ 0, 0, 0,
   1017      1.54  jdolecek 	    sys_nosys },			/* 433 = unimplemented thr_kill */
   1018      1.44   thorpej 	{ 0, 0, 0,
   1019      1.54  jdolecek 	    sys_nosys },			/* 434 = unimplemented _umtx_lock */
   1020      1.44   thorpej 	{ 0, 0, 0,
   1021      1.54  jdolecek 	    sys_nosys },			/* 435 = unimplemented _umtx_unlock */
   1022      1.44   thorpej 	{ 0, 0, 0,
   1023      1.54  jdolecek 	    sys_nosys },			/* 436 = unimplemented jail_attach */
   1024      1.44   thorpej 	{ 0, 0, 0,
   1025      1.54  jdolecek 	    sys_nosys },			/* 437 = unimplemented extattr_list_fd */
   1026      1.44   thorpej 	{ 0, 0, 0,
   1027      1.54  jdolecek 	    sys_nosys },			/* 438 = unimplemented extattr_list_file */
   1028      1.44   thorpej 	{ 0, 0, 0,
   1029      1.54  jdolecek 	    sys_nosys },			/* 439 = unimplemented extattr_list_link */
   1030      1.44   thorpej 	{ 0, 0, 0,
   1031      1.41   mycroft 	    sys_nosys },			/* 440 = filler */
   1032      1.44   thorpej 	{ 0, 0, 0,
   1033      1.41   mycroft 	    sys_nosys },			/* 441 = filler */
   1034      1.44   thorpej 	{ 0, 0, 0,
   1035      1.41   mycroft 	    sys_nosys },			/* 442 = filler */
   1036      1.44   thorpej 	{ 0, 0, 0,
   1037      1.41   mycroft 	    sys_nosys },			/* 443 = filler */
   1038      1.44   thorpej 	{ 0, 0, 0,
   1039      1.41   mycroft 	    sys_nosys },			/* 444 = filler */
   1040      1.44   thorpej 	{ 0, 0, 0,
   1041      1.41   mycroft 	    sys_nosys },			/* 445 = filler */
   1042      1.44   thorpej 	{ 0, 0, 0,
   1043      1.41   mycroft 	    sys_nosys },			/* 446 = filler */
   1044      1.44   thorpej 	{ 0, 0, 0,
   1045      1.41   mycroft 	    sys_nosys },			/* 447 = filler */
   1046      1.44   thorpej 	{ 0, 0, 0,
   1047      1.41   mycroft 	    sys_nosys },			/* 448 = filler */
   1048      1.44   thorpej 	{ 0, 0, 0,
   1049      1.41   mycroft 	    sys_nosys },			/* 449 = filler */
   1050      1.44   thorpej 	{ 0, 0, 0,
   1051      1.41   mycroft 	    sys_nosys },			/* 450 = filler */
   1052      1.44   thorpej 	{ 0, 0, 0,
   1053      1.41   mycroft 	    sys_nosys },			/* 451 = filler */
   1054      1.44   thorpej 	{ 0, 0, 0,
   1055      1.41   mycroft 	    sys_nosys },			/* 452 = filler */
   1056      1.44   thorpej 	{ 0, 0, 0,
   1057      1.41   mycroft 	    sys_nosys },			/* 453 = filler */
   1058      1.44   thorpej 	{ 0, 0, 0,
   1059      1.41   mycroft 	    sys_nosys },			/* 454 = filler */
   1060      1.44   thorpej 	{ 0, 0, 0,
   1061      1.41   mycroft 	    sys_nosys },			/* 455 = filler */
   1062      1.44   thorpej 	{ 0, 0, 0,
   1063      1.41   mycroft 	    sys_nosys },			/* 456 = filler */
   1064      1.44   thorpej 	{ 0, 0, 0,
   1065      1.41   mycroft 	    sys_nosys },			/* 457 = filler */
   1066      1.44   thorpej 	{ 0, 0, 0,
   1067      1.41   mycroft 	    sys_nosys },			/* 458 = filler */
   1068      1.44   thorpej 	{ 0, 0, 0,
   1069      1.41   mycroft 	    sys_nosys },			/* 459 = filler */
   1070      1.44   thorpej 	{ 0, 0, 0,
   1071      1.41   mycroft 	    sys_nosys },			/* 460 = filler */
   1072      1.44   thorpej 	{ 0, 0, 0,
   1073      1.41   mycroft 	    sys_nosys },			/* 461 = filler */
   1074      1.44   thorpej 	{ 0, 0, 0,
   1075      1.41   mycroft 	    sys_nosys },			/* 462 = filler */
   1076      1.44   thorpej 	{ 0, 0, 0,
   1077      1.41   mycroft 	    sys_nosys },			/* 463 = filler */
   1078      1.44   thorpej 	{ 0, 0, 0,
   1079      1.41   mycroft 	    sys_nosys },			/* 464 = filler */
   1080      1.44   thorpej 	{ 0, 0, 0,
   1081      1.41   mycroft 	    sys_nosys },			/* 465 = filler */
   1082      1.44   thorpej 	{ 0, 0, 0,
   1083      1.41   mycroft 	    sys_nosys },			/* 466 = filler */
   1084      1.44   thorpej 	{ 0, 0, 0,
   1085      1.41   mycroft 	    sys_nosys },			/* 467 = filler */
   1086      1.44   thorpej 	{ 0, 0, 0,
   1087      1.41   mycroft 	    sys_nosys },			/* 468 = filler */
   1088      1.44   thorpej 	{ 0, 0, 0,
   1089      1.41   mycroft 	    sys_nosys },			/* 469 = filler */
   1090      1.44   thorpej 	{ 0, 0, 0,
   1091      1.41   mycroft 	    sys_nosys },			/* 470 = filler */
   1092      1.44   thorpej 	{ 0, 0, 0,
   1093      1.41   mycroft 	    sys_nosys },			/* 471 = filler */
   1094      1.44   thorpej 	{ 0, 0, 0,
   1095      1.41   mycroft 	    sys_nosys },			/* 472 = filler */
   1096      1.44   thorpej 	{ 0, 0, 0,
   1097      1.41   mycroft 	    sys_nosys },			/* 473 = filler */
   1098      1.44   thorpej 	{ 0, 0, 0,
   1099      1.41   mycroft 	    sys_nosys },			/* 474 = filler */
   1100      1.44   thorpej 	{ 0, 0, 0,
   1101      1.41   mycroft 	    sys_nosys },			/* 475 = filler */
   1102      1.44   thorpej 	{ 0, 0, 0,
   1103      1.41   mycroft 	    sys_nosys },			/* 476 = filler */
   1104      1.44   thorpej 	{ 0, 0, 0,
   1105      1.41   mycroft 	    sys_nosys },			/* 477 = filler */
   1106      1.44   thorpej 	{ 0, 0, 0,
   1107      1.41   mycroft 	    sys_nosys },			/* 478 = filler */
   1108      1.44   thorpej 	{ 0, 0, 0,
   1109      1.41   mycroft 	    sys_nosys },			/* 479 = filler */
   1110      1.44   thorpej 	{ 0, 0, 0,
   1111      1.41   mycroft 	    sys_nosys },			/* 480 = filler */
   1112      1.44   thorpej 	{ 0, 0, 0,
   1113      1.41   mycroft 	    sys_nosys },			/* 481 = filler */
   1114      1.44   thorpej 	{ 0, 0, 0,
   1115      1.41   mycroft 	    sys_nosys },			/* 482 = filler */
   1116      1.44   thorpej 	{ 0, 0, 0,
   1117      1.41   mycroft 	    sys_nosys },			/* 483 = filler */
   1118      1.44   thorpej 	{ 0, 0, 0,
   1119      1.41   mycroft 	    sys_nosys },			/* 484 = filler */
   1120      1.44   thorpej 	{ 0, 0, 0,
   1121      1.41   mycroft 	    sys_nosys },			/* 485 = filler */
   1122      1.44   thorpej 	{ 0, 0, 0,
   1123      1.41   mycroft 	    sys_nosys },			/* 486 = filler */
   1124      1.44   thorpej 	{ 0, 0, 0,
   1125      1.41   mycroft 	    sys_nosys },			/* 487 = filler */
   1126      1.44   thorpej 	{ 0, 0, 0,
   1127      1.41   mycroft 	    sys_nosys },			/* 488 = filler */
   1128      1.44   thorpej 	{ 0, 0, 0,
   1129      1.41   mycroft 	    sys_nosys },			/* 489 = filler */
   1130      1.44   thorpej 	{ 0, 0, 0,
   1131      1.41   mycroft 	    sys_nosys },			/* 490 = filler */
   1132      1.44   thorpej 	{ 0, 0, 0,
   1133      1.41   mycroft 	    sys_nosys },			/* 491 = filler */
   1134      1.44   thorpej 	{ 0, 0, 0,
   1135      1.41   mycroft 	    sys_nosys },			/* 492 = filler */
   1136      1.44   thorpej 	{ 0, 0, 0,
   1137      1.41   mycroft 	    sys_nosys },			/* 493 = filler */
   1138      1.44   thorpej 	{ 0, 0, 0,
   1139      1.41   mycroft 	    sys_nosys },			/* 494 = filler */
   1140      1.44   thorpej 	{ 0, 0, 0,
   1141      1.41   mycroft 	    sys_nosys },			/* 495 = filler */
   1142      1.44   thorpej 	{ 0, 0, 0,
   1143      1.41   mycroft 	    sys_nosys },			/* 496 = filler */
   1144      1.44   thorpej 	{ 0, 0, 0,
   1145      1.41   mycroft 	    sys_nosys },			/* 497 = filler */
   1146      1.44   thorpej 	{ 0, 0, 0,
   1147      1.41   mycroft 	    sys_nosys },			/* 498 = filler */
   1148      1.44   thorpej 	{ 0, 0, 0,
   1149      1.41   mycroft 	    sys_nosys },			/* 499 = filler */
   1150      1.44   thorpej 	{ 0, 0, 0,
   1151      1.41   mycroft 	    sys_nosys },			/* 500 = filler */
   1152      1.44   thorpej 	{ 0, 0, 0,
   1153      1.41   mycroft 	    sys_nosys },			/* 501 = filler */
   1154      1.44   thorpej 	{ 0, 0, 0,
   1155      1.41   mycroft 	    sys_nosys },			/* 502 = filler */
   1156      1.44   thorpej 	{ 0, 0, 0,
   1157      1.41   mycroft 	    sys_nosys },			/* 503 = filler */
   1158      1.44   thorpej 	{ 0, 0, 0,
   1159      1.41   mycroft 	    sys_nosys },			/* 504 = filler */
   1160      1.44   thorpej 	{ 0, 0, 0,
   1161      1.41   mycroft 	    sys_nosys },			/* 505 = filler */
   1162      1.44   thorpej 	{ 0, 0, 0,
   1163      1.41   mycroft 	    sys_nosys },			/* 506 = filler */
   1164      1.44   thorpej 	{ 0, 0, 0,
   1165      1.41   mycroft 	    sys_nosys },			/* 507 = filler */
   1166      1.44   thorpej 	{ 0, 0, 0,
   1167      1.41   mycroft 	    sys_nosys },			/* 508 = filler */
   1168      1.44   thorpej 	{ 0, 0, 0,
   1169      1.41   mycroft 	    sys_nosys },			/* 509 = filler */
   1170      1.44   thorpej 	{ 0, 0, 0,
   1171      1.41   mycroft 	    sys_nosys },			/* 510 = filler */
   1172      1.44   thorpej 	{ 0, 0, 0,
   1173      1.41   mycroft 	    sys_nosys },			/* 511 = filler */
   1174       1.1   mycroft };
   1175       1.1   mycroft 
   1176