Home | History | Annotate | Line # | Download | only in netbsd32
netbsd32_sysent.c revision 1.19
      1  1.16       cgd /* $NetBSD: netbsd32_sysent.c,v 1.19 2001/01/27 07:28:22 thorpej Exp $ */
      2   1.1       mrg 
      3   1.1       mrg /*
      4   1.1       mrg  * System call switch table.
      5   1.1       mrg  *
      6   1.1       mrg  * DO NOT EDIT-- this file is automatically generated.
      7  1.18   mycroft  * created from	NetBSD: syscalls.master,v 1.16 2000/12/09 05:27:30 mycroft Exp
      8   1.1       mrg  */
      9   1.1       mrg 
     10  1.18   mycroft #if defined(_KERNEL) && !defined(_LKM)
     11   1.1       mrg #include "opt_ktrace.h"
     12   1.1       mrg #include "opt_nfsserver.h"
     13   1.1       mrg #include "opt_compat_netbsd.h"
     14   1.4       eeh #include "opt_ntp.h"
     15   1.5      tron #include "opt_sysv.h"
     16   1.6  christos #include "opt_compat_43.h"
     17   1.1       mrg #include "fs_lfs.h"
     18   1.1       mrg #include "fs_nfs.h"
     19  1.17  jdolecek #endif
     20   1.1       mrg #include <sys/param.h>
     21   1.1       mrg #include <sys/systm.h>
     22   1.1       mrg #include <sys/signal.h>
     23   1.1       mrg #include <sys/mount.h>
     24   1.1       mrg #include <sys/syscallargs.h>
     25   1.8       mrg #include <compat/netbsd32/netbsd32.h>
     26   1.8       mrg #include <compat/netbsd32/netbsd32_syscallargs.h>
     27   1.1       mrg 
     28   1.1       mrg #ifdef COMPAT_43
     29   1.1       mrg #define compat_43(func) __CONCAT(compat_43_,func)
     30   1.1       mrg #else
     31   1.1       mrg #define compat_43(func) sys_nosys
     32   1.1       mrg #endif
     33   1.1       mrg 
     34   1.1       mrg #ifdef COMPAT_09
     35   1.1       mrg #define compat_09(func) __CONCAT(compat_09_,func)
     36   1.1       mrg #else
     37   1.1       mrg #define compat_09(func) sys_nosys
     38   1.1       mrg #endif
     39   1.1       mrg 
     40   1.1       mrg #ifdef COMPAT_10
     41   1.1       mrg #define compat_10(func) __CONCAT(compat_10_,func)
     42   1.1       mrg #else
     43   1.1       mrg #define compat_10(func) sys_nosys
     44   1.1       mrg #endif
     45   1.1       mrg 
     46   1.1       mrg #ifdef COMPAT_11
     47   1.1       mrg #define compat_11(func) __CONCAT(compat_11_,func)
     48   1.1       mrg #else
     49   1.1       mrg #define compat_11(func) sys_nosys
     50   1.1       mrg #endif
     51   1.1       mrg 
     52   1.1       mrg #ifdef COMPAT_12
     53   1.1       mrg #define compat_12(func) __CONCAT(compat_12_,func)
     54   1.1       mrg #else
     55   1.1       mrg #define compat_12(func) sys_nosys
     56   1.1       mrg #endif
     57   1.1       mrg 
     58   1.1       mrg #ifdef COMPAT_13
     59   1.1       mrg #define compat_13(func) __CONCAT(compat_13_,func)
     60   1.1       mrg #else
     61   1.1       mrg #define compat_13(func) sys_nosys
     62   1.1       mrg #endif
     63   1.1       mrg 
     64  1.11       eeh #ifdef COMPAT_14
     65  1.11       eeh #define compat_14(func) __CONCAT(compat_14_,func)
     66  1.11       eeh #else
     67  1.11       eeh #define compat_14(func) sys_nosys
     68  1.11       eeh #endif
     69  1.11       eeh 
     70   1.1       mrg #define	s(type)	sizeof(type)
     71   1.1       mrg 
     72   1.8       mrg struct sysent netbsd32_sysent[] = {
     73  1.19   thorpej 	{ 0, 0, 0,
     74   1.1       mrg 	    sys_nosys },			/* 0 = syscall (indir) */
     75  1.19   thorpej 	{ 1, s(struct netbsd32_exit_args), 0,
     76  1.11       eeh 	    netbsd32_exit },			/* 1 = netbsd32_exit */
     77  1.19   thorpej 	{ 0, 0, 0,
     78   1.1       mrg 	    sys_fork },				/* 2 = fork */
     79  1.19   thorpej 	{ 3, s(struct netbsd32_read_args), 0,
     80  1.11       eeh 	    netbsd32_read },			/* 3 = netbsd32_read */
     81  1.19   thorpej 	{ 3, s(struct netbsd32_write_args), 0,
     82  1.11       eeh 	    netbsd32_write },			/* 4 = netbsd32_write */
     83  1.19   thorpej 	{ 3, s(struct netbsd32_open_args), 0,
     84  1.11       eeh 	    netbsd32_open },			/* 5 = netbsd32_open */
     85  1.19   thorpej 	{ 1, s(struct netbsd32_close_args), 0,
     86  1.11       eeh 	    netbsd32_close },			/* 6 = netbsd32_close */
     87  1.19   thorpej 	{ 4, s(struct netbsd32_wait4_args), 0,
     88  1.11       eeh 	    netbsd32_wait4 },			/* 7 = netbsd32_wait4 */
     89  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_ocreat_args), 0,
     90  1.11       eeh 	    compat_43(netbsd32_ocreat) },	/* 8 = compat_43 netbsd32_ocreat */
     91  1.19   thorpej 	{ 2, s(struct netbsd32_link_args), 0,
     92  1.11       eeh 	    netbsd32_link },			/* 9 = netbsd32_link */
     93  1.19   thorpej 	{ 1, s(struct netbsd32_unlink_args), 0,
     94  1.11       eeh 	    netbsd32_unlink },			/* 10 = netbsd32_unlink */
     95  1.19   thorpej 	{ 0, 0, 0,
     96   1.1       mrg 	    sys_nosys },			/* 11 = obsolete execv */
     97  1.19   thorpej 	{ 1, s(struct netbsd32_chdir_args), 0,
     98  1.11       eeh 	    netbsd32_chdir },			/* 12 = netbsd32_chdir */
     99  1.19   thorpej 	{ 1, s(struct netbsd32_fchdir_args), 0,
    100  1.11       eeh 	    netbsd32_fchdir },			/* 13 = netbsd32_fchdir */
    101  1.19   thorpej 	{ 3, s(struct netbsd32_mknod_args), 0,
    102  1.11       eeh 	    netbsd32_mknod },			/* 14 = netbsd32_mknod */
    103  1.19   thorpej 	{ 2, s(struct netbsd32_chmod_args), 0,
    104  1.11       eeh 	    netbsd32_chmod },			/* 15 = netbsd32_chmod */
    105  1.19   thorpej 	{ 3, s(struct netbsd32_chown_args), 0,
    106  1.11       eeh 	    netbsd32_chown },			/* 16 = netbsd32_chown */
    107  1.19   thorpej 	{ 1, s(struct netbsd32_break_args), 0,
    108  1.11       eeh 	    netbsd32_break },			/* 17 = netbsd32_break */
    109  1.19   thorpej 	{ 3, s(struct netbsd32_getfsstat_args), 0,
    110  1.11       eeh 	    netbsd32_getfsstat },		/* 18 = netbsd32_getfsstat */
    111  1.19   thorpej 	{ 3, s(struct compat_43_netbsd32_olseek_args), 0,
    112  1.11       eeh 	    compat_43(netbsd32_olseek) },	/* 19 = compat_43 netbsd32_olseek */
    113  1.19   thorpej 	{ 0, 0, 0,
    114   1.1       mrg 	    sys_getpid },			/* 20 = getpid */
    115  1.19   thorpej 	{ 4, s(struct netbsd32_mount_args), 0,
    116  1.11       eeh 	    netbsd32_mount },			/* 21 = netbsd32_mount */
    117  1.19   thorpej 	{ 2, s(struct netbsd32_unmount_args), 0,
    118  1.11       eeh 	    netbsd32_unmount },			/* 22 = netbsd32_unmount */
    119  1.19   thorpej 	{ 1, s(struct netbsd32_setuid_args), 0,
    120  1.11       eeh 	    netbsd32_setuid },			/* 23 = netbsd32_setuid */
    121  1.19   thorpej 	{ 0, 0, 0,
    122   1.1       mrg 	    sys_getuid },			/* 24 = getuid */
    123  1.19   thorpej 	{ 0, 0, 0,
    124   1.1       mrg 	    sys_geteuid },			/* 25 = geteuid */
    125  1.19   thorpej 	{ 4, s(struct netbsd32_ptrace_args), 0,
    126  1.11       eeh 	    netbsd32_ptrace },			/* 26 = netbsd32_ptrace */
    127  1.19   thorpej 	{ 3, s(struct netbsd32_recvmsg_args), 0,
    128  1.11       eeh 	    netbsd32_recvmsg },			/* 27 = netbsd32_recvmsg */
    129  1.19   thorpej 	{ 3, s(struct netbsd32_sendmsg_args), 0,
    130  1.11       eeh 	    netbsd32_sendmsg },			/* 28 = netbsd32_sendmsg */
    131  1.19   thorpej 	{ 6, s(struct netbsd32_recvfrom_args), 0,
    132  1.11       eeh 	    netbsd32_recvfrom },		/* 29 = netbsd32_recvfrom */
    133  1.19   thorpej 	{ 3, s(struct netbsd32_accept_args), 0,
    134  1.11       eeh 	    netbsd32_accept },			/* 30 = netbsd32_accept */
    135  1.19   thorpej 	{ 3, s(struct netbsd32_getpeername_args), 0,
    136  1.11       eeh 	    netbsd32_getpeername },		/* 31 = netbsd32_getpeername */
    137  1.19   thorpej 	{ 3, s(struct netbsd32_getsockname_args), 0,
    138  1.11       eeh 	    netbsd32_getsockname },		/* 32 = netbsd32_getsockname */
    139  1.19   thorpej 	{ 2, s(struct netbsd32_access_args), 0,
    140  1.11       eeh 	    netbsd32_access },			/* 33 = netbsd32_access */
    141  1.19   thorpej 	{ 2, s(struct netbsd32_chflags_args), 0,
    142  1.11       eeh 	    netbsd32_chflags },			/* 34 = netbsd32_chflags */
    143  1.19   thorpej 	{ 2, s(struct netbsd32_fchflags_args), 0,
    144  1.11       eeh 	    netbsd32_fchflags },		/* 35 = netbsd32_fchflags */
    145  1.19   thorpej 	{ 0, 0, 0,
    146   1.1       mrg 	    sys_sync },				/* 36 = sync */
    147  1.19   thorpej 	{ 2, s(struct netbsd32_kill_args), 0,
    148  1.11       eeh 	    netbsd32_kill },			/* 37 = netbsd32_kill */
    149  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_stat43_args), 0,
    150  1.11       eeh 	    compat_43(netbsd32_stat43) },	/* 38 = compat_43 netbsd32_stat43 */
    151  1.19   thorpej 	{ 0, 0, 0,
    152   1.1       mrg 	    sys_getppid },			/* 39 = getppid */
    153  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_lstat43_args), 0,
    154  1.11       eeh 	    compat_43(netbsd32_lstat43) },	/* 40 = compat_43 netbsd32_lstat43 */
    155  1.19   thorpej 	{ 1, s(struct netbsd32_dup_args), 0,
    156  1.11       eeh 	    netbsd32_dup },			/* 41 = netbsd32_dup */
    157  1.19   thorpej 	{ 0, 0, 0,
    158   1.1       mrg 	    sys_pipe },				/* 42 = pipe */
    159  1.19   thorpej 	{ 0, 0, 0,
    160   1.1       mrg 	    sys_getegid },			/* 43 = getegid */
    161  1.19   thorpej 	{ 4, s(struct netbsd32_profil_args), 0,
    162  1.11       eeh 	    netbsd32_profil },			/* 44 = netbsd32_profil */
    163  1.10  christos #if defined(KTRACE) || !defined(_KERNEL)
    164  1.19   thorpej 	{ 4, s(struct netbsd32_ktrace_args), 0,
    165  1.11       eeh 	    netbsd32_ktrace },			/* 45 = netbsd32_ktrace */
    166   1.1       mrg #else
    167  1.19   thorpej 	{ 0, 0, 0,
    168  1.11       eeh 	    sys_nosys },			/* 45 = excluded netbsd32_ktrace */
    169   1.1       mrg #endif
    170  1.19   thorpej 	{ 3, s(struct netbsd32_sigaction_args), 0,
    171  1.11       eeh 	    netbsd32_sigaction },		/* 46 = netbsd32_sigaction */
    172  1.19   thorpej 	{ 0, 0, 0,
    173   1.1       mrg 	    sys_getgid },			/* 47 = getgid */
    174  1.19   thorpej 	{ 2, s(struct compat_13_netbsd32_sigprocmask_args), 0,
    175  1.11       eeh 	    compat_13(netbsd32_sigprocmask) },	/* 48 = compat_13 sigprocmask13 */
    176  1.19   thorpej 	{ 2, s(struct netbsd32___getlogin_args), 0,
    177  1.11       eeh 	    netbsd32___getlogin },		/* 49 = netbsd32___getlogin */
    178  1.19   thorpej 	{ 1, s(struct netbsd32_setlogin_args), 0,
    179  1.11       eeh 	    netbsd32_setlogin },		/* 50 = netbsd32_setlogin */
    180  1.19   thorpej 	{ 1, s(struct netbsd32_acct_args), 0,
    181  1.11       eeh 	    netbsd32_acct },			/* 51 = netbsd32_acct */
    182  1.19   thorpej 	{ 0, 0, 0,
    183   1.4       eeh 	    compat_13(sys_sigpending) },	/* 52 = compat_13 sigpending13 */
    184  1.19   thorpej 	{ 2, s(struct compat_13_netbsd32_sigaltstack13_args), 0,
    185  1.11       eeh 	    compat_13(netbsd32_sigaltstack13) },/* 53 = compat_13 netbsd32_sigaltstack13 */
    186  1.19   thorpej 	{ 3, s(struct netbsd32_ioctl_args), 0,
    187  1.11       eeh 	    netbsd32_ioctl },			/* 54 = netbsd32_ioctl */
    188   1.3       mrg #ifdef COMPAT_12
    189  1.19   thorpej 	{ 1, s(struct compat_12_netbsd32_reboot_args), 0,
    190  1.11       eeh 	    compat_12(netbsd32_reboot) },	/* 55 = compat_12 netbsd32_reboot */
    191   1.3       mrg #else
    192  1.19   thorpej 	{ 0, 0, 0,
    193   1.3       mrg 	    sys_nosys },			/* 55 = obsolete oreboot */
    194   1.3       mrg #endif
    195  1.19   thorpej 	{ 1, s(struct netbsd32_revoke_args), 0,
    196  1.11       eeh 	    netbsd32_revoke },			/* 56 = netbsd32_revoke */
    197  1.19   thorpej 	{ 2, s(struct netbsd32_symlink_args), 0,
    198  1.11       eeh 	    netbsd32_symlink },			/* 57 = netbsd32_symlink */
    199  1.19   thorpej 	{ 3, s(struct netbsd32_readlink_args), 0,
    200  1.11       eeh 	    netbsd32_readlink },		/* 58 = netbsd32_readlink */
    201  1.19   thorpej 	{ 3, s(struct netbsd32_execve_args), 0,
    202  1.11       eeh 	    netbsd32_execve },			/* 59 = netbsd32_execve */
    203  1.19   thorpej 	{ 1, s(struct netbsd32_umask_args), 0,
    204  1.11       eeh 	    netbsd32_umask },			/* 60 = netbsd32_umask */
    205  1.19   thorpej 	{ 1, s(struct netbsd32_chroot_args), 0,
    206  1.11       eeh 	    netbsd32_chroot },			/* 61 = netbsd32_chroot */
    207  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_fstat43_args), 0,
    208  1.11       eeh 	    compat_43(netbsd32_fstat43) },	/* 62 = compat_43 netbsd32_fstat43 */
    209  1.19   thorpej 	{ 4, s(struct compat_43_netbsd32_ogetkerninfo_args), 0,
    210  1.11       eeh 	    compat_43(netbsd32_ogetkerninfo) },	/* 63 = compat_43 netbsd32_ogetkerninfo */
    211  1.19   thorpej 	{ 0, 0, 0,
    212   1.1       mrg 	    compat_43(sys_getpagesize) },	/* 64 = compat_43 ogetpagesize */
    213  1.19   thorpej 	{ 2, s(struct compat_12_netbsd32_msync_args), 0,
    214  1.11       eeh 	    compat_12(netbsd32_msync) },	/* 65 = compat_12 netbsd32_msync */
    215  1.19   thorpej 	{ 0, 0, 0,
    216   1.1       mrg 	    sys_vfork },			/* 66 = vfork */
    217  1.19   thorpej 	{ 0, 0, 0,
    218   1.1       mrg 	    sys_nosys },			/* 67 = obsolete vread */
    219  1.19   thorpej 	{ 0, 0, 0,
    220   1.1       mrg 	    sys_nosys },			/* 68 = obsolete vwrite */
    221  1.19   thorpej 	{ 1, s(struct netbsd32_sbrk_args), 0,
    222  1.11       eeh 	    netbsd32_sbrk },			/* 69 = netbsd32_sbrk */
    223  1.19   thorpej 	{ 1, s(struct netbsd32_sstk_args), 0,
    224  1.11       eeh 	    netbsd32_sstk },			/* 70 = netbsd32_sstk */
    225  1.19   thorpej 	{ 6, s(struct compat_43_netbsd32_ommap_args), 0,
    226  1.11       eeh 	    compat_43(netbsd32_ommap) },	/* 71 = compat_43 netbsd32_ommap */
    227  1.19   thorpej 	{ 1, s(struct netbsd32_ovadvise_args), 0,
    228  1.11       eeh 	    netbsd32_ovadvise },		/* 72 = vadvise */
    229  1.19   thorpej 	{ 2, s(struct netbsd32_munmap_args), 0,
    230  1.11       eeh 	    netbsd32_munmap },			/* 73 = netbsd32_munmap */
    231  1.19   thorpej 	{ 3, s(struct netbsd32_mprotect_args), 0,
    232  1.11       eeh 	    netbsd32_mprotect },		/* 74 = netbsd32_mprotect */
    233  1.19   thorpej 	{ 3, s(struct netbsd32_madvise_args), 0,
    234  1.11       eeh 	    netbsd32_madvise },			/* 75 = netbsd32_madvise */
    235  1.19   thorpej 	{ 0, 0, 0,
    236   1.1       mrg 	    sys_nosys },			/* 76 = obsolete vhangup */
    237  1.19   thorpej 	{ 0, 0, 0,
    238   1.1       mrg 	    sys_nosys },			/* 77 = obsolete vlimit */
    239  1.19   thorpej 	{ 3, s(struct netbsd32_mincore_args), 0,
    240  1.11       eeh 	    netbsd32_mincore },			/* 78 = netbsd32_mincore */
    241  1.19   thorpej 	{ 2, s(struct netbsd32_getgroups_args), 0,
    242  1.11       eeh 	    netbsd32_getgroups },		/* 79 = netbsd32_getgroups */
    243  1.19   thorpej 	{ 2, s(struct netbsd32_setgroups_args), 0,
    244  1.11       eeh 	    netbsd32_setgroups },		/* 80 = netbsd32_setgroups */
    245  1.19   thorpej 	{ 0, 0, 0,
    246   1.1       mrg 	    sys_getpgrp },			/* 81 = getpgrp */
    247  1.19   thorpej 	{ 2, s(struct netbsd32_setpgid_args), 0,
    248  1.11       eeh 	    netbsd32_setpgid },			/* 82 = netbsd32_setpgid */
    249  1.19   thorpej 	{ 3, s(struct netbsd32_setitimer_args), 0,
    250  1.11       eeh 	    netbsd32_setitimer },		/* 83 = netbsd32_setitimer */
    251  1.19   thorpej 	{ 0, 0, 0,
    252   1.1       mrg 	    compat_43(sys_wait) },		/* 84 = compat_43 owait */
    253  1.19   thorpej 	{ 1, s(struct compat_12_netbsd32_oswapon_args), 0,
    254  1.11       eeh 	    compat_12(netbsd32_oswapon) },	/* 85 = compat_12 netbsd32_oswapon */
    255  1.19   thorpej 	{ 2, s(struct netbsd32_getitimer_args), 0,
    256  1.11       eeh 	    netbsd32_getitimer },		/* 86 = netbsd32_getitimer */
    257  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_ogethostname_args), 0,
    258  1.11       eeh 	    compat_43(netbsd32_ogethostname) },	/* 87 = compat_43 netbsd32_ogethostname */
    259  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_osethostname_args), 0,
    260  1.11       eeh 	    compat_43(netbsd32_osethostname) },	/* 88 = compat_43 netbsd32_osethostname */
    261  1.19   thorpej 	{ 0, 0, 0,
    262   1.1       mrg 	    compat_43(sys_getdtablesize) },	/* 89 = compat_43 ogetdtablesize */
    263  1.19   thorpej 	{ 2, s(struct netbsd32_dup2_args), 0,
    264  1.11       eeh 	    netbsd32_dup2 },			/* 90 = netbsd32_dup2 */
    265  1.19   thorpej 	{ 0, 0, 0,
    266   1.1       mrg 	    sys_nosys },			/* 91 = unimplemented getdopt */
    267  1.19   thorpej 	{ 3, s(struct netbsd32_fcntl_args), 0,
    268  1.11       eeh 	    netbsd32_fcntl },			/* 92 = netbsd32_fcntl */
    269  1.19   thorpej 	{ 5, s(struct netbsd32_select_args), 0,
    270  1.11       eeh 	    netbsd32_select },			/* 93 = netbsd32_select */
    271  1.19   thorpej 	{ 0, 0, 0,
    272   1.1       mrg 	    sys_nosys },			/* 94 = unimplemented setdopt */
    273  1.19   thorpej 	{ 1, s(struct netbsd32_fsync_args), 0,
    274  1.11       eeh 	    netbsd32_fsync },			/* 95 = netbsd32_fsync */
    275  1.19   thorpej 	{ 3, s(struct netbsd32_setpriority_args), 0,
    276  1.11       eeh 	    netbsd32_setpriority },		/* 96 = netbsd32_setpriority */
    277  1.19   thorpej 	{ 3, s(struct netbsd32_socket_args), 0,
    278  1.11       eeh 	    netbsd32_socket },			/* 97 = netbsd32_socket */
    279  1.19   thorpej 	{ 3, s(struct netbsd32_connect_args), 0,
    280  1.11       eeh 	    netbsd32_connect },			/* 98 = netbsd32_connect */
    281  1.19   thorpej 	{ 3, s(struct compat_43_netbsd32_oaccept_args), 0,
    282  1.11       eeh 	    compat_43(netbsd32_oaccept) },	/* 99 = compat_43 netbsd32_oaccept */
    283  1.19   thorpej 	{ 2, s(struct netbsd32_getpriority_args), 0,
    284  1.11       eeh 	    netbsd32_getpriority },		/* 100 = netbsd32_getpriority */
    285  1.19   thorpej 	{ 4, s(struct compat_43_netbsd32_osend_args), 0,
    286  1.11       eeh 	    compat_43(netbsd32_osend) },	/* 101 = compat_43 netbsd32_osend */
    287  1.19   thorpej 	{ 4, s(struct compat_43_netbsd32_orecv_args), 0,
    288  1.11       eeh 	    compat_43(netbsd32_orecv) },	/* 102 = compat_43 netbsd32_orecv */
    289  1.19   thorpej 	{ 1, s(struct compat_13_netbsd32_sigreturn_args), 0,
    290  1.12       eeh 	    compat_13(netbsd32_sigreturn) },	/* 103 = compat_13 sigreturn13 */
    291  1.19   thorpej 	{ 3, s(struct netbsd32_bind_args), 0,
    292  1.11       eeh 	    netbsd32_bind },			/* 104 = netbsd32_bind */
    293  1.19   thorpej 	{ 5, s(struct netbsd32_setsockopt_args), 0,
    294  1.11       eeh 	    netbsd32_setsockopt },		/* 105 = netbsd32_setsockopt */
    295  1.19   thorpej 	{ 2, s(struct netbsd32_listen_args), 0,
    296  1.11       eeh 	    netbsd32_listen },			/* 106 = netbsd32_listen */
    297  1.19   thorpej 	{ 0, 0, 0,
    298   1.1       mrg 	    sys_nosys },			/* 107 = obsolete vtimes */
    299  1.19   thorpej 	{ 3, s(struct compat_43_netbsd32_osigvec_args), 0,
    300  1.11       eeh 	    compat_43(netbsd32_osigvec) },	/* 108 = compat_43 netbsd32_osigvec */
    301   1.1       mrg #ifdef COMPAT_43
    302  1.19   thorpej 	{ 1, s(struct compat_43_netbsd32_sigblock_args), 0,
    303  1.11       eeh 	    compat_43(netbsd32_sigblock) },	/* 109 = compat_43 netbsd32_sigblock */
    304  1.19   thorpej 	{ 1, s(struct compat_43_netbsd32_sigsetmask_args), 0,
    305  1.11       eeh 	    compat_43(netbsd32_sigsetmask) },	/* 110 = compat_43 netbsd32_sigsetmask */
    306   1.1       mrg #else
    307  1.19   thorpej 	{ 0, 0, 0,
    308   1.1       mrg 	    sys_nosys },			/* 109 = obsolete sigblock */
    309  1.19   thorpej 	{ 0, 0, 0,
    310   1.1       mrg 	    sys_nosys },			/* 110 = obsolete sigsetmask */
    311   1.1       mrg #endif
    312  1.19   thorpej 	{ 1, s(struct compat_13_netbsd32_sigsuspend_args), 0,
    313  1.11       eeh 	    compat_13(netbsd32_sigsuspend) },	/* 111 = compat_13 sigsuspend13 */
    314  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_osigstack_args), 0,
    315  1.11       eeh 	    compat_43(netbsd32_osigstack) },	/* 112 = compat_43 netbsd32_osigstack */
    316  1.19   thorpej 	{ 3, s(struct compat_43_netbsd32_orecvmsg_args), 0,
    317  1.11       eeh 	    compat_43(netbsd32_orecvmsg) },	/* 113 = compat_43 netbsd32_orecvmsg */
    318  1.19   thorpej 	{ 3, s(struct compat_43_netbsd32_osendmsg_args), 0,
    319  1.11       eeh 	    compat_43(netbsd32_osendmsg) },	/* 114 = compat_43 netbsd32_osendmsg */
    320  1.19   thorpej 	{ 0, 0, 0,
    321   1.1       mrg 	    sys_nosys },			/* 115 = obsolete vtrace */
    322  1.19   thorpej 	{ 2, s(struct netbsd32_gettimeofday_args), 0,
    323  1.11       eeh 	    netbsd32_gettimeofday },		/* 116 = netbsd32_gettimeofday */
    324  1.19   thorpej 	{ 2, s(struct netbsd32_getrusage_args), 0,
    325  1.11       eeh 	    netbsd32_getrusage },		/* 117 = netbsd32_getrusage */
    326  1.19   thorpej 	{ 5, s(struct netbsd32_getsockopt_args), 0,
    327  1.11       eeh 	    netbsd32_getsockopt },		/* 118 = netbsd32_getsockopt */
    328  1.19   thorpej 	{ 0, 0, 0,
    329   1.1       mrg 	    sys_nosys },			/* 119 = obsolete resuba */
    330  1.19   thorpej 	{ 3, s(struct netbsd32_readv_args), 0,
    331  1.11       eeh 	    netbsd32_readv },			/* 120 = netbsd32_readv */
    332  1.19   thorpej 	{ 3, s(struct netbsd32_writev_args), 0,
    333  1.11       eeh 	    netbsd32_writev },			/* 121 = netbsd32_writev */
    334  1.19   thorpej 	{ 2, s(struct netbsd32_settimeofday_args), 0,
    335  1.11       eeh 	    netbsd32_settimeofday },		/* 122 = netbsd32_settimeofday */
    336  1.19   thorpej 	{ 3, s(struct netbsd32_fchown_args), 0,
    337  1.11       eeh 	    netbsd32_fchown },			/* 123 = netbsd32_fchown */
    338  1.19   thorpej 	{ 2, s(struct netbsd32_fchmod_args), 0,
    339  1.11       eeh 	    netbsd32_fchmod },			/* 124 = netbsd32_fchmod */
    340  1.19   thorpej 	{ 6, s(struct compat_43_netbsd32_orecvfrom_args), 0,
    341  1.11       eeh 	    compat_43(netbsd32_orecvfrom) },	/* 125 = compat_43 netbsd32_orecvfrom */
    342  1.19   thorpej 	{ 2, s(struct netbsd32_setreuid_args), 0,
    343  1.11       eeh 	    netbsd32_setreuid },		/* 126 = netbsd32_setreuid */
    344  1.19   thorpej 	{ 2, s(struct netbsd32_setregid_args), 0,
    345  1.11       eeh 	    netbsd32_setregid },		/* 127 = netbsd32_setregid */
    346  1.19   thorpej 	{ 2, s(struct netbsd32_rename_args), 0,
    347  1.11       eeh 	    netbsd32_rename },			/* 128 = netbsd32_rename */
    348  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_otruncate_args), 0,
    349  1.11       eeh 	    compat_43(netbsd32_otruncate) },	/* 129 = compat_43 netbsd32_otruncate */
    350  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_oftruncate_args), 0,
    351  1.11       eeh 	    compat_43(netbsd32_oftruncate) },	/* 130 = compat_43 netbsd32_oftruncate */
    352  1.19   thorpej 	{ 2, s(struct netbsd32_flock_args), 0,
    353  1.11       eeh 	    netbsd32_flock },			/* 131 = netbsd32_flock */
    354  1.19   thorpej 	{ 2, s(struct netbsd32_mkfifo_args), 0,
    355  1.11       eeh 	    netbsd32_mkfifo },			/* 132 = netbsd32_mkfifo */
    356  1.19   thorpej 	{ 6, s(struct netbsd32_sendto_args), 0,
    357  1.11       eeh 	    netbsd32_sendto },			/* 133 = netbsd32_sendto */
    358  1.19   thorpej 	{ 2, s(struct netbsd32_shutdown_args), 0,
    359  1.11       eeh 	    netbsd32_shutdown },		/* 134 = netbsd32_shutdown */
    360  1.19   thorpej 	{ 4, s(struct netbsd32_socketpair_args), 0,
    361  1.11       eeh 	    netbsd32_socketpair },		/* 135 = netbsd32_socketpair */
    362  1.19   thorpej 	{ 2, s(struct netbsd32_mkdir_args), 0,
    363  1.11       eeh 	    netbsd32_mkdir },			/* 136 = netbsd32_mkdir */
    364  1.19   thorpej 	{ 1, s(struct netbsd32_rmdir_args), 0,
    365  1.11       eeh 	    netbsd32_rmdir },			/* 137 = netbsd32_rmdir */
    366  1.19   thorpej 	{ 2, s(struct netbsd32_utimes_args), 0,
    367  1.11       eeh 	    netbsd32_utimes },			/* 138 = netbsd32_utimes */
    368  1.19   thorpej 	{ 0, 0, 0,
    369   1.1       mrg 	    sys_nosys },			/* 139 = obsolete 4.2 sigreturn */
    370  1.19   thorpej 	{ 2, s(struct netbsd32_adjtime_args), 0,
    371  1.11       eeh 	    netbsd32_adjtime },			/* 140 = netbsd32_adjtime */
    372  1.19   thorpej 	{ 3, s(struct compat_43_netbsd32_ogetpeername_args), 0,
    373  1.11       eeh 	    compat_43(netbsd32_ogetpeername) },	/* 141 = compat_43 netbsd32_ogetpeername */
    374  1.19   thorpej 	{ 0, 0, 0,
    375   1.1       mrg 	    compat_43(sys_gethostid) },		/* 142 = compat_43 ogethostid */
    376   1.1       mrg #ifdef COMPAT_43
    377  1.19   thorpej 	{ 1, s(struct compat_43_netbsd32_sethostid_args), 0,
    378  1.11       eeh 	    compat_43(netbsd32_sethostid) },	/* 143 = compat_43 netbsd32_sethostid */
    379   1.1       mrg #else
    380  1.19   thorpej 	{ 0, 0, 0,
    381   1.1       mrg 	    sys_nosys },			/* 143 = obsolete sethostid */
    382   1.1       mrg #endif
    383  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_ogetrlimit_args), 0,
    384  1.11       eeh 	    compat_43(netbsd32_ogetrlimit) },	/* 144 = compat_43 netbsd32_ogetrlimit */
    385  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_osetrlimit_args), 0,
    386  1.11       eeh 	    compat_43(netbsd32_osetrlimit) },	/* 145 = compat_43 netbsd32_osetrlimit */
    387   1.1       mrg #ifdef COMPAT_43
    388  1.19   thorpej 	{ 2, s(struct compat_43_netbsd32_killpg_args), 0,
    389  1.11       eeh 	    compat_43(netbsd32_killpg) },	/* 146 = compat_43 netbsd32_killpg */
    390   1.1       mrg #else
    391  1.19   thorpej 	{ 0, 0, 0,
    392   1.1       mrg 	    sys_nosys },			/* 146 = obsolete killpg */
    393   1.1       mrg #endif
    394  1.19   thorpej 	{ 0, 0, 0,
    395   1.1       mrg 	    sys_setsid },			/* 147 = setsid */
    396  1.19   thorpej 	{ 4, s(struct netbsd32_quotactl_args), 0,
    397  1.11       eeh 	    netbsd32_quotactl },		/* 148 = netbsd32_quotactl */
    398  1.19   thorpej 	{ 0, 0, 0,
    399   1.1       mrg 	    compat_43(sys_quota) },		/* 149 = compat_43 oquota */
    400  1.19   thorpej 	{ 3, s(struct compat_43_netbsd32_ogetsockname_args), 0,
    401  1.11       eeh 	    compat_43(netbsd32_ogetsockname) },	/* 150 = compat_43 netbsd32_ogetsockname */
    402  1.19   thorpej 	{ 0, 0, 0,
    403   1.1       mrg 	    sys_nosys },			/* 151 = unimplemented */
    404  1.19   thorpej 	{ 0, 0, 0,
    405   1.1       mrg 	    sys_nosys },			/* 152 = unimplemented */
    406  1.19   thorpej 	{ 0, 0, 0,
    407   1.1       mrg 	    sys_nosys },			/* 153 = unimplemented */
    408  1.19   thorpej 	{ 0, 0, 0,
    409   1.1       mrg 	    sys_nosys },			/* 154 = unimplemented */
    410  1.10  christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
    411  1.19   thorpej 	{ 2, s(struct netbsd32_nfssvc_args), 0,
    412  1.11       eeh 	    netbsd32_nfssvc },			/* 155 = netbsd32_nfssvc */
    413   1.1       mrg #else
    414  1.19   thorpej 	{ 0, 0, 0,
    415  1.11       eeh 	    sys_nosys },			/* 155 = excluded netbsd32_nfssvc */
    416   1.1       mrg #endif
    417  1.19   thorpej 	{ 4, s(struct compat_43_netbsd32_ogetdirentries_args), 0,
    418  1.11       eeh 	    compat_43(netbsd32_ogetdirentries) },/* 156 = compat_43 netbsd32_ogetdirentries */
    419  1.19   thorpej 	{ 2, s(struct netbsd32_statfs_args), 0,
    420  1.11       eeh 	    netbsd32_statfs },			/* 157 = netbsd32_statfs */
    421  1.19   thorpej 	{ 2, s(struct netbsd32_fstatfs_args), 0,
    422  1.11       eeh 	    netbsd32_fstatfs },			/* 158 = netbsd32_fstatfs */
    423  1.19   thorpej 	{ 0, 0, 0,
    424   1.1       mrg 	    sys_nosys },			/* 159 = unimplemented */
    425  1.19   thorpej 	{ 0, 0, 0,
    426   1.1       mrg 	    sys_nosys },			/* 160 = unimplemented */
    427  1.10  christos #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
    428  1.19   thorpej 	{ 2, s(struct netbsd32_getfh_args), 0,
    429  1.11       eeh 	    netbsd32_getfh },			/* 161 = netbsd32_getfh */
    430   1.1       mrg #else
    431  1.19   thorpej 	{ 0, 0, 0,
    432  1.11       eeh 	    sys_nosys },			/* 161 = excluded netbsd32_getfh */
    433   1.1       mrg #endif
    434  1.19   thorpej 	{ 2, s(struct compat_09_netbsd32_ogetdomainname_args), 0,
    435  1.11       eeh 	    compat_09(netbsd32_ogetdomainname) },/* 162 = compat_09 netbsd32_ogetdomainname */
    436  1.19   thorpej 	{ 2, s(struct compat_09_netbsd32_osetdomainname_args), 0,
    437  1.11       eeh 	    compat_09(netbsd32_osetdomainname) },/* 163 = compat_09 netbsd32_osetdomainname */
    438  1.19   thorpej 	{ 1, s(struct compat_09_netbsd32_uname_args), 0,
    439  1.11       eeh 	    compat_09(netbsd32_uname) },	/* 164 = compat_09 netbsd32_uname */
    440  1.19   thorpej 	{ 2, s(struct netbsd32_sysarch_args), 0,
    441  1.11       eeh 	    netbsd32_sysarch },			/* 165 = netbsd32_sysarch */
    442  1.19   thorpej 	{ 0, 0, 0,
    443   1.1       mrg 	    sys_nosys },			/* 166 = unimplemented */
    444  1.19   thorpej 	{ 0, 0, 0,
    445   1.1       mrg 	    sys_nosys },			/* 167 = unimplemented */
    446  1.19   thorpej 	{ 0, 0, 0,
    447   1.1       mrg 	    sys_nosys },			/* 168 = unimplemented */
    448  1.11       eeh #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
    449  1.19   thorpej 	{ 5, s(struct netbsd32_compat_10_sys_semsys_args), 0,
    450  1.11       eeh 	    netbsd32_compat_10_sys_semsys },	/* 169 = osemsys */
    451   1.1       mrg #else
    452  1.19   thorpej 	{ 0, 0, 0,
    453  1.10  christos 	    sys_nosys },			/* 169 = excluded 1.0 semsys */
    454   1.1       mrg #endif
    455  1.10  christos #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
    456  1.19   thorpej 	{ 6, s(struct netbsd32_compat_10_sys_msgsys_args), 0,
    457  1.11       eeh 	    netbsd32_compat_10_sys_msgsys },	/* 170 = omsgsys */
    458   1.1       mrg #else
    459  1.19   thorpej 	{ 0, 0, 0,
    460  1.10  christos 	    sys_nosys },			/* 170 = excluded 1.0 msgsys */
    461   1.1       mrg #endif
    462  1.10  christos #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
    463  1.19   thorpej 	{ 4, s(struct netbsd32_compat_10_sys_shmsys_args), 0,
    464  1.11       eeh 	    netbsd32_compat_10_sys_shmsys },	/* 171 = oshmsys */
    465   1.1       mrg #else
    466  1.19   thorpej 	{ 0, 0, 0,
    467  1.10  christos 	    sys_nosys },			/* 171 = excluded 1.0 shmsys */
    468   1.1       mrg #endif
    469  1.19   thorpej 	{ 0, 0, 0,
    470   1.1       mrg 	    sys_nosys },			/* 172 = unimplemented */
    471  1.19   thorpej 	{ 5, s(struct netbsd32_pread_args), 0,
    472  1.11       eeh 	    netbsd32_pread },			/* 173 = netbsd32_pread */
    473  1.19   thorpej 	{ 5, s(struct netbsd32_pwrite_args), 0,
    474  1.11       eeh 	    netbsd32_pwrite },			/* 174 = netbsd32_pwrite */
    475  1.19   thorpej 	{ 1, s(struct netbsd32_ntp_gettime_args), 0,
    476  1.11       eeh 	    netbsd32_ntp_gettime },		/* 175 = netbsd32_ntp_gettime */
    477  1.19   thorpej 	{ 1, s(struct netbsd32_ntp_adjtime_args), 0,
    478  1.11       eeh 	    netbsd32_ntp_adjtime },		/* 176 = netbsd32_ntp_adjtime */
    479  1.19   thorpej 	{ 0, 0, 0,
    480   1.1       mrg 	    sys_nosys },			/* 177 = unimplemented */
    481  1.19   thorpej 	{ 0, 0, 0,
    482   1.1       mrg 	    sys_nosys },			/* 178 = unimplemented */
    483  1.19   thorpej 	{ 0, 0, 0,
    484   1.1       mrg 	    sys_nosys },			/* 179 = unimplemented */
    485  1.19   thorpej 	{ 0, 0, 0,
    486   1.1       mrg 	    sys_nosys },			/* 180 = unimplemented */
    487  1.19   thorpej 	{ 1, s(struct netbsd32_setgid_args), 0,
    488  1.11       eeh 	    netbsd32_setgid },			/* 181 = netbsd32_setgid */
    489  1.19   thorpej 	{ 1, s(struct netbsd32_setegid_args), 0,
    490  1.11       eeh 	    netbsd32_setegid },			/* 182 = netbsd32_setegid */
    491  1.19   thorpej 	{ 1, s(struct netbsd32_seteuid_args), 0,
    492  1.11       eeh 	    netbsd32_seteuid },			/* 183 = netbsd32_seteuid */
    493  1.10  christos #if defined(LFS) || !defined(_KERNEL)
    494  1.19   thorpej 	{ 3, s(struct netbsd32_sys_lfs_bmapv_args), 0,
    495  1.11       eeh 	    netbsd32_sys_lfs_bmapv },		/* 184 = lfs_bmapv */
    496  1.19   thorpej 	{ 3, s(struct netbsd32_sys_lfs_markv_args), 0,
    497  1.11       eeh 	    netbsd32_sys_lfs_markv },		/* 185 = lfs_markv */
    498  1.19   thorpej 	{ 2, s(struct netbsd32_sys_lfs_segclean_args), 0,
    499  1.11       eeh 	    netbsd32_sys_lfs_segclean },	/* 186 = lfs_segclean */
    500  1.19   thorpej 	{ 2, s(struct netbsd32_sys_lfs_segwait_args), 0,
    501  1.11       eeh 	    netbsd32_sys_lfs_segwait },		/* 187 = lfs_segwait */
    502  1.11       eeh #else
    503  1.19   thorpej 	{ 0, 0, 0,
    504  1.11       eeh 	    sys_nosys },			/* 184 = excluded netbsd32_sys_lfs_bmapv */
    505  1.19   thorpej 	{ 0, 0, 0,
    506  1.11       eeh 	    sys_nosys },			/* 185 = excluded netbsd32_sys_lfs_markv */
    507  1.19   thorpej 	{ 0, 0, 0,
    508  1.11       eeh 	    sys_nosys },			/* 186 = excluded netbsd32_sys_lfs_segclean */
    509  1.19   thorpej 	{ 0, 0, 0,
    510  1.11       eeh 	    sys_nosys },			/* 187 = excluded netbsd32_sys_lfs_segwait */
    511  1.11       eeh #endif
    512  1.19   thorpej 	{ 2, s(struct compat_12_netbsd32_stat12_args), 0,
    513  1.11       eeh 	    compat_12(netbsd32_stat12) },	/* 188 = compat_12 netbsd32_stat12 */
    514  1.19   thorpej 	{ 2, s(struct compat_12_netbsd32_fstat12_args), 0,
    515  1.11       eeh 	    compat_12(netbsd32_fstat12) },	/* 189 = compat_12 netbsd32_fstat12 */
    516  1.19   thorpej 	{ 2, s(struct compat_12_netbsd32_lstat12_args), 0,
    517  1.11       eeh 	    compat_12(netbsd32_lstat12) },	/* 190 = compat_12 netbsd32_lstat12 */
    518  1.19   thorpej 	{ 2, s(struct netbsd32_pathconf_args), 0,
    519  1.11       eeh 	    netbsd32_pathconf },		/* 191 = netbsd32_pathconf */
    520  1.19   thorpej 	{ 2, s(struct netbsd32_fpathconf_args), 0,
    521  1.11       eeh 	    netbsd32_fpathconf },		/* 192 = netbsd32_fpathconf */
    522  1.19   thorpej 	{ 0, 0, 0,
    523   1.1       mrg 	    sys_nosys },			/* 193 = unimplemented */
    524  1.19   thorpej 	{ 2, s(struct netbsd32_getrlimit_args), 0,
    525  1.11       eeh 	    netbsd32_getrlimit },		/* 194 = netbsd32_getrlimit */
    526  1.19   thorpej 	{ 2, s(struct netbsd32_setrlimit_args), 0,
    527  1.11       eeh 	    netbsd32_setrlimit },		/* 195 = netbsd32_setrlimit */
    528  1.19   thorpej 	{ 4, s(struct compat_12_netbsd32_getdirentries_args), 0,
    529  1.11       eeh 	    compat_12(netbsd32_getdirentries) },/* 196 = compat_12 netbsd32_getdirentries */
    530  1.19   thorpej 	{ 7, s(struct netbsd32_mmap_args), 0,
    531  1.11       eeh 	    netbsd32_mmap },			/* 197 = netbsd32_mmap */
    532  1.19   thorpej 	{ 0, 0, 0,
    533   1.1       mrg 	    sys_nosys },			/* 198 = __syscall (indir) */
    534  1.19   thorpej 	{ 4, s(struct netbsd32_lseek_args), 0,
    535  1.11       eeh 	    netbsd32_lseek },			/* 199 = netbsd32_lseek */
    536  1.19   thorpej 	{ 3, s(struct netbsd32_truncate_args), 0,
    537  1.11       eeh 	    netbsd32_truncate },		/* 200 = netbsd32_truncate */
    538  1.19   thorpej 	{ 3, s(struct netbsd32_ftruncate_args), 0,
    539  1.11       eeh 	    netbsd32_ftruncate },		/* 201 = netbsd32_ftruncate */
    540  1.19   thorpej 	{ 6, s(struct netbsd32___sysctl_args), 0,
    541  1.11       eeh 	    netbsd32___sysctl },		/* 202 = netbsd32___sysctl */
    542  1.19   thorpej 	{ 2, s(struct netbsd32_mlock_args), 0,
    543  1.11       eeh 	    netbsd32_mlock },			/* 203 = netbsd32_mlock */
    544  1.19   thorpej 	{ 2, s(struct netbsd32_munlock_args), 0,
    545  1.11       eeh 	    netbsd32_munlock },			/* 204 = netbsd32_munlock */
    546  1.19   thorpej 	{ 1, s(struct netbsd32_undelete_args), 0,
    547  1.11       eeh 	    netbsd32_undelete },		/* 205 = netbsd32_undelete */
    548  1.19   thorpej 	{ 2, s(struct netbsd32_futimes_args), 0,
    549  1.11       eeh 	    netbsd32_futimes },			/* 206 = netbsd32_futimes */
    550  1.19   thorpej 	{ 1, s(struct netbsd32_getpgid_args), 0,
    551  1.11       eeh 	    netbsd32_getpgid },			/* 207 = netbsd32_getpgid */
    552  1.19   thorpej 	{ 2, s(struct netbsd32_reboot_args), 0,
    553  1.11       eeh 	    netbsd32_reboot },			/* 208 = netbsd32_reboot */
    554  1.19   thorpej 	{ 3, s(struct netbsd32_poll_args), 0,
    555  1.11       eeh 	    netbsd32_poll },			/* 209 = netbsd32_poll */
    556  1.10  christos #if defined(LKM) || !defined(_KERNEL)
    557  1.19   thorpej 	{ 0, 0, 0,
    558   1.1       mrg 	    sys_lkmnosys },			/* 210 = lkmnosys */
    559  1.19   thorpej 	{ 0, 0, 0,
    560   1.1       mrg 	    sys_lkmnosys },			/* 211 = lkmnosys */
    561  1.19   thorpej 	{ 0, 0, 0,
    562   1.1       mrg 	    sys_lkmnosys },			/* 212 = lkmnosys */
    563  1.19   thorpej 	{ 0, 0, 0,
    564   1.1       mrg 	    sys_lkmnosys },			/* 213 = lkmnosys */
    565  1.19   thorpej 	{ 0, 0, 0,
    566   1.1       mrg 	    sys_lkmnosys },			/* 214 = lkmnosys */
    567  1.19   thorpej 	{ 0, 0, 0,
    568   1.1       mrg 	    sys_lkmnosys },			/* 215 = lkmnosys */
    569  1.19   thorpej 	{ 0, 0, 0,
    570   1.1       mrg 	    sys_lkmnosys },			/* 216 = lkmnosys */
    571  1.19   thorpej 	{ 0, 0, 0,
    572   1.1       mrg 	    sys_lkmnosys },			/* 217 = lkmnosys */
    573  1.19   thorpej 	{ 0, 0, 0,
    574   1.1       mrg 	    sys_lkmnosys },			/* 218 = lkmnosys */
    575  1.19   thorpej 	{ 0, 0, 0,
    576   1.1       mrg 	    sys_lkmnosys },			/* 219 = lkmnosys */
    577  1.10  christos #else	/* !LKM || !_KERNEL */
    578  1.19   thorpej 	{ 0, 0, 0,
    579  1.10  christos 	    sys_nosys },			/* 210 = excluded lkmnosys */
    580  1.19   thorpej 	{ 0, 0, 0,
    581  1.10  christos 	    sys_nosys },			/* 211 = excluded lkmnosys */
    582  1.19   thorpej 	{ 0, 0, 0,
    583  1.10  christos 	    sys_nosys },			/* 212 = excluded lkmnosys */
    584  1.19   thorpej 	{ 0, 0, 0,
    585  1.10  christos 	    sys_nosys },			/* 213 = excluded lkmnosys */
    586  1.19   thorpej 	{ 0, 0, 0,
    587  1.10  christos 	    sys_nosys },			/* 214 = excluded lkmnosys */
    588  1.19   thorpej 	{ 0, 0, 0,
    589  1.10  christos 	    sys_nosys },			/* 215 = excluded lkmnosys */
    590  1.19   thorpej 	{ 0, 0, 0,
    591  1.10  christos 	    sys_nosys },			/* 216 = excluded lkmnosys */
    592  1.19   thorpej 	{ 0, 0, 0,
    593  1.10  christos 	    sys_nosys },			/* 217 = excluded lkmnosys */
    594  1.19   thorpej 	{ 0, 0, 0,
    595  1.10  christos 	    sys_nosys },			/* 218 = excluded lkmnosys */
    596  1.19   thorpej 	{ 0, 0, 0,
    597  1.10  christos 	    sys_nosys },			/* 219 = excluded lkmnosys */
    598  1.10  christos #endif	/* !LKM || !_KERNEL */
    599  1.10  christos #if defined(SYSVSEM) || !defined(_KERNEL)
    600  1.19   thorpej 	{ 4, s(struct compat_14_netbsd32___semctl_args), 0,
    601  1.11       eeh 	    compat_14(netbsd32___semctl) },	/* 220 = compat_14 netbsd32___semctl */
    602  1.19   thorpej 	{ 3, s(struct netbsd32_semget_args), 0,
    603  1.11       eeh 	    netbsd32_semget },			/* 221 = netbsd32_semget */
    604  1.19   thorpej 	{ 3, s(struct netbsd32_semop_args), 0,
    605  1.11       eeh 	    netbsd32_semop },			/* 222 = netbsd32_semop */
    606  1.19   thorpej 	{ 1, s(struct netbsd32_semconfig_args), 0,
    607  1.11       eeh 	    netbsd32_semconfig },		/* 223 = netbsd32_semconfig */
    608   1.1       mrg #else
    609  1.19   thorpej 	{ 0, 0, 0,
    610  1.12       eeh 	    sys_nosys },			/* 220 = excluded compat_14_netbsd32_semctl */
    611  1.19   thorpej 	{ 0, 0, 0,
    612  1.11       eeh 	    sys_nosys },			/* 221 = excluded netbsd32_semget */
    613  1.19   thorpej 	{ 0, 0, 0,
    614  1.11       eeh 	    sys_nosys },			/* 222 = excluded netbsd32_semop */
    615  1.19   thorpej 	{ 0, 0, 0,
    616  1.11       eeh 	    sys_nosys },			/* 223 = excluded netbsd32_semconfig */
    617   1.1       mrg #endif
    618  1.10  christos #if defined(SYSVMSG) || !defined(_KERNEL)
    619  1.19   thorpej 	{ 3, s(struct compat_14_netbsd32_msgctl_args), 0,
    620  1.11       eeh 	    compat_14(netbsd32_msgctl) },	/* 224 = compat_14 netbsd32_msgctl */
    621  1.19   thorpej 	{ 2, s(struct netbsd32_msgget_args), 0,
    622  1.11       eeh 	    netbsd32_msgget },			/* 225 = netbsd32_msgget */
    623  1.19   thorpej 	{ 4, s(struct netbsd32_msgsnd_args), 0,
    624  1.11       eeh 	    netbsd32_msgsnd },			/* 226 = netbsd32_msgsnd */
    625  1.19   thorpej 	{ 5, s(struct netbsd32_msgrcv_args), 0,
    626  1.11       eeh 	    netbsd32_msgrcv },			/* 227 = netbsd32_msgrcv */
    627   1.1       mrg #else
    628  1.19   thorpej 	{ 0, 0, 0,
    629  1.12       eeh 	    sys_nosys },			/* 224 = excluded compat_14_netbsd32_msgctl */
    630  1.19   thorpej 	{ 0, 0, 0,
    631  1.11       eeh 	    sys_nosys },			/* 225 = excluded netbsd32_msgget */
    632  1.19   thorpej 	{ 0, 0, 0,
    633  1.11       eeh 	    sys_nosys },			/* 226 = excluded netbsd32_msgsnd */
    634  1.19   thorpej 	{ 0, 0, 0,
    635  1.11       eeh 	    sys_nosys },			/* 227 = excluded netbsd32_msgrcv */
    636   1.1       mrg #endif
    637  1.10  christos #if defined(SYSVSHM) || !defined(_KERNEL)
    638  1.19   thorpej 	{ 3, s(struct netbsd32_shmat_args), 0,
    639  1.11       eeh 	    netbsd32_shmat },			/* 228 = netbsd32_shmat */
    640  1.19   thorpej 	{ 3, s(struct compat_14_netbsd32_shmctl_args), 0,
    641  1.11       eeh 	    compat_14(netbsd32_shmctl) },	/* 229 = compat_14 netbsd32_shmctl */
    642  1.19   thorpej 	{ 1, s(struct netbsd32_shmdt_args), 0,
    643  1.11       eeh 	    netbsd32_shmdt },			/* 230 = netbsd32_shmdt */
    644  1.19   thorpej 	{ 3, s(struct netbsd32_shmget_args), 0,
    645  1.11       eeh 	    netbsd32_shmget },			/* 231 = netbsd32_shmget */
    646  1.11       eeh #else
    647  1.19   thorpej 	{ 0, 0, 0,
    648  1.11       eeh 	    sys_nosys },			/* 228 = excluded netbsd32_shmat */
    649  1.19   thorpej 	{ 0, 0, 0,
    650  1.12       eeh 	    sys_nosys },			/* 229 = excluded compat_14_netbsd32_shmctl */
    651  1.19   thorpej 	{ 0, 0, 0,
    652  1.11       eeh 	    sys_nosys },			/* 230 = excluded netbsd32_shmdt */
    653  1.19   thorpej 	{ 0, 0, 0,
    654  1.11       eeh 	    sys_nosys },			/* 231 = excluded netbsd32_shmget */
    655  1.11       eeh #endif
    656  1.19   thorpej 	{ 2, s(struct netbsd32_clock_gettime_args), 0,
    657  1.11       eeh 	    netbsd32_clock_gettime },		/* 232 = netbsd32_clock_gettime */
    658  1.19   thorpej 	{ 2, s(struct netbsd32_clock_settime_args), 0,
    659  1.11       eeh 	    netbsd32_clock_settime },		/* 233 = netbsd32_clock_settime */
    660  1.19   thorpej 	{ 2, s(struct netbsd32_clock_getres_args), 0,
    661  1.11       eeh 	    netbsd32_clock_getres },		/* 234 = netbsd32_clock_getres */
    662  1.19   thorpej 	{ 0, 0, 0,
    663   1.1       mrg 	    sys_nosys },			/* 235 = unimplemented timer_create */
    664  1.19   thorpej 	{ 0, 0, 0,
    665   1.1       mrg 	    sys_nosys },			/* 236 = unimplemented timer_delete */
    666  1.19   thorpej 	{ 0, 0, 0,
    667   1.1       mrg 	    sys_nosys },			/* 237 = unimplemented timer_settime */
    668  1.19   thorpej 	{ 0, 0, 0,
    669   1.1       mrg 	    sys_nosys },			/* 238 = unimplemented timer_gettime */
    670  1.19   thorpej 	{ 0, 0, 0,
    671   1.1       mrg 	    sys_nosys },			/* 239 = unimplemented timer_getoverrun */
    672  1.19   thorpej 	{ 2, s(struct netbsd32_nanosleep_args), 0,
    673  1.11       eeh 	    netbsd32_nanosleep },		/* 240 = netbsd32_nanosleep */
    674  1.19   thorpej 	{ 1, s(struct netbsd32_fdatasync_args), 0,
    675  1.11       eeh 	    netbsd32_fdatasync },		/* 241 = netbsd32_fdatasync */
    676  1.19   thorpej 	{ 0, 0, 0,
    677   1.1       mrg 	    sys_nosys },			/* 242 = unimplemented */
    678  1.19   thorpej 	{ 0, 0, 0,
    679   1.1       mrg 	    sys_nosys },			/* 243 = unimplemented */
    680  1.19   thorpej 	{ 0, 0, 0,
    681   1.1       mrg 	    sys_nosys },			/* 244 = unimplemented */
    682  1.19   thorpej 	{ 0, 0, 0,
    683   1.1       mrg 	    sys_nosys },			/* 245 = unimplemented */
    684  1.19   thorpej 	{ 0, 0, 0,
    685   1.1       mrg 	    sys_nosys },			/* 246 = unimplemented */
    686  1.19   thorpej 	{ 0, 0, 0,
    687   1.1       mrg 	    sys_nosys },			/* 247 = unimplemented */
    688  1.19   thorpej 	{ 0, 0, 0,
    689   1.1       mrg 	    sys_nosys },			/* 248 = unimplemented */
    690  1.19   thorpej 	{ 0, 0, 0,
    691   1.1       mrg 	    sys_nosys },			/* 249 = unimplemented */
    692  1.19   thorpej 	{ 0, 0, 0,
    693   1.1       mrg 	    sys_nosys },			/* 250 = unimplemented */
    694  1.19   thorpej 	{ 0, 0, 0,
    695   1.1       mrg 	    sys_nosys },			/* 251 = unimplemented */
    696  1.19   thorpej 	{ 0, 0, 0,
    697   1.1       mrg 	    sys_nosys },			/* 252 = unimplemented */
    698  1.19   thorpej 	{ 0, 0, 0,
    699   1.1       mrg 	    sys_nosys },			/* 253 = unimplemented */
    700  1.19   thorpej 	{ 0, 0, 0,
    701   1.1       mrg 	    sys_nosys },			/* 254 = unimplemented */
    702  1.19   thorpej 	{ 0, 0, 0,
    703   1.1       mrg 	    sys_nosys },			/* 255 = unimplemented */
    704  1.19   thorpej 	{ 0, 0, 0,
    705   1.1       mrg 	    sys_nosys },			/* 256 = unimplemented */
    706  1.19   thorpej 	{ 0, 0, 0,
    707   1.1       mrg 	    sys_nosys },			/* 257 = unimplemented */
    708  1.19   thorpej 	{ 0, 0, 0,
    709   1.1       mrg 	    sys_nosys },			/* 258 = unimplemented */
    710  1.19   thorpej 	{ 0, 0, 0,
    711   1.1       mrg 	    sys_nosys },			/* 259 = unimplemented */
    712  1.19   thorpej 	{ 0, 0, 0,
    713   1.1       mrg 	    sys_nosys },			/* 260 = unimplemented */
    714  1.19   thorpej 	{ 0, 0, 0,
    715   1.1       mrg 	    sys_nosys },			/* 261 = unimplemented */
    716  1.19   thorpej 	{ 0, 0, 0,
    717   1.1       mrg 	    sys_nosys },			/* 262 = unimplemented */
    718  1.19   thorpej 	{ 0, 0, 0,
    719   1.1       mrg 	    sys_nosys },			/* 263 = unimplemented */
    720  1.19   thorpej 	{ 0, 0, 0,
    721   1.1       mrg 	    sys_nosys },			/* 264 = unimplemented */
    722  1.19   thorpej 	{ 0, 0, 0,
    723   1.1       mrg 	    sys_nosys },			/* 265 = unimplemented */
    724  1.19   thorpej 	{ 0, 0, 0,
    725   1.1       mrg 	    sys_nosys },			/* 266 = unimplemented */
    726  1.19   thorpej 	{ 0, 0, 0,
    727   1.1       mrg 	    sys_nosys },			/* 267 = unimplemented */
    728  1.19   thorpej 	{ 0, 0, 0,
    729   1.1       mrg 	    sys_nosys },			/* 268 = unimplemented */
    730  1.19   thorpej 	{ 0, 0, 0,
    731   1.1       mrg 	    sys_nosys },			/* 269 = unimplemented */
    732  1.19   thorpej 	{ 2, s(struct netbsd32___posix_rename_args), 0,
    733  1.11       eeh 	    netbsd32___posix_rename },		/* 270 = netbsd32___posix_rename */
    734  1.19   thorpej 	{ 3, s(struct netbsd32_swapctl_args), 0,
    735  1.11       eeh 	    netbsd32_swapctl },			/* 271 = netbsd32_swapctl */
    736  1.19   thorpej 	{ 3, s(struct netbsd32_getdents_args), 0,
    737  1.11       eeh 	    netbsd32_getdents },		/* 272 = netbsd32_getdents */
    738  1.19   thorpej 	{ 3, s(struct netbsd32_minherit_args), 0,
    739  1.11       eeh 	    netbsd32_minherit },		/* 273 = netbsd32_minherit */
    740  1.19   thorpej 	{ 2, s(struct netbsd32_lchmod_args), 0,
    741  1.11       eeh 	    netbsd32_lchmod },			/* 274 = netbsd32_lchmod */
    742  1.19   thorpej 	{ 3, s(struct netbsd32_lchown_args), 0,
    743  1.11       eeh 	    netbsd32_lchown },			/* 275 = netbsd32_lchown */
    744  1.19   thorpej 	{ 2, s(struct netbsd32_lutimes_args), 0,
    745  1.11       eeh 	    netbsd32_lutimes },			/* 276 = netbsd32_lutimes */
    746  1.19   thorpej 	{ 3, s(struct netbsd32___msync13_args), 0,
    747  1.11       eeh 	    netbsd32___msync13 },		/* 277 = netbsd32___msync13 */
    748  1.19   thorpej 	{ 2, s(struct netbsd32___stat13_args), 0,
    749  1.11       eeh 	    netbsd32___stat13 },		/* 278 = netbsd32___stat13 */
    750  1.19   thorpej 	{ 2, s(struct netbsd32___fstat13_args), 0,
    751  1.11       eeh 	    netbsd32___fstat13 },		/* 279 = netbsd32___fstat13 */
    752  1.19   thorpej 	{ 2, s(struct netbsd32___lstat13_args), 0,
    753  1.11       eeh 	    netbsd32___lstat13 },		/* 280 = netbsd32___lstat13 */
    754  1.19   thorpej 	{ 2, s(struct netbsd32___sigaltstack14_args), 0,
    755  1.11       eeh 	    netbsd32___sigaltstack14 },		/* 281 = netbsd32___sigaltstack14 */
    756  1.19   thorpej 	{ 0, 0, 0,
    757   1.1       mrg 	    sys___vfork14 },			/* 282 = __vfork14 */
    758  1.19   thorpej 	{ 3, s(struct netbsd32___posix_chown_args), 0,
    759  1.11       eeh 	    netbsd32___posix_chown },		/* 283 = netbsd32___posix_chown */
    760  1.19   thorpej 	{ 3, s(struct netbsd32___posix_fchown_args), 0,
    761  1.11       eeh 	    netbsd32___posix_fchown },		/* 284 = netbsd32___posix_fchown */
    762  1.19   thorpej 	{ 3, s(struct netbsd32___posix_lchown_args), 0,
    763  1.11       eeh 	    netbsd32___posix_lchown },		/* 285 = netbsd32___posix_lchown */
    764  1.19   thorpej 	{ 1, s(struct netbsd32_getsid_args), 0,
    765  1.11       eeh 	    netbsd32_getsid },			/* 286 = netbsd32_getsid */
    766  1.19   thorpej 	{ 0, 0, 0,
    767   1.1       mrg 	    sys_nosys },			/* 287 = unimplemented */
    768  1.10  christos #if defined(KTRACE) || !defined(_KERNEL)
    769  1.19   thorpej 	{ 4, s(struct netbsd32_fktrace_args), 0,
    770  1.11       eeh 	    netbsd32_fktrace },			/* 288 = netbsd32_fktrace */
    771   1.1       mrg #else
    772  1.19   thorpej 	{ 0, 0, 0,
    773  1.11       eeh 	    sys_nosys },			/* 288 = excluded netbsd32_fktrace */
    774   1.1       mrg #endif
    775  1.19   thorpej 	{ 5, s(struct netbsd32_preadv_args), 0,
    776  1.11       eeh 	    netbsd32_preadv },			/* 289 = netbsd32_preadv */
    777  1.19   thorpej 	{ 5, s(struct netbsd32_pwritev_args), 0,
    778  1.11       eeh 	    netbsd32_pwritev },			/* 290 = netbsd32_pwritev */
    779  1.19   thorpej 	{ 3, s(struct netbsd32___sigaction14_args), 0,
    780  1.12       eeh 	    netbsd32___sigaction14 },		/* 291 = netbsd32___sigaction14 */
    781  1.19   thorpej 	{ 1, s(struct netbsd32___sigpending14_args), 0,
    782  1.12       eeh 	    netbsd32___sigpending14 },		/* 292 = netbsd32___sigpending14 */
    783  1.19   thorpej 	{ 3, s(struct netbsd32___sigprocmask14_args), 0,
    784  1.12       eeh 	    netbsd32___sigprocmask14 },		/* 293 = netbsd32___sigprocmask14 */
    785  1.19   thorpej 	{ 1, s(struct netbsd32___sigsuspend14_args), 0,
    786  1.12       eeh 	    netbsd32___sigsuspend14 },		/* 294 = netbsd32___sigsuspend14 */
    787  1.19   thorpej 	{ 1, s(struct netbsd32___sigreturn14_args), 0,
    788  1.12       eeh 	    netbsd32___sigreturn14 },		/* 295 = netbsd32___sigreturn14 */
    789  1.19   thorpej 	{ 2, s(struct netbsd32___getcwd_args), 0,
    790  1.12       eeh 	    netbsd32___getcwd },		/* 296 = netbsd32___getcwd */
    791  1.19   thorpej 	{ 1, s(struct netbsd32_fchroot_args), 0,
    792  1.12       eeh 	    netbsd32_fchroot },			/* 297 = netbsd32_fchroot */
    793  1.19   thorpej 	{ 2, s(struct netbsd32_fhopen_args), 0,
    794  1.12       eeh 	    netbsd32_fhopen },			/* 298 = netbsd32_fhopen */
    795  1.19   thorpej 	{ 2, s(struct netbsd32_fhstat_args), 0,
    796  1.12       eeh 	    netbsd32_fhstat },			/* 299 = netbsd32_fhstat */
    797  1.19   thorpej 	{ 2, s(struct netbsd32_fhstatfs_args), 0,
    798  1.12       eeh 	    netbsd32_fhstatfs },		/* 300 = netbsd32_fhstatfs */
    799  1.12       eeh #if defined(SYSVSEM) || !defined(_KERNEL)
    800  1.19   thorpej 	{ 4, s(struct netbsd32___semctl14_args), 0,
    801  1.13  christos 	    netbsd32___semctl14 },		/* 301 = netbsd32___semctl14 */
    802  1.12       eeh #else
    803  1.19   thorpej 	{ 0, 0, 0,
    804  1.13  christos 	    sys_nosys },			/* 301 = excluded __semctl14 */
    805  1.12       eeh #endif
    806  1.12       eeh #if defined(SYSVMSG) || !defined(_KERNEL)
    807  1.19   thorpej 	{ 3, s(struct netbsd32___msgctl13_args), 0,
    808  1.12       eeh 	    netbsd32___msgctl13 },		/* 302 = netbsd32___msgctl13 */
    809  1.12       eeh #else
    810  1.19   thorpej 	{ 0, 0, 0,
    811  1.12       eeh 	    sys_nosys },			/* 302 = excluded __msgctl13 */
    812  1.12       eeh #endif
    813  1.12       eeh #if defined(SYSVSHM) || !defined(_KERNEL)
    814  1.19   thorpej 	{ 3, s(struct netbsd32___shmctl13_args), 0,
    815  1.12       eeh 	    netbsd32___shmctl13 },		/* 303 = netbsd32___shmctl13 */
    816  1.12       eeh #else
    817  1.19   thorpej 	{ 0, 0, 0,
    818  1.12       eeh 	    sys_nosys },			/* 303 = excluded __shmctl13 */
    819  1.12       eeh #endif
    820   1.1       mrg };
    821   1.1       mrg 
    822