Home | History | Annotate | Line # | Download | only in freebsd
freebsd_sysent.c revision 1.37
      1  1.17   thorpej /*	$NetBSD: freebsd_sysent.c,v 1.37 2000/08/08 02:15:10 itojun 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.37    itojun  * created from	NetBSD: syscalls.master,v 1.30 2000/08/08 02:14:48 itojun Exp
      8   1.1   mycroft  */
      9   1.1   mycroft 
     10  1.24   thorpej #include "opt_ktrace.h"
     11  1.25   thorpej #include "opt_nfsserver.h"
     12  1.36     bjh21 #include "opt_ntp.h"
     13  1.27      tron #include "opt_sysv.h"
     14  1.28  christos #include "opt_compat_43.h"
     15  1.21   thorpej #include "fs_lfs.h"
     16  1.21   thorpej #include "fs_nfs.h"
     17   1.1   mycroft #include <sys/param.h>
     18   1.1   mycroft #include <sys/systm.h>
     19   1.1   mycroft #include <sys/signal.h>
     20   1.1   mycroft #include <sys/mount.h>
     21   1.1   mycroft #include <sys/syscallargs.h>
     22   1.1   mycroft #include <compat/freebsd/freebsd_syscallargs.h>
     23   1.1   mycroft #include <machine/freebsd_machdep.h>
     24   1.1   mycroft 
     25   1.1   mycroft #define	s(type)	sizeof(type)
     26   1.1   mycroft 
     27   1.1   mycroft struct sysent freebsd_sysent[] = {
     28   1.1   mycroft 	{ 0, 0,
     29   1.1   mycroft 	    sys_nosys },			/* 0 = syscall */
     30   1.1   mycroft 	{ 1, s(struct sys_exit_args),
     31   1.1   mycroft 	    sys_exit },				/* 1 = exit */
     32   1.1   mycroft 	{ 0, 0,
     33   1.1   mycroft 	    sys_fork },				/* 2 = fork */
     34   1.1   mycroft 	{ 3, s(struct sys_read_args),
     35   1.1   mycroft 	    sys_read },				/* 3 = read */
     36   1.1   mycroft 	{ 3, s(struct sys_write_args),
     37   1.1   mycroft 	    sys_write },			/* 4 = write */
     38   1.1   mycroft 	{ 3, s(struct freebsd_sys_open_args),
     39   1.1   mycroft 	    freebsd_sys_open },			/* 5 = open */
     40   1.1   mycroft 	{ 1, s(struct sys_close_args),
     41   1.1   mycroft 	    sys_close },			/* 6 = close */
     42   1.1   mycroft 	{ 4, s(struct sys_wait4_args),
     43   1.1   mycroft 	    sys_wait4 },			/* 7 = wait4 */
     44   1.1   mycroft 	{ 2, s(struct compat_43_freebsd_sys_creat_args),
     45   1.1   mycroft 	    compat_43_freebsd_sys_creat },	/* 8 = ocreat */
     46   1.1   mycroft 	{ 2, s(struct freebsd_sys_link_args),
     47   1.1   mycroft 	    freebsd_sys_link },			/* 9 = link */
     48   1.1   mycroft 	{ 1, s(struct freebsd_sys_unlink_args),
     49   1.1   mycroft 	    freebsd_sys_unlink },		/* 10 = unlink */
     50   1.1   mycroft 	{ 0, 0,
     51   1.1   mycroft 	    sys_nosys },			/* 11 = obsolete execv */
     52   1.1   mycroft 	{ 1, s(struct freebsd_sys_chdir_args),
     53   1.1   mycroft 	    freebsd_sys_chdir },		/* 12 = chdir */
     54   1.1   mycroft 	{ 1, s(struct sys_fchdir_args),
     55   1.1   mycroft 	    sys_fchdir },			/* 13 = fchdir */
     56   1.1   mycroft 	{ 3, s(struct freebsd_sys_mknod_args),
     57   1.1   mycroft 	    freebsd_sys_mknod },		/* 14 = mknod */
     58   1.1   mycroft 	{ 2, s(struct freebsd_sys_chmod_args),
     59   1.1   mycroft 	    freebsd_sys_chmod },		/* 15 = chmod */
     60   1.1   mycroft 	{ 3, s(struct freebsd_sys_chown_args),
     61   1.1   mycroft 	    freebsd_sys_chown },		/* 16 = chown */
     62   1.1   mycroft 	{ 1, s(struct sys_obreak_args),
     63   1.1   mycroft 	    sys_obreak },			/* 17 = break */
     64   1.1   mycroft 	{ 3, s(struct sys_getfsstat_args),
     65   1.1   mycroft 	    sys_getfsstat },			/* 18 = getfsstat */
     66   1.1   mycroft 	{ 3, s(struct compat_43_sys_lseek_args),
     67   1.1   mycroft 	    compat_43_sys_lseek },		/* 19 = olseek */
     68   1.1   mycroft 	{ 0, 0,
     69   1.1   mycroft 	    sys_getpid },			/* 20 = getpid */
     70   1.1   mycroft 	{ 4, s(struct freebsd_sys_mount_args),
     71   1.1   mycroft 	    freebsd_sys_mount },		/* 21 = mount */
     72   1.1   mycroft 	{ 2, s(struct freebsd_sys_unmount_args),
     73   1.1   mycroft 	    freebsd_sys_unmount },		/* 22 = unmount */
     74   1.1   mycroft 	{ 1, s(struct sys_setuid_args),
     75   1.1   mycroft 	    sys_setuid },			/* 23 = setuid */
     76   1.1   mycroft 	{ 0, 0,
     77   1.1   mycroft 	    sys_getuid },			/* 24 = getuid */
     78   1.1   mycroft 	{ 0, 0,
     79   1.1   mycroft 	    sys_geteuid },			/* 25 = geteuid */
     80   1.1   mycroft 	{ 4, s(struct freebsd_sys_ptrace_args),
     81   1.1   mycroft 	    freebsd_sys_ptrace },		/* 26 = ptrace */
     82   1.1   mycroft 	{ 3, s(struct sys_recvmsg_args),
     83   1.1   mycroft 	    sys_recvmsg },			/* 27 = recvmsg */
     84   1.1   mycroft 	{ 3, s(struct sys_sendmsg_args),
     85   1.1   mycroft 	    sys_sendmsg },			/* 28 = sendmsg */
     86   1.1   mycroft 	{ 6, s(struct sys_recvfrom_args),
     87   1.1   mycroft 	    sys_recvfrom },			/* 29 = recvfrom */
     88   1.1   mycroft 	{ 3, s(struct sys_accept_args),
     89   1.1   mycroft 	    sys_accept },			/* 30 = accept */
     90   1.1   mycroft 	{ 3, s(struct sys_getpeername_args),
     91   1.1   mycroft 	    sys_getpeername },			/* 31 = getpeername */
     92   1.1   mycroft 	{ 3, s(struct sys_getsockname_args),
     93   1.1   mycroft 	    sys_getsockname },			/* 32 = getsockname */
     94   1.1   mycroft 	{ 2, s(struct freebsd_sys_access_args),
     95   1.1   mycroft 	    freebsd_sys_access },		/* 33 = access */
     96   1.1   mycroft 	{ 2, s(struct freebsd_sys_chflags_args),
     97   1.1   mycroft 	    freebsd_sys_chflags },		/* 34 = chflags */
     98   1.1   mycroft 	{ 2, s(struct sys_fchflags_args),
     99   1.1   mycroft 	    sys_fchflags },			/* 35 = fchflags */
    100   1.1   mycroft 	{ 0, 0,
    101   1.1   mycroft 	    sys_sync },				/* 36 = sync */
    102   1.1   mycroft 	{ 2, s(struct sys_kill_args),
    103   1.1   mycroft 	    sys_kill },				/* 37 = kill */
    104   1.1   mycroft 	{ 2, s(struct compat_43_freebsd_sys_stat_args),
    105  1.12  christos 	    compat_43_freebsd_sys_stat },	/* 38 = stat43 */
    106   1.1   mycroft 	{ 0, 0,
    107   1.4   mycroft 	    sys_getppid },			/* 39 = getppid */
    108   1.1   mycroft 	{ 2, s(struct compat_43_freebsd_sys_lstat_args),
    109  1.12  christos 	    compat_43_freebsd_sys_lstat },	/* 40 = lstat43 */
    110   1.1   mycroft 	{ 1, s(struct sys_dup_args),
    111   1.1   mycroft 	    sys_dup },				/* 41 = dup */
    112   1.1   mycroft 	{ 0, 0,
    113   1.1   mycroft 	    sys_pipe },				/* 42 = pipe */
    114   1.1   mycroft 	{ 0, 0,
    115   1.1   mycroft 	    sys_getegid },			/* 43 = getegid */
    116   1.1   mycroft 	{ 4, s(struct sys_profil_args),
    117   1.1   mycroft 	    sys_profil },			/* 44 = profil */
    118   1.1   mycroft #ifdef KTRACE
    119   1.1   mycroft 	{ 4, s(struct sys_ktrace_args),
    120   1.1   mycroft 	    sys_ktrace },			/* 45 = ktrace */
    121   1.1   mycroft #else
    122   1.1   mycroft 	{ 0, 0,
    123   1.1   mycroft 	    sys_nosys },			/* 45 = unimplemented ktrace */
    124   1.1   mycroft #endif
    125  1.26   mycroft 	{ 3, s(struct compat_13_sys_sigaction_args),
    126  1.26   mycroft 	    compat_13_sys_sigaction },		/* 46 = sigaction */
    127   1.1   mycroft 	{ 0, 0,
    128   1.1   mycroft 	    sys_getgid },			/* 47 = getgid */
    129  1.26   mycroft 	{ 2, s(struct compat_13_sys_sigprocmask_args),
    130  1.26   mycroft 	    compat_13_sys_sigprocmask },	/* 48 = sigprocmask */
    131   1.6  christos 	{ 2, s(struct sys___getlogin_args),
    132   1.6  christos 	    sys___getlogin },			/* 49 = __getlogin */
    133   1.1   mycroft 	{ 1, s(struct sys_setlogin_args),
    134   1.1   mycroft 	    sys_setlogin },			/* 50 = setlogin */
    135   1.1   mycroft 	{ 1, s(struct sys_acct_args),
    136   1.1   mycroft 	    sys_acct },				/* 51 = acct */
    137   1.1   mycroft 	{ 0, 0,
    138  1.26   mycroft 	    compat_13_sys_sigpending },		/* 52 = sigpending */
    139  1.14     veego 	{ 2, s(struct compat_13_sys_sigaltstack_args),
    140  1.14     veego 	    compat_13_sys_sigaltstack },	/* 53 = sigaltstack */
    141   1.1   mycroft 	{ 3, s(struct freebsd_sys_ioctl_args),
    142   1.1   mycroft 	    freebsd_sys_ioctl },		/* 54 = ioctl */
    143   1.1   mycroft 	{ 1, s(struct sys_reboot_args),
    144  1.29  christos 	    sys_reboot },			/* 55 = oreboot */
    145   1.1   mycroft 	{ 1, s(struct freebsd_sys_revoke_args),
    146   1.1   mycroft 	    freebsd_sys_revoke },		/* 56 = revoke */
    147   1.1   mycroft 	{ 2, s(struct freebsd_sys_symlink_args),
    148   1.1   mycroft 	    freebsd_sys_symlink },		/* 57 = symlink */
    149   1.1   mycroft 	{ 3, s(struct freebsd_sys_readlink_args),
    150   1.1   mycroft 	    freebsd_sys_readlink },		/* 58 = readlink */
    151   1.1   mycroft 	{ 3, s(struct freebsd_sys_execve_args),
    152   1.1   mycroft 	    freebsd_sys_execve },		/* 59 = execve */
    153   1.1   mycroft 	{ 1, s(struct sys_umask_args),
    154   1.1   mycroft 	    sys_umask },			/* 60 = umask */
    155   1.1   mycroft 	{ 1, s(struct freebsd_sys_chroot_args),
    156   1.1   mycroft 	    freebsd_sys_chroot },		/* 61 = chroot */
    157   1.1   mycroft 	{ 2, s(struct compat_43_sys_fstat_args),
    158  1.12  christos 	    compat_43_sys_fstat },		/* 62 = fstat43 */
    159   1.1   mycroft 	{ 4, s(struct compat_43_sys_getkerninfo_args),
    160   1.1   mycroft 	    compat_43_sys_getkerninfo },	/* 63 = ogetkerninfo */
    161   1.1   mycroft 	{ 0, 0,
    162   1.1   mycroft 	    compat_43_sys_getpagesize },	/* 64 = ogetpagesize */
    163   1.1   mycroft 	{ 3, s(struct freebsd_sys_msync_args),
    164   1.1   mycroft 	    freebsd_sys_msync },		/* 65 = msync */
    165   1.1   mycroft 	{ 0, 0,
    166   1.1   mycroft 	    sys_vfork },			/* 66 = vfork */
    167   1.1   mycroft 	{ 0, 0,
    168   1.1   mycroft 	    sys_nosys },			/* 67 = obsolete vread */
    169   1.1   mycroft 	{ 0, 0,
    170   1.1   mycroft 	    sys_nosys },			/* 68 = obsolete vwrite */
    171   1.1   mycroft 	{ 1, s(struct sys_sbrk_args),
    172   1.1   mycroft 	    sys_sbrk },				/* 69 = sbrk */
    173   1.1   mycroft 	{ 1, s(struct sys_sstk_args),
    174   1.1   mycroft 	    sys_sstk },				/* 70 = sstk */
    175   1.1   mycroft 	{ 6, s(struct compat_43_sys_mmap_args),
    176   1.1   mycroft 	    compat_43_sys_mmap },		/* 71 = ommap */
    177   1.1   mycroft 	{ 1, s(struct sys_ovadvise_args),
    178   1.1   mycroft 	    sys_ovadvise },			/* 72 = vadvise */
    179   1.1   mycroft 	{ 2, s(struct sys_munmap_args),
    180   1.1   mycroft 	    sys_munmap },			/* 73 = munmap */
    181   1.1   mycroft 	{ 3, s(struct sys_mprotect_args),
    182   1.1   mycroft 	    sys_mprotect },			/* 74 = mprotect */
    183   1.1   mycroft 	{ 3, s(struct sys_madvise_args),
    184   1.1   mycroft 	    sys_madvise },			/* 75 = madvise */
    185   1.1   mycroft 	{ 0, 0,
    186   1.1   mycroft 	    sys_nosys },			/* 76 = obsolete vhangup */
    187   1.1   mycroft 	{ 0, 0,
    188   1.1   mycroft 	    sys_nosys },			/* 77 = obsolete vlimit */
    189   1.1   mycroft 	{ 3, s(struct sys_mincore_args),
    190   1.1   mycroft 	    sys_mincore },			/* 78 = mincore */
    191   1.1   mycroft 	{ 2, s(struct sys_getgroups_args),
    192   1.1   mycroft 	    sys_getgroups },			/* 79 = getgroups */
    193   1.1   mycroft 	{ 2, s(struct sys_setgroups_args),
    194   1.1   mycroft 	    sys_setgroups },			/* 80 = setgroups */
    195   1.1   mycroft 	{ 0, 0,
    196   1.1   mycroft 	    sys_getpgrp },			/* 81 = getpgrp */
    197   1.1   mycroft 	{ 2, s(struct sys_setpgid_args),
    198   1.1   mycroft 	    sys_setpgid },			/* 82 = setpgid */
    199   1.1   mycroft 	{ 3, s(struct sys_setitimer_args),
    200   1.1   mycroft 	    sys_setitimer },			/* 83 = setitimer */
    201   1.1   mycroft 	{ 0, 0,
    202   1.1   mycroft 	    compat_43_sys_wait },		/* 84 = owait */
    203   1.8   thorpej 	{ 1, s(struct compat_12_sys_swapon_args),
    204   1.8   thorpej 	    compat_12_sys_swapon },		/* 85 = swapon */
    205   1.1   mycroft 	{ 2, s(struct sys_getitimer_args),
    206   1.1   mycroft 	    sys_getitimer },			/* 86 = getitimer */
    207   1.1   mycroft 	{ 2, s(struct compat_43_sys_gethostname_args),
    208   1.1   mycroft 	    compat_43_sys_gethostname },	/* 87 = ogethostname */
    209   1.1   mycroft 	{ 2, s(struct compat_43_sys_sethostname_args),
    210   1.1   mycroft 	    compat_43_sys_sethostname },	/* 88 = osethostname */
    211   1.1   mycroft 	{ 0, 0,
    212   1.1   mycroft 	    compat_43_sys_getdtablesize },	/* 89 = ogetdtablesize */
    213   1.1   mycroft 	{ 2, s(struct sys_dup2_args),
    214   1.1   mycroft 	    sys_dup2 },				/* 90 = dup2 */
    215   1.1   mycroft 	{ 0, 0,
    216   1.1   mycroft 	    sys_nosys },			/* 91 = unimplemented getdopt */
    217   1.1   mycroft 	{ 3, s(struct sys_fcntl_args),
    218   1.1   mycroft 	    sys_fcntl },			/* 92 = fcntl */
    219   1.1   mycroft 	{ 5, s(struct sys_select_args),
    220   1.1   mycroft 	    sys_select },			/* 93 = select */
    221   1.1   mycroft 	{ 0, 0,
    222   1.1   mycroft 	    sys_nosys },			/* 94 = unimplemented setdopt */
    223   1.1   mycroft 	{ 1, s(struct sys_fsync_args),
    224   1.1   mycroft 	    sys_fsync },			/* 95 = fsync */
    225   1.1   mycroft 	{ 3, s(struct sys_setpriority_args),
    226   1.1   mycroft 	    sys_setpriority },			/* 96 = setpriority */
    227   1.1   mycroft 	{ 3, s(struct sys_socket_args),
    228   1.1   mycroft 	    sys_socket },			/* 97 = socket */
    229   1.1   mycroft 	{ 3, s(struct sys_connect_args),
    230   1.1   mycroft 	    sys_connect },			/* 98 = connect */
    231   1.1   mycroft 	{ 3, s(struct compat_43_sys_accept_args),
    232   1.1   mycroft 	    compat_43_sys_accept },		/* 99 = oaccept */
    233   1.1   mycroft 	{ 2, s(struct sys_getpriority_args),
    234   1.1   mycroft 	    sys_getpriority },			/* 100 = getpriority */
    235   1.1   mycroft 	{ 4, s(struct compat_43_sys_send_args),
    236   1.1   mycroft 	    compat_43_sys_send },		/* 101 = osend */
    237   1.1   mycroft 	{ 4, s(struct compat_43_sys_recv_args),
    238   1.1   mycroft 	    compat_43_sys_recv },		/* 102 = orecv */
    239   1.1   mycroft 	{ 1, s(struct freebsd_sys_sigreturn_args),
    240   1.1   mycroft 	    freebsd_sys_sigreturn },		/* 103 = sigreturn */
    241   1.1   mycroft 	{ 3, s(struct sys_bind_args),
    242   1.1   mycroft 	    sys_bind },				/* 104 = bind */
    243   1.1   mycroft 	{ 5, s(struct sys_setsockopt_args),
    244   1.1   mycroft 	    sys_setsockopt },			/* 105 = setsockopt */
    245   1.1   mycroft 	{ 2, s(struct sys_listen_args),
    246   1.1   mycroft 	    sys_listen },			/* 106 = listen */
    247   1.1   mycroft 	{ 0, 0,
    248   1.1   mycroft 	    sys_nosys },			/* 107 = obsolete vtimes */
    249   1.1   mycroft 	{ 3, s(struct compat_43_sys_sigvec_args),
    250   1.1   mycroft 	    compat_43_sys_sigvec },		/* 108 = osigvec */
    251   1.1   mycroft 	{ 1, s(struct compat_43_sys_sigblock_args),
    252   1.1   mycroft 	    compat_43_sys_sigblock },		/* 109 = osigblock */
    253   1.1   mycroft 	{ 1, s(struct compat_43_sys_sigsetmask_args),
    254   1.1   mycroft 	    compat_43_sys_sigsetmask },		/* 110 = osigsetmask */
    255  1.26   mycroft 	{ 1, s(struct compat_13_sys_sigsuspend_args),
    256  1.26   mycroft 	    compat_13_sys_sigsuspend },		/* 111 = sigsuspend */
    257   1.1   mycroft 	{ 2, s(struct compat_43_sys_sigstack_args),
    258   1.1   mycroft 	    compat_43_sys_sigstack },		/* 112 = osigstack */
    259   1.1   mycroft 	{ 3, s(struct compat_43_sys_recvmsg_args),
    260   1.1   mycroft 	    compat_43_sys_recvmsg },		/* 113 = orecvmsg */
    261   1.1   mycroft 	{ 3, s(struct compat_43_sys_sendmsg_args),
    262   1.1   mycroft 	    compat_43_sys_sendmsg },		/* 114 = osendmsg */
    263   1.1   mycroft #ifdef TRACE
    264   1.1   mycroft 	{ 2, s(struct sys_vtrace_args),
    265   1.1   mycroft 	    sys_vtrace },			/* 115 = vtrace */
    266   1.1   mycroft #else
    267   1.1   mycroft 	{ 0, 0,
    268   1.1   mycroft 	    sys_nosys },			/* 115 = obsolete vtrace */
    269   1.1   mycroft #endif
    270   1.1   mycroft 	{ 2, s(struct sys_gettimeofday_args),
    271   1.1   mycroft 	    sys_gettimeofday },			/* 116 = gettimeofday */
    272   1.1   mycroft 	{ 2, s(struct sys_getrusage_args),
    273   1.1   mycroft 	    sys_getrusage },			/* 117 = getrusage */
    274   1.1   mycroft 	{ 5, s(struct sys_getsockopt_args),
    275   1.1   mycroft 	    sys_getsockopt },			/* 118 = getsockopt */
    276   1.1   mycroft 	{ 0, 0,
    277   1.1   mycroft 	    sys_nosys },			/* 119 = obsolete resuba */
    278   1.1   mycroft 	{ 3, s(struct sys_readv_args),
    279   1.1   mycroft 	    sys_readv },			/* 120 = readv */
    280   1.1   mycroft 	{ 3, s(struct sys_writev_args),
    281   1.1   mycroft 	    sys_writev },			/* 121 = writev */
    282   1.1   mycroft 	{ 2, s(struct sys_settimeofday_args),
    283   1.1   mycroft 	    sys_settimeofday },			/* 122 = settimeofday */
    284   1.1   mycroft 	{ 3, s(struct sys_fchown_args),
    285   1.1   mycroft 	    sys_fchown },			/* 123 = fchown */
    286   1.1   mycroft 	{ 2, s(struct sys_fchmod_args),
    287   1.1   mycroft 	    sys_fchmod },			/* 124 = fchmod */
    288   1.1   mycroft 	{ 6, s(struct compat_43_sys_recvfrom_args),
    289   1.1   mycroft 	    compat_43_sys_recvfrom },		/* 125 = orecvfrom */
    290   1.5   mycroft 	{ 2, s(struct sys_setreuid_args),
    291   1.5   mycroft 	    sys_setreuid },			/* 126 = setreuid */
    292   1.5   mycroft 	{ 2, s(struct sys_setregid_args),
    293   1.5   mycroft 	    sys_setregid },			/* 127 = setregid */
    294   1.1   mycroft 	{ 2, s(struct freebsd_sys_rename_args),
    295   1.1   mycroft 	    freebsd_sys_rename },		/* 128 = rename */
    296   1.1   mycroft 	{ 2, s(struct compat_43_freebsd_sys_truncate_args),
    297   1.1   mycroft 	    compat_43_freebsd_sys_truncate },	/* 129 = otruncate */
    298   1.1   mycroft 	{ 2, s(struct compat_43_sys_ftruncate_args),
    299   1.3   mycroft 	    compat_43_sys_ftruncate },		/* 130 = oftruncate */
    300   1.1   mycroft 	{ 2, s(struct sys_flock_args),
    301   1.3   mycroft 	    sys_flock },			/* 131 = flock */
    302   1.1   mycroft 	{ 2, s(struct freebsd_sys_mkfifo_args),
    303   1.1   mycroft 	    freebsd_sys_mkfifo },		/* 132 = mkfifo */
    304   1.1   mycroft 	{ 6, s(struct sys_sendto_args),
    305   1.1   mycroft 	    sys_sendto },			/* 133 = sendto */
    306   1.1   mycroft 	{ 2, s(struct sys_shutdown_args),
    307   1.1   mycroft 	    sys_shutdown },			/* 134 = shutdown */
    308   1.1   mycroft 	{ 4, s(struct sys_socketpair_args),
    309   1.1   mycroft 	    sys_socketpair },			/* 135 = socketpair */
    310   1.1   mycroft 	{ 2, s(struct freebsd_sys_mkdir_args),
    311   1.1   mycroft 	    freebsd_sys_mkdir },		/* 136 = mkdir */
    312   1.1   mycroft 	{ 1, s(struct freebsd_sys_rmdir_args),
    313   1.1   mycroft 	    freebsd_sys_rmdir },		/* 137 = rmdir */
    314   1.1   mycroft 	{ 2, s(struct sys_utimes_args),
    315   1.1   mycroft 	    sys_utimes },			/* 138 = utimes */
    316   1.1   mycroft 	{ 0, 0,
    317   1.1   mycroft 	    sys_nosys },			/* 139 = obsolete 4.2 sigreturn */
    318   1.1   mycroft 	{ 2, s(struct sys_adjtime_args),
    319   1.1   mycroft 	    sys_adjtime },			/* 140 = adjtime */
    320   1.1   mycroft 	{ 3, s(struct compat_43_sys_getpeername_args),
    321   1.1   mycroft 	    compat_43_sys_getpeername },	/* 141 = ogetpeername */
    322   1.1   mycroft 	{ 0, 0,
    323   1.1   mycroft 	    compat_43_sys_gethostid },		/* 142 = ogethostid */
    324   1.1   mycroft 	{ 1, s(struct compat_43_sys_sethostid_args),
    325   1.1   mycroft 	    compat_43_sys_sethostid },		/* 143 = osethostid */
    326   1.1   mycroft 	{ 2, s(struct compat_43_sys_getrlimit_args),
    327   1.1   mycroft 	    compat_43_sys_getrlimit },		/* 144 = ogetrlimit */
    328   1.1   mycroft 	{ 2, s(struct compat_43_sys_setrlimit_args),
    329   1.1   mycroft 	    compat_43_sys_setrlimit },		/* 145 = osetrlimit */
    330   1.1   mycroft 	{ 2, s(struct compat_43_sys_killpg_args),
    331   1.1   mycroft 	    compat_43_sys_killpg },		/* 146 = okillpg */
    332   1.1   mycroft 	{ 0, 0,
    333   1.1   mycroft 	    sys_setsid },			/* 147 = setsid */
    334   1.1   mycroft 	{ 4, s(struct sys_quotactl_args),
    335   1.1   mycroft 	    sys_quotactl },			/* 148 = quotactl */
    336   1.1   mycroft 	{ 0, 0,
    337   1.1   mycroft 	    compat_43_sys_quota },		/* 149 = oquota */
    338   1.1   mycroft 	{ 3, s(struct compat_43_sys_getsockname_args),
    339   1.1   mycroft 	    compat_43_sys_getsockname },	/* 150 = ogetsockname */
    340   1.1   mycroft 	{ 0, 0,
    341  1.34        tv 	    sys_nosys },			/* 151 = unimplemented sem_lock */
    342   1.1   mycroft 	{ 0, 0,
    343  1.34        tv 	    sys_nosys },			/* 152 = unimplemented sem_wakeup */
    344   1.1   mycroft 	{ 0, 0,
    345  1.34        tv 	    sys_nosys },			/* 153 = unimplemented asyncdaemon */
    346   1.1   mycroft 	{ 0, 0,
    347   1.1   mycroft 	    sys_nosys },			/* 154 = unimplemented */
    348   1.7   thorpej #if defined(NFS) || defined(NFSSERVER)
    349   1.1   mycroft 	{ 2, s(struct sys_nfssvc_args),
    350   1.1   mycroft 	    sys_nfssvc },			/* 155 = nfssvc */
    351   1.1   mycroft #else
    352   1.1   mycroft 	{ 0, 0,
    353  1.34        tv 	    sys_nosys },			/* 155 = unimplemented nfssvc */
    354   1.1   mycroft #endif
    355   1.1   mycroft 	{ 4, s(struct compat_43_sys_getdirentries_args),
    356   1.1   mycroft 	    compat_43_sys_getdirentries },	/* 156 = ogetdirentries */
    357   1.1   mycroft 	{ 2, s(struct freebsd_sys_statfs_args),
    358   1.1   mycroft 	    freebsd_sys_statfs },		/* 157 = statfs */
    359   1.1   mycroft 	{ 2, s(struct sys_fstatfs_args),
    360   1.1   mycroft 	    sys_fstatfs },			/* 158 = fstatfs */
    361   1.1   mycroft 	{ 0, 0,
    362   1.1   mycroft 	    sys_nosys },			/* 159 = unimplemented */
    363   1.1   mycroft 	{ 0, 0,
    364   1.1   mycroft 	    sys_nosys },			/* 160 = unimplemented */
    365   1.7   thorpej #ifdef NFS
    366   1.1   mycroft 	{ 2, s(struct freebsd_sys_getfh_args),
    367   1.1   mycroft 	    freebsd_sys_getfh },		/* 161 = getfh */
    368   1.1   mycroft #else
    369   1.1   mycroft 	{ 0, 0,
    370   1.1   mycroft 	    sys_nosys },			/* 161 = unimplemented getfh */
    371   1.1   mycroft #endif
    372   1.1   mycroft 	{ 2, s(struct compat_09_sys_getdomainname_args),
    373   1.1   mycroft 	    compat_09_sys_getdomainname },	/* 162 = getdomainname */
    374   1.1   mycroft 	{ 2, s(struct compat_09_sys_setdomainname_args),
    375   1.1   mycroft 	    compat_09_sys_setdomainname },	/* 163 = setdomainname */
    376   1.1   mycroft 	{ 1, s(struct compat_09_sys_uname_args),
    377   1.1   mycroft 	    compat_09_sys_uname },		/* 164 = uname */
    378   1.1   mycroft 	{ 2, s(struct sys_sysarch_args),
    379   1.1   mycroft 	    sys_sysarch },			/* 165 = sysarch */
    380   1.1   mycroft 	{ 3, s(struct freebsd_sys_rtprio_args),
    381   1.1   mycroft 	    freebsd_sys_rtprio },		/* 166 = rtprio */
    382   1.1   mycroft 	{ 0, 0,
    383   1.1   mycroft 	    sys_nosys },			/* 167 = unimplemented */
    384   1.1   mycroft 	{ 0, 0,
    385   1.1   mycroft 	    sys_nosys },			/* 168 = unimplemented */
    386   1.1   mycroft #if defined(SYSVSEM) && !defined(alpha)
    387  1.19   mycroft 	{ 5, s(struct freebsd_sys_semsys_args),
    388  1.19   mycroft 	    freebsd_sys_semsys },		/* 169 = semsys */
    389   1.1   mycroft #else
    390   1.1   mycroft 	{ 0, 0,
    391   1.1   mycroft 	    sys_nosys },			/* 169 = unimplemented 1.0 semsys */
    392   1.1   mycroft #endif
    393   1.1   mycroft #if defined(SYSVMSG) && !defined(alpha)
    394  1.19   mycroft 	{ 6, s(struct freebsd_sys_msgsys_args),
    395  1.19   mycroft 	    freebsd_sys_msgsys },		/* 170 = msgsys */
    396   1.1   mycroft #else
    397   1.1   mycroft 	{ 0, 0,
    398   1.1   mycroft 	    sys_nosys },			/* 170 = unimplemented 1.0 msgsys */
    399   1.1   mycroft #endif
    400   1.1   mycroft #if defined(SYSVSHM) && !defined(alpha)
    401  1.19   mycroft 	{ 4, s(struct freebsd_sys_shmsys_args),
    402  1.19   mycroft 	    freebsd_sys_shmsys },		/* 171 = shmsys */
    403   1.1   mycroft #else
    404   1.1   mycroft 	{ 0, 0,
    405   1.1   mycroft 	    sys_nosys },			/* 171 = unimplemented 1.0 shmsys */
    406   1.1   mycroft #endif
    407   1.1   mycroft 	{ 0, 0,
    408   1.1   mycroft 	    sys_nosys },			/* 172 = unimplemented */
    409  1.34        tv 	{ 5, s(struct sys_pread_args),
    410  1.34        tv 	    sys_pread },			/* 173 = pread */
    411  1.34        tv 	{ 5, s(struct sys_pwrite_args),
    412  1.34        tv 	    sys_pwrite },			/* 174 = pwrite */
    413   1.1   mycroft 	{ 0, 0,
    414   1.1   mycroft 	    sys_nosys },			/* 175 = unimplemented */
    415  1.37    itojun #ifdef NTP
    416   1.1   mycroft 	{ 1, s(struct freebsd_ntp_adjtime_args),
    417   1.1   mycroft 	    freebsd_ntp_adjtime },		/* 176 = freebsd_ntp_adjtime */
    418  1.36     bjh21 #else
    419  1.36     bjh21 	{ 0, 0,
    420  1.36     bjh21 	    sys_nosys },			/* 176 = excluded ntp_adjtime */
    421  1.36     bjh21 #endif
    422   1.1   mycroft 	{ 0, 0,
    423  1.34        tv 	    sys_nosys },			/* 177 = unimplemented sfork */
    424   1.1   mycroft 	{ 0, 0,
    425  1.34        tv 	    sys_nosys },			/* 178 = unimplemented getdescriptor */
    426   1.1   mycroft 	{ 0, 0,
    427  1.34        tv 	    sys_nosys },			/* 179 = unimplemented setdescriptor */
    428   1.1   mycroft 	{ 0, 0,
    429   1.1   mycroft 	    sys_nosys },			/* 180 = unimplemented */
    430   1.1   mycroft 	{ 1, s(struct sys_setgid_args),
    431   1.1   mycroft 	    sys_setgid },			/* 181 = setgid */
    432   1.1   mycroft 	{ 1, s(struct sys_setegid_args),
    433   1.1   mycroft 	    sys_setegid },			/* 182 = setegid */
    434   1.1   mycroft 	{ 1, s(struct sys_seteuid_args),
    435   1.1   mycroft 	    sys_seteuid },			/* 183 = seteuid */
    436   1.1   mycroft #ifdef LFS
    437  1.30  drochner 	{ 3, s(struct sys_lfs_bmapv_args),
    438  1.30  drochner 	    sys_lfs_bmapv },			/* 184 = lfs_bmapv */
    439  1.30  drochner 	{ 3, s(struct sys_lfs_markv_args),
    440  1.30  drochner 	    sys_lfs_markv },			/* 185 = lfs_markv */
    441  1.30  drochner 	{ 2, s(struct sys_lfs_segclean_args),
    442  1.30  drochner 	    sys_lfs_segclean },			/* 186 = lfs_segclean */
    443  1.30  drochner 	{ 2, s(struct sys_lfs_segwait_args),
    444  1.30  drochner 	    sys_lfs_segwait },			/* 187 = lfs_segwait */
    445   1.1   mycroft #else
    446   1.1   mycroft 	{ 0, 0,
    447   1.1   mycroft 	    sys_nosys },			/* 184 = unimplemented */
    448   1.1   mycroft 	{ 0, 0,
    449   1.1   mycroft 	    sys_nosys },			/* 185 = unimplemented */
    450   1.1   mycroft 	{ 0, 0,
    451   1.1   mycroft 	    sys_nosys },			/* 186 = unimplemented */
    452   1.1   mycroft 	{ 0, 0,
    453   1.1   mycroft 	    sys_nosys },			/* 187 = unimplemented */
    454   1.1   mycroft #endif
    455   1.1   mycroft 	{ 2, s(struct freebsd_sys_stat_args),
    456   1.1   mycroft 	    freebsd_sys_stat },			/* 188 = stat */
    457  1.13  christos 	{ 2, s(struct compat_12_sys_fstat_args),
    458  1.13  christos 	    compat_12_sys_fstat },		/* 189 = fstat */
    459   1.1   mycroft 	{ 2, s(struct freebsd_sys_lstat_args),
    460   1.1   mycroft 	    freebsd_sys_lstat },		/* 190 = lstat */
    461   1.1   mycroft 	{ 2, s(struct freebsd_sys_pathconf_args),
    462   1.1   mycroft 	    freebsd_sys_pathconf },		/* 191 = pathconf */
    463   1.1   mycroft 	{ 2, s(struct sys_fpathconf_args),
    464   1.1   mycroft 	    sys_fpathconf },			/* 192 = fpathconf */
    465   1.1   mycroft 	{ 0, 0,
    466   1.1   mycroft 	    sys_nosys },			/* 193 = unimplemented */
    467   1.1   mycroft 	{ 2, s(struct sys_getrlimit_args),
    468   1.1   mycroft 	    sys_getrlimit },			/* 194 = getrlimit */
    469   1.1   mycroft 	{ 2, s(struct sys_setrlimit_args),
    470   1.1   mycroft 	    sys_setrlimit },			/* 195 = setrlimit */
    471   1.9      fvdl 	{ 4, s(struct compat_12_sys_getdirentries_args),
    472   1.9      fvdl 	    compat_12_sys_getdirentries },	/* 196 = getdirentries */
    473   1.1   mycroft 	{ 7, s(struct sys_mmap_args),
    474   1.1   mycroft 	    sys_mmap },				/* 197 = mmap */
    475   1.1   mycroft 	{ 0, 0,
    476   1.1   mycroft 	    sys_nosys },			/* 198 = __syscall */
    477   1.1   mycroft 	{ 4, s(struct sys_lseek_args),
    478   1.1   mycroft 	    sys_lseek },			/* 199 = lseek */
    479   1.1   mycroft 	{ 3, s(struct freebsd_sys_truncate_args),
    480   1.1   mycroft 	    freebsd_sys_truncate },		/* 200 = truncate */
    481   1.1   mycroft 	{ 3, s(struct sys_ftruncate_args),
    482   1.1   mycroft 	    sys_ftruncate },			/* 201 = ftruncate */
    483   1.1   mycroft 	{ 6, s(struct sys___sysctl_args),
    484   1.1   mycroft 	    sys___sysctl },			/* 202 = __sysctl */
    485   1.1   mycroft 	{ 2, s(struct sys_mlock_args),
    486   1.1   mycroft 	    sys_mlock },			/* 203 = mlock */
    487   1.1   mycroft 	{ 2, s(struct sys_munlock_args),
    488   1.1   mycroft 	    sys_munlock },			/* 204 = munlock */
    489   1.1   mycroft #ifdef FREEBSD_BASED_ON_44LITE_R2
    490   1.1   mycroft 	{ 1, s(struct freebsd_sys_undelete_args),
    491   1.1   mycroft 	    freebsd_sys_undelete },		/* 205 = undelete */
    492   1.1   mycroft #else
    493   1.1   mycroft 	{ 0, 0,
    494  1.34        tv 	    sys_nosys },			/* 205 = unimplemented undelete */
    495   1.1   mycroft #endif
    496  1.29  christos 	{ 2, s(struct sys_futimes_args),
    497  1.29  christos 	    sys_futimes },			/* 206 = futimes */
    498  1.29  christos 	{ 1, s(struct sys_getpgid_args),
    499  1.29  christos 	    sys_getpgid },			/* 207 = getpgid */
    500  1.29  christos #if 0
    501  1.29  christos 	{ 2, s(struct sys_reboot_args),
    502  1.29  christos 	    sys_reboot },			/* 208 = reboot */
    503  1.29  christos #else
    504   1.1   mycroft 	{ 0, 0,
    505  1.29  christos 	    sys_nosys },			/* 208 = unimplemented newreboot */
    506  1.29  christos #endif
    507  1.29  christos 	{ 3, s(struct sys_poll_args),
    508  1.29  christos 	    sys_poll },				/* 209 = poll */
    509   1.1   mycroft 	{ 0, 0,
    510   1.1   mycroft 	    sys_nosys },			/* 210 = unimplemented */
    511   1.1   mycroft 	{ 0, 0,
    512   1.1   mycroft 	    sys_nosys },			/* 211 = unimplemented */
    513   1.1   mycroft 	{ 0, 0,
    514   1.1   mycroft 	    sys_nosys },			/* 212 = unimplemented */
    515   1.1   mycroft 	{ 0, 0,
    516   1.1   mycroft 	    sys_nosys },			/* 213 = unimplemented */
    517   1.1   mycroft 	{ 0, 0,
    518   1.1   mycroft 	    sys_nosys },			/* 214 = unimplemented */
    519   1.1   mycroft 	{ 0, 0,
    520   1.1   mycroft 	    sys_nosys },			/* 215 = unimplemented */
    521   1.1   mycroft 	{ 0, 0,
    522   1.1   mycroft 	    sys_nosys },			/* 216 = unimplemented */
    523   1.1   mycroft 	{ 0, 0,
    524   1.1   mycroft 	    sys_nosys },			/* 217 = unimplemented */
    525   1.1   mycroft 	{ 0, 0,
    526   1.1   mycroft 	    sys_nosys },			/* 218 = unimplemented */
    527   1.1   mycroft 	{ 0, 0,
    528   1.1   mycroft 	    sys_nosys },			/* 219 = unimplemented */
    529  1.29  christos #ifdef SYSVSEM
    530  1.32   thorpej 	{ 4, s(struct compat_14_sys___semctl_args),
    531  1.32   thorpej 	    compat_14_sys___semctl },		/* 220 = __semctl */
    532  1.29  christos 	{ 3, s(struct sys_semget_args),
    533  1.29  christos 	    sys_semget },			/* 221 = semget */
    534  1.29  christos 	{ 3, s(struct sys_semop_args),
    535  1.29  christos 	    sys_semop },			/* 222 = semop */
    536  1.29  christos 	{ 1, s(struct sys_semconfig_args),
    537  1.29  christos 	    sys_semconfig },			/* 223 = semconfig */
    538  1.29  christos #else
    539  1.10     enami 	{ 0, 0,
    540  1.29  christos 	    sys_nosys },			/* 220 = unimplemented semctl */
    541  1.10     enami 	{ 0, 0,
    542  1.29  christos 	    sys_nosys },			/* 221 = unimplemented semget */
    543  1.10     enami 	{ 0, 0,
    544  1.29  christos 	    sys_nosys },			/* 222 = unimplemented semop */
    545  1.10     enami 	{ 0, 0,
    546  1.29  christos 	    sys_nosys },			/* 223 = unimplemented semconfig */
    547  1.29  christos #endif
    548  1.29  christos #ifdef SYSVMSG
    549  1.32   thorpej 	{ 3, s(struct compat_14_sys_msgctl_args),
    550  1.32   thorpej 	    compat_14_sys_msgctl },		/* 224 = msgctl */
    551  1.29  christos 	{ 2, s(struct sys_msgget_args),
    552  1.29  christos 	    sys_msgget },			/* 225 = msgget */
    553  1.29  christos 	{ 4, s(struct sys_msgsnd_args),
    554  1.29  christos 	    sys_msgsnd },			/* 226 = msgsnd */
    555  1.29  christos 	{ 5, s(struct sys_msgrcv_args),
    556  1.29  christos 	    sys_msgrcv },			/* 227 = msgrcv */
    557  1.29  christos #else
    558  1.10     enami 	{ 0, 0,
    559  1.29  christos 	    sys_nosys },			/* 224 = unimplemented msgctl */
    560  1.10     enami 	{ 0, 0,
    561  1.29  christos 	    sys_nosys },			/* 225 = unimplemented msgget */
    562  1.10     enami 	{ 0, 0,
    563  1.29  christos 	    sys_nosys },			/* 226 = unimplemented msgsnd */
    564  1.10     enami 	{ 0, 0,
    565  1.29  christos 	    sys_nosys },			/* 227 = unimplemented msgrcv */
    566  1.29  christos #endif
    567  1.29  christos #ifdef SYSVSHM
    568  1.29  christos 	{ 3, s(struct sys_shmat_args),
    569  1.29  christos 	    sys_shmat },			/* 228 = shmat */
    570  1.32   thorpej 	{ 3, s(struct compat_14_sys_shmctl_args),
    571  1.32   thorpej 	    compat_14_sys_shmctl },		/* 229 = shmctl */
    572  1.29  christos 	{ 1, s(struct sys_shmdt_args),
    573  1.29  christos 	    sys_shmdt },			/* 230 = shmdt */
    574  1.29  christos 	{ 3, s(struct sys_shmget_args),
    575  1.29  christos 	    sys_shmget },			/* 231 = shmget */
    576  1.29  christos #else
    577  1.10     enami 	{ 0, 0,
    578  1.29  christos 	    sys_nosys },			/* 228 = unimplemented shmat */
    579  1.10     enami 	{ 0, 0,
    580  1.29  christos 	    sys_nosys },			/* 229 = unimplemented shmctl */
    581  1.10     enami 	{ 0, 0,
    582  1.29  christos 	    sys_nosys },			/* 230 = unimplemented shmdt */
    583  1.10     enami 	{ 0, 0,
    584  1.29  christos 	    sys_nosys },			/* 231 = unimplemented shmget */
    585  1.29  christos #endif
    586  1.29  christos 	{ 2, s(struct sys_clock_gettime_args),
    587  1.29  christos 	    sys_clock_gettime },		/* 232 = clock_gettime */
    588  1.29  christos 	{ 2, s(struct sys_clock_settime_args),
    589  1.29  christos 	    sys_clock_settime },		/* 233 = clock_settime */
    590  1.29  christos 	{ 2, s(struct sys_clock_getres_args),
    591  1.29  christos 	    sys_clock_getres },			/* 234 = clock_getres */
    592  1.10     enami 	{ 0, 0,
    593  1.29  christos 	    sys_nosys },			/* 235 = unimplemented timer_create */
    594  1.10     enami 	{ 0, 0,
    595  1.29  christos 	    sys_nosys },			/* 236 = unimplemented timer_delete */
    596  1.10     enami 	{ 0, 0,
    597  1.29  christos 	    sys_nosys },			/* 237 = unimplemented timer_settime */
    598  1.10     enami 	{ 0, 0,
    599  1.29  christos 	    sys_nosys },			/* 238 = unimplemented timer_gettime */
    600  1.10     enami 	{ 0, 0,
    601  1.29  christos 	    sys_nosys },			/* 239 = unimplemented timer_getoverrun */
    602  1.29  christos 	{ 2, s(struct sys_nanosleep_args),
    603  1.29  christos 	    sys_nanosleep },			/* 240 = nanosleep */
    604  1.10     enami 	{ 0, 0,
    605  1.10     enami 	    sys_nosys },			/* 241 = unimplemented */
    606  1.10     enami 	{ 0, 0,
    607  1.10     enami 	    sys_nosys },			/* 242 = unimplemented */
    608  1.10     enami 	{ 0, 0,
    609  1.10     enami 	    sys_nosys },			/* 243 = unimplemented */
    610  1.10     enami 	{ 0, 0,
    611  1.10     enami 	    sys_nosys },			/* 244 = unimplemented */
    612  1.10     enami 	{ 0, 0,
    613  1.10     enami 	    sys_nosys },			/* 245 = unimplemented */
    614  1.10     enami 	{ 0, 0,
    615  1.10     enami 	    sys_nosys },			/* 246 = unimplemented */
    616  1.10     enami 	{ 0, 0,
    617  1.10     enami 	    sys_nosys },			/* 247 = unimplemented */
    618  1.10     enami 	{ 0, 0,
    619  1.10     enami 	    sys_nosys },			/* 248 = unimplemented */
    620  1.10     enami 	{ 0, 0,
    621  1.10     enami 	    sys_nosys },			/* 249 = unimplemented */
    622  1.10     enami 	{ 0, 0,
    623  1.29  christos 	    sys_nosys },			/* 250 = unimplemented minherit */
    624  1.10     enami 	{ 0, 0,
    625  1.29  christos 	    sys_nosys },			/* 251 = unimplemented rfork */
    626  1.10     enami 	{ 0, 0,
    627  1.29  christos 	    sys_nosys },			/* 252 = unimplemented openbsd_poll */
    628  1.10     enami 	{ 0, 0,
    629  1.33   minoura 	    sys_issetugid },			/* 253 = issetugid */
    630  1.10     enami 	{ 3, s(struct freebsd_sys_lchown_args),
    631  1.10     enami 	    freebsd_sys_lchown },		/* 254 = lchown */
    632  1.29  christos 	{ 0, 0,
    633  1.29  christos 	    sys_nosys },			/* 255 = unimplemented */
    634  1.29  christos 	{ 0, 0,
    635  1.29  christos 	    sys_nosys },			/* 256 = unimplemented */
    636  1.29  christos 	{ 0, 0,
    637  1.29  christos 	    sys_nosys },			/* 257 = unimplemented */
    638  1.29  christos 	{ 0, 0,
    639  1.29  christos 	    sys_nosys },			/* 258 = unimplemented */
    640  1.29  christos 	{ 0, 0,
    641  1.29  christos 	    sys_nosys },			/* 259 = unimplemented */
    642  1.29  christos 	{ 0, 0,
    643  1.29  christos 	    sys_nosys },			/* 260 = unimplemented */
    644  1.29  christos 	{ 0, 0,
    645  1.29  christos 	    sys_nosys },			/* 261 = unimplemented */
    646  1.29  christos 	{ 0, 0,
    647  1.29  christos 	    sys_nosys },			/* 262 = unimplemented */
    648  1.29  christos 	{ 0, 0,
    649  1.29  christos 	    sys_nosys },			/* 263 = unimplemented */
    650  1.29  christos 	{ 0, 0,
    651  1.29  christos 	    sys_nosys },			/* 264 = unimplemented */
    652  1.29  christos 	{ 0, 0,
    653  1.29  christos 	    sys_nosys },			/* 265 = unimplemented */
    654  1.29  christos 	{ 0, 0,
    655  1.29  christos 	    sys_nosys },			/* 266 = unimplemented */
    656  1.29  christos 	{ 0, 0,
    657  1.29  christos 	    sys_nosys },			/* 267 = unimplemented */
    658  1.29  christos 	{ 0, 0,
    659  1.29  christos 	    sys_nosys },			/* 268 = unimplemented */
    660  1.29  christos 	{ 0, 0,
    661  1.29  christos 	    sys_nosys },			/* 269 = unimplemented */
    662  1.29  christos 	{ 0, 0,
    663  1.29  christos 	    sys_nosys },			/* 270 = unimplemented */
    664  1.29  christos 	{ 0, 0,
    665  1.29  christos 	    sys_nosys },			/* 271 = unimplemented */
    666  1.29  christos 	{ 3, s(struct sys_getdents_args),
    667  1.29  christos 	    sys_getdents },			/* 272 = getdents */
    668  1.29  christos 	{ 0, 0,
    669  1.29  christos 	    sys_nosys },			/* 273 = unimplemented */
    670  1.29  christos 	{ 2, s(struct sys_lchmod_args),
    671  1.29  christos 	    sys_lchmod },			/* 274 = lchmod */
    672  1.29  christos 	{ 3, s(struct sys_lchown_args),
    673  1.29  christos 	    sys_lchown },			/* 275 = netbsd_lchown */
    674  1.29  christos 	{ 2, s(struct sys_lutimes_args),
    675  1.29  christos 	    sys_lutimes },			/* 276 = lutimes */
    676  1.29  christos 	{ 3, s(struct sys___msync13_args),
    677  1.29  christos 	    sys___msync13 },			/* 277 = __msync13 */
    678  1.29  christos 	{ 2, s(struct sys___stat13_args),
    679  1.29  christos 	    sys___stat13 },			/* 278 = __stat13 */
    680  1.29  christos 	{ 2, s(struct sys___fstat13_args),
    681  1.29  christos 	    sys___fstat13 },			/* 279 = __fstat13 */
    682  1.29  christos 	{ 2, s(struct sys___lstat13_args),
    683  1.29  christos 	    sys___lstat13 },			/* 280 = __lstat13 */
    684  1.29  christos 	{ 0, 0,
    685  1.29  christos 	    sys_nosys },			/* 281 = unimplemented */
    686  1.29  christos 	{ 0, 0,
    687  1.29  christos 	    sys_nosys },			/* 282 = unimplemented */
    688  1.29  christos 	{ 0, 0,
    689  1.29  christos 	    sys_nosys },			/* 283 = unimplemented */
    690  1.29  christos 	{ 0, 0,
    691  1.29  christos 	    sys_nosys },			/* 284 = unimplemented */
    692  1.29  christos 	{ 0, 0,
    693  1.29  christos 	    sys_nosys },			/* 285 = unimplemented */
    694  1.29  christos 	{ 0, 0,
    695  1.29  christos 	    sys_nosys },			/* 286 = unimplemented */
    696  1.29  christos 	{ 0, 0,
    697  1.29  christos 	    sys_nosys },			/* 287 = unimplemented */
    698  1.29  christos 	{ 0, 0,
    699  1.29  christos 	    sys_nosys },			/* 288 = unimplemented */
    700  1.29  christos 	{ 0, 0,
    701  1.29  christos 	    sys_nosys },			/* 289 = unimplemented */
    702  1.29  christos 	{ 0, 0,
    703  1.29  christos 	    sys_nosys },			/* 290 = unimplemented */
    704  1.29  christos 	{ 0, 0,
    705  1.29  christos 	    sys_nosys },			/* 291 = unimplemented */
    706  1.29  christos 	{ 0, 0,
    707  1.29  christos 	    sys_nosys },			/* 292 = unimplemented */
    708  1.29  christos 	{ 0, 0,
    709  1.29  christos 	    sys_nosys },			/* 293 = unimplemented */
    710  1.29  christos 	{ 0, 0,
    711  1.29  christos 	    sys_nosys },			/* 294 = unimplemented */
    712  1.29  christos 	{ 0, 0,
    713  1.29  christos 	    sys_nosys },			/* 295 = unimplemented */
    714  1.29  christos 	{ 0, 0,
    715  1.29  christos 	    sys_nosys },			/* 296 = unimplemented */
    716  1.29  christos 	{ 0, 0,
    717  1.34        tv 	    sys_nosys },			/* 297 = unimplemented fhstatfs */
    718  1.29  christos 	{ 0, 0,
    719  1.34        tv 	    sys_nosys },			/* 298 = unimplemented fhopen */
    720  1.29  christos 	{ 0, 0,
    721  1.34        tv 	    sys_nosys },			/* 299 = unimplemented fhstat */
    722  1.29  christos 	{ 0, 0,
    723  1.29  christos 	    sys_nosys },			/* 300 = unimplemented modnext */
    724  1.29  christos 	{ 0, 0,
    725  1.29  christos 	    sys_nosys },			/* 301 = unimplemented modstat */
    726  1.29  christos 	{ 0, 0,
    727  1.29  christos 	    sys_nosys },			/* 302 = unimplemented modfnext */
    728  1.29  christos 	{ 0, 0,
    729  1.29  christos 	    sys_nosys },			/* 303 = unimplemented modfind */
    730  1.29  christos 	{ 0, 0,
    731  1.29  christos 	    sys_nosys },			/* 304 = unimplemented kldload */
    732  1.29  christos 	{ 0, 0,
    733  1.29  christos 	    sys_nosys },			/* 305 = unimplemented kldunload */
    734  1.29  christos 	{ 0, 0,
    735  1.29  christos 	    sys_nosys },			/* 306 = unimplemented kldfind */
    736  1.29  christos 	{ 0, 0,
    737  1.29  christos 	    sys_nosys },			/* 307 = unimplemented kldnext */
    738  1.29  christos 	{ 0, 0,
    739  1.29  christos 	    sys_nosys },			/* 308 = unimplemented kldstat */
    740  1.29  christos 	{ 0, 0,
    741  1.29  christos 	    sys_nosys },			/* 309 = unimplemented kldfirstmod */
    742  1.34        tv 	{ 1, s(struct sys_getsid_args),
    743  1.34        tv 	    sys_getsid },			/* 310 = getsid */
    744  1.29  christos 	{ 0, 0,
    745  1.29  christos 	    sys_nosys },			/* 311 = unimplemented setresuid */
    746  1.29  christos 	{ 0, 0,
    747  1.29  christos 	    sys_nosys },			/* 312 = unimplemented setresgid */
    748  1.29  christos 	{ 0, 0,
    749  1.29  christos 	    sys_nosys },			/* 313 = unimplemented signanosleep */
    750  1.29  christos 	{ 0, 0,
    751  1.29  christos 	    sys_nosys },			/* 314 = unimplemented aio_return */
    752  1.29  christos 	{ 0, 0,
    753  1.29  christos 	    sys_nosys },			/* 315 = unimplemented aio_suspend */
    754  1.29  christos 	{ 0, 0,
    755  1.29  christos 	    sys_nosys },			/* 316 = unimplemented aio_cancel */
    756  1.29  christos 	{ 0, 0,
    757  1.29  christos 	    sys_nosys },			/* 317 = unimplemented aio_error */
    758  1.29  christos 	{ 0, 0,
    759  1.29  christos 	    sys_nosys },			/* 318 = unimplemented aio_read */
    760  1.29  christos 	{ 0, 0,
    761  1.29  christos 	    sys_nosys },			/* 319 = unimplemented aio_write */
    762  1.29  christos 	{ 0, 0,
    763  1.29  christos 	    sys_nosys },			/* 320 = unimplemented lio_listio */
    764  1.29  christos 	{ 0, 0,
    765  1.29  christos 	    sys_nosys },			/* 321 = unimplemented yield */
    766  1.29  christos 	{ 0, 0,
    767  1.29  christos 	    sys_nosys },			/* 322 = unimplemented thr_sleep */
    768  1.29  christos 	{ 0, 0,
    769  1.29  christos 	    sys_nosys },			/* 323 = unimplemented thr_wakeup */
    770  1.34        tv 	{ 1, s(struct sys_mlockall_args),
    771  1.34        tv 	    sys_mlockall },			/* 324 = mlockall */
    772  1.29  christos 	{ 0, 0,
    773  1.34        tv 	    sys_munlockall },			/* 325 = munlockall */
    774  1.34        tv 	{ 2, s(struct sys___getcwd_args),
    775  1.34        tv 	    sys___getcwd },			/* 326 = __getcwd */
    776  1.29  christos 	{ 0, 0,
    777  1.29  christos 	    sys_nosys },			/* 327 = unimplemented sched_setparam */
    778  1.29  christos 	{ 0, 0,
    779  1.29  christos 	    sys_nosys },			/* 328 = unimplemented sched_getparam */
    780  1.29  christos 	{ 0, 0,
    781  1.29  christos 	    sys_nosys },			/* 329 = unimplemented sched_setscheduler */
    782  1.29  christos 	{ 0, 0,
    783  1.29  christos 	    sys_nosys },			/* 330 = unimplemented sched_getscheduler */
    784  1.29  christos 	{ 0, 0,
    785  1.29  christos 	    sys_nosys },			/* 331 = unimplemented sched_yield */
    786  1.29  christos 	{ 0, 0,
    787  1.29  christos 	    sys_nosys },			/* 332 = unimplemented sched_get_priority_max */
    788  1.29  christos 	{ 0, 0,
    789  1.29  christos 	    sys_nosys },			/* 333 = unimplemented sched_get_priority_min */
    790  1.29  christos 	{ 0, 0,
    791  1.29  christos 	    sys_nosys },			/* 334 = unimplemented sched_rr_get_interval */
    792  1.29  christos 	{ 0, 0,
    793  1.29  christos 	    sys_nosys },			/* 335 = unimplemented utrace */
    794  1.29  christos 	{ 0, 0,
    795  1.29  christos 	    sys_nosys },			/* 336 = unimplemented sendfile */
    796  1.29  christos 	{ 0, 0,
    797  1.29  christos 	    sys_nosys },			/* 337 = unimplemented kldsym */
    798  1.34        tv 	{ 0, 0,
    799  1.34        tv 	    sys_nosys },			/* 338 = unimplemented jail */
    800  1.34        tv 	{ 0, 0,
    801  1.34        tv 	    sys_nosys },			/* 339 = unimplemented pioctl */
    802  1.35      onoe 	{ 3, s(struct sys___sigprocmask14_args),
    803  1.35      onoe 	    sys___sigprocmask14 },		/* 340 = __sigprocmask14 */
    804  1.35      onoe 	{ 1, s(struct sys___sigsuspend14_args),
    805  1.35      onoe 	    sys___sigsuspend14 },		/* 341 = __sigsuspend14 */
    806  1.35      onoe 	{ 3, s(struct freebsd_sys_sigaction4_args),
    807  1.35      onoe 	    freebsd_sys_sigaction4 },		/* 342 = sigaction4 */
    808  1.35      onoe 	{ 1, s(struct sys___sigpending14_args),
    809  1.35      onoe 	    sys___sigpending14 },		/* 343 = __sigpending14 */
    810  1.34        tv 	{ 0, 0,
    811  1.34        tv 	    sys_nosys },			/* 344 = unimplemented 4.0 sigreturn */
    812  1.34        tv 	{ 0, 0,
    813  1.34        tv 	    sys_nosys },			/* 345 = unimplemented sigtimedwait */
    814  1.34        tv 	{ 0, 0,
    815  1.34        tv 	    sys_nosys },			/* 346 = unimplemented sigwaitinfo */
    816  1.34        tv 	{ 0, 0,
    817  1.34        tv 	    sys_nosys },			/* 347 = unimplemented __acl_get_file */
    818  1.34        tv 	{ 0, 0,
    819  1.34        tv 	    sys_nosys },			/* 348 = unimplemented __acl_set_file */
    820  1.34        tv 	{ 0, 0,
    821  1.34        tv 	    sys_nosys },			/* 349 = unimplemented __acl_get_fd */
    822  1.34        tv 	{ 0, 0,
    823  1.34        tv 	    sys_nosys },			/* 350 = unimplemented __acl_set_fd */
    824  1.34        tv 	{ 0, 0,
    825  1.34        tv 	    sys_nosys },			/* 351 = unimplemented __acl_delete_file */
    826  1.34        tv 	{ 0, 0,
    827  1.34        tv 	    sys_nosys },			/* 352 = unimplemented __acl_delete_fd */
    828  1.34        tv 	{ 0, 0,
    829  1.34        tv 	    sys_nosys },			/* 353 = unimplemented __acl_aclcheck_file */
    830  1.34        tv 	{ 0, 0,
    831  1.34        tv 	    sys_nosys },			/* 354 = unimplemented __acl_aclcheck_fd */
    832  1.34        tv 	{ 0, 0,
    833  1.34        tv 	    sys_nosys },			/* 355 = unimplemented extattrctl */
    834  1.34        tv 	{ 0, 0,
    835  1.34        tv 	    sys_nosys },			/* 356 = unimplemented extattr_set_file */
    836  1.34        tv 	{ 0, 0,
    837  1.34        tv 	    sys_nosys },			/* 357 = unimplemented extattr_get_file */
    838  1.34        tv 	{ 0, 0,
    839  1.34        tv 	    sys_nosys },			/* 358 = unimplemented extattr_delete_file */
    840  1.34        tv 	{ 0, 0,
    841  1.34        tv 	    sys_nosys },			/* 359 = unimplemented aio_waitcomplete */
    842  1.34        tv 	{ 0, 0,
    843  1.34        tv 	    sys_nosys },			/* 360 = unimplemented getresuid */
    844  1.34        tv 	{ 0, 0,
    845  1.34        tv 	    sys_nosys },			/* 361 = unimplemented getresgid */
    846  1.34        tv 	{ 0, 0,
    847  1.34        tv 	    sys_nosys },			/* 362 = unimplemented kqueue */
    848  1.34        tv 	{ 0, 0,
    849  1.34        tv 	    sys_nosys },			/* 363 = unimplemented kevent */
    850   1.1   mycroft };
    851   1.1   mycroft 
    852