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