Home | History | Annotate | Line # | Download | only in i386
linux_syscall.h revision 1.82
      1  1.82     pooka /* $NetBSD: linux_syscall.h,v 1.82 2009/01/13 22:33:10 pooka Exp $ */
      2   1.1       erh 
      3   1.1       erh /*
      4   1.1       erh  * System call numbers.
      5   1.1       erh  *
      6   1.1       erh  * DO NOT EDIT-- this file is automatically generated.
      7  1.82     pooka  * created from	NetBSD: syscalls.master,v 1.98 2009/01/13 22:27:43 pooka Exp
      8   1.1       erh  */
      9   1.1       erh 
     10  1.63  christos #ifndef _LINUX_SYS_SYSCALL_H_
     11  1.63  christos #define	_LINUX_SYS_SYSCALL_H_
     12  1.63  christos 
     13  1.69     njoly #define	LINUX_SYS_MAXSYSARGS	8
     14  1.69     njoly 
     15   1.1       erh /* syscall: "syscall" ret: "int" args: */
     16   1.1       erh #define	LINUX_SYS_syscall	0
     17   1.1       erh 
     18   1.1       erh /* syscall: "exit" ret: "int" args: "int" */
     19   1.1       erh #define	LINUX_SYS_exit	1
     20   1.1       erh 
     21   1.1       erh /* syscall: "fork" ret: "int" args: */
     22   1.1       erh #define	LINUX_SYS_fork	2
     23   1.1       erh 
     24   1.1       erh /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
     25   1.1       erh #define	LINUX_SYS_read	3
     26   1.1       erh 
     27   1.1       erh /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
     28   1.1       erh #define	LINUX_SYS_write	4
     29   1.1       erh 
     30   1.5  christos /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
     31   1.1       erh #define	LINUX_SYS_open	5
     32   1.1       erh 
     33   1.1       erh /* syscall: "close" ret: "int" args: "int" */
     34   1.1       erh #define	LINUX_SYS_close	6
     35   1.1       erh 
     36   1.1       erh /* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */
     37   1.1       erh #define	LINUX_SYS_waitpid	7
     38   1.1       erh 
     39   1.5  christos /* syscall: "creat" ret: "int" args: "const char *" "int" */
     40   1.1       erh #define	LINUX_SYS_creat	8
     41   1.1       erh 
     42   1.5  christos /* syscall: "link" ret: "int" args: "const char *" "const char *" */
     43   1.1       erh #define	LINUX_SYS_link	9
     44   1.1       erh 
     45   1.5  christos /* syscall: "unlink" ret: "int" args: "const char *" */
     46   1.1       erh #define	LINUX_SYS_unlink	10
     47   1.1       erh 
     48   1.5  christos /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
     49   1.1       erh #define	LINUX_SYS_execve	11
     50   1.1       erh 
     51   1.5  christos /* syscall: "chdir" ret: "int" args: "const char *" */
     52   1.1       erh #define	LINUX_SYS_chdir	12
     53   1.1       erh 
     54   1.1       erh /* syscall: "time" ret: "int" args: "linux_time_t *" */
     55   1.1       erh #define	LINUX_SYS_time	13
     56   1.1       erh 
     57   1.5  christos /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
     58   1.1       erh #define	LINUX_SYS_mknod	14
     59   1.1       erh 
     60   1.5  christos /* syscall: "chmod" ret: "int" args: "const char *" "int" */
     61   1.1       erh #define	LINUX_SYS_chmod	15
     62   1.1       erh 
     63  1.73     njoly /* syscall: "lchown16" ret: "int" args: "const char *" "linux_uid16_t" "linux_gid16_t" */
     64  1.30      fvdl #define	LINUX_SYS_lchown16	16
     65   1.1       erh 
     66   1.1       erh /* syscall: "break" ret: "int" args: "char *" */
     67   1.1       erh #define	LINUX_SYS_break	17
     68   1.1       erh 
     69   1.1       erh 				/* 18 is obsolete ostat */
     70   1.1       erh /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
     71   1.1       erh #define	LINUX_SYS_lseek	19
     72   1.1       erh 
     73  1.68  christos #ifdef	LINUX_NPTL
     74   1.1       erh /* syscall: "getpid" ret: "pid_t" args: */
     75   1.1       erh #define	LINUX_SYS_getpid	20
     76   1.1       erh 
     77  1.68  christos #else
     78  1.68  christos /* syscall: "getpid" ret: "pid_t" args: */
     79  1.68  christos #define	LINUX_SYS_getpid	20
     80  1.68  christos 
     81  1.68  christos #endif
     82  1.31      fvdl /* syscall: "linux_setuid16" ret: "int" args: "uid_t" */
     83  1.31      fvdl #define	LINUX_SYS_linux_setuid16	23
     84   1.1       erh 
     85  1.31      fvdl /* syscall: "linux_getuid16" ret: "uid_t" args: */
     86  1.31      fvdl #define	LINUX_SYS_linux_getuid16	24
     87  1.11      tron 
     88  1.11      tron /* syscall: "stime" ret: "int" args: "linux_time_t *" */
     89  1.11      tron #define	LINUX_SYS_stime	25
     90  1.15      tron 
     91  1.15      tron /* syscall: "ptrace" ret: "int" args: "int" "int" "int" "int" */
     92  1.15      tron #define	LINUX_SYS_ptrace	26
     93   1.1       erh 
     94   1.1       erh /* syscall: "alarm" ret: "int" args: "unsigned int" */
     95   1.1       erh #define	LINUX_SYS_alarm	27
     96   1.1       erh 
     97   1.1       erh 				/* 28 is obsolete ofstat */
     98   1.1       erh /* syscall: "pause" ret: "int" args: */
     99   1.1       erh #define	LINUX_SYS_pause	29
    100   1.1       erh 
    101   1.5  christos /* syscall: "utime" ret: "int" args: "const char *" "struct linux_utimbuf *" */
    102   1.1       erh #define	LINUX_SYS_utime	30
    103   1.1       erh 
    104   1.1       erh 				/* 31 is obsolete stty */
    105   1.1       erh 				/* 32 is obsolete gtty */
    106   1.5  christos /* syscall: "access" ret: "int" args: "const char *" "int" */
    107   1.1       erh #define	LINUX_SYS_access	33
    108   1.1       erh 
    109   1.1       erh /* syscall: "nice" ret: "int" args: "int" */
    110   1.1       erh #define	LINUX_SYS_nice	34
    111   1.1       erh 
    112   1.1       erh 				/* 35 is obsolete ftime */
    113   1.1       erh /* syscall: "sync" ret: "int" args: */
    114   1.1       erh #define	LINUX_SYS_sync	36
    115   1.1       erh 
    116   1.1       erh /* syscall: "kill" ret: "int" args: "int" "int" */
    117   1.1       erh #define	LINUX_SYS_kill	37
    118   1.1       erh 
    119  1.69     njoly /* syscall: "__posix_rename" ret: "int" args: "const char *" "const char *" */
    120  1.69     njoly #define	LINUX_SYS___posix_rename	38
    121   1.1       erh 
    122   1.5  christos /* syscall: "mkdir" ret: "int" args: "const char *" "int" */
    123   1.1       erh #define	LINUX_SYS_mkdir	39
    124   1.1       erh 
    125   1.5  christos /* syscall: "rmdir" ret: "int" args: "const char *" */
    126   1.1       erh #define	LINUX_SYS_rmdir	40
    127   1.1       erh 
    128   1.1       erh /* syscall: "dup" ret: "int" args: "u_int" */
    129   1.1       erh #define	LINUX_SYS_dup	41
    130   1.1       erh 
    131   1.1       erh /* syscall: "pipe" ret: "int" args: "int *" */
    132   1.1       erh #define	LINUX_SYS_pipe	42
    133   1.1       erh 
    134   1.1       erh /* syscall: "times" ret: "int" args: "struct times *" */
    135   1.1       erh #define	LINUX_SYS_times	43
    136   1.1       erh 
    137   1.1       erh 				/* 44 is obsolete prof */
    138   1.1       erh /* syscall: "brk" ret: "int" args: "char *" */
    139   1.1       erh #define	LINUX_SYS_brk	45
    140   1.1       erh 
    141  1.31      fvdl /* syscall: "linux_setgid16" ret: "int" args: "gid_t" */
    142  1.31      fvdl #define	LINUX_SYS_linux_setgid16	46
    143   1.1       erh 
    144  1.31      fvdl /* syscall: "linux_getgid16" ret: "gid_t" args: */
    145  1.31      fvdl #define	LINUX_SYS_linux_getgid16	47
    146   1.1       erh 
    147   1.1       erh /* syscall: "signal" ret: "int" args: "int" "linux_handler_t" */
    148   1.1       erh #define	LINUX_SYS_signal	48
    149   1.1       erh 
    150  1.31      fvdl /* syscall: "linux_geteuid16" ret: "uid_t" args: */
    151  1.31      fvdl #define	LINUX_SYS_linux_geteuid16	49
    152   1.1       erh 
    153  1.31      fvdl /* syscall: "linux_getegid16" ret: "gid_t" args: */
    154  1.31      fvdl #define	LINUX_SYS_linux_getegid16	50
    155   1.1       erh 
    156   1.1       erh /* syscall: "acct" ret: "int" args: "char *" */
    157   1.1       erh #define	LINUX_SYS_acct	51
    158   1.1       erh 
    159   1.1       erh 				/* 52 is obsolete phys */
    160   1.1       erh 				/* 53 is obsolete lock */
    161  1.66  christos /* syscall: "ioctl" ret: "int" args: "int" "u_long" "void *" */
    162   1.1       erh #define	LINUX_SYS_ioctl	54
    163   1.1       erh 
    164   1.1       erh /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
    165   1.1       erh #define	LINUX_SYS_fcntl	55
    166   1.1       erh 
    167   1.1       erh 				/* 56 is obsolete mpx */
    168   1.1       erh /* syscall: "setpgid" ret: "int" args: "int" "int" */
    169   1.1       erh #define	LINUX_SYS_setpgid	57
    170   1.1       erh 
    171   1.1       erh 				/* 58 is obsolete ulimit */
    172   1.1       erh /* syscall: "oldolduname" ret: "int" args: "struct linux_oldold_utsname *" */
    173   1.1       erh #define	LINUX_SYS_oldolduname	59
    174   1.1       erh 
    175   1.1       erh /* syscall: "umask" ret: "int" args: "int" */
    176   1.1       erh #define	LINUX_SYS_umask	60
    177   1.1       erh 
    178   1.1       erh /* syscall: "chroot" ret: "int" args: "char *" */
    179   1.1       erh #define	LINUX_SYS_chroot	61
    180   1.1       erh 
    181   1.1       erh /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
    182   1.1       erh #define	LINUX_SYS_dup2	63
    183   1.1       erh 
    184  1.68  christos #ifdef LINUX_NPTL
    185   1.1       erh /* syscall: "getppid" ret: "pid_t" args: */
    186   1.1       erh #define	LINUX_SYS_getppid	64
    187   1.1       erh 
    188  1.68  christos #else
    189  1.68  christos /* syscall: "getppid" ret: "pid_t" args: */
    190  1.68  christos #define	LINUX_SYS_getppid	64
    191  1.68  christos 
    192  1.68  christos #endif
    193   1.1       erh /* syscall: "getpgrp" ret: "int" args: */
    194   1.1       erh #define	LINUX_SYS_getpgrp	65
    195   1.1       erh 
    196   1.1       erh /* syscall: "setsid" ret: "int" args: */
    197   1.1       erh #define	LINUX_SYS_setsid	66
    198   1.1       erh 
    199   1.1       erh /* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
    200   1.1       erh #define	LINUX_SYS_sigaction	67
    201   1.1       erh 
    202   1.1       erh /* syscall: "siggetmask" ret: "int" args: */
    203   1.1       erh #define	LINUX_SYS_siggetmask	68
    204   1.1       erh 
    205   1.1       erh /* syscall: "sigsetmask" ret: "int" args: "linux_old_sigset_t" */
    206   1.1       erh #define	LINUX_SYS_sigsetmask	69
    207   1.1       erh 
    208  1.73     njoly /* syscall: "setreuid16" ret: "int" args: "linux_uid16_t" "linux_uid16_t" */
    209  1.30      fvdl #define	LINUX_SYS_setreuid16	70
    210   1.1       erh 
    211  1.73     njoly /* syscall: "setregid16" ret: "int" args: "linux_gid16_t" "linux_gid16_t" */
    212  1.30      fvdl #define	LINUX_SYS_setregid16	71
    213   1.1       erh 
    214  1.66  christos /* syscall: "sigsuspend" ret: "int" args: "void *" "int" "int" */
    215   1.1       erh #define	LINUX_SYS_sigsuspend	72
    216   1.1       erh 
    217   1.1       erh /* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
    218   1.1       erh #define	LINUX_SYS_sigpending	73
    219   1.1       erh 
    220   1.1       erh /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
    221   1.1       erh #define	LINUX_SYS_sethostname	74
    222   1.1       erh 
    223   1.1       erh /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
    224   1.1       erh #define	LINUX_SYS_setrlimit	75
    225   1.1       erh 
    226   1.1       erh /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
    227   1.1       erh #define	LINUX_SYS_getrlimit	76
    228   1.1       erh 
    229  1.81  christos /* syscall: "getrusage" ret: "int" args: "int" "struct rusage50 *" */
    230   1.1       erh #define	LINUX_SYS_getrusage	77
    231   1.1       erh 
    232  1.81  christos /* syscall: "gettimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
    233   1.1       erh #define	LINUX_SYS_gettimeofday	78
    234   1.1       erh 
    235  1.81  christos /* syscall: "settimeofday" ret: "int" args: "struct timeval50 *" "struct timezone *" */
    236   1.1       erh #define	LINUX_SYS_settimeofday	79
    237   1.1       erh 
    238  1.73     njoly /* syscall: "getgroups16" ret: "int" args: "int" "linux_gid16_t *" */
    239  1.31      fvdl #define	LINUX_SYS_getgroups16	80
    240   1.1       erh 
    241  1.73     njoly /* syscall: "setgroups16" ret: "int" args: "int" "linux_gid16_t *" */
    242  1.31      fvdl #define	LINUX_SYS_setgroups16	81
    243   1.1       erh 
    244   1.1       erh /* syscall: "oldselect" ret: "int" args: "struct linux_oldselect *" */
    245   1.1       erh #define	LINUX_SYS_oldselect	82
    246   1.1       erh 
    247   1.5  christos /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
    248   1.1       erh #define	LINUX_SYS_symlink	83
    249   1.1       erh 
    250   1.5  christos /* syscall: "oolstat" ret: "int" args: "const char *" "struct stat43 *" */
    251   1.1       erh #define	LINUX_SYS_oolstat	84
    252   1.1       erh 
    253   1.5  christos /* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
    254   1.1       erh #define	LINUX_SYS_readlink	85
    255   1.1       erh 
    256  1.58     joerg #ifdef EXEC_AOUT
    257   1.5  christos /* syscall: "uselib" ret: "int" args: "const char *" */
    258   1.1       erh #define	LINUX_SYS_uselib	86
    259   1.1       erh 
    260  1.58     joerg #else
    261  1.58     joerg #endif
    262   1.1       erh /* syscall: "swapon" ret: "int" args: "char *" */
    263   1.1       erh #define	LINUX_SYS_swapon	87
    264   1.1       erh 
    265  1.17       erh /* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
    266   1.1       erh #define	LINUX_SYS_reboot	88
    267   1.1       erh 
    268  1.66  christos /* syscall: "readdir" ret: "int" args: "int" "void *" "unsigned int" */
    269   1.1       erh #define	LINUX_SYS_readdir	89
    270   1.1       erh 
    271   1.1       erh /* syscall: "old_mmap" ret: "int" args: "struct linux_oldmmap *" */
    272   1.1       erh #define	LINUX_SYS_old_mmap	90
    273   1.1       erh 
    274  1.66  christos /* syscall: "munmap" ret: "int" args: "void *" "int" */
    275   1.1       erh #define	LINUX_SYS_munmap	91
    276   1.1       erh 
    277   1.5  christos /* syscall: "truncate" ret: "int" args: "const char *" "long" */
    278   1.1       erh #define	LINUX_SYS_truncate	92
    279   1.1       erh 
    280   1.1       erh /* syscall: "ftruncate" ret: "int" args: "int" "long" */
    281   1.1       erh #define	LINUX_SYS_ftruncate	93
    282   1.1       erh 
    283   1.1       erh /* syscall: "fchmod" ret: "int" args: "int" "int" */
    284   1.1       erh #define	LINUX_SYS_fchmod	94
    285   1.1       erh 
    286  1.73     njoly /* syscall: "fchown16" ret: "int" args: "int" "linux_uid16_t" "linux_gid16_t" */
    287  1.30      fvdl #define	LINUX_SYS_fchown16	95
    288   1.1       erh 
    289   1.1       erh /* syscall: "getpriority" ret: "int" args: "int" "int" */
    290   1.1       erh #define	LINUX_SYS_getpriority	96
    291   1.1       erh 
    292   1.1       erh /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
    293   1.1       erh #define	LINUX_SYS_setpriority	97
    294   1.1       erh 
    295  1.66  christos /* syscall: "profil" ret: "int" args: "void *" "u_int" "u_int" "u_int" */
    296   1.1       erh #define	LINUX_SYS_profil	98
    297   1.1       erh 
    298   1.5  christos /* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
    299   1.1       erh #define	LINUX_SYS_statfs	99
    300   1.1       erh 
    301   1.1       erh /* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
    302   1.1       erh #define	LINUX_SYS_fstatfs	100
    303   1.1       erh 
    304   1.1       erh /* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */
    305   1.1       erh #define	LINUX_SYS_ioperm	101
    306   1.1       erh 
    307   1.1       erh /* syscall: "socketcall" ret: "int" args: "int" "void *" */
    308   1.1       erh #define	LINUX_SYS_socketcall	102
    309   1.1       erh 
    310  1.81  christos /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval50 *" "struct itimerval50 *" */
    311   1.1       erh #define	LINUX_SYS_setitimer	104
    312   1.1       erh 
    313  1.81  christos /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval50 *" */
    314   1.1       erh #define	LINUX_SYS_getitimer	105
    315   1.1       erh 
    316   1.5  christos /* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */
    317   1.1       erh #define	LINUX_SYS_stat	106
    318   1.1       erh 
    319   1.5  christos /* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */
    320   1.1       erh #define	LINUX_SYS_lstat	107
    321   1.1       erh 
    322   1.1       erh /* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
    323   1.1       erh #define	LINUX_SYS_fstat	108
    324   1.1       erh 
    325   1.1       erh /* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
    326   1.1       erh #define	LINUX_SYS_olduname	109
    327   1.1       erh 
    328   1.1       erh /* syscall: "iopl" ret: "int" args: "int" */
    329   1.1       erh #define	LINUX_SYS_iopl	110
    330   1.1       erh 
    331   1.1       erh /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
    332   1.1       erh #define	LINUX_SYS_wait4	114
    333  1.23  jdolecek 
    334  1.23  jdolecek /* syscall: "swapoff" ret: "int" args: "const char *" */
    335  1.23  jdolecek #define	LINUX_SYS_swapoff	115
    336  1.29  augustss 
    337  1.29  augustss /* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */
    338  1.29  augustss #define	LINUX_SYS_sysinfo	116
    339   1.1       erh 
    340  1.66  christos /* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "void *" */
    341   1.1       erh #define	LINUX_SYS_ipc	117
    342   1.1       erh 
    343   1.1       erh /* syscall: "fsync" ret: "int" args: "int" */
    344   1.1       erh #define	LINUX_SYS_fsync	118
    345   1.1       erh 
    346   1.1       erh /* syscall: "sigreturn" ret: "int" args: "struct linux_sigcontext *" */
    347   1.1       erh #define	LINUX_SYS_sigreturn	119
    348   1.9   thorpej 
    349  1.68  christos /* syscall: "clone" ret: "int" args: "int" "void *" "void *" "void *" */
    350   1.9   thorpej #define	LINUX_SYS_clone	120
    351   1.1       erh 
    352   1.1       erh /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
    353   1.1       erh #define	LINUX_SYS_setdomainname	121
    354   1.1       erh 
    355   1.1       erh /* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
    356   1.1       erh #define	LINUX_SYS_uname	122
    357   1.1       erh 
    358   1.1       erh /* syscall: "modify_ldt" ret: "int" args: "int" "void *" "size_t" */
    359   1.1       erh #define	LINUX_SYS_modify_ldt	123
    360   1.1       erh 
    361  1.43  christos /* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
    362   1.1       erh #define	LINUX_SYS_mprotect	125
    363   1.1       erh 
    364   1.1       erh /* syscall: "sigprocmask" ret: "int" args: "int" "const linux_old_sigset_t *" "linux_old_sigset_t *" */
    365   1.1       erh #define	LINUX_SYS_sigprocmask	126
    366   1.1       erh 
    367  1.72     njoly /* syscall: "getpgid" ret: "pid_t" args: "pid_t" */
    368   1.1       erh #define	LINUX_SYS_getpgid	132
    369   1.1       erh 
    370   1.1       erh /* syscall: "fchdir" ret: "int" args: "int" */
    371   1.1       erh #define	LINUX_SYS_fchdir	133
    372   1.1       erh 
    373   1.1       erh /* syscall: "personality" ret: "int" args: "int" */
    374   1.1       erh #define	LINUX_SYS_personality	136
    375   1.1       erh 
    376  1.31      fvdl /* syscall: "linux_setfsuid16" ret: "int" args: "uid_t" */
    377  1.31      fvdl #define	LINUX_SYS_linux_setfsuid16	138
    378  1.16       abs 
    379  1.71     njoly /* syscall: "linux_setfsgid16" ret: "int" args: "gid_t" */
    380  1.71     njoly #define	LINUX_SYS_linux_setfsgid16	139
    381  1.16       abs 
    382  1.66  christos /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "void *" "int" */
    383   1.1       erh #define	LINUX_SYS_llseek	140
    384   1.1       erh 
    385   1.1       erh /* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
    386   1.1       erh #define	LINUX_SYS_getdents	141
    387   1.1       erh 
    388  1.81  christos /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval50 *" */
    389   1.1       erh #define	LINUX_SYS_select	142
    390   1.1       erh 
    391   1.1       erh /* syscall: "flock" ret: "int" args: "int" "int" */
    392   1.1       erh #define	LINUX_SYS_flock	143
    393   1.1       erh 
    394  1.74     njoly /* syscall: "__msync13" ret: "int" args: "void *" "size_t" "int" */
    395  1.74     njoly #define	LINUX_SYS___msync13	144
    396   1.1       erh 
    397   1.1       erh /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
    398   1.1       erh #define	LINUX_SYS_readv	145
    399   1.1       erh 
    400   1.1       erh /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
    401   1.1       erh #define	LINUX_SYS_writev	146
    402   1.1       erh 
    403   1.1       erh /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
    404   1.1       erh #define	LINUX_SYS_getsid	147
    405   1.1       erh 
    406   1.1       erh /* syscall: "fdatasync" ret: "int" args: "int" */
    407   1.1       erh #define	LINUX_SYS_fdatasync	148
    408   1.1       erh 
    409   1.1       erh /* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
    410   1.1       erh #define	LINUX_SYS___sysctl	149
    411   1.1       erh 
    412  1.66  christos /* syscall: "mlock" ret: "int" args: "void *" "size_t" */
    413   1.1       erh #define	LINUX_SYS_mlock	150
    414   1.1       erh 
    415  1.66  christos /* syscall: "munlock" ret: "int" args: "void *" "size_t" */
    416   1.1       erh #define	LINUX_SYS_munlock	151
    417  1.21  jdolecek 
    418  1.21  jdolecek /* syscall: "mlockall" ret: "int" args: "int" */
    419  1.21  jdolecek #define	LINUX_SYS_mlockall	152
    420  1.21  jdolecek 
    421  1.21  jdolecek /* syscall: "munlockall" ret: "int" args: */
    422  1.21  jdolecek #define	LINUX_SYS_munlockall	153
    423  1.12      tron 
    424  1.12      tron /* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
    425  1.12      tron #define	LINUX_SYS_sched_setparam	154
    426  1.12      tron 
    427  1.12      tron /* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
    428  1.12      tron #define	LINUX_SYS_sched_getparam	155
    429  1.12      tron 
    430  1.12      tron /* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
    431  1.12      tron #define	LINUX_SYS_sched_setscheduler	156
    432  1.12      tron 
    433  1.12      tron /* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
    434  1.12      tron #define	LINUX_SYS_sched_getscheduler	157
    435  1.12      tron 
    436  1.12      tron /* syscall: "sched_yield" ret: "int" args: */
    437  1.12      tron #define	LINUX_SYS_sched_yield	158
    438  1.12      tron 
    439  1.12      tron /* syscall: "sched_get_priority_max" ret: "int" args: "int" */
    440  1.12      tron #define	LINUX_SYS_sched_get_priority_max	159
    441  1.12      tron 
    442  1.12      tron /* syscall: "sched_get_priority_min" ret: "int" args: "int" */
    443  1.12      tron #define	LINUX_SYS_sched_get_priority_min	160
    444   1.1       erh 
    445  1.78     njoly /* syscall: "nanosleep" ret: "int" args: "const struct linux_timespec *" "struct linux_timespec *" */
    446   1.1       erh #define	LINUX_SYS_nanosleep	162
    447   1.1       erh 
    448   1.1       erh /* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
    449   1.1       erh #define	LINUX_SYS_mremap	163
    450   1.8       abs 
    451  1.73     njoly /* syscall: "setresuid16" ret: "int" args: "linux_uid16_t" "linux_uid16_t" "linux_uid16_t" */
    452  1.31      fvdl #define	LINUX_SYS_setresuid16	164
    453  1.10   thorpej 
    454  1.73     njoly /* syscall: "getresuid16" ret: "int" args: "linux_uid16_t *" "linux_uid16_t *" "linux_uid16_t *" */
    455  1.73     njoly #define	LINUX_SYS_getresuid16	165
    456  1.10   thorpej 
    457   1.8       abs /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
    458   1.8       abs #define	LINUX_SYS_poll	168
    459   1.1       erh 
    460  1.73     njoly /* syscall: "setresgid16" ret: "int" args: "linux_gid16_t" "linux_gid16_t" "linux_gid16_t" */
    461  1.31      fvdl #define	LINUX_SYS_setresgid16	170
    462  1.10   thorpej 
    463  1.73     njoly /* syscall: "getresgid16" ret: "int" args: "linux_gid16_t *" "linux_gid16_t *" "linux_gid16_t *" */
    464  1.73     njoly #define	LINUX_SYS_getresgid16	171
    465  1.10   thorpej 
    466  1.48  christos /* syscall: "rt_sigreturn" ret: "int" args: "struct linux_ucontext *" */
    467   1.1       erh #define	LINUX_SYS_rt_sigreturn	173
    468   1.1       erh 
    469   1.1       erh /* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
    470   1.1       erh #define	LINUX_SYS_rt_sigaction	174
    471   1.1       erh 
    472   1.1       erh /* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
    473   1.1       erh #define	LINUX_SYS_rt_sigprocmask	175
    474   1.1       erh 
    475   1.1       erh /* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
    476   1.1       erh #define	LINUX_SYS_rt_sigpending	176
    477   1.1       erh 
    478   1.1       erh /* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "void *" */
    479   1.1       erh #define	LINUX_SYS_rt_queueinfo	178
    480   1.1       erh 
    481   1.1       erh /* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
    482   1.1       erh #define	LINUX_SYS_rt_sigsuspend	179
    483   1.6   thorpej 
    484  1.14      tron /* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
    485   1.6   thorpej #define	LINUX_SYS_pread	180
    486   1.6   thorpej 
    487  1.14      tron /* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
    488   1.6   thorpej #define	LINUX_SYS_pwrite	181
    489   1.1       erh 
    490  1.73     njoly /* syscall: "chown16" ret: "int" args: "const char *" "linux_uid16_t" "linux_gid16_t" */
    491  1.30      fvdl #define	LINUX_SYS_chown16	182
    492   1.7      tron 
    493   1.7      tron /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
    494   1.7      tron #define	LINUX_SYS___getcwd	183
    495  1.20  christos 
    496  1.20  christos /* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */
    497  1.20  christos #define	LINUX_SYS_sigaltstack	186
    498   1.1       erh 
    499  1.10   thorpej /* syscall: "__vfork14" ret: "int" args: */
    500  1.10   thorpej #define	LINUX_SYS___vfork14	190
    501  1.27  jdolecek 
    502  1.41  christos /* syscall: "ugetrlimit" ret: "int" args: "int" "struct orlimit *" */
    503  1.41  christos #define	LINUX_SYS_ugetrlimit	191
    504  1.41  christos 
    505  1.70       dsl #define linux_sys_mmap2_args linux_sys_mmap_args
    506  1.47  christos /* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
    507  1.47  christos #define	LINUX_SYS_mmap2	192
    508  1.41  christos 
    509  1.27  jdolecek /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
    510  1.27  jdolecek #define	LINUX_SYS_truncate64	193
    511  1.27  jdolecek 
    512  1.49  jdolecek /* syscall: "ftruncate64" ret: "int" args: "unsigned int" "off_t" */
    513  1.49  jdolecek #define	LINUX_SYS_ftruncate64	194
    514  1.27  jdolecek 
    515  1.27  jdolecek /* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
    516  1.27  jdolecek #define	LINUX_SYS_stat64	195
    517  1.27  jdolecek 
    518  1.27  jdolecek /* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
    519  1.27  jdolecek #define	LINUX_SYS_lstat64	196
    520  1.27  jdolecek 
    521  1.27  jdolecek /* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
    522  1.27  jdolecek #define	LINUX_SYS_fstat64	197
    523  1.30      fvdl 
    524  1.69     njoly /* syscall: "__posix_lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
    525  1.69     njoly #define	LINUX_SYS___posix_lchown	198
    526  1.30      fvdl 
    527  1.30      fvdl /* syscall: "getuid" ret: "uid_t" args: */
    528  1.30      fvdl #define	LINUX_SYS_getuid	199
    529  1.30      fvdl 
    530  1.30      fvdl /* syscall: "getgid" ret: "gid_t" args: */
    531  1.30      fvdl #define	LINUX_SYS_getgid	200
    532  1.30      fvdl 
    533  1.30      fvdl /* syscall: "geteuid" ret: "uid_t" args: */
    534  1.30      fvdl #define	LINUX_SYS_geteuid	201
    535  1.30      fvdl 
    536  1.30      fvdl /* syscall: "getegid" ret: "gid_t" args: */
    537  1.30      fvdl #define	LINUX_SYS_getegid	202
    538  1.30      fvdl 
    539  1.30      fvdl /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
    540  1.30      fvdl #define	LINUX_SYS_setreuid	203
    541  1.30      fvdl 
    542  1.30      fvdl /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
    543  1.30      fvdl #define	LINUX_SYS_setregid	204
    544  1.30      fvdl 
    545  1.31      fvdl /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
    546  1.31      fvdl #define	LINUX_SYS_getgroups	205
    547  1.31      fvdl 
    548  1.31      fvdl /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
    549  1.31      fvdl #define	LINUX_SYS_setgroups	206
    550  1.31      fvdl 
    551  1.30      fvdl /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
    552  1.30      fvdl #define	LINUX_SYS___posix_fchown	207
    553  1.30      fvdl 
    554  1.31      fvdl /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
    555  1.31      fvdl #define	LINUX_SYS_setresuid	208
    556  1.31      fvdl 
    557  1.31      fvdl /* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
    558  1.31      fvdl #define	LINUX_SYS_getresuid	209
    559  1.31      fvdl 
    560  1.31      fvdl /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
    561  1.31      fvdl #define	LINUX_SYS_setresgid	210
    562  1.31      fvdl 
    563  1.31      fvdl /* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
    564  1.31      fvdl #define	LINUX_SYS_getresgid	211
    565  1.31      fvdl 
    566  1.69     njoly /* syscall: "__posix_chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
    567  1.69     njoly #define	LINUX_SYS___posix_chown	212
    568  1.30      fvdl 
    569  1.30      fvdl /* syscall: "setuid" ret: "int" args: "uid_t" */
    570  1.30      fvdl #define	LINUX_SYS_setuid	213
    571  1.30      fvdl 
    572  1.30      fvdl /* syscall: "setgid" ret: "int" args: "gid_t" */
    573  1.30      fvdl #define	LINUX_SYS_setgid	214
    574  1.31      fvdl 
    575  1.31      fvdl /* syscall: "setfsuid" ret: "int" args: "uid_t" */
    576  1.31      fvdl #define	LINUX_SYS_setfsuid	215
    577  1.31      fvdl 
    578  1.71     njoly /* syscall: "setfsgid" ret: "int" args: "gid_t" */
    579  1.71     njoly #define	LINUX_SYS_setfsgid	216
    580  1.44  christos 
    581  1.50  jdolecek /* syscall: "mincore" ret: "int" args: "void *" "size_t" "char *" */
    582  1.50  jdolecek #define	LINUX_SYS_mincore	218
    583  1.50  jdolecek 
    584  1.50  jdolecek /* syscall: "madvise" ret: "int" args: "void *" "size_t" "int" */
    585  1.50  jdolecek #define	LINUX_SYS_madvise	219
    586  1.50  jdolecek 
    587  1.44  christos /* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
    588  1.44  christos #define	LINUX_SYS_getdents64	220
    589  1.43  christos 
    590  1.43  christos /* syscall: "fcntl64" ret: "int" args: "int" "int" "void *" */
    591  1.43  christos #define	LINUX_SYS_fcntl64	221
    592  1.10   thorpej 
    593  1.68  christos #ifdef LINUX_NPTL
    594  1.68  christos /* syscall: "gettid" ret: "pid_t" args: */
    595  1.68  christos #define	LINUX_SYS_gettid	224
    596  1.68  christos 
    597  1.68  christos #else
    598  1.68  christos #endif
    599  1.56      fvdl /* syscall: "setxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
    600  1.56      fvdl #define	LINUX_SYS_setxattr	226
    601  1.56      fvdl 
    602  1.56      fvdl /* syscall: "lsetxattr" ret: "int" args: "char *" "char *" "void *" "size_t" "int" */
    603  1.56      fvdl #define	LINUX_SYS_lsetxattr	227
    604  1.56      fvdl 
    605  1.56      fvdl /* syscall: "fsetxattr" ret: "int" args: "int" "char *" "void *" "size_t" "int" */
    606  1.56      fvdl #define	LINUX_SYS_fsetxattr	228
    607  1.56      fvdl 
    608  1.56      fvdl /* syscall: "getxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
    609  1.56      fvdl #define	LINUX_SYS_getxattr	229
    610  1.56      fvdl 
    611  1.56      fvdl /* syscall: "lgetxattr" ret: "ssize_t" args: "char *" "char *" "void *" "size_t" */
    612  1.56      fvdl #define	LINUX_SYS_lgetxattr	230
    613  1.56      fvdl 
    614  1.56      fvdl /* syscall: "fgetxattr" ret: "ssize_t" args: "int" "char *" "void *" "size_t" */
    615  1.56      fvdl #define	LINUX_SYS_fgetxattr	231
    616  1.56      fvdl 
    617  1.56      fvdl /* syscall: "listxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
    618  1.56      fvdl #define	LINUX_SYS_listxattr	232
    619  1.56      fvdl 
    620  1.56      fvdl /* syscall: "llistxattr" ret: "ssize_t" args: "char *" "char *" "size_t" */
    621  1.56      fvdl #define	LINUX_SYS_llistxattr	233
    622  1.56      fvdl 
    623  1.56      fvdl /* syscall: "flistxattr" ret: "ssize_t" args: "int" "char *" "size_t" */
    624  1.56      fvdl #define	LINUX_SYS_flistxattr	234
    625  1.56      fvdl 
    626  1.56      fvdl /* syscall: "removexattr" ret: "int" args: "char *" "char *" */
    627  1.56      fvdl #define	LINUX_SYS_removexattr	235
    628  1.56      fvdl 
    629  1.56      fvdl /* syscall: "lremovexattr" ret: "int" args: "char *" "char *" */
    630  1.56      fvdl #define	LINUX_SYS_lremovexattr	236
    631  1.56      fvdl 
    632  1.56      fvdl /* syscall: "fremovexattr" ret: "int" args: "int" "char *" */
    633  1.56      fvdl #define	LINUX_SYS_fremovexattr	237
    634  1.56      fvdl 
    635  1.68  christos #ifdef LINUX_NPTL
    636  1.68  christos /* syscall: "tkill" ret: "int" args: "int" "int" */
    637  1.68  christos #define	LINUX_SYS_tkill	238
    638  1.68  christos 
    639  1.68  christos #else
    640  1.68  christos #endif
    641  1.79     njoly /* syscall: "futex" ret: "int" args: "int *" "int" "int" "const struct linux_timespec *" "int *" "int" */
    642  1.67  christos #define	LINUX_SYS_futex	240
    643  1.67  christos 
    644  1.68  christos #ifdef LINUX_NPTL
    645  1.68  christos /* syscall: "sched_setaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */
    646  1.68  christos #define	LINUX_SYS_sched_setaffinity	241
    647  1.68  christos 
    648  1.68  christos /* syscall: "sched_getaffinity" ret: "int" args: "pid_t" "unsigned int" "unsigned long *" */
    649  1.68  christos #define	LINUX_SYS_sched_getaffinity	242
    650  1.68  christos 
    651  1.68  christos #else
    652  1.68  christos #endif
    653  1.76  christos #ifdef LINUX_NPTL
    654  1.76  christos /* syscall: "set_thread_area" ret: "int" args: "struct linux_user_desc *" */
    655  1.76  christos #define	LINUX_SYS_set_thread_area	243
    656  1.76  christos 
    657  1.76  christos /* syscall: "get_thread_area" ret: "int" args: "struct linux_user_desc *" */
    658  1.76  christos #define	LINUX_SYS_get_thread_area	244
    659  1.76  christos 
    660  1.76  christos #else
    661  1.76  christos #endif
    662  1.53  jdolecek /* syscall: "exit_group" ret: "int" args: "int" */
    663  1.53  jdolecek #define	LINUX_SYS_exit_group	252
    664  1.53  jdolecek 
    665  1.68  christos #ifdef LINUX_NPTL
    666  1.68  christos /* syscall: "set_tid_address" ret: "int" args: "int *" */
    667  1.68  christos #define	LINUX_SYS_set_tid_address	258
    668  1.68  christos 
    669  1.68  christos #else
    670  1.68  christos #endif
    671  1.57      fvdl /* syscall: "clock_settime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
    672  1.57      fvdl #define	LINUX_SYS_clock_settime	264
    673  1.57      fvdl 
    674  1.57      fvdl /* syscall: "clock_gettime" ret: "int" args: "clockid_t" "struct linux_timespec *" */
    675  1.57      fvdl #define	LINUX_SYS_clock_gettime	265
    676  1.57      fvdl 
    677  1.57      fvdl /* syscall: "clock_getres" ret: "int" args: "clockid_t" "struct linux_timespec *" */
    678  1.57      fvdl #define	LINUX_SYS_clock_getres	266
    679  1.57      fvdl 
    680  1.57      fvdl /* syscall: "clock_nanosleep" ret: "int" args: "clockid_t" "int" "struct linux_timespec *" "struct linux_timespec *" */
    681  1.57      fvdl #define	LINUX_SYS_clock_nanosleep	267
    682  1.57      fvdl 
    683  1.54  jdolecek /* syscall: "statfs64" ret: "int" args: "const char *" "size_t" "struct linux_statfs64 *" */
    684  1.54  jdolecek #define	LINUX_SYS_statfs64	268
    685  1.54  jdolecek 
    686  1.54  jdolecek /* syscall: "fstatfs64" ret: "int" args: "int" "size_t" "struct linux_statfs64 *" */
    687  1.54  jdolecek #define	LINUX_SYS_fstatfs64	269
    688  1.54  jdolecek 
    689  1.68  christos #ifdef LINUX_NPTL
    690  1.68  christos /* syscall: "tgkill" ret: "int" args: "int" "int" "int" */
    691  1.68  christos #define	LINUX_SYS_tgkill	270
    692  1.68  christos 
    693  1.68  christos #else
    694  1.68  christos #endif
    695  1.77  christos 				/* 285 is obsolete / * XXXJDM really? * / */
    696  1.77  christos /* syscall: "set_robust_list" ret: "int" args: "struct linux_robust_list_head *" "size_t" */
    697  1.77  christos #define	LINUX_SYS_set_robust_list	311
    698  1.77  christos 
    699  1.77  christos /* syscall: "get_robust_list" ret: "int" args: "int" "struct linux_robust_list_head **" "size_t *" */
    700  1.77  christos #define	LINUX_SYS_get_robust_list	312
    701  1.77  christos 
    702  1.77  christos #define	LINUX_SYS_MAXSYSCALL	317
    703  1.52  jdolecek #define	LINUX_SYS_NSYSENT	512
    704  1.63  christos #endif /* _LINUX_SYS_SYSCALL_H_ */
    705