Home | History | Annotate | Line # | Download | only in i386
linux_syscall.h revision 1.48
      1  1.19       cgd /* $NetBSD: linux_syscall.h,v 1.48 2003/07/03 21:25:07 christos 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.48  christos  * created from	NetBSD: syscalls.master,v 1.66 2003/07/03 21:24:28 christos Exp
      8   1.1       erh  */
      9   1.1       erh 
     10   1.1       erh /* syscall: "syscall" ret: "int" args: */
     11   1.1       erh #define	LINUX_SYS_syscall	0
     12   1.1       erh 
     13   1.1       erh /* syscall: "exit" ret: "int" args: "int" */
     14   1.1       erh #define	LINUX_SYS_exit	1
     15   1.1       erh 
     16   1.1       erh /* syscall: "fork" ret: "int" args: */
     17   1.1       erh #define	LINUX_SYS_fork	2
     18   1.1       erh 
     19   1.1       erh /* syscall: "read" ret: "int" args: "int" "char *" "u_int" */
     20   1.1       erh #define	LINUX_SYS_read	3
     21   1.1       erh 
     22   1.1       erh /* syscall: "write" ret: "int" args: "int" "char *" "u_int" */
     23   1.1       erh #define	LINUX_SYS_write	4
     24   1.1       erh 
     25   1.5  christos /* syscall: "open" ret: "int" args: "const char *" "int" "int" */
     26   1.1       erh #define	LINUX_SYS_open	5
     27   1.1       erh 
     28   1.1       erh /* syscall: "close" ret: "int" args: "int" */
     29   1.1       erh #define	LINUX_SYS_close	6
     30   1.1       erh 
     31   1.1       erh /* syscall: "waitpid" ret: "int" args: "int" "int *" "int" */
     32   1.1       erh #define	LINUX_SYS_waitpid	7
     33   1.1       erh 
     34   1.5  christos /* syscall: "creat" ret: "int" args: "const char *" "int" */
     35   1.1       erh #define	LINUX_SYS_creat	8
     36   1.1       erh 
     37   1.5  christos /* syscall: "link" ret: "int" args: "const char *" "const char *" */
     38   1.1       erh #define	LINUX_SYS_link	9
     39   1.1       erh 
     40   1.5  christos /* syscall: "unlink" ret: "int" args: "const char *" */
     41   1.1       erh #define	LINUX_SYS_unlink	10
     42   1.1       erh 
     43   1.5  christos /* syscall: "execve" ret: "int" args: "const char *" "char **" "char **" */
     44   1.1       erh #define	LINUX_SYS_execve	11
     45   1.1       erh 
     46   1.5  christos /* syscall: "chdir" ret: "int" args: "const char *" */
     47   1.1       erh #define	LINUX_SYS_chdir	12
     48   1.1       erh 
     49   1.1       erh /* syscall: "time" ret: "int" args: "linux_time_t *" */
     50   1.1       erh #define	LINUX_SYS_time	13
     51   1.1       erh 
     52   1.5  christos /* syscall: "mknod" ret: "int" args: "const char *" "int" "int" */
     53   1.1       erh #define	LINUX_SYS_mknod	14
     54   1.1       erh 
     55   1.5  christos /* syscall: "chmod" ret: "int" args: "const char *" "int" */
     56   1.1       erh #define	LINUX_SYS_chmod	15
     57   1.1       erh 
     58  1.30      fvdl /* syscall: "lchown16" ret: "int" args: "const char *" "int" "int" */
     59  1.30      fvdl #define	LINUX_SYS_lchown16	16
     60   1.1       erh 
     61   1.1       erh /* syscall: "break" ret: "int" args: "char *" */
     62   1.1       erh #define	LINUX_SYS_break	17
     63   1.1       erh 
     64   1.1       erh 				/* 18 is obsolete ostat */
     65   1.1       erh /* syscall: "lseek" ret: "long" args: "int" "long" "int" */
     66   1.1       erh #define	LINUX_SYS_lseek	19
     67   1.1       erh 
     68   1.1       erh /* syscall: "getpid" ret: "pid_t" args: */
     69   1.1       erh #define	LINUX_SYS_getpid	20
     70   1.1       erh 
     71  1.31      fvdl /* syscall: "linux_setuid16" ret: "int" args: "uid_t" */
     72  1.31      fvdl #define	LINUX_SYS_linux_setuid16	23
     73   1.1       erh 
     74  1.31      fvdl /* syscall: "linux_getuid16" ret: "uid_t" args: */
     75  1.31      fvdl #define	LINUX_SYS_linux_getuid16	24
     76  1.11      tron 
     77  1.11      tron /* syscall: "stime" ret: "int" args: "linux_time_t *" */
     78  1.11      tron #define	LINUX_SYS_stime	25
     79  1.15      tron 
     80  1.15      tron /* syscall: "ptrace" ret: "int" args: "int" "int" "int" "int" */
     81  1.15      tron #define	LINUX_SYS_ptrace	26
     82   1.1       erh 
     83   1.1       erh /* syscall: "alarm" ret: "int" args: "unsigned int" */
     84   1.1       erh #define	LINUX_SYS_alarm	27
     85   1.1       erh 
     86   1.1       erh 				/* 28 is obsolete ofstat */
     87   1.1       erh /* syscall: "pause" ret: "int" args: */
     88   1.1       erh #define	LINUX_SYS_pause	29
     89   1.1       erh 
     90   1.5  christos /* syscall: "utime" ret: "int" args: "const char *" "struct linux_utimbuf *" */
     91   1.1       erh #define	LINUX_SYS_utime	30
     92   1.1       erh 
     93   1.1       erh 				/* 31 is obsolete stty */
     94   1.1       erh 				/* 32 is obsolete gtty */
     95   1.5  christos /* syscall: "access" ret: "int" args: "const char *" "int" */
     96   1.1       erh #define	LINUX_SYS_access	33
     97   1.1       erh 
     98   1.1       erh /* syscall: "nice" ret: "int" args: "int" */
     99   1.1       erh #define	LINUX_SYS_nice	34
    100   1.1       erh 
    101   1.1       erh 				/* 35 is obsolete ftime */
    102   1.1       erh /* syscall: "sync" ret: "int" args: */
    103   1.1       erh #define	LINUX_SYS_sync	36
    104   1.1       erh 
    105   1.1       erh /* syscall: "kill" ret: "int" args: "int" "int" */
    106   1.1       erh #define	LINUX_SYS_kill	37
    107   1.1       erh 
    108   1.5  christos /* syscall: "rename" ret: "int" args: "const char *" "const char *" */
    109   1.1       erh #define	LINUX_SYS_rename	38
    110   1.1       erh 
    111   1.5  christos /* syscall: "mkdir" ret: "int" args: "const char *" "int" */
    112   1.1       erh #define	LINUX_SYS_mkdir	39
    113   1.1       erh 
    114   1.5  christos /* syscall: "rmdir" ret: "int" args: "const char *" */
    115   1.1       erh #define	LINUX_SYS_rmdir	40
    116   1.1       erh 
    117   1.1       erh /* syscall: "dup" ret: "int" args: "u_int" */
    118   1.1       erh #define	LINUX_SYS_dup	41
    119   1.1       erh 
    120   1.1       erh /* syscall: "pipe" ret: "int" args: "int *" */
    121   1.1       erh #define	LINUX_SYS_pipe	42
    122   1.1       erh 
    123   1.1       erh /* syscall: "times" ret: "int" args: "struct times *" */
    124   1.1       erh #define	LINUX_SYS_times	43
    125   1.1       erh 
    126   1.1       erh 				/* 44 is obsolete prof */
    127   1.1       erh /* syscall: "brk" ret: "int" args: "char *" */
    128   1.1       erh #define	LINUX_SYS_brk	45
    129   1.1       erh 
    130  1.31      fvdl /* syscall: "linux_setgid16" ret: "int" args: "gid_t" */
    131  1.31      fvdl #define	LINUX_SYS_linux_setgid16	46
    132   1.1       erh 
    133  1.31      fvdl /* syscall: "linux_getgid16" ret: "gid_t" args: */
    134  1.31      fvdl #define	LINUX_SYS_linux_getgid16	47
    135   1.1       erh 
    136   1.1       erh /* syscall: "signal" ret: "int" args: "int" "linux_handler_t" */
    137   1.1       erh #define	LINUX_SYS_signal	48
    138   1.1       erh 
    139  1.31      fvdl /* syscall: "linux_geteuid16" ret: "uid_t" args: */
    140  1.31      fvdl #define	LINUX_SYS_linux_geteuid16	49
    141   1.1       erh 
    142  1.31      fvdl /* syscall: "linux_getegid16" ret: "gid_t" args: */
    143  1.31      fvdl #define	LINUX_SYS_linux_getegid16	50
    144   1.1       erh 
    145   1.1       erh /* syscall: "acct" ret: "int" args: "char *" */
    146   1.1       erh #define	LINUX_SYS_acct	51
    147   1.1       erh 
    148   1.1       erh 				/* 52 is obsolete phys */
    149   1.1       erh 				/* 53 is obsolete lock */
    150   1.1       erh /* syscall: "ioctl" ret: "int" args: "int" "u_long" "caddr_t" */
    151   1.1       erh #define	LINUX_SYS_ioctl	54
    152   1.1       erh 
    153   1.1       erh /* syscall: "fcntl" ret: "int" args: "int" "int" "void *" */
    154   1.1       erh #define	LINUX_SYS_fcntl	55
    155   1.1       erh 
    156   1.1       erh 				/* 56 is obsolete mpx */
    157   1.1       erh /* syscall: "setpgid" ret: "int" args: "int" "int" */
    158   1.1       erh #define	LINUX_SYS_setpgid	57
    159   1.1       erh 
    160   1.1       erh 				/* 58 is obsolete ulimit */
    161   1.1       erh /* syscall: "oldolduname" ret: "int" args: "struct linux_oldold_utsname *" */
    162   1.1       erh #define	LINUX_SYS_oldolduname	59
    163   1.1       erh 
    164   1.1       erh /* syscall: "umask" ret: "int" args: "int" */
    165   1.1       erh #define	LINUX_SYS_umask	60
    166   1.1       erh 
    167   1.1       erh /* syscall: "chroot" ret: "int" args: "char *" */
    168   1.1       erh #define	LINUX_SYS_chroot	61
    169   1.1       erh 
    170   1.1       erh /* syscall: "dup2" ret: "int" args: "u_int" "u_int" */
    171   1.1       erh #define	LINUX_SYS_dup2	63
    172   1.1       erh 
    173   1.1       erh /* syscall: "getppid" ret: "pid_t" args: */
    174   1.1       erh #define	LINUX_SYS_getppid	64
    175   1.1       erh 
    176   1.1       erh /* syscall: "getpgrp" ret: "int" args: */
    177   1.1       erh #define	LINUX_SYS_getpgrp	65
    178   1.1       erh 
    179   1.1       erh /* syscall: "setsid" ret: "int" args: */
    180   1.1       erh #define	LINUX_SYS_setsid	66
    181   1.1       erh 
    182   1.1       erh /* syscall: "sigaction" ret: "int" args: "int" "const struct linux_old_sigaction *" "struct linux_old_sigaction *" */
    183   1.1       erh #define	LINUX_SYS_sigaction	67
    184   1.1       erh 
    185   1.1       erh /* syscall: "siggetmask" ret: "int" args: */
    186   1.1       erh #define	LINUX_SYS_siggetmask	68
    187   1.1       erh 
    188   1.1       erh /* syscall: "sigsetmask" ret: "int" args: "linux_old_sigset_t" */
    189   1.1       erh #define	LINUX_SYS_sigsetmask	69
    190   1.1       erh 
    191  1.30      fvdl /* syscall: "setreuid16" ret: "int" args: "int" "int" */
    192  1.30      fvdl #define	LINUX_SYS_setreuid16	70
    193   1.1       erh 
    194  1.30      fvdl /* syscall: "setregid16" ret: "int" args: "int" "int" */
    195  1.30      fvdl #define	LINUX_SYS_setregid16	71
    196   1.1       erh 
    197   1.1       erh /* syscall: "sigsuspend" ret: "int" args: "caddr_t" "int" "int" */
    198   1.1       erh #define	LINUX_SYS_sigsuspend	72
    199   1.1       erh 
    200   1.1       erh /* syscall: "sigpending" ret: "int" args: "linux_old_sigset_t *" */
    201   1.1       erh #define	LINUX_SYS_sigpending	73
    202   1.1       erh 
    203   1.1       erh /* syscall: "sethostname" ret: "int" args: "char *" "u_int" */
    204   1.1       erh #define	LINUX_SYS_sethostname	74
    205   1.1       erh 
    206   1.1       erh /* syscall: "setrlimit" ret: "int" args: "u_int" "struct orlimit *" */
    207   1.1       erh #define	LINUX_SYS_setrlimit	75
    208   1.1       erh 
    209   1.1       erh /* syscall: "getrlimit" ret: "int" args: "u_int" "struct orlimit *" */
    210   1.1       erh #define	LINUX_SYS_getrlimit	76
    211   1.1       erh 
    212   1.1       erh /* syscall: "getrusage" ret: "int" args: "int" "struct rusage *" */
    213   1.1       erh #define	LINUX_SYS_getrusage	77
    214   1.1       erh 
    215   1.1       erh /* syscall: "gettimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
    216   1.1       erh #define	LINUX_SYS_gettimeofday	78
    217   1.1       erh 
    218   1.1       erh /* syscall: "settimeofday" ret: "int" args: "struct timeval *" "struct timezone *" */
    219   1.1       erh #define	LINUX_SYS_settimeofday	79
    220   1.1       erh 
    221  1.31      fvdl /* syscall: "getgroups16" ret: "int" args: "int" "linux_gid_t *" */
    222  1.31      fvdl #define	LINUX_SYS_getgroups16	80
    223   1.1       erh 
    224  1.31      fvdl /* syscall: "setgroups16" ret: "int" args: "int" "linux_gid_t *" */
    225  1.31      fvdl #define	LINUX_SYS_setgroups16	81
    226   1.1       erh 
    227   1.1       erh /* syscall: "oldselect" ret: "int" args: "struct linux_oldselect *" */
    228   1.1       erh #define	LINUX_SYS_oldselect	82
    229   1.1       erh 
    230   1.5  christos /* syscall: "symlink" ret: "int" args: "const char *" "const char *" */
    231   1.1       erh #define	LINUX_SYS_symlink	83
    232   1.1       erh 
    233   1.5  christos /* syscall: "oolstat" ret: "int" args: "const char *" "struct stat43 *" */
    234   1.1       erh #define	LINUX_SYS_oolstat	84
    235   1.1       erh 
    236   1.5  christos /* syscall: "readlink" ret: "int" args: "const char *" "char *" "int" */
    237   1.1       erh #define	LINUX_SYS_readlink	85
    238   1.1       erh 
    239   1.5  christos /* syscall: "uselib" ret: "int" args: "const char *" */
    240   1.1       erh #define	LINUX_SYS_uselib	86
    241   1.1       erh 
    242   1.1       erh /* syscall: "swapon" ret: "int" args: "char *" */
    243   1.1       erh #define	LINUX_SYS_swapon	87
    244   1.1       erh 
    245  1.17       erh /* syscall: "reboot" ret: "int" args: "int" "int" "int" "void *" */
    246   1.1       erh #define	LINUX_SYS_reboot	88
    247   1.1       erh 
    248   1.1       erh /* syscall: "readdir" ret: "int" args: "int" "caddr_t" "unsigned int" */
    249   1.1       erh #define	LINUX_SYS_readdir	89
    250   1.1       erh 
    251   1.1       erh /* syscall: "old_mmap" ret: "int" args: "struct linux_oldmmap *" */
    252   1.1       erh #define	LINUX_SYS_old_mmap	90
    253   1.1       erh 
    254   1.1       erh /* syscall: "munmap" ret: "int" args: "caddr_t" "int" */
    255   1.1       erh #define	LINUX_SYS_munmap	91
    256   1.1       erh 
    257   1.5  christos /* syscall: "truncate" ret: "int" args: "const char *" "long" */
    258   1.1       erh #define	LINUX_SYS_truncate	92
    259   1.1       erh 
    260   1.1       erh /* syscall: "ftruncate" ret: "int" args: "int" "long" */
    261   1.1       erh #define	LINUX_SYS_ftruncate	93
    262   1.1       erh 
    263   1.1       erh /* syscall: "fchmod" ret: "int" args: "int" "int" */
    264   1.1       erh #define	LINUX_SYS_fchmod	94
    265   1.1       erh 
    266  1.30      fvdl /* syscall: "fchown16" ret: "int" args: "int" "int" "int" */
    267  1.30      fvdl #define	LINUX_SYS_fchown16	95
    268   1.1       erh 
    269   1.1       erh /* syscall: "getpriority" ret: "int" args: "int" "int" */
    270   1.1       erh #define	LINUX_SYS_getpriority	96
    271   1.1       erh 
    272   1.1       erh /* syscall: "setpriority" ret: "int" args: "int" "int" "int" */
    273   1.1       erh #define	LINUX_SYS_setpriority	97
    274   1.1       erh 
    275   1.1       erh /* syscall: "profil" ret: "int" args: "caddr_t" "u_int" "u_int" "u_int" */
    276   1.1       erh #define	LINUX_SYS_profil	98
    277   1.1       erh 
    278   1.5  christos /* syscall: "statfs" ret: "int" args: "const char *" "struct linux_statfs *" */
    279   1.1       erh #define	LINUX_SYS_statfs	99
    280   1.1       erh 
    281   1.1       erh /* syscall: "fstatfs" ret: "int" args: "int" "struct linux_statfs *" */
    282   1.1       erh #define	LINUX_SYS_fstatfs	100
    283   1.1       erh 
    284   1.1       erh /* syscall: "ioperm" ret: "int" args: "unsigned int" "unsigned int" "int" */
    285   1.1       erh #define	LINUX_SYS_ioperm	101
    286   1.1       erh 
    287   1.1       erh /* syscall: "socketcall" ret: "int" args: "int" "void *" */
    288   1.1       erh #define	LINUX_SYS_socketcall	102
    289   1.1       erh 
    290   1.1       erh /* syscall: "setitimer" ret: "int" args: "u_int" "struct itimerval *" "struct itimerval *" */
    291   1.1       erh #define	LINUX_SYS_setitimer	104
    292   1.1       erh 
    293   1.1       erh /* syscall: "getitimer" ret: "int" args: "u_int" "struct itimerval *" */
    294   1.1       erh #define	LINUX_SYS_getitimer	105
    295   1.1       erh 
    296   1.5  christos /* syscall: "stat" ret: "int" args: "const char *" "struct linux_stat *" */
    297   1.1       erh #define	LINUX_SYS_stat	106
    298   1.1       erh 
    299   1.5  christos /* syscall: "lstat" ret: "int" args: "const char *" "struct linux_stat *" */
    300   1.1       erh #define	LINUX_SYS_lstat	107
    301   1.1       erh 
    302   1.1       erh /* syscall: "fstat" ret: "int" args: "int" "struct linux_stat *" */
    303   1.1       erh #define	LINUX_SYS_fstat	108
    304   1.1       erh 
    305   1.1       erh /* syscall: "olduname" ret: "int" args: "struct linux_old_utsname *" */
    306   1.1       erh #define	LINUX_SYS_olduname	109
    307   1.1       erh 
    308   1.1       erh /* syscall: "iopl" ret: "int" args: "int" */
    309   1.1       erh #define	LINUX_SYS_iopl	110
    310   1.1       erh 
    311   1.1       erh /* syscall: "wait4" ret: "int" args: "int" "int *" "int" "struct rusage *" */
    312   1.1       erh #define	LINUX_SYS_wait4	114
    313  1.23  jdolecek 
    314  1.23  jdolecek /* syscall: "swapoff" ret: "int" args: "const char *" */
    315  1.23  jdolecek #define	LINUX_SYS_swapoff	115
    316  1.29  augustss 
    317  1.29  augustss /* syscall: "sysinfo" ret: "int" args: "struct linux_sysinfo *" */
    318  1.29  augustss #define	LINUX_SYS_sysinfo	116
    319   1.1       erh 
    320   1.1       erh /* syscall: "ipc" ret: "int" args: "int" "int" "int" "int" "caddr_t" */
    321   1.1       erh #define	LINUX_SYS_ipc	117
    322   1.1       erh 
    323   1.1       erh /* syscall: "fsync" ret: "int" args: "int" */
    324   1.1       erh #define	LINUX_SYS_fsync	118
    325   1.1       erh 
    326   1.1       erh /* syscall: "sigreturn" ret: "int" args: "struct linux_sigcontext *" */
    327   1.1       erh #define	LINUX_SYS_sigreturn	119
    328   1.9   thorpej 
    329   1.9   thorpej /* syscall: "clone" ret: "int" args: "int" "void *" */
    330   1.9   thorpej #define	LINUX_SYS_clone	120
    331   1.1       erh 
    332   1.1       erh /* syscall: "setdomainname" ret: "int" args: "char *" "int" */
    333   1.1       erh #define	LINUX_SYS_setdomainname	121
    334   1.1       erh 
    335   1.1       erh /* syscall: "uname" ret: "int" args: "struct linux_utsname *" */
    336   1.1       erh #define	LINUX_SYS_uname	122
    337   1.1       erh 
    338   1.1       erh /* syscall: "modify_ldt" ret: "int" args: "int" "void *" "size_t" */
    339   1.1       erh #define	LINUX_SYS_modify_ldt	123
    340   1.1       erh 
    341  1.43  christos /* syscall: "mprotect" ret: "int" args: "const void *" "unsigned long" "int" */
    342   1.1       erh #define	LINUX_SYS_mprotect	125
    343   1.1       erh 
    344   1.1       erh /* syscall: "sigprocmask" ret: "int" args: "int" "const linux_old_sigset_t *" "linux_old_sigset_t *" */
    345   1.1       erh #define	LINUX_SYS_sigprocmask	126
    346   1.1       erh 
    347   1.1       erh /* syscall: "getpgid" ret: "int" args: "int" */
    348   1.1       erh #define	LINUX_SYS_getpgid	132
    349   1.1       erh 
    350   1.1       erh /* syscall: "fchdir" ret: "int" args: "int" */
    351   1.1       erh #define	LINUX_SYS_fchdir	133
    352   1.1       erh 
    353   1.1       erh /* syscall: "personality" ret: "int" args: "int" */
    354   1.1       erh #define	LINUX_SYS_personality	136
    355   1.1       erh 
    356  1.31      fvdl /* syscall: "linux_setfsuid16" ret: "int" args: "uid_t" */
    357  1.31      fvdl #define	LINUX_SYS_linux_setfsuid16	138
    358  1.16       abs 
    359  1.31      fvdl /* syscall: "linux_getfsuid16" ret: "int" args: */
    360  1.31      fvdl #define	LINUX_SYS_linux_getfsuid16	139
    361  1.16       abs 
    362   1.1       erh /* syscall: "llseek" ret: "int" args: "int" "u_int32_t" "u_int32_t" "caddr_t" "int" */
    363   1.1       erh #define	LINUX_SYS_llseek	140
    364   1.1       erh 
    365   1.1       erh /* syscall: "getdents" ret: "int" args: "int" "struct linux_dirent *" "unsigned int" */
    366   1.1       erh #define	LINUX_SYS_getdents	141
    367   1.1       erh 
    368   1.1       erh /* syscall: "select" ret: "int" args: "int" "fd_set *" "fd_set *" "fd_set *" "struct timeval *" */
    369   1.1       erh #define	LINUX_SYS_select	142
    370   1.1       erh 
    371   1.1       erh /* syscall: "flock" ret: "int" args: "int" "int" */
    372   1.1       erh #define	LINUX_SYS_flock	143
    373   1.1       erh 
    374   1.1       erh /* syscall: "msync" ret: "int" args: "caddr_t" "int" "int" */
    375   1.1       erh #define	LINUX_SYS_msync	144
    376   1.1       erh 
    377   1.1       erh /* syscall: "readv" ret: "int" args: "int" "struct iovec *" "u_int" */
    378   1.1       erh #define	LINUX_SYS_readv	145
    379   1.1       erh 
    380   1.1       erh /* syscall: "writev" ret: "int" args: "int" "struct iovec *" "u_int" */
    381   1.1       erh #define	LINUX_SYS_writev	146
    382   1.1       erh 
    383   1.1       erh /* syscall: "getsid" ret: "pid_t" args: "pid_t" */
    384   1.1       erh #define	LINUX_SYS_getsid	147
    385   1.1       erh 
    386   1.1       erh /* syscall: "fdatasync" ret: "int" args: "int" */
    387   1.1       erh #define	LINUX_SYS_fdatasync	148
    388   1.1       erh 
    389   1.1       erh /* syscall: "__sysctl" ret: "int" args: "struct linux___sysctl *" */
    390   1.1       erh #define	LINUX_SYS___sysctl	149
    391   1.1       erh 
    392   1.1       erh /* syscall: "mlock" ret: "int" args: "caddr_t" "size_t" */
    393   1.1       erh #define	LINUX_SYS_mlock	150
    394   1.1       erh 
    395   1.1       erh /* syscall: "munlock" ret: "int" args: "caddr_t" "size_t" */
    396   1.1       erh #define	LINUX_SYS_munlock	151
    397  1.21  jdolecek 
    398  1.21  jdolecek /* syscall: "mlockall" ret: "int" args: "int" */
    399  1.21  jdolecek #define	LINUX_SYS_mlockall	152
    400  1.21  jdolecek 
    401  1.21  jdolecek /* syscall: "munlockall" ret: "int" args: */
    402  1.21  jdolecek #define	LINUX_SYS_munlockall	153
    403  1.12      tron 
    404  1.12      tron /* syscall: "sched_setparam" ret: "int" args: "pid_t" "const struct linux_sched_param *" */
    405  1.12      tron #define	LINUX_SYS_sched_setparam	154
    406  1.12      tron 
    407  1.12      tron /* syscall: "sched_getparam" ret: "int" args: "pid_t" "struct linux_sched_param *" */
    408  1.12      tron #define	LINUX_SYS_sched_getparam	155
    409  1.12      tron 
    410  1.12      tron /* syscall: "sched_setscheduler" ret: "int" args: "pid_t" "int" "const struct linux_sched_param *" */
    411  1.12      tron #define	LINUX_SYS_sched_setscheduler	156
    412  1.12      tron 
    413  1.12      tron /* syscall: "sched_getscheduler" ret: "int" args: "pid_t" */
    414  1.12      tron #define	LINUX_SYS_sched_getscheduler	157
    415  1.12      tron 
    416  1.12      tron /* syscall: "sched_yield" ret: "int" args: */
    417  1.12      tron #define	LINUX_SYS_sched_yield	158
    418  1.12      tron 
    419  1.12      tron /* syscall: "sched_get_priority_max" ret: "int" args: "int" */
    420  1.12      tron #define	LINUX_SYS_sched_get_priority_max	159
    421  1.12      tron 
    422  1.12      tron /* syscall: "sched_get_priority_min" ret: "int" args: "int" */
    423  1.12      tron #define	LINUX_SYS_sched_get_priority_min	160
    424   1.1       erh 
    425   1.1       erh /* syscall: "nanosleep" ret: "int" args: "const struct timespec *" "struct timespec *" */
    426   1.1       erh #define	LINUX_SYS_nanosleep	162
    427   1.1       erh 
    428   1.1       erh /* syscall: "mremap" ret: "void *" args: "void *" "size_t" "size_t" "u_long" */
    429   1.1       erh #define	LINUX_SYS_mremap	163
    430   1.8       abs 
    431  1.31      fvdl /* syscall: "setresuid16" ret: "int" args: "uid_t" "uid_t" "uid_t" */
    432  1.31      fvdl #define	LINUX_SYS_setresuid16	164
    433  1.10   thorpej 
    434  1.31      fvdl /* syscall: "linux_getresuid16" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
    435  1.31      fvdl #define	LINUX_SYS_linux_getresuid16	165
    436  1.10   thorpej 
    437   1.8       abs /* syscall: "poll" ret: "int" args: "struct pollfd *" "u_int" "int" */
    438   1.8       abs #define	LINUX_SYS_poll	168
    439   1.1       erh 
    440  1.31      fvdl /* syscall: "setresgid16" ret: "int" args: "gid_t" "gid_t" "gid_t" */
    441  1.31      fvdl #define	LINUX_SYS_setresgid16	170
    442  1.10   thorpej 
    443  1.31      fvdl /* syscall: "linux_getresgid16" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
    444  1.31      fvdl #define	LINUX_SYS_linux_getresgid16	171
    445  1.10   thorpej 
    446  1.48  christos /* syscall: "rt_sigreturn" ret: "int" args: "struct linux_ucontext *" */
    447   1.1       erh #define	LINUX_SYS_rt_sigreturn	173
    448   1.1       erh 
    449   1.1       erh /* syscall: "rt_sigaction" ret: "int" args: "int" "const struct linux_sigaction *" "struct linux_sigaction *" "size_t" */
    450   1.1       erh #define	LINUX_SYS_rt_sigaction	174
    451   1.1       erh 
    452   1.1       erh /* syscall: "rt_sigprocmask" ret: "int" args: "int" "const linux_sigset_t *" "linux_sigset_t *" "size_t" */
    453   1.1       erh #define	LINUX_SYS_rt_sigprocmask	175
    454   1.1       erh 
    455   1.1       erh /* syscall: "rt_sigpending" ret: "int" args: "linux_sigset_t *" "size_t" */
    456   1.1       erh #define	LINUX_SYS_rt_sigpending	176
    457   1.1       erh 
    458   1.1       erh /* syscall: "rt_queueinfo" ret: "int" args: "int" "int" "void *" */
    459   1.1       erh #define	LINUX_SYS_rt_queueinfo	178
    460   1.1       erh 
    461   1.1       erh /* syscall: "rt_sigsuspend" ret: "int" args: "linux_sigset_t *" "size_t" */
    462   1.1       erh #define	LINUX_SYS_rt_sigsuspend	179
    463   1.6   thorpej 
    464  1.14      tron /* syscall: "pread" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
    465   1.6   thorpej #define	LINUX_SYS_pread	180
    466   1.6   thorpej 
    467  1.14      tron /* syscall: "pwrite" ret: "int" args: "int" "char *" "size_t" "linux_off_t" */
    468   1.6   thorpej #define	LINUX_SYS_pwrite	181
    469   1.1       erh 
    470  1.30      fvdl /* syscall: "chown16" ret: "int" args: "const char *" "int" "int" */
    471  1.30      fvdl #define	LINUX_SYS_chown16	182
    472   1.7      tron 
    473   1.7      tron /* syscall: "__getcwd" ret: "int" args: "char *" "size_t" */
    474   1.7      tron #define	LINUX_SYS___getcwd	183
    475  1.20  christos 
    476  1.20  christos /* syscall: "sigaltstack" ret: "int" args: "const struct linux_sigaltstack *" "struct linux_sigaltstack *" */
    477  1.20  christos #define	LINUX_SYS_sigaltstack	186
    478   1.1       erh 
    479  1.10   thorpej /* syscall: "__vfork14" ret: "int" args: */
    480  1.10   thorpej #define	LINUX_SYS___vfork14	190
    481  1.27  jdolecek 
    482  1.41  christos /* syscall: "ugetrlimit" ret: "int" args: "int" "struct orlimit *" */
    483  1.41  christos #define	LINUX_SYS_ugetrlimit	191
    484  1.41  christos 
    485  1.47  christos /* syscall: "mmap2" ret: "linux_off_t" args: "unsigned long" "size_t" "int" "int" "int" "linux_off_t" */
    486  1.47  christos #define	LINUX_SYS_mmap2	192
    487  1.41  christos 
    488  1.27  jdolecek /* syscall: "truncate64" ret: "int" args: "const char *" "off_t" */
    489  1.27  jdolecek #define	LINUX_SYS_truncate64	193
    490  1.27  jdolecek 
    491  1.31      fvdl /* syscall: "linux_ftruncate64" ret: "int" args: "int" "off_t" */
    492  1.31      fvdl #define	LINUX_SYS_linux_ftruncate64	194
    493  1.27  jdolecek 
    494  1.27  jdolecek /* syscall: "stat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
    495  1.27  jdolecek #define	LINUX_SYS_stat64	195
    496  1.27  jdolecek 
    497  1.27  jdolecek /* syscall: "lstat64" ret: "int" args: "const char *" "struct linux_stat64 *" */
    498  1.27  jdolecek #define	LINUX_SYS_lstat64	196
    499  1.27  jdolecek 
    500  1.27  jdolecek /* syscall: "fstat64" ret: "int" args: "int" "struct linux_stat64 *" */
    501  1.27  jdolecek #define	LINUX_SYS_fstat64	197
    502  1.30      fvdl 
    503  1.31      fvdl /* syscall: "lchown" ret: "int" args: "const char *" "uid_t" "gid_t" */
    504  1.31      fvdl #define	LINUX_SYS_lchown	198
    505  1.30      fvdl 
    506  1.30      fvdl /* syscall: "getuid" ret: "uid_t" args: */
    507  1.30      fvdl #define	LINUX_SYS_getuid	199
    508  1.30      fvdl 
    509  1.30      fvdl /* syscall: "getgid" ret: "gid_t" args: */
    510  1.30      fvdl #define	LINUX_SYS_getgid	200
    511  1.30      fvdl 
    512  1.30      fvdl /* syscall: "geteuid" ret: "uid_t" args: */
    513  1.30      fvdl #define	LINUX_SYS_geteuid	201
    514  1.30      fvdl 
    515  1.30      fvdl /* syscall: "getegid" ret: "gid_t" args: */
    516  1.30      fvdl #define	LINUX_SYS_getegid	202
    517  1.30      fvdl 
    518  1.30      fvdl /* syscall: "setreuid" ret: "int" args: "uid_t" "uid_t" */
    519  1.30      fvdl #define	LINUX_SYS_setreuid	203
    520  1.30      fvdl 
    521  1.30      fvdl /* syscall: "setregid" ret: "int" args: "gid_t" "gid_t" */
    522  1.30      fvdl #define	LINUX_SYS_setregid	204
    523  1.30      fvdl 
    524  1.31      fvdl /* syscall: "getgroups" ret: "int" args: "u_int" "gid_t *" */
    525  1.31      fvdl #define	LINUX_SYS_getgroups	205
    526  1.31      fvdl 
    527  1.31      fvdl /* syscall: "setgroups" ret: "int" args: "u_int" "gid_t *" */
    528  1.31      fvdl #define	LINUX_SYS_setgroups	206
    529  1.31      fvdl 
    530  1.30      fvdl /* syscall: "__posix_fchown" ret: "int" args: "int" "uid_t" "gid_t" */
    531  1.30      fvdl #define	LINUX_SYS___posix_fchown	207
    532  1.30      fvdl 
    533  1.31      fvdl /* syscall: "setresuid" ret: "int" args: "uid_t" "uid_t" "uid_t" */
    534  1.31      fvdl #define	LINUX_SYS_setresuid	208
    535  1.31      fvdl 
    536  1.31      fvdl /* syscall: "getresuid" ret: "int" args: "uid_t *" "uid_t *" "uid_t *" */
    537  1.31      fvdl #define	LINUX_SYS_getresuid	209
    538  1.31      fvdl 
    539  1.31      fvdl /* syscall: "setresgid" ret: "int" args: "gid_t" "gid_t" "gid_t" */
    540  1.31      fvdl #define	LINUX_SYS_setresgid	210
    541  1.31      fvdl 
    542  1.31      fvdl /* syscall: "getresgid" ret: "int" args: "gid_t *" "gid_t *" "gid_t *" */
    543  1.31      fvdl #define	LINUX_SYS_getresgid	211
    544  1.31      fvdl 
    545  1.31      fvdl /* syscall: "chown" ret: "int" args: "const char *" "uid_t" "gid_t" */
    546  1.31      fvdl #define	LINUX_SYS_chown	212
    547  1.30      fvdl 
    548  1.30      fvdl /* syscall: "setuid" ret: "int" args: "uid_t" */
    549  1.30      fvdl #define	LINUX_SYS_setuid	213
    550  1.30      fvdl 
    551  1.30      fvdl /* syscall: "setgid" ret: "int" args: "gid_t" */
    552  1.30      fvdl #define	LINUX_SYS_setgid	214
    553  1.31      fvdl 
    554  1.31      fvdl /* syscall: "setfsuid" ret: "int" args: "uid_t" */
    555  1.31      fvdl #define	LINUX_SYS_setfsuid	215
    556  1.31      fvdl 
    557  1.31      fvdl /* syscall: "getfsuid" ret: "int" args: */
    558  1.31      fvdl #define	LINUX_SYS_getfsuid	216
    559  1.44  christos 
    560  1.44  christos /* syscall: "getdents64" ret: "int" args: "int" "struct linux_dirent64 *" "unsigned int" */
    561  1.44  christos #define	LINUX_SYS_getdents64	220
    562  1.43  christos 
    563  1.43  christos /* syscall: "fcntl64" ret: "int" args: "int" "int" "void *" */
    564  1.43  christos #define	LINUX_SYS_fcntl64	221
    565  1.10   thorpej 
    566  1.36  jdolecek #define	LINUX_SYS_MAXSYSCALL	222
    567  1.26   mycroft #define	LINUX_SYS_NSYSENT	256
    568