Home | History | Annotate | Line # | Download | only in i386
linux_sysent.c revision 1.34.2.5
      1      1.19       cgd /* $NetBSD: linux_sysent.c,v 1.34.2.5 2001/11/14 19:13:04 nathanw Exp $ */
      2       1.1       erh 
      3       1.1       erh /*
      4       1.1       erh  * System call switch table.
      5       1.1       erh  *
      6       1.1       erh  * DO NOT EDIT-- this file is automatically generated.
      7  1.34.2.5   nathanw  * created from	NetBSD
      8       1.1       erh  */
      9  1.34.2.5   nathanw 
     10  1.34.2.5   nathanw #include <sys/cdefs.h>
     11  1.34.2.5   nathanw __KERNEL_RCSID(0, "$NetBSD: linux_sysent.c,v 1.34.2.5 2001/11/14 19:13:04 nathanw Exp $");
     12       1.1       erh 
     13  1.34.2.3   nathanw #if defined(_KERNEL_OPT)
     14       1.4  christos #include "opt_compat_43.h"
     15      1.22  jdolecek #endif
     16       1.1       erh #include <sys/param.h>
     17       1.8       abs #include <sys/poll.h>
     18       1.1       erh #include <sys/systm.h>
     19       1.1       erh #include <sys/signal.h>
     20       1.1       erh #include <sys/mount.h>
     21       1.1       erh #include <sys/syscallargs.h>
     22       1.2  christos #include <compat/linux/common/linux_types.h>
     23       1.2  christos #include <compat/linux/common/linux_signal.h>
     24       1.2  christos #include <compat/linux/common/linux_siginfo.h>
     25       1.2  christos #include <compat/linux/common/linux_machdep.h>
     26       1.2  christos #include <compat/linux/linux_syscallargs.h>
     27       1.1       erh 
     28       1.1       erh #define	s(type)	sizeof(type)
     29       1.1       erh 
     30       1.1       erh struct sysent linux_sysent[] = {
     31      1.33   thorpej 	{ 0, 0, 0,
     32  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 0 = syscall */
     33      1.33   thorpej 	{ 1, s(struct sys_exit_args), 0,
     34       1.1       erh 	    sys_exit },				/* 1 = exit */
     35      1.33   thorpej 	{ 0, 0, 0,
     36       1.1       erh 	    sys_fork },				/* 2 = fork */
     37      1.33   thorpej 	{ 3, s(struct sys_read_args), 0,
     38       1.1       erh 	    sys_read },				/* 3 = read */
     39      1.33   thorpej 	{ 3, s(struct sys_write_args), 0,
     40       1.1       erh 	    sys_write },			/* 4 = write */
     41      1.33   thorpej 	{ 3, s(struct linux_sys_open_args), 0,
     42       1.1       erh 	    linux_sys_open },			/* 5 = open */
     43      1.33   thorpej 	{ 1, s(struct sys_close_args), 0,
     44       1.1       erh 	    sys_close },			/* 6 = close */
     45      1.33   thorpej 	{ 3, s(struct linux_sys_waitpid_args), 0,
     46       1.1       erh 	    linux_sys_waitpid },		/* 7 = waitpid */
     47      1.33   thorpej 	{ 2, s(struct linux_sys_creat_args), 0,
     48       1.1       erh 	    linux_sys_creat },			/* 8 = creat */
     49      1.33   thorpej 	{ 2, s(struct linux_sys_link_args), 0,
     50      1.32      fvdl 	    linux_sys_link },			/* 9 = link */
     51      1.33   thorpej 	{ 1, s(struct linux_sys_unlink_args), 0,
     52       1.1       erh 	    linux_sys_unlink },			/* 10 = unlink */
     53      1.33   thorpej 	{ 3, s(struct linux_sys_execve_args), 0,
     54       1.1       erh 	    linux_sys_execve },			/* 11 = execve */
     55      1.33   thorpej 	{ 1, s(struct linux_sys_chdir_args), 0,
     56       1.1       erh 	    linux_sys_chdir },			/* 12 = chdir */
     57      1.33   thorpej 	{ 1, s(struct linux_sys_time_args), 0,
     58       1.1       erh 	    linux_sys_time },			/* 13 = time */
     59      1.33   thorpej 	{ 3, s(struct linux_sys_mknod_args), 0,
     60       1.1       erh 	    linux_sys_mknod },			/* 14 = mknod */
     61      1.33   thorpej 	{ 2, s(struct linux_sys_chmod_args), 0,
     62       1.1       erh 	    linux_sys_chmod },			/* 15 = chmod */
     63      1.33   thorpej 	{ 3, s(struct linux_sys_lchown16_args), 0,
     64      1.30      fvdl 	    linux_sys_lchown16 },		/* 16 = lchown16 */
     65      1.33   thorpej 	{ 1, s(struct linux_sys_break_args), 0,
     66       1.1       erh 	    linux_sys_break },			/* 17 = break */
     67      1.33   thorpej 	{ 0, 0, 0,
     68  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 18 = obsolete ostat */
     69      1.33   thorpej 	{ 3, s(struct compat_43_sys_lseek_args), 0,
     70       1.1       erh 	    compat_43_sys_lseek },		/* 19 = lseek */
     71      1.34   thorpej 	{ 0, 0, SYCALL_MPSAFE | 0,
     72       1.1       erh 	    sys_getpid },			/* 20 = getpid */
     73      1.33   thorpej 	{ 0, 0, 0,
     74  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 21 = unimplemented mount */
     75      1.33   thorpej 	{ 0, 0, 0,
     76  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 22 = unimplemented umount */
     77      1.33   thorpej 	{ 1, s(struct sys_setuid_args), 0,
     78      1.31      fvdl 	    sys_setuid },			/* 23 = linux_setuid16 */
     79      1.33   thorpej 	{ 0, 0, 0,
     80      1.31      fvdl 	    sys_getuid },			/* 24 = linux_getuid16 */
     81      1.33   thorpej 	{ 1, s(struct linux_sys_stime_args), 0,
     82      1.11      tron 	    linux_sys_stime },			/* 25 = stime */
     83      1.33   thorpej 	{ 4, s(struct linux_sys_ptrace_args), 0,
     84      1.15      tron 	    linux_sys_ptrace },			/* 26 = ptrace */
     85      1.33   thorpej 	{ 1, s(struct linux_sys_alarm_args), 0,
     86       1.1       erh 	    linux_sys_alarm },			/* 27 = alarm */
     87      1.33   thorpej 	{ 0, 0, 0,
     88  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 28 = obsolete ofstat */
     89      1.33   thorpej 	{ 0, 0, 0,
     90       1.1       erh 	    linux_sys_pause },			/* 29 = pause */
     91      1.33   thorpej 	{ 2, s(struct linux_sys_utime_args), 0,
     92       1.1       erh 	    linux_sys_utime },			/* 30 = utime */
     93      1.33   thorpej 	{ 0, 0, 0,
     94  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 31 = obsolete stty */
     95      1.33   thorpej 	{ 0, 0, 0,
     96  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 32 = obsolete gtty */
     97      1.33   thorpej 	{ 2, s(struct linux_sys_access_args), 0,
     98       1.1       erh 	    linux_sys_access },			/* 33 = access */
     99      1.33   thorpej 	{ 1, s(struct linux_sys_nice_args), 0,
    100       1.1       erh 	    linux_sys_nice },			/* 34 = nice */
    101      1.33   thorpej 	{ 0, 0, 0,
    102  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 35 = obsolete ftime */
    103      1.33   thorpej 	{ 0, 0, 0,
    104       1.1       erh 	    sys_sync },				/* 36 = sync */
    105      1.33   thorpej 	{ 2, s(struct linux_sys_kill_args), 0,
    106       1.1       erh 	    linux_sys_kill },			/* 37 = kill */
    107      1.33   thorpej 	{ 2, s(struct linux_sys_rename_args), 0,
    108       1.1       erh 	    linux_sys_rename },			/* 38 = rename */
    109      1.33   thorpej 	{ 2, s(struct linux_sys_mkdir_args), 0,
    110       1.1       erh 	    linux_sys_mkdir },			/* 39 = mkdir */
    111      1.33   thorpej 	{ 1, s(struct linux_sys_rmdir_args), 0,
    112       1.1       erh 	    linux_sys_rmdir },			/* 40 = rmdir */
    113      1.33   thorpej 	{ 1, s(struct sys_dup_args), 0,
    114       1.1       erh 	    sys_dup },				/* 41 = dup */
    115      1.33   thorpej 	{ 1, s(struct linux_sys_pipe_args), 0,
    116       1.1       erh 	    linux_sys_pipe },			/* 42 = pipe */
    117      1.33   thorpej 	{ 1, s(struct linux_sys_times_args), 0,
    118       1.1       erh 	    linux_sys_times },			/* 43 = times */
    119      1.33   thorpej 	{ 0, 0, 0,
    120  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 44 = obsolete prof */
    121      1.33   thorpej 	{ 1, s(struct linux_sys_brk_args), 0,
    122       1.1       erh 	    linux_sys_brk },			/* 45 = brk */
    123      1.33   thorpej 	{ 1, s(struct sys_setgid_args), 0,
    124      1.31      fvdl 	    sys_setgid },			/* 46 = linux_setgid16 */
    125      1.33   thorpej 	{ 0, 0, 0,
    126      1.31      fvdl 	    sys_getgid },			/* 47 = linux_getgid16 */
    127      1.33   thorpej 	{ 2, s(struct linux_sys_signal_args), 0,
    128       1.1       erh 	    linux_sys_signal },			/* 48 = signal */
    129      1.33   thorpej 	{ 0, 0, 0,
    130      1.31      fvdl 	    sys_geteuid },			/* 49 = linux_geteuid16 */
    131      1.33   thorpej 	{ 0, 0, 0,
    132      1.31      fvdl 	    sys_getegid },			/* 50 = linux_getegid16 */
    133      1.33   thorpej 	{ 1, s(struct sys_acct_args), 0,
    134       1.1       erh 	    sys_acct },				/* 51 = acct */
    135      1.33   thorpej 	{ 0, 0, 0,
    136  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 52 = obsolete phys */
    137      1.33   thorpej 	{ 0, 0, 0,
    138  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 53 = obsolete lock */
    139      1.33   thorpej 	{ 3, s(struct linux_sys_ioctl_args), 0,
    140       1.1       erh 	    linux_sys_ioctl },			/* 54 = ioctl */
    141      1.33   thorpej 	{ 3, s(struct linux_sys_fcntl_args), 0,
    142       1.1       erh 	    linux_sys_fcntl },			/* 55 = fcntl */
    143      1.33   thorpej 	{ 0, 0, 0,
    144  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 56 = obsolete mpx */
    145      1.33   thorpej 	{ 2, s(struct sys_setpgid_args), 0,
    146       1.1       erh 	    sys_setpgid },			/* 57 = setpgid */
    147      1.33   thorpej 	{ 0, 0, 0,
    148  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 58 = obsolete ulimit */
    149      1.33   thorpej 	{ 1, s(struct linux_sys_oldolduname_args), 0,
    150       1.1       erh 	    linux_sys_oldolduname },		/* 59 = oldolduname */
    151      1.33   thorpej 	{ 1, s(struct sys_umask_args), 0,
    152       1.1       erh 	    sys_umask },			/* 60 = umask */
    153      1.33   thorpej 	{ 1, s(struct sys_chroot_args), 0,
    154       1.1       erh 	    sys_chroot },			/* 61 = chroot */
    155      1.33   thorpej 	{ 0, 0, 0,
    156  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 62 = unimplemented ustat */
    157      1.33   thorpej 	{ 2, s(struct sys_dup2_args), 0,
    158       1.1       erh 	    sys_dup2 },				/* 63 = dup2 */
    159      1.33   thorpej 	{ 0, 0, 0,
    160       1.1       erh 	    sys_getppid },			/* 64 = getppid */
    161      1.33   thorpej 	{ 0, 0, 0,
    162       1.1       erh 	    sys_getpgrp },			/* 65 = getpgrp */
    163      1.33   thorpej 	{ 0, 0, 0,
    164       1.1       erh 	    sys_setsid },			/* 66 = setsid */
    165      1.33   thorpej 	{ 3, s(struct linux_sys_sigaction_args), 0,
    166       1.1       erh 	    linux_sys_sigaction },		/* 67 = sigaction */
    167      1.33   thorpej 	{ 0, 0, 0,
    168       1.1       erh 	    linux_sys_siggetmask },		/* 68 = siggetmask */
    169      1.33   thorpej 	{ 1, s(struct linux_sys_sigsetmask_args), 0,
    170       1.1       erh 	    linux_sys_sigsetmask },		/* 69 = sigsetmask */
    171      1.33   thorpej 	{ 2, s(struct linux_sys_setreuid16_args), 0,
    172      1.30      fvdl 	    linux_sys_setreuid16 },		/* 70 = setreuid16 */
    173      1.33   thorpej 	{ 2, s(struct linux_sys_setregid16_args), 0,
    174      1.30      fvdl 	    linux_sys_setregid16 },		/* 71 = setregid16 */
    175      1.33   thorpej 	{ 3, s(struct linux_sys_sigsuspend_args), 0,
    176       1.1       erh 	    linux_sys_sigsuspend },		/* 72 = sigsuspend */
    177      1.33   thorpej 	{ 1, s(struct linux_sys_sigpending_args), 0,
    178       1.1       erh 	    linux_sys_sigpending },		/* 73 = sigpending */
    179      1.33   thorpej 	{ 2, s(struct compat_43_sys_sethostname_args), 0,
    180       1.1       erh 	    compat_43_sys_sethostname },	/* 74 = sethostname */
    181      1.33   thorpej 	{ 2, s(struct compat_43_sys_setrlimit_args), 0,
    182       1.1       erh 	    compat_43_sys_setrlimit },		/* 75 = setrlimit */
    183      1.33   thorpej 	{ 2, s(struct compat_43_sys_getrlimit_args), 0,
    184       1.1       erh 	    compat_43_sys_getrlimit },		/* 76 = getrlimit */
    185      1.33   thorpej 	{ 2, s(struct sys_getrusage_args), 0,
    186       1.1       erh 	    sys_getrusage },			/* 77 = getrusage */
    187  1.34.2.3   nathanw 	{ 2, s(struct linux_sys_gettimeofday_args), 0,
    188  1.34.2.3   nathanw 	    linux_sys_gettimeofday },		/* 78 = gettimeofday */
    189  1.34.2.3   nathanw 	{ 2, s(struct linux_sys_settimeofday_args), 0,
    190  1.34.2.3   nathanw 	    linux_sys_settimeofday },		/* 79 = settimeofday */
    191      1.33   thorpej 	{ 2, s(struct linux_sys_getgroups16_args), 0,
    192      1.31      fvdl 	    linux_sys_getgroups16 },		/* 80 = getgroups16 */
    193      1.33   thorpej 	{ 2, s(struct linux_sys_setgroups16_args), 0,
    194      1.31      fvdl 	    linux_sys_setgroups16 },		/* 81 = setgroups16 */
    195      1.33   thorpej 	{ 1, s(struct linux_sys_oldselect_args), 0,
    196       1.1       erh 	    linux_sys_oldselect },		/* 82 = oldselect */
    197      1.33   thorpej 	{ 2, s(struct linux_sys_symlink_args), 0,
    198       1.1       erh 	    linux_sys_symlink },		/* 83 = symlink */
    199      1.33   thorpej 	{ 2, s(struct compat_43_sys_lstat_args), 0,
    200       1.1       erh 	    compat_43_sys_lstat },		/* 84 = oolstat */
    201      1.33   thorpej 	{ 3, s(struct linux_sys_readlink_args), 0,
    202       1.1       erh 	    linux_sys_readlink },		/* 85 = readlink */
    203      1.33   thorpej 	{ 1, s(struct linux_sys_uselib_args), 0,
    204       1.1       erh 	    linux_sys_uselib },			/* 86 = uselib */
    205      1.33   thorpej 	{ 1, s(struct linux_sys_swapon_args), 0,
    206      1.22  jdolecek 	    linux_sys_swapon },			/* 87 = swapon */
    207      1.33   thorpej 	{ 4, s(struct linux_sys_reboot_args), 0,
    208      1.17       erh 	    linux_sys_reboot },			/* 88 = reboot */
    209      1.33   thorpej 	{ 3, s(struct linux_sys_readdir_args), 0,
    210       1.1       erh 	    linux_sys_readdir },		/* 89 = readdir */
    211      1.33   thorpej 	{ 1, s(struct linux_sys_old_mmap_args), 0,
    212       1.1       erh 	    linux_sys_old_mmap },		/* 90 = old_mmap */
    213      1.33   thorpej 	{ 2, s(struct sys_munmap_args), 0,
    214       1.1       erh 	    sys_munmap },			/* 91 = munmap */
    215      1.33   thorpej 	{ 2, s(struct linux_sys_truncate_args), 0,
    216       1.1       erh 	    linux_sys_truncate },		/* 92 = truncate */
    217      1.33   thorpej 	{ 2, s(struct compat_43_sys_ftruncate_args), 0,
    218       1.1       erh 	    compat_43_sys_ftruncate },		/* 93 = ftruncate */
    219      1.33   thorpej 	{ 2, s(struct sys_fchmod_args), 0,
    220       1.1       erh 	    sys_fchmod },			/* 94 = fchmod */
    221      1.33   thorpej 	{ 3, s(struct linux_sys_fchown16_args), 0,
    222      1.30      fvdl 	    linux_sys_fchown16 },		/* 95 = fchown16 */
    223      1.33   thorpej 	{ 2, s(struct sys_getpriority_args), 0,
    224       1.1       erh 	    sys_getpriority },			/* 96 = getpriority */
    225      1.33   thorpej 	{ 3, s(struct sys_setpriority_args), 0,
    226       1.1       erh 	    sys_setpriority },			/* 97 = setpriority */
    227      1.33   thorpej 	{ 4, s(struct sys_profil_args), 0,
    228       1.1       erh 	    sys_profil },			/* 98 = profil */
    229      1.33   thorpej 	{ 2, s(struct linux_sys_statfs_args), 0,
    230       1.1       erh 	    linux_sys_statfs },			/* 99 = statfs */
    231      1.33   thorpej 	{ 2, s(struct linux_sys_fstatfs_args), 0,
    232       1.1       erh 	    linux_sys_fstatfs },		/* 100 = fstatfs */
    233      1.33   thorpej 	{ 3, s(struct linux_sys_ioperm_args), 0,
    234       1.1       erh 	    linux_sys_ioperm },			/* 101 = ioperm */
    235      1.33   thorpej 	{ 2, s(struct linux_sys_socketcall_args), 0,
    236       1.1       erh 	    linux_sys_socketcall },		/* 102 = socketcall */
    237      1.33   thorpej 	{ 0, 0, 0,
    238  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 103 = unimplemented syslog */
    239      1.33   thorpej 	{ 3, s(struct sys_setitimer_args), 0,
    240       1.1       erh 	    sys_setitimer },			/* 104 = setitimer */
    241      1.33   thorpej 	{ 2, s(struct sys_getitimer_args), 0,
    242       1.1       erh 	    sys_getitimer },			/* 105 = getitimer */
    243      1.33   thorpej 	{ 2, s(struct linux_sys_stat_args), 0,
    244       1.1       erh 	    linux_sys_stat },			/* 106 = stat */
    245      1.33   thorpej 	{ 2, s(struct linux_sys_lstat_args), 0,
    246       1.1       erh 	    linux_sys_lstat },			/* 107 = lstat */
    247      1.33   thorpej 	{ 2, s(struct linux_sys_fstat_args), 0,
    248       1.1       erh 	    linux_sys_fstat },			/* 108 = fstat */
    249      1.33   thorpej 	{ 1, s(struct linux_sys_olduname_args), 0,
    250       1.1       erh 	    linux_sys_olduname },		/* 109 = olduname */
    251      1.33   thorpej 	{ 1, s(struct linux_sys_iopl_args), 0,
    252       1.1       erh 	    linux_sys_iopl },			/* 110 = iopl */
    253      1.33   thorpej 	{ 0, 0, 0,
    254  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 111 = unimplemented vhangup */
    255      1.33   thorpej 	{ 0, 0, 0,
    256  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 112 = unimplemented idle */
    257      1.33   thorpej 	{ 0, 0, 0,
    258  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 113 = unimplemented vm86old */
    259      1.33   thorpej 	{ 4, s(struct linux_sys_wait4_args), 0,
    260       1.1       erh 	    linux_sys_wait4 },			/* 114 = wait4 */
    261      1.33   thorpej 	{ 1, s(struct linux_sys_swapoff_args), 0,
    262      1.23  jdolecek 	    linux_sys_swapoff },		/* 115 = swapoff */
    263      1.33   thorpej 	{ 1, s(struct linux_sys_sysinfo_args), 0,
    264      1.29  augustss 	    linux_sys_sysinfo },		/* 116 = sysinfo */
    265      1.33   thorpej 	{ 5, s(struct linux_sys_ipc_args), 0,
    266       1.1       erh 	    linux_sys_ipc },			/* 117 = ipc */
    267      1.33   thorpej 	{ 1, s(struct sys_fsync_args), 0,
    268       1.1       erh 	    sys_fsync },			/* 118 = fsync */
    269      1.33   thorpej 	{ 1, s(struct linux_sys_sigreturn_args), 0,
    270       1.1       erh 	    linux_sys_sigreturn },		/* 119 = sigreturn */
    271      1.33   thorpej 	{ 2, s(struct linux_sys_clone_args), 0,
    272       1.9   thorpej 	    linux_sys_clone },			/* 120 = clone */
    273      1.33   thorpej 	{ 2, s(struct linux_sys_setdomainname_args), 0,
    274      1.22  jdolecek 	    linux_sys_setdomainname },		/* 121 = setdomainname */
    275      1.33   thorpej 	{ 1, s(struct linux_sys_uname_args), 0,
    276       1.1       erh 	    linux_sys_uname },			/* 122 = uname */
    277      1.33   thorpej 	{ 3, s(struct linux_sys_modify_ldt_args), 0,
    278       1.1       erh 	    linux_sys_modify_ldt },		/* 123 = modify_ldt */
    279      1.33   thorpej 	{ 0, 0, 0,
    280  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 124 = unimplemented adjtimex */
    281      1.33   thorpej 	{ 3, s(struct sys_mprotect_args), 0,
    282       1.1       erh 	    sys_mprotect },			/* 125 = mprotect */
    283      1.33   thorpej 	{ 3, s(struct linux_sys_sigprocmask_args), 0,
    284       1.1       erh 	    linux_sys_sigprocmask },		/* 126 = sigprocmask */
    285      1.33   thorpej 	{ 0, 0, 0,
    286  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 127 = unimplemented create_module */
    287      1.33   thorpej 	{ 0, 0, 0,
    288  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 128 = unimplemented init_module */
    289      1.33   thorpej 	{ 0, 0, 0,
    290  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 129 = unimplemented delete_module */
    291      1.33   thorpej 	{ 0, 0, 0,
    292  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 130 = unimplemented get_kernel_syms */
    293      1.33   thorpej 	{ 0, 0, 0,
    294  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 131 = unimplemented quotactl */
    295      1.33   thorpej 	{ 1, s(struct linux_sys_getpgid_args), 0,
    296       1.1       erh 	    linux_sys_getpgid },		/* 132 = getpgid */
    297      1.33   thorpej 	{ 1, s(struct sys_fchdir_args), 0,
    298       1.1       erh 	    sys_fchdir },			/* 133 = fchdir */
    299      1.33   thorpej 	{ 0, 0, 0,
    300  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 134 = unimplemented bdflush */
    301      1.33   thorpej 	{ 0, 0, 0,
    302  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 135 = unimplemented sysfs */
    303      1.33   thorpej 	{ 1, s(struct linux_sys_personality_args), 0,
    304       1.1       erh 	    linux_sys_personality },		/* 136 = personality */
    305      1.33   thorpej 	{ 0, 0, 0,
    306  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 137 = unimplemented afs_syscall */
    307      1.33   thorpej 	{ 1, s(struct linux_sys_setfsuid_args), 0,
    308      1.31      fvdl 	    linux_sys_setfsuid },		/* 138 = linux_setfsuid16 */
    309      1.33   thorpej 	{ 0, 0, 0,
    310      1.31      fvdl 	    linux_sys_getfsuid },		/* 139 = linux_getfsuid16 */
    311      1.33   thorpej 	{ 5, s(struct linux_sys_llseek_args), 0,
    312       1.1       erh 	    linux_sys_llseek },			/* 140 = llseek */
    313      1.33   thorpej 	{ 3, s(struct linux_sys_getdents_args), 0,
    314       1.1       erh 	    linux_sys_getdents },		/* 141 = getdents */
    315      1.33   thorpej 	{ 5, s(struct linux_sys_select_args), 0,
    316       1.1       erh 	    linux_sys_select },			/* 142 = select */
    317      1.33   thorpej 	{ 2, s(struct sys_flock_args), 0,
    318       1.1       erh 	    sys_flock },			/* 143 = flock */
    319      1.33   thorpej 	{ 3, s(struct linux_sys_msync_args), 0,
    320       1.1       erh 	    linux_sys_msync },			/* 144 = msync */
    321      1.33   thorpej 	{ 3, s(struct sys_readv_args), 0,
    322       1.1       erh 	    sys_readv },			/* 145 = readv */
    323      1.33   thorpej 	{ 3, s(struct sys_writev_args), 0,
    324       1.1       erh 	    sys_writev },			/* 146 = writev */
    325      1.33   thorpej 	{ 1, s(struct sys_getsid_args), 0,
    326       1.1       erh 	    sys_getsid },			/* 147 = getsid */
    327      1.33   thorpej 	{ 1, s(struct linux_sys_fdatasync_args), 0,
    328       1.1       erh 	    linux_sys_fdatasync },		/* 148 = fdatasync */
    329      1.33   thorpej 	{ 1, s(struct linux_sys___sysctl_args), 0,
    330       1.1       erh 	    linux_sys___sysctl },		/* 149 = __sysctl */
    331      1.33   thorpej 	{ 2, s(struct sys_mlock_args), 0,
    332       1.1       erh 	    sys_mlock },			/* 150 = mlock */
    333      1.33   thorpej 	{ 2, s(struct sys_munlock_args), 0,
    334       1.1       erh 	    sys_munlock },			/* 151 = munlock */
    335      1.33   thorpej 	{ 1, s(struct sys_mlockall_args), 0,
    336      1.21  jdolecek 	    sys_mlockall },			/* 152 = mlockall */
    337      1.33   thorpej 	{ 0, 0, 0,
    338      1.21  jdolecek 	    sys_munlockall },			/* 153 = munlockall */
    339      1.33   thorpej 	{ 2, s(struct linux_sys_sched_setparam_args), 0,
    340      1.12      tron 	    linux_sys_sched_setparam },		/* 154 = sched_setparam */
    341      1.33   thorpej 	{ 2, s(struct linux_sys_sched_getparam_args), 0,
    342      1.12      tron 	    linux_sys_sched_getparam },		/* 155 = sched_getparam */
    343      1.33   thorpej 	{ 3, s(struct linux_sys_sched_setscheduler_args), 0,
    344      1.12      tron 	    linux_sys_sched_setscheduler },	/* 156 = sched_setscheduler */
    345      1.33   thorpej 	{ 1, s(struct linux_sys_sched_getscheduler_args), 0,
    346      1.12      tron 	    linux_sys_sched_getscheduler },	/* 157 = sched_getscheduler */
    347      1.33   thorpej 	{ 0, 0, 0,
    348      1.12      tron 	    linux_sys_sched_yield },		/* 158 = sched_yield */
    349      1.33   thorpej 	{ 1, s(struct linux_sys_sched_get_priority_max_args), 0,
    350      1.12      tron 	    linux_sys_sched_get_priority_max },	/* 159 = sched_get_priority_max */
    351      1.33   thorpej 	{ 1, s(struct linux_sys_sched_get_priority_min_args), 0,
    352      1.12      tron 	    linux_sys_sched_get_priority_min },	/* 160 = sched_get_priority_min */
    353      1.33   thorpej 	{ 0, 0, 0,
    354  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 161 = unimplemented sys_sched_rr_get_interval */
    355      1.33   thorpej 	{ 2, s(struct sys_nanosleep_args), 0,
    356       1.1       erh 	    sys_nanosleep },			/* 162 = nanosleep */
    357      1.33   thorpej 	{ 4, s(struct linux_sys_mremap_args), 0,
    358       1.1       erh 	    linux_sys_mremap },			/* 163 = mremap */
    359      1.33   thorpej 	{ 3, s(struct linux_sys_setresuid16_args), 0,
    360      1.31      fvdl 	    linux_sys_setresuid16 },		/* 164 = setresuid16 */
    361      1.33   thorpej 	{ 3, s(struct linux_sys_getresuid_args), 0,
    362      1.31      fvdl 	    linux_sys_getresuid },		/* 165 = linux_getresuid16 */
    363      1.33   thorpej 	{ 0, 0, 0,
    364  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 166 = unimplemented vm86 */
    365      1.33   thorpej 	{ 0, 0, 0,
    366  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 167 = unimplemented query_module */
    367      1.33   thorpej 	{ 3, s(struct sys_poll_args), 0,
    368       1.8       abs 	    sys_poll },				/* 168 = poll */
    369      1.33   thorpej 	{ 0, 0, 0,
    370  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 169 = unimplemented nfsservctl */
    371      1.33   thorpej 	{ 3, s(struct linux_sys_setresgid16_args), 0,
    372      1.31      fvdl 	    linux_sys_setresgid16 },		/* 170 = setresgid16 */
    373      1.33   thorpej 	{ 3, s(struct linux_sys_getresgid_args), 0,
    374      1.31      fvdl 	    linux_sys_getresgid },		/* 171 = linux_getresgid16 */
    375      1.33   thorpej 	{ 0, 0, 0,
    376  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 172 = unimplemented prctl */
    377      1.33   thorpej 	{ 1, s(struct linux_sys_rt_sigreturn_args), 0,
    378       1.1       erh 	    linux_sys_rt_sigreturn },		/* 173 = rt_sigreturn */
    379      1.33   thorpej 	{ 4, s(struct linux_sys_rt_sigaction_args), 0,
    380       1.1       erh 	    linux_sys_rt_sigaction },		/* 174 = rt_sigaction */
    381      1.33   thorpej 	{ 4, s(struct linux_sys_rt_sigprocmask_args), 0,
    382       1.1       erh 	    linux_sys_rt_sigprocmask },		/* 175 = rt_sigprocmask */
    383      1.33   thorpej 	{ 2, s(struct linux_sys_rt_sigpending_args), 0,
    384       1.1       erh 	    linux_sys_rt_sigpending },		/* 176 = rt_sigpending */
    385      1.33   thorpej 	{ 0, 0, 0,
    386  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 177 = unimplemented rt_sigtimedwait */
    387      1.33   thorpej 	{ 3, s(struct linux_sys_rt_queueinfo_args), 0,
    388       1.1       erh 	    linux_sys_rt_queueinfo },		/* 178 = rt_queueinfo */
    389      1.33   thorpej 	{ 2, s(struct linux_sys_rt_sigsuspend_args), 0,
    390       1.1       erh 	    linux_sys_rt_sigsuspend },		/* 179 = rt_sigsuspend */
    391      1.33   thorpej 	{ 4, s(struct linux_sys_pread_args), 0,
    392      1.14      tron 	    linux_sys_pread },			/* 180 = pread */
    393      1.33   thorpej 	{ 4, s(struct linux_sys_pwrite_args), 0,
    394      1.14      tron 	    linux_sys_pwrite },			/* 181 = pwrite */
    395      1.33   thorpej 	{ 3, s(struct linux_sys_chown16_args), 0,
    396      1.30      fvdl 	    linux_sys_chown16 },		/* 182 = chown16 */
    397      1.33   thorpej 	{ 2, s(struct sys___getcwd_args), 0,
    398       1.7      tron 	    sys___getcwd },			/* 183 = __getcwd */
    399      1.33   thorpej 	{ 0, 0, 0,
    400  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 184 = unimplemented capget */
    401      1.33   thorpej 	{ 0, 0, 0,
    402  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 185 = unimplemented capset */
    403      1.33   thorpej 	{ 2, s(struct linux_sys_sigaltstack_args), 0,
    404      1.20  christos 	    linux_sys_sigaltstack },		/* 186 = sigaltstack */
    405      1.33   thorpej 	{ 0, 0, 0,
    406  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 187 = unimplemented sendfile */
    407      1.33   thorpej 	{ 0, 0, 0,
    408  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 188 = unimplemented getpmsg */
    409      1.33   thorpej 	{ 0, 0, 0,
    410  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 189 = unimplemented putpmsg */
    411      1.33   thorpej 	{ 0, 0, 0,
    412      1.10   thorpej 	    sys___vfork14 },			/* 190 = __vfork14 */
    413      1.33   thorpej 	{ 0, 0, 0,
    414  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 191 = unimplemented getrlimit */
    415      1.33   thorpej 	{ 0, 0, 0,
    416  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 192 = unimplemented mmap2 */
    417      1.33   thorpej 	{ 2, s(struct linux_sys_truncate64_args), 0,
    418      1.28  jdolecek 	    linux_sys_truncate64 },		/* 193 = truncate64 */
    419      1.33   thorpej 	{ 2, s(struct sys_ftruncate_args), 0,
    420      1.31      fvdl 	    sys_ftruncate },			/* 194 = linux_ftruncate64 */
    421      1.33   thorpej 	{ 2, s(struct linux_sys_stat64_args), 0,
    422      1.27  jdolecek 	    linux_sys_stat64 },			/* 195 = stat64 */
    423      1.33   thorpej 	{ 2, s(struct linux_sys_lstat64_args), 0,
    424      1.27  jdolecek 	    linux_sys_lstat64 },		/* 196 = lstat64 */
    425      1.33   thorpej 	{ 2, s(struct linux_sys_fstat64_args), 0,
    426      1.27  jdolecek 	    linux_sys_fstat64 },		/* 197 = fstat64 */
    427      1.33   thorpej 	{ 3, s(struct linux_sys_lchown_args), 0,
    428      1.31      fvdl 	    linux_sys_lchown },			/* 198 = lchown */
    429      1.33   thorpej 	{ 0, 0, 0,
    430      1.30      fvdl 	    sys_getuid },			/* 199 = getuid */
    431      1.33   thorpej 	{ 0, 0, 0,
    432      1.30      fvdl 	    sys_getgid },			/* 200 = getgid */
    433      1.33   thorpej 	{ 0, 0, 0,
    434      1.30      fvdl 	    sys_geteuid },			/* 201 = geteuid */
    435      1.33   thorpej 	{ 0, 0, 0,
    436      1.30      fvdl 	    sys_getegid },			/* 202 = getegid */
    437      1.33   thorpej 	{ 2, s(struct sys_setreuid_args), 0,
    438      1.30      fvdl 	    sys_setreuid },			/* 203 = setreuid */
    439      1.33   thorpej 	{ 2, s(struct sys_setregid_args), 0,
    440      1.30      fvdl 	    sys_setregid },			/* 204 = setregid */
    441      1.33   thorpej 	{ 2, s(struct sys_getgroups_args), 0,
    442      1.31      fvdl 	    sys_getgroups },			/* 205 = getgroups */
    443      1.33   thorpej 	{ 2, s(struct sys_setgroups_args), 0,
    444      1.31      fvdl 	    sys_setgroups },			/* 206 = setgroups */
    445      1.33   thorpej 	{ 3, s(struct sys___posix_fchown_args), 0,
    446      1.30      fvdl 	    sys___posix_fchown },		/* 207 = __posix_fchown */
    447      1.33   thorpej 	{ 3, s(struct linux_sys_setresuid_args), 0,
    448      1.31      fvdl 	    linux_sys_setresuid },		/* 208 = setresuid */
    449      1.33   thorpej 	{ 3, s(struct linux_sys_getresuid_args), 0,
    450      1.31      fvdl 	    linux_sys_getresuid },		/* 209 = getresuid */
    451      1.33   thorpej 	{ 3, s(struct linux_sys_setresgid_args), 0,
    452      1.31      fvdl 	    linux_sys_setresgid },		/* 210 = setresgid */
    453      1.33   thorpej 	{ 3, s(struct linux_sys_getresgid_args), 0,
    454      1.31      fvdl 	    linux_sys_getresgid },		/* 211 = getresgid */
    455      1.33   thorpej 	{ 3, s(struct linux_sys_chown_args), 0,
    456      1.31      fvdl 	    linux_sys_chown },			/* 212 = chown */
    457      1.33   thorpej 	{ 1, s(struct sys_setuid_args), 0,
    458      1.30      fvdl 	    sys_setuid },			/* 213 = setuid */
    459      1.33   thorpej 	{ 1, s(struct sys_setgid_args), 0,
    460      1.30      fvdl 	    sys_setgid },			/* 214 = setgid */
    461      1.33   thorpej 	{ 1, s(struct linux_sys_setfsuid_args), 0,
    462      1.31      fvdl 	    linux_sys_setfsuid },		/* 215 = setfsuid */
    463      1.33   thorpej 	{ 0, 0, 0,
    464      1.31      fvdl 	    linux_sys_getfsuid },		/* 216 = getfsuid */
    465      1.33   thorpej 	{ 0, 0, 0,
    466  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 217 = unimplemented pivot_root */
    467      1.33   thorpej 	{ 0, 0, 0,
    468  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 218 = unimplemented mincore */
    469      1.33   thorpej 	{ 0, 0, 0,
    470  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 219 = unimplemented madvise */
    471      1.33   thorpej 	{ 0, 0, 0,
    472  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 220 = unimplemented getdents64 */
    473      1.33   thorpej 	{ 0, 0, 0,
    474  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 221 = unimplemented fcntl64 */
    475      1.33   thorpej 	{ 0, 0, 0,
    476  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 222 = filler */
    477      1.33   thorpej 	{ 0, 0, 0,
    478  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 223 = filler */
    479      1.33   thorpej 	{ 0, 0, 0,
    480  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 224 = filler */
    481      1.33   thorpej 	{ 0, 0, 0,
    482  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 225 = filler */
    483      1.33   thorpej 	{ 0, 0, 0,
    484  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 226 = filler */
    485      1.33   thorpej 	{ 0, 0, 0,
    486  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 227 = filler */
    487      1.33   thorpej 	{ 0, 0, 0,
    488  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 228 = filler */
    489      1.33   thorpej 	{ 0, 0, 0,
    490  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 229 = filler */
    491      1.33   thorpej 	{ 0, 0, 0,
    492  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 230 = filler */
    493      1.33   thorpej 	{ 0, 0, 0,
    494  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 231 = filler */
    495      1.33   thorpej 	{ 0, 0, 0,
    496  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 232 = filler */
    497      1.33   thorpej 	{ 0, 0, 0,
    498  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 233 = filler */
    499      1.33   thorpej 	{ 0, 0, 0,
    500  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 234 = filler */
    501      1.33   thorpej 	{ 0, 0, 0,
    502  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 235 = filler */
    503      1.33   thorpej 	{ 0, 0, 0,
    504  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 236 = filler */
    505      1.33   thorpej 	{ 0, 0, 0,
    506  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 237 = filler */
    507      1.33   thorpej 	{ 0, 0, 0,
    508  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 238 = filler */
    509      1.33   thorpej 	{ 0, 0, 0,
    510  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 239 = filler */
    511      1.33   thorpej 	{ 0, 0, 0,
    512  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 240 = filler */
    513      1.33   thorpej 	{ 0, 0, 0,
    514  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 241 = filler */
    515      1.33   thorpej 	{ 0, 0, 0,
    516  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 242 = filler */
    517      1.33   thorpej 	{ 0, 0, 0,
    518  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 243 = filler */
    519      1.33   thorpej 	{ 0, 0, 0,
    520  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 244 = filler */
    521      1.33   thorpej 	{ 0, 0, 0,
    522  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 245 = filler */
    523      1.33   thorpej 	{ 0, 0, 0,
    524  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 246 = filler */
    525      1.33   thorpej 	{ 0, 0, 0,
    526  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 247 = filler */
    527      1.33   thorpej 	{ 0, 0, 0,
    528  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 248 = filler */
    529      1.33   thorpej 	{ 0, 0, 0,
    530  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 249 = filler */
    531      1.33   thorpej 	{ 0, 0, 0,
    532  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 250 = filler */
    533      1.33   thorpej 	{ 0, 0, 0,
    534  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 251 = filler */
    535      1.33   thorpej 	{ 0, 0, 0,
    536  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 252 = filler */
    537      1.33   thorpej 	{ 0, 0, 0,
    538  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 253 = filler */
    539      1.33   thorpej 	{ 0, 0, 0,
    540  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 254 = filler */
    541      1.33   thorpej 	{ 0, 0, 0,
    542  1.34.2.2   nathanw 	    linux_sys_nosys },			/* 255 = filler */
    543       1.1       erh };
    544       1.1       erh 
    545