Home | History | Annotate | Line # | Download | only in aoutm68k
aoutm68k_sysent.c revision 1.4
      1  1.1       scw /* $NetBSD: aoutm68k_sysent.c,v 1.4 2001/01/27 07:24:40 thorpej Exp $ */
      2  1.1       scw 
      3  1.1       scw /*
      4  1.1       scw  * System call switch table.
      5  1.1       scw  *
      6  1.1       scw  * DO NOT EDIT-- this file is automatically generated.
      7  1.3   mycroft  * created from	NetBSD: syscalls.master,v 1.3 2000/12/09 05:27:31 mycroft Exp
      8  1.1       scw  */
      9  1.1       scw 
     10  1.3   mycroft #if defined(_KERNEL) && !defined(_LKM)
     11  1.1       scw #include "opt_ktrace.h"
     12  1.1       scw #include "opt_nfsserver.h"
     13  1.1       scw #include "opt_ntp.h"
     14  1.1       scw #include "opt_compat_netbsd.h"
     15  1.1       scw #include "opt_sysv.h"
     16  1.1       scw #include "opt_compat_43.h"
     17  1.1       scw #include "fs_lfs.h"
     18  1.1       scw #include "fs_nfs.h"
     19  1.2  jdolecek #endif
     20  1.1       scw #include <sys/param.h>
     21  1.1       scw #include <sys/systm.h>
     22  1.1       scw #include <sys/signal.h>
     23  1.1       scw #include <sys/mount.h>
     24  1.1       scw #include <sys/syscallargs.h>
     25  1.1       scw #include <compat/aoutm68k/aoutm68k_syscallargs.h>
     26  1.1       scw 
     27  1.1       scw #define	s(type)	sizeof(type)
     28  1.1       scw 
     29  1.1       scw struct sysent aoutm68k_sysent[] = {
     30  1.4   thorpej 	{ 0, 0, 0,
     31  1.1       scw 	    sys_nosys },			/* 0 = syscall (indir) */
     32  1.4   thorpej 	{ 1, s(struct sys_exit_args), 0,
     33  1.1       scw 	    sys_exit },				/* 1 = exit */
     34  1.4   thorpej 	{ 0, 0, 0,
     35  1.1       scw 	    sys_fork },				/* 2 = fork */
     36  1.4   thorpej 	{ 3, s(struct sys_read_args), 0,
     37  1.1       scw 	    sys_read },				/* 3 = read */
     38  1.4   thorpej 	{ 3, s(struct sys_write_args), 0,
     39  1.1       scw 	    sys_write },			/* 4 = write */
     40  1.4   thorpej 	{ 3, s(struct aoutm68k_sys_open_args), 0,
     41  1.1       scw 	    aoutm68k_sys_open },		/* 5 = open */
     42  1.4   thorpej 	{ 1, s(struct sys_close_args), 0,
     43  1.1       scw 	    sys_close },			/* 6 = close */
     44  1.4   thorpej 	{ 4, s(struct sys_wait4_args), 0,
     45  1.1       scw 	    sys_wait4 },			/* 7 = wait4 */
     46  1.1       scw #ifdef COMPAT_43
     47  1.4   thorpej 	{ 2, s(struct compat_43_sys_creat_args), 0,
     48  1.1       scw 	    compat_43_sys_creat },		/* 8 = ocreat */
     49  1.1       scw #else
     50  1.4   thorpej 	{ 0, 0, 0,
     51  1.1       scw 	    sys_nosys },			/* 8 = excluded compat_43_sys_creat */
     52  1.1       scw #endif
     53  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_link_args), 0,
     54  1.1       scw 	    aoutm68k_sys_link },		/* 9 = link */
     55  1.4   thorpej 	{ 1, s(struct aoutm68k_sys_unlink_args), 0,
     56  1.1       scw 	    aoutm68k_sys_unlink },		/* 10 = unlink */
     57  1.4   thorpej 	{ 0, 0, 0,
     58  1.1       scw 	    sys_nosys },			/* 11 = obsolete execv */
     59  1.4   thorpej 	{ 1, s(struct aoutm68k_sys_chdir_args), 0,
     60  1.1       scw 	    aoutm68k_sys_chdir },		/* 12 = chdir */
     61  1.4   thorpej 	{ 1, s(struct sys_fchdir_args), 0,
     62  1.1       scw 	    sys_fchdir },			/* 13 = fchdir */
     63  1.4   thorpej 	{ 3, s(struct sys_mknod_args), 0,
     64  1.1       scw 	    sys_mknod },			/* 14 = mknod */
     65  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_chmod_args), 0,
     66  1.1       scw 	    aoutm68k_sys_chmod },		/* 15 = chmod */
     67  1.4   thorpej 	{ 3, s(struct aoutm68k_sys_chown_args), 0,
     68  1.1       scw 	    aoutm68k_sys_chown },		/* 16 = chown */
     69  1.4   thorpej 	{ 1, s(struct sys_obreak_args), 0,
     70  1.1       scw 	    sys_obreak },			/* 17 = break */
     71  1.4   thorpej 	{ 3, s(struct sys_getfsstat_args), 0,
     72  1.1       scw 	    sys_getfsstat },			/* 18 = getfsstat */
     73  1.1       scw #ifdef COMPAT_43
     74  1.4   thorpej 	{ 3, s(struct compat_43_sys_lseek_args), 0,
     75  1.1       scw 	    compat_43_sys_lseek },		/* 19 = olseek */
     76  1.1       scw #else
     77  1.4   thorpej 	{ 0, 0, 0,
     78  1.1       scw 	    sys_nosys },			/* 19 = excluded compat_43_sys_lseek */
     79  1.1       scw #endif
     80  1.4   thorpej 	{ 0, 0, 0,
     81  1.1       scw 	    sys_getpid },			/* 20 = getpid */
     82  1.4   thorpej 	{ 4, s(struct sys_mount_args), 0,
     83  1.1       scw 	    sys_mount },			/* 21 = mount */
     84  1.4   thorpej 	{ 2, s(struct sys_unmount_args), 0,
     85  1.1       scw 	    sys_unmount },			/* 22 = unmount */
     86  1.4   thorpej 	{ 1, s(struct sys_setuid_args), 0,
     87  1.1       scw 	    sys_setuid },			/* 23 = setuid */
     88  1.4   thorpej 	{ 0, 0, 0,
     89  1.1       scw 	    sys_getuid },			/* 24 = getuid */
     90  1.4   thorpej 	{ 0, 0, 0,
     91  1.1       scw 	    sys_geteuid },			/* 25 = geteuid */
     92  1.4   thorpej 	{ 4, s(struct sys_ptrace_args), 0,
     93  1.1       scw 	    sys_ptrace },			/* 26 = ptrace */
     94  1.4   thorpej 	{ 3, s(struct sys_recvmsg_args), 0,
     95  1.1       scw 	    sys_recvmsg },			/* 27 = recvmsg */
     96  1.4   thorpej 	{ 3, s(struct sys_sendmsg_args), 0,
     97  1.1       scw 	    sys_sendmsg },			/* 28 = sendmsg */
     98  1.4   thorpej 	{ 6, s(struct sys_recvfrom_args), 0,
     99  1.1       scw 	    sys_recvfrom },			/* 29 = recvfrom */
    100  1.4   thorpej 	{ 3, s(struct sys_accept_args), 0,
    101  1.1       scw 	    sys_accept },			/* 30 = accept */
    102  1.4   thorpej 	{ 3, s(struct sys_getpeername_args), 0,
    103  1.1       scw 	    sys_getpeername },			/* 31 = getpeername */
    104  1.4   thorpej 	{ 3, s(struct sys_getsockname_args), 0,
    105  1.1       scw 	    sys_getsockname },			/* 32 = getsockname */
    106  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_access_args), 0,
    107  1.1       scw 	    aoutm68k_sys_access },		/* 33 = access */
    108  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_chflags_args), 0,
    109  1.1       scw 	    aoutm68k_sys_chflags },		/* 34 = chflags */
    110  1.4   thorpej 	{ 2, s(struct sys_fchflags_args), 0,
    111  1.1       scw 	    sys_fchflags },			/* 35 = fchflags */
    112  1.4   thorpej 	{ 0, 0, 0,
    113  1.1       scw 	    sys_sync },				/* 36 = sync */
    114  1.4   thorpej 	{ 2, s(struct sys_kill_args), 0,
    115  1.1       scw 	    sys_kill },				/* 37 = kill */
    116  1.1       scw #ifdef COMPAT_43
    117  1.4   thorpej 	{ 2, s(struct aoutm68k_compat_43_sys_stat_args), 0,
    118  1.1       scw 	    aoutm68k_compat_43_sys_stat },	/* 38 = stat43 */
    119  1.1       scw #else
    120  1.4   thorpej 	{ 0, 0, 0,
    121  1.1       scw 	    sys_nosys },			/* 38 = excluded aoutm68k_compat_43_sys_stat */
    122  1.1       scw #endif
    123  1.4   thorpej 	{ 0, 0, 0,
    124  1.1       scw 	    sys_getppid },			/* 39 = getppid */
    125  1.1       scw #ifdef COMPAT_43
    126  1.4   thorpej 	{ 2, s(struct aoutm68k_compat_43_sys_lstat_args), 0,
    127  1.1       scw 	    aoutm68k_compat_43_sys_lstat },	/* 40 = lstat43 */
    128  1.1       scw #else
    129  1.4   thorpej 	{ 0, 0, 0,
    130  1.1       scw 	    sys_nosys },			/* 40 = excluded aoutm68k_compat_43_sys_lstat */
    131  1.1       scw #endif
    132  1.4   thorpej 	{ 1, s(struct sys_dup_args), 0,
    133  1.1       scw 	    sys_dup },				/* 41 = dup */
    134  1.4   thorpej 	{ 0, 0, 0,
    135  1.1       scw 	    sys_pipe },				/* 42 = pipe */
    136  1.4   thorpej 	{ 0, 0, 0,
    137  1.1       scw 	    sys_getegid },			/* 43 = getegid */
    138  1.4   thorpej 	{ 4, s(struct sys_profil_args), 0,
    139  1.1       scw 	    sys_profil },			/* 44 = profil */
    140  1.1       scw #if defined(KTRACE) || !defined(_KERNEL)
    141  1.4   thorpej 	{ 4, s(struct sys_ktrace_args), 0,
    142  1.1       scw 	    sys_ktrace },			/* 45 = ktrace */
    143  1.1       scw #else
    144  1.4   thorpej 	{ 0, 0, 0,
    145  1.1       scw 	    sys_nosys },			/* 45 = excluded ktrace */
    146  1.1       scw #endif
    147  1.1       scw #ifdef COMPAT_13
    148  1.4   thorpej 	{ 3, s(struct compat_13_sys_sigaction_args), 0,
    149  1.1       scw 	    compat_13_sys_sigaction },		/* 46 = sigaction13 */
    150  1.1       scw #else
    151  1.4   thorpej 	{ 0, 0, 0,
    152  1.1       scw 	    sys_nosys },			/* 46 = excluded compat_13_sys_sigaction */
    153  1.1       scw #endif
    154  1.4   thorpej 	{ 0, 0, 0,
    155  1.1       scw 	    sys_getgid },			/* 47 = getgid */
    156  1.1       scw #ifdef COMPAT_13
    157  1.4   thorpej 	{ 2, s(struct compat_13_sys_sigprocmask_args), 0,
    158  1.1       scw 	    compat_13_sys_sigprocmask },	/* 48 = sigprocmask13 */
    159  1.1       scw #else
    160  1.4   thorpej 	{ 0, 0, 0,
    161  1.1       scw 	    sys_nosys },			/* 48 = excluded compat_13_sys_sigprocmask */
    162  1.1       scw #endif
    163  1.4   thorpej 	{ 2, s(struct sys___getlogin_args), 0,
    164  1.1       scw 	    sys___getlogin },			/* 49 = __getlogin */
    165  1.4   thorpej 	{ 1, s(struct sys_setlogin_args), 0,
    166  1.1       scw 	    sys_setlogin },			/* 50 = setlogin */
    167  1.4   thorpej 	{ 1, s(struct sys_acct_args), 0,
    168  1.1       scw 	    sys_acct },				/* 51 = acct */
    169  1.1       scw #ifdef COMPAT_13
    170  1.4   thorpej 	{ 0, 0, 0,
    171  1.1       scw 	    compat_13_sys_sigpending },		/* 52 = sigpending13 */
    172  1.4   thorpej 	{ 2, s(struct compat_13_sys_sigaltstack_args), 0,
    173  1.1       scw 	    compat_13_sys_sigaltstack },	/* 53 = sigaltstack13 */
    174  1.1       scw #else
    175  1.4   thorpej 	{ 0, 0, 0,
    176  1.1       scw 	    sys_nosys },			/* 52 = excluded compat_13_sys_sigpending */
    177  1.4   thorpej 	{ 0, 0, 0,
    178  1.1       scw 	    sys_nosys },			/* 53 = excluded compat_13_sys_sigaltstack */
    179  1.1       scw #endif
    180  1.4   thorpej 	{ 3, s(struct aoutm68k_sys_ioctl_args), 0,
    181  1.1       scw 	    aoutm68k_sys_ioctl },		/* 54 = ioctl */
    182  1.1       scw #ifdef COMPAT_12
    183  1.4   thorpej 	{ 1, s(struct compat_12_sys_reboot_args), 0,
    184  1.1       scw 	    compat_12_sys_reboot },		/* 55 = oreboot */
    185  1.1       scw #else
    186  1.4   thorpej 	{ 0, 0, 0,
    187  1.1       scw 	    sys_nosys },			/* 55 = excluded compat_12_sys_reboot */
    188  1.1       scw #endif
    189  1.4   thorpej 	{ 1, s(struct aoutm68k_sys_revoke_args), 0,
    190  1.1       scw 	    aoutm68k_sys_revoke },		/* 56 = revoke */
    191  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_symlink_args), 0,
    192  1.1       scw 	    aoutm68k_sys_symlink },		/* 57 = symlink */
    193  1.4   thorpej 	{ 3, s(struct aoutm68k_sys_readlink_args), 0,
    194  1.1       scw 	    aoutm68k_sys_readlink },		/* 58 = readlink */
    195  1.4   thorpej 	{ 3, s(struct aoutm68k_sys_execve_args), 0,
    196  1.1       scw 	    aoutm68k_sys_execve },		/* 59 = execve */
    197  1.4   thorpej 	{ 1, s(struct sys_umask_args), 0,
    198  1.1       scw 	    sys_umask },			/* 60 = umask */
    199  1.4   thorpej 	{ 1, s(struct aoutm68k_sys_chroot_args), 0,
    200  1.1       scw 	    aoutm68k_sys_chroot },		/* 61 = chroot */
    201  1.1       scw #ifdef COMPAT_43
    202  1.4   thorpej 	{ 2, s(struct aoutm68k_compat_43_sys_fstat_args), 0,
    203  1.1       scw 	    aoutm68k_compat_43_sys_fstat },	/* 62 = fstat43 */
    204  1.4   thorpej 	{ 4, s(struct compat_43_sys_getkerninfo_args), 0,
    205  1.1       scw 	    compat_43_sys_getkerninfo },	/* 63 = ogetkerninfo */
    206  1.4   thorpej 	{ 0, 0, 0,
    207  1.1       scw 	    compat_43_sys_getpagesize },	/* 64 = ogetpagesize */
    208  1.1       scw #else
    209  1.4   thorpej 	{ 0, 0, 0,
    210  1.1       scw 	    sys_nosys },			/* 62 = excluded aoutm68k_compat_43_sys_fstat */
    211  1.4   thorpej 	{ 0, 0, 0,
    212  1.1       scw 	    sys_nosys },			/* 63 = excluded compat_43_sys_getkerninfo */
    213  1.4   thorpej 	{ 0, 0, 0,
    214  1.1       scw 	    sys_nosys },			/* 64 = excluded compat_43_sys_getpagesize */
    215  1.1       scw #endif
    216  1.1       scw #ifdef COMPAT_12
    217  1.4   thorpej 	{ 2, s(struct compat_12_sys_msync_args), 0,
    218  1.1       scw 	    compat_12_sys_msync },		/* 65 = msync */
    219  1.1       scw #else
    220  1.4   thorpej 	{ 0, 0, 0,
    221  1.1       scw 	    sys_nosys },			/* 65 = excluded compat_12_sys_msync */
    222  1.1       scw #endif
    223  1.4   thorpej 	{ 0, 0, 0,
    224  1.1       scw 	    sys_vfork },			/* 66 = vfork */
    225  1.4   thorpej 	{ 0, 0, 0,
    226  1.1       scw 	    sys_nosys },			/* 67 = obsolete vread */
    227  1.4   thorpej 	{ 0, 0, 0,
    228  1.1       scw 	    sys_nosys },			/* 68 = obsolete vwrite */
    229  1.4   thorpej 	{ 1, s(struct sys_sbrk_args), 0,
    230  1.1       scw 	    sys_sbrk },				/* 69 = sbrk */
    231  1.4   thorpej 	{ 1, s(struct sys_sstk_args), 0,
    232  1.1       scw 	    sys_sstk },				/* 70 = sstk */
    233  1.1       scw #ifdef COMPAT_43
    234  1.4   thorpej 	{ 6, s(struct compat_43_sys_mmap_args), 0,
    235  1.1       scw 	    compat_43_sys_mmap },		/* 71 = ommap */
    236  1.1       scw #else
    237  1.4   thorpej 	{ 0, 0, 0,
    238  1.1       scw 	    sys_nosys },			/* 71 = excluded compat_43_sys_mmap */
    239  1.1       scw #endif
    240  1.4   thorpej 	{ 1, s(struct sys_ovadvise_args), 0,
    241  1.1       scw 	    sys_ovadvise },			/* 72 = vadvise */
    242  1.4   thorpej 	{ 2, s(struct sys_munmap_args), 0,
    243  1.1       scw 	    sys_munmap },			/* 73 = munmap */
    244  1.4   thorpej 	{ 3, s(struct sys_mprotect_args), 0,
    245  1.1       scw 	    sys_mprotect },			/* 74 = mprotect */
    246  1.4   thorpej 	{ 3, s(struct sys_madvise_args), 0,
    247  1.1       scw 	    sys_madvise },			/* 75 = madvise */
    248  1.4   thorpej 	{ 0, 0, 0,
    249  1.1       scw 	    sys_nosys },			/* 76 = obsolete vhangup */
    250  1.4   thorpej 	{ 0, 0, 0,
    251  1.1       scw 	    sys_nosys },			/* 77 = obsolete vlimit */
    252  1.4   thorpej 	{ 3, s(struct sys_mincore_args), 0,
    253  1.1       scw 	    sys_mincore },			/* 78 = mincore */
    254  1.4   thorpej 	{ 2, s(struct sys_getgroups_args), 0,
    255  1.1       scw 	    sys_getgroups },			/* 79 = getgroups */
    256  1.4   thorpej 	{ 2, s(struct sys_setgroups_args), 0,
    257  1.1       scw 	    sys_setgroups },			/* 80 = setgroups */
    258  1.4   thorpej 	{ 0, 0, 0,
    259  1.1       scw 	    sys_getpgrp },			/* 81 = getpgrp */
    260  1.4   thorpej 	{ 2, s(struct sys_setpgid_args), 0,
    261  1.1       scw 	    sys_setpgid },			/* 82 = setpgid */
    262  1.4   thorpej 	{ 3, s(struct sys_setitimer_args), 0,
    263  1.1       scw 	    sys_setitimer },			/* 83 = setitimer */
    264  1.1       scw #ifdef COMPAT_43
    265  1.4   thorpej 	{ 0, 0, 0,
    266  1.1       scw 	    compat_43_sys_wait },		/* 84 = owait */
    267  1.1       scw #else
    268  1.4   thorpej 	{ 0, 0, 0,
    269  1.1       scw 	    sys_nosys },			/* 84 = excluded compat_43_sys_wait */
    270  1.1       scw #endif
    271  1.1       scw #ifdef COMPAT_12
    272  1.4   thorpej 	{ 1, s(struct compat_12_sys_swapon_args), 0,
    273  1.1       scw 	    compat_12_sys_swapon },		/* 85 = oswapon */
    274  1.1       scw #else
    275  1.4   thorpej 	{ 0, 0, 0,
    276  1.1       scw 	    sys_nosys },			/* 85 = excluded compat_12_sys_swapon */
    277  1.1       scw #endif
    278  1.4   thorpej 	{ 2, s(struct sys_getitimer_args), 0,
    279  1.1       scw 	    sys_getitimer },			/* 86 = getitimer */
    280  1.1       scw #ifdef COMPAT_43
    281  1.4   thorpej 	{ 2, s(struct compat_43_sys_gethostname_args), 0,
    282  1.1       scw 	    compat_43_sys_gethostname },	/* 87 = ogethostname */
    283  1.4   thorpej 	{ 2, s(struct compat_43_sys_sethostname_args), 0,
    284  1.1       scw 	    compat_43_sys_sethostname },	/* 88 = osethostname */
    285  1.4   thorpej 	{ 0, 0, 0,
    286  1.1       scw 	    compat_43_sys_getdtablesize },	/* 89 = ogetdtablesize */
    287  1.1       scw #else
    288  1.4   thorpej 	{ 0, 0, 0,
    289  1.1       scw 	    sys_nosys },			/* 87 = excluded compat_43_sys_gethostname */
    290  1.4   thorpej 	{ 0, 0, 0,
    291  1.1       scw 	    sys_nosys },			/* 88 = excluded compat_43_sys_sethostname */
    292  1.4   thorpej 	{ 0, 0, 0,
    293  1.1       scw 	    sys_nosys },			/* 89 = excluded compat_43_sys_getdtablesize */
    294  1.1       scw #endif
    295  1.4   thorpej 	{ 2, s(struct sys_dup2_args), 0,
    296  1.1       scw 	    sys_dup2 },				/* 90 = dup2 */
    297  1.4   thorpej 	{ 0, 0, 0,
    298  1.1       scw 	    sys_nosys },			/* 91 = unimplemented getdopt */
    299  1.4   thorpej 	{ 3, s(struct sys_fcntl_args), 0,
    300  1.1       scw 	    sys_fcntl },			/* 92 = fcntl */
    301  1.4   thorpej 	{ 5, s(struct sys_select_args), 0,
    302  1.1       scw 	    sys_select },			/* 93 = select */
    303  1.4   thorpej 	{ 0, 0, 0,
    304  1.1       scw 	    sys_nosys },			/* 94 = unimplemented setdopt */
    305  1.4   thorpej 	{ 1, s(struct sys_fsync_args), 0,
    306  1.1       scw 	    sys_fsync },			/* 95 = fsync */
    307  1.4   thorpej 	{ 3, s(struct sys_setpriority_args), 0,
    308  1.1       scw 	    sys_setpriority },			/* 96 = setpriority */
    309  1.4   thorpej 	{ 3, s(struct sys_socket_args), 0,
    310  1.1       scw 	    sys_socket },			/* 97 = socket */
    311  1.4   thorpej 	{ 3, s(struct sys_connect_args), 0,
    312  1.1       scw 	    sys_connect },			/* 98 = connect */
    313  1.1       scw #ifdef COMPAT_43
    314  1.4   thorpej 	{ 3, s(struct compat_43_sys_accept_args), 0,
    315  1.1       scw 	    compat_43_sys_accept },		/* 99 = oaccept */
    316  1.1       scw #else
    317  1.4   thorpej 	{ 0, 0, 0,
    318  1.1       scw 	    sys_nosys },			/* 99 = excluded compat_43_sys_accept */
    319  1.1       scw #endif
    320  1.4   thorpej 	{ 2, s(struct sys_getpriority_args), 0,
    321  1.1       scw 	    sys_getpriority },			/* 100 = getpriority */
    322  1.1       scw #ifdef COMPAT_43
    323  1.4   thorpej 	{ 4, s(struct compat_43_sys_send_args), 0,
    324  1.1       scw 	    compat_43_sys_send },		/* 101 = osend */
    325  1.4   thorpej 	{ 4, s(struct compat_43_sys_recv_args), 0,
    326  1.1       scw 	    compat_43_sys_recv },		/* 102 = orecv */
    327  1.1       scw #else
    328  1.4   thorpej 	{ 0, 0, 0,
    329  1.1       scw 	    sys_nosys },			/* 101 = excluded compat_43_sys_send */
    330  1.4   thorpej 	{ 0, 0, 0,
    331  1.1       scw 	    sys_nosys },			/* 102 = excluded compat_43_sys_recv */
    332  1.1       scw #endif
    333  1.1       scw #ifdef COMPAT_13
    334  1.4   thorpej 	{ 1, s(struct compat_13_sys_sigreturn_args), 0,
    335  1.1       scw 	    compat_13_sys_sigreturn },		/* 103 = sigreturn13 */
    336  1.1       scw #else
    337  1.4   thorpej 	{ 0, 0, 0,
    338  1.1       scw 	    sys_nosys },			/* 103 = excluded compat_13_sys_sigreturn */
    339  1.1       scw #endif
    340  1.4   thorpej 	{ 3, s(struct sys_bind_args), 0,
    341  1.1       scw 	    sys_bind },				/* 104 = bind */
    342  1.4   thorpej 	{ 5, s(struct sys_setsockopt_args), 0,
    343  1.1       scw 	    sys_setsockopt },			/* 105 = setsockopt */
    344  1.4   thorpej 	{ 2, s(struct sys_listen_args), 0,
    345  1.1       scw 	    sys_listen },			/* 106 = listen */
    346  1.4   thorpej 	{ 0, 0, 0,
    347  1.1       scw 	    sys_nosys },			/* 107 = obsolete vtimes */
    348  1.1       scw #ifdef COMPAT_43
    349  1.4   thorpej 	{ 3, s(struct compat_43_sys_sigvec_args), 0,
    350  1.1       scw 	    compat_43_sys_sigvec },		/* 108 = osigvec */
    351  1.4   thorpej 	{ 1, s(struct compat_43_sys_sigblock_args), 0,
    352  1.1       scw 	    compat_43_sys_sigblock },		/* 109 = osigblock */
    353  1.4   thorpej 	{ 1, s(struct compat_43_sys_sigsetmask_args), 0,
    354  1.1       scw 	    compat_43_sys_sigsetmask },		/* 110 = osigsetmask */
    355  1.1       scw #else
    356  1.4   thorpej 	{ 0, 0, 0,
    357  1.1       scw 	    sys_nosys },			/* 108 = excluded compat_43_sys_sigvec */
    358  1.4   thorpej 	{ 0, 0, 0,
    359  1.1       scw 	    sys_nosys },			/* 109 = excluded compat_43_sys_sigblock */
    360  1.4   thorpej 	{ 0, 0, 0,
    361  1.1       scw 	    sys_nosys },			/* 110 = excluded compat_43_sys_sigsetmask */
    362  1.1       scw #endif
    363  1.1       scw #ifdef COMPAT_13
    364  1.4   thorpej 	{ 1, s(struct compat_13_sys_sigsuspend_args), 0,
    365  1.1       scw 	    compat_13_sys_sigsuspend },		/* 111 = sigsuspend13 */
    366  1.1       scw #else
    367  1.4   thorpej 	{ 0, 0, 0,
    368  1.1       scw 	    sys_nosys },			/* 111 = excluded compat_13_sys_sigsuspend */
    369  1.1       scw #endif
    370  1.1       scw #ifdef COMPAT_43
    371  1.4   thorpej 	{ 2, s(struct compat_43_sys_sigstack_args), 0,
    372  1.1       scw 	    compat_43_sys_sigstack },		/* 112 = osigstack */
    373  1.4   thorpej 	{ 3, s(struct compat_43_sys_recvmsg_args), 0,
    374  1.1       scw 	    compat_43_sys_recvmsg },		/* 113 = orecvmsg */
    375  1.4   thorpej 	{ 3, s(struct compat_43_sys_sendmsg_args), 0,
    376  1.1       scw 	    compat_43_sys_sendmsg },		/* 114 = osendmsg */
    377  1.1       scw #else
    378  1.4   thorpej 	{ 0, 0, 0,
    379  1.1       scw 	    sys_nosys },			/* 112 = excluded compat_43_sys_sigstack */
    380  1.4   thorpej 	{ 0, 0, 0,
    381  1.1       scw 	    sys_nosys },			/* 113 = excluded compat_43_sys_recvmesg */
    382  1.4   thorpej 	{ 0, 0, 0,
    383  1.1       scw 	    sys_nosys },			/* 114 = excluded compat_43_sys_sendmesg */
    384  1.1       scw #endif
    385  1.4   thorpej 	{ 0, 0, 0,
    386  1.1       scw 	    sys_nosys },			/* 115 = obsolete vtrace */
    387  1.4   thorpej 	{ 2, s(struct sys_gettimeofday_args), 0,
    388  1.1       scw 	    sys_gettimeofday },			/* 116 = gettimeofday */
    389  1.4   thorpej 	{ 2, s(struct sys_getrusage_args), 0,
    390  1.1       scw 	    sys_getrusage },			/* 117 = getrusage */
    391  1.4   thorpej 	{ 5, s(struct sys_getsockopt_args), 0,
    392  1.1       scw 	    sys_getsockopt },			/* 118 = getsockopt */
    393  1.4   thorpej 	{ 0, 0, 0,
    394  1.1       scw 	    sys_nosys },			/* 119 = obsolete resuba */
    395  1.4   thorpej 	{ 3, s(struct sys_readv_args), 0,
    396  1.1       scw 	    sys_readv },			/* 120 = readv */
    397  1.4   thorpej 	{ 3, s(struct sys_writev_args), 0,
    398  1.1       scw 	    sys_writev },			/* 121 = writev */
    399  1.4   thorpej 	{ 2, s(struct sys_settimeofday_args), 0,
    400  1.1       scw 	    sys_settimeofday },			/* 122 = settimeofday */
    401  1.4   thorpej 	{ 3, s(struct sys_fchown_args), 0,
    402  1.1       scw 	    sys_fchown },			/* 123 = fchown */
    403  1.4   thorpej 	{ 2, s(struct sys_fchmod_args), 0,
    404  1.1       scw 	    sys_fchmod },			/* 124 = fchmod */
    405  1.1       scw #ifdef COMPAT_43
    406  1.4   thorpej 	{ 6, s(struct compat_43_sys_recvfrom_args), 0,
    407  1.1       scw 	    compat_43_sys_recvfrom },		/* 125 = orecvfrom */
    408  1.1       scw #else
    409  1.4   thorpej 	{ 0, 0, 0,
    410  1.1       scw 	    sys_nosys },			/* 125 = excluded compat_43_sys_recvfrom */
    411  1.1       scw #endif
    412  1.4   thorpej 	{ 2, s(struct sys_setreuid_args), 0,
    413  1.1       scw 	    sys_setreuid },			/* 126 = setreuid */
    414  1.4   thorpej 	{ 2, s(struct sys_setregid_args), 0,
    415  1.1       scw 	    sys_setregid },			/* 127 = setregid */
    416  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_rename_args), 0,
    417  1.1       scw 	    aoutm68k_sys_rename },		/* 128 = rename */
    418  1.1       scw #ifdef COMPAT_43
    419  1.4   thorpej 	{ 2, s(struct aoutm68k_compat_43_sys_truncate_args), 0,
    420  1.1       scw 	    aoutm68k_compat_43_sys_truncate },	/* 129 = otruncate */
    421  1.4   thorpej 	{ 2, s(struct compat_43_sys_ftruncate_args), 0,
    422  1.1       scw 	    compat_43_sys_ftruncate },		/* 130 = oftruncate */
    423  1.1       scw #else
    424  1.4   thorpej 	{ 0, 0, 0,
    425  1.1       scw 	    sys_nosys },			/* 129 = excluded aoutm68k_compat_43_sys_truncate */
    426  1.4   thorpej 	{ 0, 0, 0,
    427  1.1       scw 	    sys_nosys },			/* 130 = excluded compat_43_sys_ftruncate */
    428  1.1       scw #endif
    429  1.4   thorpej 	{ 2, s(struct sys_flock_args), 0,
    430  1.1       scw 	    sys_flock },			/* 131 = flock */
    431  1.4   thorpej 	{ 2, s(struct sys_mkfifo_args), 0,
    432  1.1       scw 	    sys_mkfifo },			/* 132 = mkfifo */
    433  1.4   thorpej 	{ 6, s(struct sys_sendto_args), 0,
    434  1.1       scw 	    sys_sendto },			/* 133 = sendto */
    435  1.4   thorpej 	{ 2, s(struct sys_shutdown_args), 0,
    436  1.1       scw 	    sys_shutdown },			/* 134 = shutdown */
    437  1.4   thorpej 	{ 4, s(struct sys_socketpair_args), 0,
    438  1.1       scw 	    sys_socketpair },			/* 135 = socketpair */
    439  1.4   thorpej 	{ 2, s(struct sys_mkdir_args), 0,
    440  1.1       scw 	    sys_mkdir },			/* 136 = mkdir */
    441  1.4   thorpej 	{ 1, s(struct aoutm68k_sys_rmdir_args), 0,
    442  1.1       scw 	    aoutm68k_sys_rmdir },		/* 137 = rmdir */
    443  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_utimes_args), 0,
    444  1.1       scw 	    aoutm68k_sys_utimes },		/* 138 = utimes */
    445  1.4   thorpej 	{ 0, 0, 0,
    446  1.1       scw 	    sys_nosys },			/* 139 = obsolete 4.2 sigreturn */
    447  1.4   thorpej 	{ 2, s(struct sys_adjtime_args), 0,
    448  1.1       scw 	    sys_adjtime },			/* 140 = adjtime */
    449  1.1       scw #ifdef COMPAT_43
    450  1.4   thorpej 	{ 3, s(struct compat_43_sys_getpeername_args), 0,
    451  1.1       scw 	    compat_43_sys_getpeername },	/* 141 = ogetpeername */
    452  1.4   thorpej 	{ 0, 0, 0,
    453  1.1       scw 	    compat_43_sys_gethostid },		/* 142 = ogethostid */
    454  1.4   thorpej 	{ 1, s(struct compat_43_sys_sethostid_args), 0,
    455  1.1       scw 	    compat_43_sys_sethostid },		/* 143 = osethostid */
    456  1.4   thorpej 	{ 2, s(struct compat_43_sys_getrlimit_args), 0,
    457  1.1       scw 	    compat_43_sys_getrlimit },		/* 144 = ogetrlimit */
    458  1.4   thorpej 	{ 2, s(struct compat_43_sys_setrlimit_args), 0,
    459  1.1       scw 	    compat_43_sys_setrlimit },		/* 145 = osetrlimit */
    460  1.4   thorpej 	{ 2, s(struct compat_43_sys_killpg_args), 0,
    461  1.1       scw 	    compat_43_sys_killpg },		/* 146 = okillpg */
    462  1.1       scw #else
    463  1.4   thorpej 	{ 0, 0, 0,
    464  1.1       scw 	    sys_nosys },			/* 141 = excluded compat_43_sys_getpeername */
    465  1.4   thorpej 	{ 0, 0, 0,
    466  1.1       scw 	    sys_nosys },			/* 142 = excluded compat_43_sys_gethostid */
    467  1.4   thorpej 	{ 0, 0, 0,
    468  1.1       scw 	    sys_nosys },			/* 143 = excluded compat_43_sys_sethostid */
    469  1.4   thorpej 	{ 0, 0, 0,
    470  1.1       scw 	    sys_nosys },			/* 144 = excluded compat_43_sys_getrlimit */
    471  1.4   thorpej 	{ 0, 0, 0,
    472  1.1       scw 	    sys_nosys },			/* 145 = excluded compat_43_sys_setrlimit */
    473  1.4   thorpej 	{ 0, 0, 0,
    474  1.1       scw 	    sys_nosys },			/* 146 = excluded compat_43_sys_killpg */
    475  1.1       scw #endif
    476  1.4   thorpej 	{ 0, 0, 0,
    477  1.1       scw 	    sys_setsid },			/* 147 = setsid */
    478  1.4   thorpej 	{ 4, s(struct sys_quotactl_args), 0,
    479  1.1       scw 	    sys_quotactl },			/* 148 = quotactl */
    480  1.1       scw #ifdef COMPAT_43
    481  1.4   thorpej 	{ 0, 0, 0,
    482  1.1       scw 	    compat_43_sys_quota },		/* 149 = oquota */
    483  1.4   thorpej 	{ 3, s(struct compat_43_sys_getsockname_args), 0,
    484  1.1       scw 	    compat_43_sys_getsockname },	/* 150 = ogetsockname */
    485  1.1       scw #else
    486  1.4   thorpej 	{ 0, 0, 0,
    487  1.1       scw 	    sys_nosys },			/* 149 = excluded compat_43_sys_quota */
    488  1.4   thorpej 	{ 0, 0, 0,
    489  1.1       scw 	    sys_nosys },			/* 150 = excluded compat_43_sys_getsockname */
    490  1.1       scw #endif
    491  1.4   thorpej 	{ 0, 0, 0,
    492  1.1       scw 	    sys_nosys },			/* 151 = unimplemented */
    493  1.4   thorpej 	{ 0, 0, 0,
    494  1.1       scw 	    sys_nosys },			/* 152 = unimplemented */
    495  1.4   thorpej 	{ 0, 0, 0,
    496  1.1       scw 	    sys_nosys },			/* 153 = unimplemented */
    497  1.4   thorpej 	{ 0, 0, 0,
    498  1.1       scw 	    sys_nosys },			/* 154 = unimplemented */
    499  1.1       scw #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
    500  1.4   thorpej 	{ 2, s(struct sys_nfssvc_args), 0,
    501  1.1       scw 	    sys_nfssvc },			/* 155 = nfssvc */
    502  1.1       scw #else
    503  1.4   thorpej 	{ 0, 0, 0,
    504  1.1       scw 	    sys_nosys },			/* 155 = excluded nfssvc */
    505  1.1       scw #endif
    506  1.1       scw #ifdef COMPAT_43
    507  1.4   thorpej 	{ 4, s(struct compat_43_sys_getdirentries_args), 0,
    508  1.1       scw 	    compat_43_sys_getdirentries },	/* 156 = ogetdirentries */
    509  1.1       scw #else
    510  1.4   thorpej 	{ 0, 0, 0,
    511  1.1       scw 	    sys_nosys },			/* 156 = excluded compat_43_sys_getdirentries */
    512  1.1       scw #endif
    513  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_statfs_args), 0,
    514  1.1       scw 	    aoutm68k_sys_statfs },		/* 157 = statfs */
    515  1.4   thorpej 	{ 2, s(struct sys_fstatfs_args), 0,
    516  1.1       scw 	    sys_fstatfs },			/* 158 = fstatfs */
    517  1.4   thorpej 	{ 0, 0, 0,
    518  1.1       scw 	    sys_nosys },			/* 159 = unimplemented */
    519  1.4   thorpej 	{ 0, 0, 0,
    520  1.1       scw 	    sys_nosys },			/* 160 = unimplemented */
    521  1.1       scw #if defined(NFS) || defined(NFSSERVER) || !defined(_KERNEL)
    522  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_getfh_args), 0,
    523  1.1       scw 	    aoutm68k_sys_getfh },		/* 161 = getfh */
    524  1.1       scw #else
    525  1.4   thorpej 	{ 0, 0, 0,
    526  1.1       scw 	    sys_nosys },			/* 161 = excluded getfh */
    527  1.1       scw #endif
    528  1.1       scw #ifdef COMPAT_09
    529  1.4   thorpej 	{ 2, s(struct compat_09_sys_getdomainname_args), 0,
    530  1.1       scw 	    compat_09_sys_getdomainname },	/* 162 = ogetdomainname */
    531  1.4   thorpej 	{ 2, s(struct compat_09_sys_setdomainname_args), 0,
    532  1.1       scw 	    compat_09_sys_setdomainname },	/* 163 = osetdomainname */
    533  1.4   thorpej 	{ 1, s(struct compat_09_sys_uname_args), 0,
    534  1.1       scw 	    compat_09_sys_uname },		/* 164 = ouname */
    535  1.1       scw #else
    536  1.4   thorpej 	{ 0, 0, 0,
    537  1.1       scw 	    sys_nosys },			/* 162 = excluded compat_09_sys_getdomainname */
    538  1.4   thorpej 	{ 0, 0, 0,
    539  1.1       scw 	    sys_nosys },			/* 163 = excluded compat_09_sys_setdomainname */
    540  1.4   thorpej 	{ 0, 0, 0,
    541  1.1       scw 	    sys_nosys },			/* 164 = excluded compat_09_sys_uname */
    542  1.1       scw #endif
    543  1.4   thorpej 	{ 2, s(struct sys_sysarch_args), 0,
    544  1.1       scw 	    sys_sysarch },			/* 165 = sysarch */
    545  1.4   thorpej 	{ 0, 0, 0,
    546  1.1       scw 	    sys_nosys },			/* 166 = unimplemented */
    547  1.4   thorpej 	{ 0, 0, 0,
    548  1.1       scw 	    sys_nosys },			/* 167 = unimplemented */
    549  1.4   thorpej 	{ 0, 0, 0,
    550  1.1       scw 	    sys_nosys },			/* 168 = unimplemented */
    551  1.1       scw #if (defined(SYSVSEM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
    552  1.4   thorpej 	{ 5, s(struct compat_10_sys_semsys_args), 0,
    553  1.1       scw 	    compat_10_sys_semsys },		/* 169 = osemsys */
    554  1.1       scw #else
    555  1.4   thorpej 	{ 0, 0, 0,
    556  1.1       scw 	    sys_nosys },			/* 169 = excluded 1.0 semsys */
    557  1.1       scw #endif
    558  1.1       scw #if (defined(SYSVMSG) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
    559  1.4   thorpej 	{ 6, s(struct compat_10_sys_msgsys_args), 0,
    560  1.1       scw 	    compat_10_sys_msgsys },		/* 170 = omsgsys */
    561  1.1       scw #else
    562  1.4   thorpej 	{ 0, 0, 0,
    563  1.1       scw 	    sys_nosys },			/* 170 = excluded 1.0 msgsys */
    564  1.1       scw #endif
    565  1.1       scw #if (defined(SYSVSHM) || !defined(_KERNEL)) && !defined(alpha) && defined(COMPAT_10)
    566  1.4   thorpej 	{ 4, s(struct compat_10_sys_shmsys_args), 0,
    567  1.1       scw 	    compat_10_sys_shmsys },		/* 171 = oshmsys */
    568  1.1       scw #else
    569  1.4   thorpej 	{ 0, 0, 0,
    570  1.1       scw 	    sys_nosys },			/* 171 = excluded 1.0 shmsys */
    571  1.1       scw #endif
    572  1.4   thorpej 	{ 0, 0, 0,
    573  1.1       scw 	    sys_nosys },			/* 172 = unimplemented */
    574  1.4   thorpej 	{ 5, s(struct sys_pread_args), 0,
    575  1.1       scw 	    sys_pread },			/* 173 = pread */
    576  1.4   thorpej 	{ 5, s(struct sys_pwrite_args), 0,
    577  1.1       scw 	    sys_pwrite },			/* 174 = pwrite */
    578  1.4   thorpej 	{ 1, s(struct sys_ntp_gettime_args), 0,
    579  1.1       scw 	    sys_ntp_gettime },			/* 175 = ntp_gettime */
    580  1.1       scw #if defined(NTP) || !defined(_KERNEL)
    581  1.4   thorpej 	{ 1, s(struct sys_ntp_adjtime_args), 0,
    582  1.1       scw 	    sys_ntp_adjtime },			/* 176 = ntp_adjtime */
    583  1.1       scw #else
    584  1.4   thorpej 	{ 0, 0, 0,
    585  1.1       scw 	    sys_nosys },			/* 176 = excluded ntp_adjtime */
    586  1.1       scw #endif
    587  1.4   thorpej 	{ 0, 0, 0,
    588  1.1       scw 	    sys_nosys },			/* 177 = unimplemented */
    589  1.4   thorpej 	{ 0, 0, 0,
    590  1.1       scw 	    sys_nosys },			/* 178 = unimplemented */
    591  1.4   thorpej 	{ 0, 0, 0,
    592  1.1       scw 	    sys_nosys },			/* 179 = unimplemented */
    593  1.4   thorpej 	{ 0, 0, 0,
    594  1.1       scw 	    sys_nosys },			/* 180 = unimplemented */
    595  1.4   thorpej 	{ 1, s(struct sys_setgid_args), 0,
    596  1.1       scw 	    sys_setgid },			/* 181 = setgid */
    597  1.4   thorpej 	{ 1, s(struct sys_setegid_args), 0,
    598  1.1       scw 	    sys_setegid },			/* 182 = setegid */
    599  1.4   thorpej 	{ 1, s(struct sys_seteuid_args), 0,
    600  1.1       scw 	    sys_seteuid },			/* 183 = seteuid */
    601  1.1       scw #if defined(LFS) || !defined(_KERNEL)
    602  1.4   thorpej 	{ 3, s(struct sys_lfs_bmapv_args), 0,
    603  1.1       scw 	    sys_lfs_bmapv },			/* 184 = lfs_bmapv */
    604  1.4   thorpej 	{ 3, s(struct sys_lfs_markv_args), 0,
    605  1.1       scw 	    sys_lfs_markv },			/* 185 = lfs_markv */
    606  1.4   thorpej 	{ 2, s(struct sys_lfs_segclean_args), 0,
    607  1.1       scw 	    sys_lfs_segclean },			/* 186 = lfs_segclean */
    608  1.4   thorpej 	{ 2, s(struct sys_lfs_segwait_args), 0,
    609  1.1       scw 	    sys_lfs_segwait },			/* 187 = lfs_segwait */
    610  1.1       scw #else
    611  1.4   thorpej 	{ 0, 0, 0,
    612  1.1       scw 	    sys_nosys },			/* 184 = excluded lfs_bmapv */
    613  1.4   thorpej 	{ 0, 0, 0,
    614  1.1       scw 	    sys_nosys },			/* 185 = excluded lfs_markv */
    615  1.4   thorpej 	{ 0, 0, 0,
    616  1.1       scw 	    sys_nosys },			/* 186 = excluded lfs_segclean */
    617  1.4   thorpej 	{ 0, 0, 0,
    618  1.1       scw 	    sys_nosys },			/* 187 = excluded lfs_segwait */
    619  1.1       scw #endif
    620  1.1       scw #ifdef COMPAT_12
    621  1.4   thorpej 	{ 2, s(struct aoutm68k_compat_12_sys_stat_args), 0,
    622  1.1       scw 	    aoutm68k_compat_12_sys_stat },	/* 188 = stat12 */
    623  1.4   thorpej 	{ 2, s(struct aoutm68k_compat_12_sys_fstat_args), 0,
    624  1.1       scw 	    aoutm68k_compat_12_sys_fstat },	/* 189 = fstat12 */
    625  1.4   thorpej 	{ 2, s(struct aoutm68k_compat_12_sys_lstat_args), 0,
    626  1.1       scw 	    aoutm68k_compat_12_sys_lstat },	/* 190 = lstat12 */
    627  1.1       scw #else
    628  1.4   thorpej 	{ 0, 0, 0,
    629  1.1       scw 	    sys_nosys },			/* 188 = excluded aoutm68k_compat_12_sys_stat */
    630  1.4   thorpej 	{ 0, 0, 0,
    631  1.1       scw 	    sys_nosys },			/* 189 = excluded aoutm68k_compat_12_sys_fstat */
    632  1.4   thorpej 	{ 0, 0, 0,
    633  1.1       scw 	    sys_nosys },			/* 190 = excluded aoutm68k_compat_12_sys_lstat */
    634  1.1       scw #endif
    635  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_pathconf_args), 0,
    636  1.1       scw 	    aoutm68k_sys_pathconf },		/* 191 = pathconf */
    637  1.4   thorpej 	{ 2, s(struct sys_fpathconf_args), 0,
    638  1.1       scw 	    sys_fpathconf },			/* 192 = fpathconf */
    639  1.4   thorpej 	{ 0, 0, 0,
    640  1.1       scw 	    sys_nosys },			/* 193 = unimplemented */
    641  1.4   thorpej 	{ 2, s(struct sys_getrlimit_args), 0,
    642  1.1       scw 	    sys_getrlimit },			/* 194 = getrlimit */
    643  1.4   thorpej 	{ 2, s(struct sys_setrlimit_args), 0,
    644  1.1       scw 	    sys_setrlimit },			/* 195 = setrlimit */
    645  1.1       scw #ifdef COMPAT_12
    646  1.4   thorpej 	{ 4, s(struct compat_12_sys_getdirentries_args), 0,
    647  1.1       scw 	    compat_12_sys_getdirentries },	/* 196 = getdirentries */
    648  1.1       scw #else
    649  1.4   thorpej 	{ 0, 0, 0,
    650  1.1       scw 	    sys_nosys },			/* 196 = excluded compat_12_sys_getdirentries */
    651  1.1       scw #endif
    652  1.4   thorpej 	{ 7, s(struct sys_mmap_args), 0,
    653  1.1       scw 	    sys_mmap },				/* 197 = mmap */
    654  1.4   thorpej 	{ 0, 0, 0,
    655  1.1       scw 	    sys_nosys },			/* 198 = __syscall (indir) */
    656  1.4   thorpej 	{ 4, s(struct sys_lseek_args), 0,
    657  1.1       scw 	    sys_lseek },			/* 199 = lseek */
    658  1.4   thorpej 	{ 3, s(struct aoutm68k_sys_truncate_args), 0,
    659  1.1       scw 	    aoutm68k_sys_truncate },		/* 200 = truncate */
    660  1.4   thorpej 	{ 3, s(struct sys_ftruncate_args), 0,
    661  1.1       scw 	    sys_ftruncate },			/* 201 = ftruncate */
    662  1.4   thorpej 	{ 6, s(struct sys___sysctl_args), 0,
    663  1.1       scw 	    sys___sysctl },			/* 202 = __sysctl */
    664  1.4   thorpej 	{ 2, s(struct sys_mlock_args), 0,
    665  1.1       scw 	    sys_mlock },			/* 203 = mlock */
    666  1.4   thorpej 	{ 2, s(struct sys_munlock_args), 0,
    667  1.1       scw 	    sys_munlock },			/* 204 = munlock */
    668  1.4   thorpej 	{ 1, s(struct aoutm68k_sys_undelete_args), 0,
    669  1.1       scw 	    aoutm68k_sys_undelete },		/* 205 = undelete */
    670  1.4   thorpej 	{ 2, s(struct sys_futimes_args), 0,
    671  1.1       scw 	    sys_futimes },			/* 206 = futimes */
    672  1.4   thorpej 	{ 1, s(struct sys_getpgid_args), 0,
    673  1.1       scw 	    sys_getpgid },			/* 207 = getpgid */
    674  1.4   thorpej 	{ 2, s(struct sys_reboot_args), 0,
    675  1.1       scw 	    sys_reboot },			/* 208 = reboot */
    676  1.4   thorpej 	{ 3, s(struct sys_poll_args), 0,
    677  1.1       scw 	    sys_poll },				/* 209 = poll */
    678  1.1       scw #if defined(LKM) || !defined(_KERNEL)
    679  1.4   thorpej 	{ 0, 0, 0,
    680  1.1       scw 	    sys_lkmnosys },			/* 210 = lkmnosys */
    681  1.4   thorpej 	{ 0, 0, 0,
    682  1.1       scw 	    sys_lkmnosys },			/* 211 = lkmnosys */
    683  1.4   thorpej 	{ 0, 0, 0,
    684  1.1       scw 	    sys_lkmnosys },			/* 212 = lkmnosys */
    685  1.4   thorpej 	{ 0, 0, 0,
    686  1.1       scw 	    sys_lkmnosys },			/* 213 = lkmnosys */
    687  1.4   thorpej 	{ 0, 0, 0,
    688  1.1       scw 	    sys_lkmnosys },			/* 214 = lkmnosys */
    689  1.4   thorpej 	{ 0, 0, 0,
    690  1.1       scw 	    sys_lkmnosys },			/* 215 = lkmnosys */
    691  1.4   thorpej 	{ 0, 0, 0,
    692  1.1       scw 	    sys_lkmnosys },			/* 216 = lkmnosys */
    693  1.4   thorpej 	{ 0, 0, 0,
    694  1.1       scw 	    sys_lkmnosys },			/* 217 = lkmnosys */
    695  1.4   thorpej 	{ 0, 0, 0,
    696  1.1       scw 	    sys_lkmnosys },			/* 218 = lkmnosys */
    697  1.4   thorpej 	{ 0, 0, 0,
    698  1.1       scw 	    sys_lkmnosys },			/* 219 = lkmnosys */
    699  1.1       scw #else	/* !LKM */
    700  1.4   thorpej 	{ 0, 0, 0,
    701  1.1       scw 	    sys_nosys },			/* 210 = excluded lkmnosys */
    702  1.4   thorpej 	{ 0, 0, 0,
    703  1.1       scw 	    sys_nosys },			/* 211 = excluded lkmnosys */
    704  1.4   thorpej 	{ 0, 0, 0,
    705  1.1       scw 	    sys_nosys },			/* 212 = excluded lkmnosys */
    706  1.4   thorpej 	{ 0, 0, 0,
    707  1.1       scw 	    sys_nosys },			/* 213 = excluded lkmnosys */
    708  1.4   thorpej 	{ 0, 0, 0,
    709  1.1       scw 	    sys_nosys },			/* 214 = excluded lkmnosys */
    710  1.4   thorpej 	{ 0, 0, 0,
    711  1.1       scw 	    sys_nosys },			/* 215 = excluded lkmnosys */
    712  1.4   thorpej 	{ 0, 0, 0,
    713  1.1       scw 	    sys_nosys },			/* 216 = excluded lkmnosys */
    714  1.4   thorpej 	{ 0, 0, 0,
    715  1.1       scw 	    sys_nosys },			/* 217 = excluded lkmnosys */
    716  1.4   thorpej 	{ 0, 0, 0,
    717  1.1       scw 	    sys_nosys },			/* 218 = excluded lkmnosys */
    718  1.4   thorpej 	{ 0, 0, 0,
    719  1.1       scw 	    sys_nosys },			/* 219 = excluded lkmnosys */
    720  1.1       scw #endif	/* !LKM */
    721  1.1       scw #if defined(SYSVSEM) || !defined(_KERNEL)
    722  1.1       scw #ifdef COMPAT_14
    723  1.4   thorpej 	{ 4, s(struct compat_14_sys___semctl_args), 0,
    724  1.1       scw 	    compat_14_sys___semctl },		/* 220 = __semctl */
    725  1.1       scw #else
    726  1.4   thorpej 	{ 0, 0, 0,
    727  1.1       scw 	    sys_nosys },			/* 220 = excluded compat_14_semctl */
    728  1.1       scw #endif
    729  1.4   thorpej 	{ 3, s(struct sys_semget_args), 0,
    730  1.1       scw 	    sys_semget },			/* 221 = semget */
    731  1.4   thorpej 	{ 3, s(struct sys_semop_args), 0,
    732  1.1       scw 	    sys_semop },			/* 222 = semop */
    733  1.4   thorpej 	{ 1, s(struct sys_semconfig_args), 0,
    734  1.1       scw 	    sys_semconfig },			/* 223 = semconfig */
    735  1.1       scw #else
    736  1.4   thorpej 	{ 0, 0, 0,
    737  1.1       scw 	    sys_nosys },			/* 220 = excluded compat_14_semctl */
    738  1.4   thorpej 	{ 0, 0, 0,
    739  1.1       scw 	    sys_nosys },			/* 221 = excluded semget */
    740  1.4   thorpej 	{ 0, 0, 0,
    741  1.1       scw 	    sys_nosys },			/* 222 = excluded semop */
    742  1.4   thorpej 	{ 0, 0, 0,
    743  1.1       scw 	    sys_nosys },			/* 223 = excluded semconfig */
    744  1.1       scw #endif
    745  1.1       scw #if defined(SYSVMSG) || !defined(_KERNEL)
    746  1.1       scw #ifdef COMPAT_14
    747  1.4   thorpej 	{ 3, s(struct compat_14_sys_msgctl_args), 0,
    748  1.1       scw 	    compat_14_sys_msgctl },		/* 224 = msgctl */
    749  1.1       scw #else
    750  1.4   thorpej 	{ 0, 0, 0,
    751  1.1       scw 	    sys_nosys },			/* 224 = excluded compat_14_sys_msgctl */
    752  1.1       scw #endif
    753  1.4   thorpej 	{ 2, s(struct sys_msgget_args), 0,
    754  1.1       scw 	    sys_msgget },			/* 225 = msgget */
    755  1.4   thorpej 	{ 4, s(struct sys_msgsnd_args), 0,
    756  1.1       scw 	    sys_msgsnd },			/* 226 = msgsnd */
    757  1.4   thorpej 	{ 5, s(struct sys_msgrcv_args), 0,
    758  1.1       scw 	    sys_msgrcv },			/* 227 = msgrcv */
    759  1.1       scw #else
    760  1.4   thorpej 	{ 0, 0, 0,
    761  1.1       scw 	    sys_nosys },			/* 224 = excluded compat_14_msgctl */
    762  1.4   thorpej 	{ 0, 0, 0,
    763  1.1       scw 	    sys_nosys },			/* 225 = excluded msgget */
    764  1.4   thorpej 	{ 0, 0, 0,
    765  1.1       scw 	    sys_nosys },			/* 226 = excluded msgsnd */
    766  1.4   thorpej 	{ 0, 0, 0,
    767  1.1       scw 	    sys_nosys },			/* 227 = excluded msgrcv */
    768  1.1       scw #endif
    769  1.1       scw #if defined(SYSVSHM) || !defined(_KERNEL)
    770  1.4   thorpej 	{ 3, s(struct sys_shmat_args), 0,
    771  1.1       scw 	    sys_shmat },			/* 228 = shmat */
    772  1.1       scw #ifdef COMPAT_14
    773  1.4   thorpej 	{ 3, s(struct compat_14_sys_shmctl_args), 0,
    774  1.1       scw 	    compat_14_sys_shmctl },		/* 229 = shmctl */
    775  1.1       scw #else
    776  1.4   thorpej 	{ 0, 0, 0,
    777  1.1       scw 	    sys_nosys },			/* 229 = excluded compat_14_sys_shmctl */
    778  1.1       scw #endif
    779  1.4   thorpej 	{ 1, s(struct sys_shmdt_args), 0,
    780  1.1       scw 	    sys_shmdt },			/* 230 = shmdt */
    781  1.4   thorpej 	{ 3, s(struct sys_shmget_args), 0,
    782  1.1       scw 	    sys_shmget },			/* 231 = shmget */
    783  1.1       scw #else
    784  1.4   thorpej 	{ 0, 0, 0,
    785  1.1       scw 	    sys_nosys },			/* 228 = excluded shmat */
    786  1.4   thorpej 	{ 0, 0, 0,
    787  1.1       scw 	    sys_nosys },			/* 229 = excluded compat_14_shmctl */
    788  1.4   thorpej 	{ 0, 0, 0,
    789  1.1       scw 	    sys_nosys },			/* 230 = excluded shmdt */
    790  1.4   thorpej 	{ 0, 0, 0,
    791  1.1       scw 	    sys_nosys },			/* 231 = excluded shmget */
    792  1.1       scw #endif
    793  1.4   thorpej 	{ 2, s(struct sys_clock_gettime_args), 0,
    794  1.1       scw 	    sys_clock_gettime },		/* 232 = clock_gettime */
    795  1.4   thorpej 	{ 2, s(struct sys_clock_settime_args), 0,
    796  1.1       scw 	    sys_clock_settime },		/* 233 = clock_settime */
    797  1.4   thorpej 	{ 2, s(struct sys_clock_getres_args), 0,
    798  1.1       scw 	    sys_clock_getres },			/* 234 = clock_getres */
    799  1.4   thorpej 	{ 0, 0, 0,
    800  1.1       scw 	    sys_nosys },			/* 235 = unimplemented timer_create */
    801  1.4   thorpej 	{ 0, 0, 0,
    802  1.1       scw 	    sys_nosys },			/* 236 = unimplemented timer_delete */
    803  1.4   thorpej 	{ 0, 0, 0,
    804  1.1       scw 	    sys_nosys },			/* 237 = unimplemented timer_settime */
    805  1.4   thorpej 	{ 0, 0, 0,
    806  1.1       scw 	    sys_nosys },			/* 238 = unimplemented timer_gettime */
    807  1.4   thorpej 	{ 0, 0, 0,
    808  1.1       scw 	    sys_nosys },			/* 239 = unimplemented timer_getoverrun */
    809  1.4   thorpej 	{ 2, s(struct sys_nanosleep_args), 0,
    810  1.1       scw 	    sys_nanosleep },			/* 240 = nanosleep */
    811  1.4   thorpej 	{ 1, s(struct sys_fdatasync_args), 0,
    812  1.1       scw 	    sys_fdatasync },			/* 241 = fdatasync */
    813  1.4   thorpej 	{ 1, s(struct sys_mlockall_args), 0,
    814  1.1       scw 	    sys_mlockall },			/* 242 = mlockall */
    815  1.4   thorpej 	{ 0, 0, 0,
    816  1.1       scw 	    sys_munlockall },			/* 243 = munlockall */
    817  1.4   thorpej 	{ 0, 0, 0,
    818  1.1       scw 	    sys_nosys },			/* 244 = unimplemented */
    819  1.4   thorpej 	{ 0, 0, 0,
    820  1.1       scw 	    sys_nosys },			/* 245 = unimplemented */
    821  1.4   thorpej 	{ 0, 0, 0,
    822  1.1       scw 	    sys_nosys },			/* 246 = unimplemented */
    823  1.4   thorpej 	{ 0, 0, 0,
    824  1.1       scw 	    sys_nosys },			/* 247 = unimplemented */
    825  1.4   thorpej 	{ 0, 0, 0,
    826  1.1       scw 	    sys_nosys },			/* 248 = unimplemented */
    827  1.4   thorpej 	{ 0, 0, 0,
    828  1.1       scw 	    sys_nosys },			/* 249 = unimplemented */
    829  1.4   thorpej 	{ 0, 0, 0,
    830  1.1       scw 	    sys_nosys },			/* 250 = unimplemented */
    831  1.4   thorpej 	{ 0, 0, 0,
    832  1.1       scw 	    sys_nosys },			/* 251 = unimplemented */
    833  1.4   thorpej 	{ 0, 0, 0,
    834  1.1       scw 	    sys_nosys },			/* 252 = unimplemented */
    835  1.4   thorpej 	{ 0, 0, 0,
    836  1.1       scw 	    sys_nosys },			/* 253 = unimplemented */
    837  1.4   thorpej 	{ 0, 0, 0,
    838  1.1       scw 	    sys_nosys },			/* 254 = unimplemented */
    839  1.4   thorpej 	{ 0, 0, 0,
    840  1.1       scw 	    sys_nosys },			/* 255 = unimplemented */
    841  1.4   thorpej 	{ 0, 0, 0,
    842  1.1       scw 	    sys_nosys },			/* 256 = unimplemented */
    843  1.4   thorpej 	{ 0, 0, 0,
    844  1.1       scw 	    sys_nosys },			/* 257 = unimplemented */
    845  1.4   thorpej 	{ 0, 0, 0,
    846  1.1       scw 	    sys_nosys },			/* 258 = unimplemented */
    847  1.4   thorpej 	{ 0, 0, 0,
    848  1.1       scw 	    sys_nosys },			/* 259 = unimplemented */
    849  1.4   thorpej 	{ 0, 0, 0,
    850  1.1       scw 	    sys_nosys },			/* 260 = unimplemented */
    851  1.4   thorpej 	{ 0, 0, 0,
    852  1.1       scw 	    sys_nosys },			/* 261 = unimplemented */
    853  1.4   thorpej 	{ 0, 0, 0,
    854  1.1       scw 	    sys_nosys },			/* 262 = unimplemented */
    855  1.4   thorpej 	{ 0, 0, 0,
    856  1.1       scw 	    sys_nosys },			/* 263 = unimplemented */
    857  1.4   thorpej 	{ 0, 0, 0,
    858  1.1       scw 	    sys_nosys },			/* 264 = unimplemented */
    859  1.4   thorpej 	{ 0, 0, 0,
    860  1.1       scw 	    sys_nosys },			/* 265 = unimplemented */
    861  1.4   thorpej 	{ 0, 0, 0,
    862  1.1       scw 	    sys_nosys },			/* 266 = unimplemented */
    863  1.4   thorpej 	{ 0, 0, 0,
    864  1.1       scw 	    sys_nosys },			/* 267 = unimplemented */
    865  1.4   thorpej 	{ 0, 0, 0,
    866  1.1       scw 	    sys_nosys },			/* 268 = unimplemented */
    867  1.4   thorpej 	{ 0, 0, 0,
    868  1.1       scw 	    sys_nosys },			/* 269 = unimplemented */
    869  1.4   thorpej 	{ 2, s(struct aoutm68k_sys___posix_rename_args), 0,
    870  1.1       scw 	    aoutm68k_sys___posix_rename },	/* 270 = __posix_rename */
    871  1.4   thorpej 	{ 3, s(struct sys_swapctl_args), 0,
    872  1.1       scw 	    sys_swapctl },			/* 271 = swapctl */
    873  1.4   thorpej 	{ 3, s(struct sys_getdents_args), 0,
    874  1.1       scw 	    sys_getdents },			/* 272 = getdents */
    875  1.4   thorpej 	{ 3, s(struct sys_minherit_args), 0,
    876  1.1       scw 	    sys_minherit },			/* 273 = minherit */
    877  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_lchmod_args), 0,
    878  1.1       scw 	    aoutm68k_sys_lchmod },		/* 274 = lchmod */
    879  1.4   thorpej 	{ 3, s(struct aoutm68k_sys_lchown_args), 0,
    880  1.1       scw 	    aoutm68k_sys_lchown },		/* 275 = lchown */
    881  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_lutimes_args), 0,
    882  1.1       scw 	    aoutm68k_sys_lutimes },		/* 276 = lutimes */
    883  1.4   thorpej 	{ 3, s(struct sys___msync13_args), 0,
    884  1.1       scw 	    sys___msync13 },			/* 277 = __msync13 */
    885  1.4   thorpej 	{ 2, s(struct aoutm68k_sys___stat13_args), 0,
    886  1.1       scw 	    aoutm68k_sys___stat13 },		/* 278 = __stat13 */
    887  1.4   thorpej 	{ 2, s(struct aoutm68k_sys___fstat13_args), 0,
    888  1.1       scw 	    aoutm68k_sys___fstat13 },		/* 279 = __fstat13 */
    889  1.4   thorpej 	{ 2, s(struct aoutm68k_sys___lstat13_args), 0,
    890  1.1       scw 	    aoutm68k_sys___lstat13 },		/* 280 = __lstat13 */
    891  1.4   thorpej 	{ 2, s(struct sys___sigaltstack14_args), 0,
    892  1.1       scw 	    sys___sigaltstack14 },		/* 281 = __sigaltstack14 */
    893  1.4   thorpej 	{ 0, 0, 0,
    894  1.1       scw 	    sys___vfork14 },			/* 282 = __vfork14 */
    895  1.4   thorpej 	{ 3, s(struct aoutm68k_sys___posix_chown_args), 0,
    896  1.1       scw 	    aoutm68k_sys___posix_chown },	/* 283 = __posix_chown */
    897  1.4   thorpej 	{ 3, s(struct sys___posix_fchown_args), 0,
    898  1.1       scw 	    sys___posix_fchown },		/* 284 = __posix_fchown */
    899  1.4   thorpej 	{ 3, s(struct sys___posix_lchown_args), 0,
    900  1.1       scw 	    sys___posix_lchown },		/* 285 = __posix_lchown */
    901  1.4   thorpej 	{ 1, s(struct sys_getsid_args), 0,
    902  1.1       scw 	    sys_getsid },			/* 286 = getsid */
    903  1.4   thorpej 	{ 0, 0, 0,
    904  1.1       scw 	    sys_nosys },			/* 287 = unimplemented */
    905  1.1       scw #if defined(KTRACE) || !defined(_KERNEL)
    906  1.4   thorpej 	{ 4, s(struct sys_fktrace_args), 0,
    907  1.1       scw 	    sys_fktrace },			/* 288 = fktrace */
    908  1.1       scw #else
    909  1.4   thorpej 	{ 0, 0, 0,
    910  1.1       scw 	    sys_nosys },			/* 288 = excluded ktrace */
    911  1.1       scw #endif
    912  1.4   thorpej 	{ 5, s(struct sys_preadv_args), 0,
    913  1.1       scw 	    sys_preadv },			/* 289 = preadv */
    914  1.4   thorpej 	{ 5, s(struct sys_pwritev_args), 0,
    915  1.1       scw 	    sys_pwritev },			/* 290 = pwritev */
    916  1.4   thorpej 	{ 3, s(struct sys___sigaction14_args), 0,
    917  1.1       scw 	    sys___sigaction14 },		/* 291 = __sigaction14 */
    918  1.4   thorpej 	{ 1, s(struct sys___sigpending14_args), 0,
    919  1.1       scw 	    sys___sigpending14 },		/* 292 = __sigpending14 */
    920  1.4   thorpej 	{ 3, s(struct sys___sigprocmask14_args), 0,
    921  1.1       scw 	    sys___sigprocmask14 },		/* 293 = __sigprocmask14 */
    922  1.4   thorpej 	{ 1, s(struct sys___sigsuspend14_args), 0,
    923  1.1       scw 	    sys___sigsuspend14 },		/* 294 = __sigsuspend14 */
    924  1.4   thorpej 	{ 1, s(struct sys___sigreturn14_args), 0,
    925  1.1       scw 	    sys___sigreturn14 },		/* 295 = __sigreturn14 */
    926  1.4   thorpej 	{ 2, s(struct sys___getcwd_args), 0,
    927  1.1       scw 	    sys___getcwd },			/* 296 = __getcwd */
    928  1.4   thorpej 	{ 1, s(struct sys_fchroot_args), 0,
    929  1.1       scw 	    sys_fchroot },			/* 297 = fchroot */
    930  1.4   thorpej 	{ 2, s(struct sys_fhopen_args), 0,
    931  1.1       scw 	    sys_fhopen },			/* 298 = fhopen */
    932  1.4   thorpej 	{ 2, s(struct aoutm68k_sys_fhstat_args), 0,
    933  1.1       scw 	    aoutm68k_sys_fhstat },		/* 299 = fhstat */
    934  1.4   thorpej 	{ 2, s(struct sys_fhstatfs_args), 0,
    935  1.1       scw 	    sys_fhstatfs },			/* 300 = fhstatfs */
    936  1.1       scw #if defined(SYSVSEM) || !defined(_KERNEL)
    937  1.4   thorpej 	{ 4, s(struct sys_____semctl13_args), 0,
    938  1.1       scw 	    sys_____semctl13 },			/* 301 = ____semctl13 */
    939  1.1       scw #else
    940  1.4   thorpej 	{ 0, 0, 0,
    941  1.1       scw 	    sys_nosys },			/* 301 = excluded ____semctl13 */
    942  1.1       scw #endif
    943  1.1       scw #if defined(SYSVMSG) || !defined(_KERNEL)
    944  1.4   thorpej 	{ 3, s(struct sys___msgctl13_args), 0,
    945  1.1       scw 	    sys___msgctl13 },			/* 302 = __msgctl13 */
    946  1.1       scw #else
    947  1.4   thorpej 	{ 0, 0, 0,
    948  1.1       scw 	    sys_nosys },			/* 302 = excluded __msgctl13 */
    949  1.1       scw #endif
    950  1.1       scw #if defined(SYSVSHM) || !defined(_KERNEL)
    951  1.4   thorpej 	{ 3, s(struct sys___shmctl13_args), 0,
    952  1.1       scw 	    sys___shmctl13 },			/* 303 = __shmctl13 */
    953  1.1       scw #else
    954  1.4   thorpej 	{ 0, 0, 0,
    955  1.1       scw 	    sys_nosys },			/* 303 = excluded __shmctl13 */
    956  1.1       scw #endif
    957  1.4   thorpej 	{ 2, s(struct sys_lchflags_args), 0,
    958  1.1       scw 	    sys_lchflags },			/* 304 = lchflags */
    959  1.4   thorpej 	{ 0, 0, 0,
    960  1.1       scw 	    sys_issetugid },			/* 305 = issetugid */
    961  1.1       scw };
    962  1.1       scw 
    963