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