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