Home | History | Annotate | Line # | Download | only in i386
linux_sysent.c revision 1.18
      1   1.1       erh /*	$NetBSD: linux_sysent.c,v 1.18 2000/08/18 19:19:51 cgd 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.18       cgd  * created from	NetBSD: syscalls.master,v 1.41 2000/03/18 22:20:57 erh Exp
      8   1.1       erh  */
      9   1.1       erh 
     10   1.4  christos #include "opt_compat_43.h"
     11   1.1       erh #include <sys/param.h>
     12   1.8       abs #include <sys/poll.h>
     13   1.1       erh #include <sys/systm.h>
     14   1.1       erh #include <sys/signal.h>
     15   1.1       erh #include <sys/mount.h>
     16   1.1       erh #include <sys/syscallargs.h>
     17   1.2  christos #include <compat/linux/common/linux_types.h>
     18   1.2  christos #include <compat/linux/common/linux_signal.h>
     19   1.2  christos #include <compat/linux/common/linux_siginfo.h>
     20   1.2  christos #include <compat/linux/common/linux_machdep.h>
     21   1.2  christos #include <compat/linux/linux_syscallargs.h>
     22   1.1       erh 
     23   1.1       erh #define	s(type)	sizeof(type)
     24   1.1       erh 
     25   1.1       erh struct sysent linux_sysent[] = {
     26   1.1       erh 	{ 0, 0,
     27   1.1       erh 	    sys_nosys },			/* 0 = syscall */
     28   1.1       erh 	{ 1, s(struct sys_exit_args),
     29   1.1       erh 	    sys_exit },				/* 1 = exit */
     30   1.1       erh 	{ 0, 0,
     31   1.1       erh 	    sys_fork },				/* 2 = fork */
     32   1.1       erh 	{ 3, s(struct sys_read_args),
     33   1.1       erh 	    sys_read },				/* 3 = read */
     34   1.1       erh 	{ 3, s(struct sys_write_args),
     35   1.1       erh 	    sys_write },			/* 4 = write */
     36   1.1       erh 	{ 3, s(struct linux_sys_open_args),
     37   1.1       erh 	    linux_sys_open },			/* 5 = open */
     38   1.1       erh 	{ 1, s(struct sys_close_args),
     39   1.1       erh 	    sys_close },			/* 6 = close */
     40   1.1       erh 	{ 3, s(struct linux_sys_waitpid_args),
     41   1.1       erh 	    linux_sys_waitpid },		/* 7 = waitpid */
     42   1.1       erh 	{ 2, s(struct linux_sys_creat_args),
     43   1.1       erh 	    linux_sys_creat },			/* 8 = creat */
     44   1.1       erh 	{ 2, s(struct sys_link_args),
     45   1.1       erh 	    sys_link },				/* 9 = link */
     46   1.1       erh 	{ 1, s(struct linux_sys_unlink_args),
     47   1.1       erh 	    linux_sys_unlink },			/* 10 = unlink */
     48   1.1       erh 	{ 3, s(struct linux_sys_execve_args),
     49   1.1       erh 	    linux_sys_execve },			/* 11 = execve */
     50   1.1       erh 	{ 1, s(struct linux_sys_chdir_args),
     51   1.1       erh 	    linux_sys_chdir },			/* 12 = chdir */
     52   1.1       erh 	{ 1, s(struct linux_sys_time_args),
     53   1.1       erh 	    linux_sys_time },			/* 13 = time */
     54   1.1       erh 	{ 3, s(struct linux_sys_mknod_args),
     55   1.1       erh 	    linux_sys_mknod },			/* 14 = mknod */
     56   1.1       erh 	{ 2, s(struct linux_sys_chmod_args),
     57   1.1       erh 	    linux_sys_chmod },			/* 15 = chmod */
     58   1.1       erh 	{ 3, s(struct linux_sys_lchown_args),
     59   1.1       erh 	    linux_sys_lchown },			/* 16 = lchown */
     60   1.1       erh 	{ 1, s(struct linux_sys_break_args),
     61   1.1       erh 	    linux_sys_break },			/* 17 = break */
     62   1.1       erh 	{ 0, 0,
     63   1.1       erh 	    sys_nosys },			/* 18 = obsolete ostat */
     64   1.1       erh 	{ 3, s(struct compat_43_sys_lseek_args),
     65   1.1       erh 	    compat_43_sys_lseek },		/* 19 = lseek */
     66   1.1       erh 	{ 0, 0,
     67   1.1       erh 	    sys_getpid },			/* 20 = getpid */
     68   1.1       erh 	{ 0, 0,
     69   1.1       erh 	    sys_nosys },			/* 21 = unimplemented mount */
     70   1.1       erh 	{ 0, 0,
     71   1.1       erh 	    sys_nosys },			/* 22 = unimplemented umount */
     72   1.1       erh 	{ 1, s(struct sys_setuid_args),
     73   1.1       erh 	    sys_setuid },			/* 23 = setuid */
     74   1.1       erh 	{ 0, 0,
     75   1.1       erh 	    sys_getuid },			/* 24 = getuid */
     76  1.11      tron 	{ 1, s(struct linux_sys_stime_args),
     77  1.11      tron 	    linux_sys_stime },			/* 25 = stime */
     78  1.15      tron 	{ 4, s(struct linux_sys_ptrace_args),
     79  1.15      tron 	    linux_sys_ptrace },			/* 26 = ptrace */
     80   1.1       erh 	{ 1, s(struct linux_sys_alarm_args),
     81   1.1       erh 	    linux_sys_alarm },			/* 27 = alarm */
     82   1.1       erh 	{ 0, 0,
     83   1.1       erh 	    sys_nosys },			/* 28 = obsolete ofstat */
     84   1.1       erh 	{ 0, 0,
     85   1.1       erh 	    linux_sys_pause },			/* 29 = pause */
     86   1.1       erh 	{ 2, s(struct linux_sys_utime_args),
     87   1.1       erh 	    linux_sys_utime },			/* 30 = utime */
     88   1.1       erh 	{ 0, 0,
     89   1.1       erh 	    sys_nosys },			/* 31 = obsolete stty */
     90   1.1       erh 	{ 0, 0,
     91   1.1       erh 	    sys_nosys },			/* 32 = obsolete gtty */
     92   1.1       erh 	{ 2, s(struct linux_sys_access_args),
     93   1.1       erh 	    linux_sys_access },			/* 33 = access */
     94   1.1       erh 	{ 1, s(struct linux_sys_nice_args),
     95   1.1       erh 	    linux_sys_nice },			/* 34 = nice */
     96   1.1       erh 	{ 0, 0,
     97   1.1       erh 	    sys_nosys },			/* 35 = obsolete ftime */
     98   1.1       erh 	{ 0, 0,
     99   1.1       erh 	    sys_sync },				/* 36 = sync */
    100   1.1       erh 	{ 2, s(struct linux_sys_kill_args),
    101   1.1       erh 	    linux_sys_kill },			/* 37 = kill */
    102   1.1       erh 	{ 2, s(struct linux_sys_rename_args),
    103   1.1       erh 	    linux_sys_rename },			/* 38 = rename */
    104   1.1       erh 	{ 2, s(struct linux_sys_mkdir_args),
    105   1.1       erh 	    linux_sys_mkdir },			/* 39 = mkdir */
    106   1.1       erh 	{ 1, s(struct linux_sys_rmdir_args),
    107   1.1       erh 	    linux_sys_rmdir },			/* 40 = rmdir */
    108   1.1       erh 	{ 1, s(struct sys_dup_args),
    109   1.1       erh 	    sys_dup },				/* 41 = dup */
    110   1.1       erh 	{ 1, s(struct linux_sys_pipe_args),
    111   1.1       erh 	    linux_sys_pipe },			/* 42 = pipe */
    112   1.1       erh 	{ 1, s(struct linux_sys_times_args),
    113   1.1       erh 	    linux_sys_times },			/* 43 = times */
    114   1.1       erh 	{ 0, 0,
    115   1.1       erh 	    sys_nosys },			/* 44 = obsolete prof */
    116   1.1       erh 	{ 1, s(struct linux_sys_brk_args),
    117   1.1       erh 	    linux_sys_brk },			/* 45 = brk */
    118   1.1       erh 	{ 1, s(struct sys_setgid_args),
    119   1.1       erh 	    sys_setgid },			/* 46 = setgid */
    120   1.1       erh 	{ 0, 0,
    121   1.1       erh 	    sys_getgid },			/* 47 = getgid */
    122   1.1       erh 	{ 2, s(struct linux_sys_signal_args),
    123   1.1       erh 	    linux_sys_signal },			/* 48 = signal */
    124   1.1       erh 	{ 0, 0,
    125   1.1       erh 	    sys_geteuid },			/* 49 = geteuid */
    126   1.1       erh 	{ 0, 0,
    127   1.1       erh 	    sys_getegid },			/* 50 = getegid */
    128   1.1       erh 	{ 1, s(struct sys_acct_args),
    129   1.1       erh 	    sys_acct },				/* 51 = acct */
    130   1.1       erh 	{ 0, 0,
    131   1.1       erh 	    sys_nosys },			/* 52 = obsolete phys */
    132   1.1       erh 	{ 0, 0,
    133   1.1       erh 	    sys_nosys },			/* 53 = obsolete lock */
    134   1.1       erh 	{ 3, s(struct linux_sys_ioctl_args),
    135   1.1       erh 	    linux_sys_ioctl },			/* 54 = ioctl */
    136   1.1       erh 	{ 3, s(struct linux_sys_fcntl_args),
    137   1.1       erh 	    linux_sys_fcntl },			/* 55 = fcntl */
    138   1.1       erh 	{ 0, 0,
    139   1.1       erh 	    sys_nosys },			/* 56 = obsolete mpx */
    140   1.1       erh 	{ 2, s(struct sys_setpgid_args),
    141   1.1       erh 	    sys_setpgid },			/* 57 = setpgid */
    142   1.1       erh 	{ 0, 0,
    143   1.1       erh 	    sys_nosys },			/* 58 = obsolete ulimit */
    144   1.1       erh 	{ 1, s(struct linux_sys_oldolduname_args),
    145   1.1       erh 	    linux_sys_oldolduname },		/* 59 = oldolduname */
    146   1.1       erh 	{ 1, s(struct sys_umask_args),
    147   1.1       erh 	    sys_umask },			/* 60 = umask */
    148   1.1       erh 	{ 1, s(struct sys_chroot_args),
    149   1.1       erh 	    sys_chroot },			/* 61 = chroot */
    150   1.1       erh 	{ 0, 0,
    151   1.1       erh 	    sys_nosys },			/* 62 = unimplemented ustat */
    152   1.1       erh 	{ 2, s(struct sys_dup2_args),
    153   1.1       erh 	    sys_dup2 },				/* 63 = dup2 */
    154   1.1       erh 	{ 0, 0,
    155   1.1       erh 	    sys_getppid },			/* 64 = getppid */
    156   1.1       erh 	{ 0, 0,
    157   1.1       erh 	    sys_getpgrp },			/* 65 = getpgrp */
    158   1.1       erh 	{ 0, 0,
    159   1.1       erh 	    sys_setsid },			/* 66 = setsid */
    160   1.1       erh 	{ 3, s(struct linux_sys_sigaction_args),
    161   1.1       erh 	    linux_sys_sigaction },		/* 67 = sigaction */
    162   1.1       erh 	{ 0, 0,
    163   1.1       erh 	    linux_sys_siggetmask },		/* 68 = siggetmask */
    164   1.1       erh 	{ 1, s(struct linux_sys_sigsetmask_args),
    165   1.1       erh 	    linux_sys_sigsetmask },		/* 69 = sigsetmask */
    166   1.1       erh 	{ 2, s(struct linux_sys_setreuid_args),
    167   1.1       erh 	    linux_sys_setreuid },		/* 70 = setreuid */
    168   1.1       erh 	{ 2, s(struct linux_sys_setregid_args),
    169   1.1       erh 	    linux_sys_setregid },		/* 71 = setregid */
    170   1.1       erh 	{ 3, s(struct linux_sys_sigsuspend_args),
    171   1.1       erh 	    linux_sys_sigsuspend },		/* 72 = sigsuspend */
    172   1.1       erh 	{ 1, s(struct linux_sys_sigpending_args),
    173   1.1       erh 	    linux_sys_sigpending },		/* 73 = sigpending */
    174   1.1       erh 	{ 2, s(struct compat_43_sys_sethostname_args),
    175   1.1       erh 	    compat_43_sys_sethostname },	/* 74 = sethostname */
    176   1.1       erh 	{ 2, s(struct compat_43_sys_setrlimit_args),
    177   1.1       erh 	    compat_43_sys_setrlimit },		/* 75 = setrlimit */
    178   1.1       erh 	{ 2, s(struct compat_43_sys_getrlimit_args),
    179   1.1       erh 	    compat_43_sys_getrlimit },		/* 76 = getrlimit */
    180   1.1       erh 	{ 2, s(struct sys_getrusage_args),
    181   1.1       erh 	    sys_getrusage },			/* 77 = getrusage */
    182   1.1       erh 	{ 2, s(struct sys_gettimeofday_args),
    183   1.1       erh 	    sys_gettimeofday },			/* 78 = gettimeofday */
    184   1.1       erh 	{ 2, s(struct sys_settimeofday_args),
    185   1.1       erh 	    sys_settimeofday },			/* 79 = settimeofday */
    186   1.1       erh 	{ 2, s(struct sys_getgroups_args),
    187   1.1       erh 	    sys_getgroups },			/* 80 = getgroups */
    188   1.1       erh 	{ 2, s(struct sys_setgroups_args),
    189   1.1       erh 	    sys_setgroups },			/* 81 = setgroups */
    190   1.1       erh 	{ 1, s(struct linux_sys_oldselect_args),
    191   1.1       erh 	    linux_sys_oldselect },		/* 82 = oldselect */
    192   1.1       erh 	{ 2, s(struct linux_sys_symlink_args),
    193   1.1       erh 	    linux_sys_symlink },		/* 83 = symlink */
    194   1.1       erh 	{ 2, s(struct compat_43_sys_lstat_args),
    195   1.1       erh 	    compat_43_sys_lstat },		/* 84 = oolstat */
    196   1.1       erh 	{ 3, s(struct linux_sys_readlink_args),
    197   1.1       erh 	    linux_sys_readlink },		/* 85 = readlink */
    198   1.1       erh 	{ 1, s(struct linux_sys_uselib_args),
    199   1.1       erh 	    linux_sys_uselib },			/* 86 = uselib */
    200   1.1       erh 	{ 1, s(struct compat_12_sys_swapon_args),
    201   1.1       erh 	    compat_12_sys_swapon },		/* 87 = swapon */
    202  1.17       erh 	{ 4, s(struct linux_sys_reboot_args),
    203  1.17       erh 	    linux_sys_reboot },			/* 88 = reboot */
    204   1.1       erh 	{ 3, s(struct linux_sys_readdir_args),
    205   1.1       erh 	    linux_sys_readdir },		/* 89 = readdir */
    206   1.1       erh 	{ 1, s(struct linux_sys_old_mmap_args),
    207   1.1       erh 	    linux_sys_old_mmap },		/* 90 = old_mmap */
    208   1.1       erh 	{ 2, s(struct sys_munmap_args),
    209   1.1       erh 	    sys_munmap },			/* 91 = munmap */
    210   1.1       erh 	{ 2, s(struct linux_sys_truncate_args),
    211   1.1       erh 	    linux_sys_truncate },		/* 92 = truncate */
    212   1.1       erh 	{ 2, s(struct compat_43_sys_ftruncate_args),
    213   1.1       erh 	    compat_43_sys_ftruncate },		/* 93 = ftruncate */
    214   1.1       erh 	{ 2, s(struct sys_fchmod_args),
    215   1.1       erh 	    sys_fchmod },			/* 94 = fchmod */
    216   1.1       erh 	{ 3, s(struct linux_sys_fchown_args),
    217   1.1       erh 	    linux_sys_fchown },			/* 95 = fchown */
    218   1.1       erh 	{ 2, s(struct sys_getpriority_args),
    219   1.1       erh 	    sys_getpriority },			/* 96 = getpriority */
    220   1.1       erh 	{ 3, s(struct sys_setpriority_args),
    221   1.1       erh 	    sys_setpriority },			/* 97 = setpriority */
    222   1.1       erh 	{ 4, s(struct sys_profil_args),
    223   1.1       erh 	    sys_profil },			/* 98 = profil */
    224   1.1       erh 	{ 2, s(struct linux_sys_statfs_args),
    225   1.1       erh 	    linux_sys_statfs },			/* 99 = statfs */
    226   1.1       erh 	{ 2, s(struct linux_sys_fstatfs_args),
    227   1.1       erh 	    linux_sys_fstatfs },		/* 100 = fstatfs */
    228   1.1       erh 	{ 3, s(struct linux_sys_ioperm_args),
    229   1.1       erh 	    linux_sys_ioperm },			/* 101 = ioperm */
    230   1.1       erh 	{ 2, s(struct linux_sys_socketcall_args),
    231   1.1       erh 	    linux_sys_socketcall },		/* 102 = socketcall */
    232   1.1       erh 	{ 0, 0,
    233   1.1       erh 	    sys_nosys },			/* 103 = unimplemented syslog */
    234   1.1       erh 	{ 3, s(struct sys_setitimer_args),
    235   1.1       erh 	    sys_setitimer },			/* 104 = setitimer */
    236   1.1       erh 	{ 2, s(struct sys_getitimer_args),
    237   1.1       erh 	    sys_getitimer },			/* 105 = getitimer */
    238   1.1       erh 	{ 2, s(struct linux_sys_stat_args),
    239   1.1       erh 	    linux_sys_stat },			/* 106 = stat */
    240   1.1       erh 	{ 2, s(struct linux_sys_lstat_args),
    241   1.1       erh 	    linux_sys_lstat },			/* 107 = lstat */
    242   1.1       erh 	{ 2, s(struct linux_sys_fstat_args),
    243   1.1       erh 	    linux_sys_fstat },			/* 108 = fstat */
    244   1.1       erh 	{ 1, s(struct linux_sys_olduname_args),
    245   1.1       erh 	    linux_sys_olduname },		/* 109 = olduname */
    246   1.1       erh 	{ 1, s(struct linux_sys_iopl_args),
    247   1.1       erh 	    linux_sys_iopl },			/* 110 = iopl */
    248   1.1       erh 	{ 0, 0,
    249   1.1       erh 	    sys_nosys },			/* 111 = unimplemented vhangup */
    250   1.1       erh 	{ 0, 0,
    251   1.1       erh 	    sys_nosys },			/* 112 = unimplemented idle */
    252   1.1       erh 	{ 0, 0,
    253   1.1       erh 	    sys_nosys },			/* 113 = unimplemented vm86old */
    254   1.1       erh 	{ 4, s(struct linux_sys_wait4_args),
    255   1.1       erh 	    linux_sys_wait4 },			/* 114 = wait4 */
    256   1.1       erh 	{ 0, 0,
    257   1.1       erh 	    sys_nosys },			/* 115 = unimplemented swapoff */
    258   1.1       erh 	{ 0, 0,
    259   1.1       erh 	    sys_nosys },			/* 116 = unimplemented sysinfo */
    260   1.1       erh 	{ 5, s(struct linux_sys_ipc_args),
    261   1.1       erh 	    linux_sys_ipc },			/* 117 = ipc */
    262   1.1       erh 	{ 1, s(struct sys_fsync_args),
    263   1.1       erh 	    sys_fsync },			/* 118 = fsync */
    264   1.1       erh 	{ 1, s(struct linux_sys_sigreturn_args),
    265   1.1       erh 	    linux_sys_sigreturn },		/* 119 = sigreturn */
    266   1.9   thorpej 	{ 2, s(struct linux_sys_clone_args),
    267   1.9   thorpej 	    linux_sys_clone },			/* 120 = clone */
    268   1.1       erh 	{ 2, s(struct compat_09_sys_setdomainname_args),
    269   1.1       erh 	    compat_09_sys_setdomainname },	/* 121 = setdomainname */
    270   1.1       erh 	{ 1, s(struct linux_sys_uname_args),
    271   1.1       erh 	    linux_sys_uname },			/* 122 = uname */
    272   1.1       erh 	{ 3, s(struct linux_sys_modify_ldt_args),
    273   1.1       erh 	    linux_sys_modify_ldt },		/* 123 = modify_ldt */
    274   1.1       erh 	{ 0, 0,
    275   1.1       erh 	    sys_nosys },			/* 124 = unimplemented adjtimex */
    276   1.1       erh 	{ 3, s(struct sys_mprotect_args),
    277   1.1       erh 	    sys_mprotect },			/* 125 = mprotect */
    278   1.1       erh 	{ 3, s(struct linux_sys_sigprocmask_args),
    279   1.1       erh 	    linux_sys_sigprocmask },		/* 126 = sigprocmask */
    280   1.1       erh 	{ 0, 0,
    281   1.1       erh 	    sys_nosys },			/* 127 = unimplemented create_module */
    282   1.1       erh 	{ 0, 0,
    283   1.1       erh 	    sys_nosys },			/* 128 = unimplemented init_module */
    284   1.1       erh 	{ 0, 0,
    285   1.1       erh 	    sys_nosys },			/* 129 = unimplemented delete_module */
    286   1.1       erh 	{ 0, 0,
    287   1.1       erh 	    sys_nosys },			/* 130 = unimplemented get_kernel_syms */
    288   1.1       erh 	{ 0, 0,
    289   1.1       erh 	    sys_nosys },			/* 131 = unimplemented quotactl */
    290   1.1       erh 	{ 1, s(struct linux_sys_getpgid_args),
    291   1.1       erh 	    linux_sys_getpgid },		/* 132 = getpgid */
    292   1.1       erh 	{ 1, s(struct sys_fchdir_args),
    293   1.1       erh 	    sys_fchdir },			/* 133 = fchdir */
    294   1.1       erh 	{ 0, 0,
    295   1.1       erh 	    sys_nosys },			/* 134 = unimplemented bdflush */
    296   1.1       erh 	{ 0, 0,
    297   1.1       erh 	    sys_nosys },			/* 135 = unimplemented sysfs */
    298   1.1       erh 	{ 1, s(struct linux_sys_personality_args),
    299   1.1       erh 	    linux_sys_personality },		/* 136 = personality */
    300   1.1       erh 	{ 0, 0,
    301   1.1       erh 	    sys_nosys },			/* 137 = unimplemented afs_syscall */
    302  1.16       abs 	{ 1, s(struct linux_sys_setfsuid_args),
    303  1.16       abs 	    linux_sys_setfsuid },		/* 138 = setfsuid */
    304   1.1       erh 	{ 0, 0,
    305  1.16       abs 	    linux_sys_getfsuid },		/* 139 = getfsuid */
    306   1.1       erh 	{ 5, s(struct linux_sys_llseek_args),
    307   1.1       erh 	    linux_sys_llseek },			/* 140 = llseek */
    308   1.1       erh 	{ 3, s(struct linux_sys_getdents_args),
    309   1.1       erh 	    linux_sys_getdents },		/* 141 = getdents */
    310   1.1       erh 	{ 5, s(struct linux_sys_select_args),
    311   1.1       erh 	    linux_sys_select },			/* 142 = select */
    312   1.1       erh 	{ 2, s(struct sys_flock_args),
    313   1.1       erh 	    sys_flock },			/* 143 = flock */
    314   1.1       erh 	{ 3, s(struct linux_sys_msync_args),
    315   1.1       erh 	    linux_sys_msync },			/* 144 = msync */
    316   1.1       erh 	{ 3, s(struct sys_readv_args),
    317   1.1       erh 	    sys_readv },			/* 145 = readv */
    318   1.1       erh 	{ 3, s(struct sys_writev_args),
    319   1.1       erh 	    sys_writev },			/* 146 = writev */
    320   1.1       erh 	{ 1, s(struct sys_getsid_args),
    321   1.1       erh 	    sys_getsid },			/* 147 = getsid */
    322   1.1       erh 	{ 1, s(struct linux_sys_fdatasync_args),
    323   1.1       erh 	    linux_sys_fdatasync },		/* 148 = fdatasync */
    324   1.1       erh 	{ 1, s(struct linux_sys___sysctl_args),
    325   1.1       erh 	    linux_sys___sysctl },		/* 149 = __sysctl */
    326   1.1       erh 	{ 2, s(struct sys_mlock_args),
    327   1.1       erh 	    sys_mlock },			/* 150 = mlock */
    328   1.1       erh 	{ 2, s(struct sys_munlock_args),
    329   1.1       erh 	    sys_munlock },			/* 151 = munlock */
    330   1.1       erh 	{ 0, 0,
    331   1.1       erh 	    sys_nosys },			/* 152 = unimplemented mlockall */
    332   1.1       erh 	{ 0, 0,
    333   1.1       erh 	    sys_nosys },			/* 153 = unimplemented munlockall */
    334  1.12      tron 	{ 2, s(struct linux_sys_sched_setparam_args),
    335  1.12      tron 	    linux_sys_sched_setparam },		/* 154 = sched_setparam */
    336  1.12      tron 	{ 2, s(struct linux_sys_sched_getparam_args),
    337  1.12      tron 	    linux_sys_sched_getparam },		/* 155 = sched_getparam */
    338  1.12      tron 	{ 3, s(struct linux_sys_sched_setscheduler_args),
    339  1.12      tron 	    linux_sys_sched_setscheduler },	/* 156 = sched_setscheduler */
    340  1.12      tron 	{ 1, s(struct linux_sys_sched_getscheduler_args),
    341  1.12      tron 	    linux_sys_sched_getscheduler },	/* 157 = sched_getscheduler */
    342  1.12      tron 	{ 0, 0,
    343  1.12      tron 	    linux_sys_sched_yield },		/* 158 = sched_yield */
    344  1.12      tron 	{ 1, s(struct linux_sys_sched_get_priority_max_args),
    345  1.12      tron 	    linux_sys_sched_get_priority_max },	/* 159 = sched_get_priority_max */
    346  1.12      tron 	{ 1, s(struct linux_sys_sched_get_priority_min_args),
    347  1.12      tron 	    linux_sys_sched_get_priority_min },	/* 160 = sched_get_priority_min */
    348   1.1       erh 	{ 0, 0,
    349  1.12      tron 	    sys_nosys },			/* 161 = unimplemented sys_sched_rr_get_interval */
    350   1.1       erh 	{ 2, s(struct sys_nanosleep_args),
    351   1.1       erh 	    sys_nanosleep },			/* 162 = nanosleep */
    352   1.1       erh 	{ 4, s(struct linux_sys_mremap_args),
    353   1.1       erh 	    linux_sys_mremap },			/* 163 = mremap */
    354  1.10   thorpej 	{ 3, s(struct linux_sys_setresuid_args),
    355  1.10   thorpej 	    linux_sys_setresuid },		/* 164 = setresuid */
    356  1.10   thorpej 	{ 3, s(struct linux_sys_getresuid_args),
    357  1.10   thorpej 	    linux_sys_getresuid },		/* 165 = getresuid */
    358   1.1       erh 	{ 0, 0,
    359   1.1       erh 	    sys_nosys },			/* 166 = unimplemented vm86 */
    360   1.1       erh 	{ 0, 0,
    361   1.1       erh 	    sys_nosys },			/* 167 = unimplemented query_module */
    362   1.8       abs 	{ 3, s(struct sys_poll_args),
    363   1.8       abs 	    sys_poll },				/* 168 = poll */
    364   1.1       erh 	{ 0, 0,
    365   1.1       erh 	    sys_nosys },			/* 169 = unimplemented nfsservctl */
    366  1.10   thorpej 	{ 3, s(struct linux_sys_setresgid_args),
    367  1.10   thorpej 	    linux_sys_setresgid },		/* 170 = setresgid */
    368  1.10   thorpej 	{ 3, s(struct linux_sys_getresgid_args),
    369  1.10   thorpej 	    linux_sys_getresgid },		/* 171 = getresgid */
    370   1.1       erh 	{ 0, 0,
    371   1.1       erh 	    sys_nosys },			/* 172 = unimplemented prctl */
    372   1.1       erh 	{ 1, s(struct linux_sys_rt_sigreturn_args),
    373   1.1       erh 	    linux_sys_rt_sigreturn },		/* 173 = rt_sigreturn */
    374   1.1       erh 	{ 4, s(struct linux_sys_rt_sigaction_args),
    375   1.1       erh 	    linux_sys_rt_sigaction },		/* 174 = rt_sigaction */
    376   1.1       erh 	{ 4, s(struct linux_sys_rt_sigprocmask_args),
    377   1.1       erh 	    linux_sys_rt_sigprocmask },		/* 175 = rt_sigprocmask */
    378   1.1       erh 	{ 2, s(struct linux_sys_rt_sigpending_args),
    379   1.1       erh 	    linux_sys_rt_sigpending },		/* 176 = rt_sigpending */
    380   1.1       erh 	{ 0, 0,
    381   1.1       erh 	    sys_nosys },			/* 177 = unimplemented rt_sigtimedwait */
    382   1.1       erh 	{ 3, s(struct linux_sys_rt_queueinfo_args),
    383   1.1       erh 	    linux_sys_rt_queueinfo },		/* 178 = rt_queueinfo */
    384   1.1       erh 	{ 2, s(struct linux_sys_rt_sigsuspend_args),
    385   1.1       erh 	    linux_sys_rt_sigsuspend },		/* 179 = rt_sigsuspend */
    386  1.14      tron 	{ 4, s(struct linux_sys_pread_args),
    387  1.14      tron 	    linux_sys_pread },			/* 180 = pread */
    388  1.14      tron 	{ 4, s(struct linux_sys_pwrite_args),
    389  1.14      tron 	    linux_sys_pwrite },			/* 181 = pwrite */
    390   1.1       erh 	{ 3, s(struct linux_sys_chown_args),
    391   1.1       erh 	    linux_sys_chown },			/* 182 = chown */
    392   1.7      tron 	{ 2, s(struct sys___getcwd_args),
    393   1.7      tron 	    sys___getcwd },			/* 183 = __getcwd */
    394   1.1       erh 	{ 0, 0,
    395   1.1       erh 	    sys_nosys },			/* 184 = unimplemented capget */
    396   1.1       erh 	{ 0, 0,
    397   1.1       erh 	    sys_nosys },			/* 185 = unimplemented capset */
    398  1.10   thorpej 	{ 0, 0,
    399  1.10   thorpej 	    sys_nosys },			/* 186 = unimplemented sigaltstack */
    400  1.10   thorpej 	{ 0, 0,
    401  1.10   thorpej 	    sys_nosys },			/* 187 = unimplemented sendfile */
    402  1.10   thorpej 	{ 0, 0,
    403  1.10   thorpej 	    sys_nosys },			/* 188 = unimplemented getpmsg */
    404  1.10   thorpej 	{ 0, 0,
    405  1.10   thorpej 	    sys_nosys },			/* 189 = unimplemented putpmsg */
    406  1.10   thorpej 	{ 0, 0,
    407  1.10   thorpej 	    sys___vfork14 },			/* 190 = __vfork14 */
    408   1.1       erh };
    409   1.1       erh 
    410