blob: fe26e36d0f5131aa4f2a8623a6ed45d5b92faaad [file] [log] [blame]
Linus Torvalds1da177e2005-04-16 15:20:36 -07001#ifndef _ASM_X86_64_UNISTD_H_
2#define _ASM_X86_64_UNISTD_H_
3
4#ifndef __SYSCALL
Joe Perchesc489f442008-03-23 01:03:52 -07005#define __SYSCALL(a, b)
Linus Torvalds1da177e2005-04-16 15:20:36 -07006#endif
7
8/*
9 * This file contains the system call numbers.
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020010 *
Linus Torvalds1da177e2005-04-16 15:20:36 -070011 * Note: holes are not allowed.
12 */
13
14/* at least 8 syscall per cacheline */
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020015#define __NR_read 0
Linus Torvalds1da177e2005-04-16 15:20:36 -070016__SYSCALL(__NR_read, sys_read)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020017#define __NR_write 1
Linus Torvalds1da177e2005-04-16 15:20:36 -070018__SYSCALL(__NR_write, sys_write)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020019#define __NR_open 2
Linus Torvalds1da177e2005-04-16 15:20:36 -070020__SYSCALL(__NR_open, sys_open)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020021#define __NR_close 3
Linus Torvalds1da177e2005-04-16 15:20:36 -070022__SYSCALL(__NR_close, sys_close)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020023#define __NR_stat 4
Linus Torvalds1da177e2005-04-16 15:20:36 -070024__SYSCALL(__NR_stat, sys_newstat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020025#define __NR_fstat 5
Linus Torvalds1da177e2005-04-16 15:20:36 -070026__SYSCALL(__NR_fstat, sys_newfstat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020027#define __NR_lstat 6
Linus Torvalds1da177e2005-04-16 15:20:36 -070028__SYSCALL(__NR_lstat, sys_newlstat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020029#define __NR_poll 7
Linus Torvalds1da177e2005-04-16 15:20:36 -070030__SYSCALL(__NR_poll, sys_poll)
31
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020032#define __NR_lseek 8
Linus Torvalds1da177e2005-04-16 15:20:36 -070033__SYSCALL(__NR_lseek, sys_lseek)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020034#define __NR_mmap 9
Linus Torvalds1da177e2005-04-16 15:20:36 -070035__SYSCALL(__NR_mmap, sys_mmap)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020036#define __NR_mprotect 10
Linus Torvalds1da177e2005-04-16 15:20:36 -070037__SYSCALL(__NR_mprotect, sys_mprotect)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020038#define __NR_munmap 11
Linus Torvalds1da177e2005-04-16 15:20:36 -070039__SYSCALL(__NR_munmap, sys_munmap)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020040#define __NR_brk 12
Linus Torvalds1da177e2005-04-16 15:20:36 -070041__SYSCALL(__NR_brk, sys_brk)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020042#define __NR_rt_sigaction 13
Linus Torvalds1da177e2005-04-16 15:20:36 -070043__SYSCALL(__NR_rt_sigaction, sys_rt_sigaction)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020044#define __NR_rt_sigprocmask 14
Linus Torvalds1da177e2005-04-16 15:20:36 -070045__SYSCALL(__NR_rt_sigprocmask, sys_rt_sigprocmask)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020046#define __NR_rt_sigreturn 15
Linus Torvalds1da177e2005-04-16 15:20:36 -070047__SYSCALL(__NR_rt_sigreturn, stub_rt_sigreturn)
48
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020049#define __NR_ioctl 16
Linus Torvalds1da177e2005-04-16 15:20:36 -070050__SYSCALL(__NR_ioctl, sys_ioctl)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020051#define __NR_pread64 17
Linus Torvalds1da177e2005-04-16 15:20:36 -070052__SYSCALL(__NR_pread64, sys_pread64)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020053#define __NR_pwrite64 18
Linus Torvalds1da177e2005-04-16 15:20:36 -070054__SYSCALL(__NR_pwrite64, sys_pwrite64)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020055#define __NR_readv 19
Linus Torvalds1da177e2005-04-16 15:20:36 -070056__SYSCALL(__NR_readv, sys_readv)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020057#define __NR_writev 20
Linus Torvalds1da177e2005-04-16 15:20:36 -070058__SYSCALL(__NR_writev, sys_writev)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020059#define __NR_access 21
Linus Torvalds1da177e2005-04-16 15:20:36 -070060__SYSCALL(__NR_access, sys_access)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020061#define __NR_pipe 22
Linus Torvalds1da177e2005-04-16 15:20:36 -070062__SYSCALL(__NR_pipe, sys_pipe)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020063#define __NR_select 23
Linus Torvalds1da177e2005-04-16 15:20:36 -070064__SYSCALL(__NR_select, sys_select)
65
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020066#define __NR_sched_yield 24
Linus Torvalds1da177e2005-04-16 15:20:36 -070067__SYSCALL(__NR_sched_yield, sys_sched_yield)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020068#define __NR_mremap 25
Linus Torvalds1da177e2005-04-16 15:20:36 -070069__SYSCALL(__NR_mremap, sys_mremap)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020070#define __NR_msync 26
Linus Torvalds1da177e2005-04-16 15:20:36 -070071__SYSCALL(__NR_msync, sys_msync)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020072#define __NR_mincore 27
Linus Torvalds1da177e2005-04-16 15:20:36 -070073__SYSCALL(__NR_mincore, sys_mincore)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020074#define __NR_madvise 28
Linus Torvalds1da177e2005-04-16 15:20:36 -070075__SYSCALL(__NR_madvise, sys_madvise)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020076#define __NR_shmget 29
Linus Torvalds1da177e2005-04-16 15:20:36 -070077__SYSCALL(__NR_shmget, sys_shmget)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020078#define __NR_shmat 30
Stephen Rothwell7d87e142005-05-01 08:59:12 -070079__SYSCALL(__NR_shmat, sys_shmat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020080#define __NR_shmctl 31
Linus Torvalds1da177e2005-04-16 15:20:36 -070081__SYSCALL(__NR_shmctl, sys_shmctl)
82
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020083#define __NR_dup 32
Linus Torvalds1da177e2005-04-16 15:20:36 -070084__SYSCALL(__NR_dup, sys_dup)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020085#define __NR_dup2 33
Linus Torvalds1da177e2005-04-16 15:20:36 -070086__SYSCALL(__NR_dup2, sys_dup2)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020087#define __NR_pause 34
Linus Torvalds1da177e2005-04-16 15:20:36 -070088__SYSCALL(__NR_pause, sys_pause)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020089#define __NR_nanosleep 35
Linus Torvalds1da177e2005-04-16 15:20:36 -070090__SYSCALL(__NR_nanosleep, sys_nanosleep)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020091#define __NR_getitimer 36
Linus Torvalds1da177e2005-04-16 15:20:36 -070092__SYSCALL(__NR_getitimer, sys_getitimer)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020093#define __NR_alarm 37
Linus Torvalds1da177e2005-04-16 15:20:36 -070094__SYSCALL(__NR_alarm, sys_alarm)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020095#define __NR_setitimer 38
Linus Torvalds1da177e2005-04-16 15:20:36 -070096__SYSCALL(__NR_setitimer, sys_setitimer)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +020097#define __NR_getpid 39
Linus Torvalds1da177e2005-04-16 15:20:36 -070098__SYSCALL(__NR_getpid, sys_getpid)
99
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200100#define __NR_sendfile 40
Linus Torvalds1da177e2005-04-16 15:20:36 -0700101__SYSCALL(__NR_sendfile, sys_sendfile64)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200102#define __NR_socket 41
Linus Torvalds1da177e2005-04-16 15:20:36 -0700103__SYSCALL(__NR_socket, sys_socket)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200104#define __NR_connect 42
Linus Torvalds1da177e2005-04-16 15:20:36 -0700105__SYSCALL(__NR_connect, sys_connect)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200106#define __NR_accept 43
Linus Torvalds1da177e2005-04-16 15:20:36 -0700107__SYSCALL(__NR_accept, sys_accept)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200108#define __NR_sendto 44
Linus Torvalds1da177e2005-04-16 15:20:36 -0700109__SYSCALL(__NR_sendto, sys_sendto)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200110#define __NR_recvfrom 45
Linus Torvalds1da177e2005-04-16 15:20:36 -0700111__SYSCALL(__NR_recvfrom, sys_recvfrom)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200112#define __NR_sendmsg 46
Linus Torvalds1da177e2005-04-16 15:20:36 -0700113__SYSCALL(__NR_sendmsg, sys_sendmsg)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200114#define __NR_recvmsg 47
Linus Torvalds1da177e2005-04-16 15:20:36 -0700115__SYSCALL(__NR_recvmsg, sys_recvmsg)
116
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200117#define __NR_shutdown 48
Linus Torvalds1da177e2005-04-16 15:20:36 -0700118__SYSCALL(__NR_shutdown, sys_shutdown)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200119#define __NR_bind 49
Linus Torvalds1da177e2005-04-16 15:20:36 -0700120__SYSCALL(__NR_bind, sys_bind)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200121#define __NR_listen 50
Linus Torvalds1da177e2005-04-16 15:20:36 -0700122__SYSCALL(__NR_listen, sys_listen)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200123#define __NR_getsockname 51
Linus Torvalds1da177e2005-04-16 15:20:36 -0700124__SYSCALL(__NR_getsockname, sys_getsockname)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200125#define __NR_getpeername 52
Linus Torvalds1da177e2005-04-16 15:20:36 -0700126__SYSCALL(__NR_getpeername, sys_getpeername)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200127#define __NR_socketpair 53
Linus Torvalds1da177e2005-04-16 15:20:36 -0700128__SYSCALL(__NR_socketpair, sys_socketpair)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200129#define __NR_setsockopt 54
Linus Torvalds1da177e2005-04-16 15:20:36 -0700130__SYSCALL(__NR_setsockopt, sys_setsockopt)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200131#define __NR_getsockopt 55
Linus Torvalds1da177e2005-04-16 15:20:36 -0700132__SYSCALL(__NR_getsockopt, sys_getsockopt)
133
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200134#define __NR_clone 56
Linus Torvalds1da177e2005-04-16 15:20:36 -0700135__SYSCALL(__NR_clone, stub_clone)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200136#define __NR_fork 57
137__SYSCALL(__NR_fork, stub_fork)
138#define __NR_vfork 58
Linus Torvalds1da177e2005-04-16 15:20:36 -0700139__SYSCALL(__NR_vfork, stub_vfork)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200140#define __NR_execve 59
Linus Torvalds1da177e2005-04-16 15:20:36 -0700141__SYSCALL(__NR_execve, stub_execve)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200142#define __NR_exit 60
Linus Torvalds1da177e2005-04-16 15:20:36 -0700143__SYSCALL(__NR_exit, sys_exit)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200144#define __NR_wait4 61
Linus Torvalds1da177e2005-04-16 15:20:36 -0700145__SYSCALL(__NR_wait4, sys_wait4)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200146#define __NR_kill 62
Linus Torvalds1da177e2005-04-16 15:20:36 -0700147__SYSCALL(__NR_kill, sys_kill)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200148#define __NR_uname 63
Linus Torvalds1da177e2005-04-16 15:20:36 -0700149__SYSCALL(__NR_uname, sys_uname)
150
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200151#define __NR_semget 64
Linus Torvalds1da177e2005-04-16 15:20:36 -0700152__SYSCALL(__NR_semget, sys_semget)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200153#define __NR_semop 65
Linus Torvalds1da177e2005-04-16 15:20:36 -0700154__SYSCALL(__NR_semop, sys_semop)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200155#define __NR_semctl 66
Linus Torvalds1da177e2005-04-16 15:20:36 -0700156__SYSCALL(__NR_semctl, sys_semctl)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200157#define __NR_shmdt 67
Linus Torvalds1da177e2005-04-16 15:20:36 -0700158__SYSCALL(__NR_shmdt, sys_shmdt)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200159#define __NR_msgget 68
Linus Torvalds1da177e2005-04-16 15:20:36 -0700160__SYSCALL(__NR_msgget, sys_msgget)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200161#define __NR_msgsnd 69
Linus Torvalds1da177e2005-04-16 15:20:36 -0700162__SYSCALL(__NR_msgsnd, sys_msgsnd)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200163#define __NR_msgrcv 70
Linus Torvalds1da177e2005-04-16 15:20:36 -0700164__SYSCALL(__NR_msgrcv, sys_msgrcv)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200165#define __NR_msgctl 71
Linus Torvalds1da177e2005-04-16 15:20:36 -0700166__SYSCALL(__NR_msgctl, sys_msgctl)
167
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200168#define __NR_fcntl 72
Linus Torvalds1da177e2005-04-16 15:20:36 -0700169__SYSCALL(__NR_fcntl, sys_fcntl)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200170#define __NR_flock 73
Linus Torvalds1da177e2005-04-16 15:20:36 -0700171__SYSCALL(__NR_flock, sys_flock)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200172#define __NR_fsync 74
Linus Torvalds1da177e2005-04-16 15:20:36 -0700173__SYSCALL(__NR_fsync, sys_fsync)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200174#define __NR_fdatasync 75
Linus Torvalds1da177e2005-04-16 15:20:36 -0700175__SYSCALL(__NR_fdatasync, sys_fdatasync)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200176#define __NR_truncate 76
Linus Torvalds1da177e2005-04-16 15:20:36 -0700177__SYSCALL(__NR_truncate, sys_truncate)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200178#define __NR_ftruncate 77
Linus Torvalds1da177e2005-04-16 15:20:36 -0700179__SYSCALL(__NR_ftruncate, sys_ftruncate)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200180#define __NR_getdents 78
Linus Torvalds1da177e2005-04-16 15:20:36 -0700181__SYSCALL(__NR_getdents, sys_getdents)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200182#define __NR_getcwd 79
Linus Torvalds1da177e2005-04-16 15:20:36 -0700183__SYSCALL(__NR_getcwd, sys_getcwd)
184
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200185#define __NR_chdir 80
Linus Torvalds1da177e2005-04-16 15:20:36 -0700186__SYSCALL(__NR_chdir, sys_chdir)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200187#define __NR_fchdir 81
Linus Torvalds1da177e2005-04-16 15:20:36 -0700188__SYSCALL(__NR_fchdir, sys_fchdir)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200189#define __NR_rename 82
Linus Torvalds1da177e2005-04-16 15:20:36 -0700190__SYSCALL(__NR_rename, sys_rename)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200191#define __NR_mkdir 83
Linus Torvalds1da177e2005-04-16 15:20:36 -0700192__SYSCALL(__NR_mkdir, sys_mkdir)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200193#define __NR_rmdir 84
Linus Torvalds1da177e2005-04-16 15:20:36 -0700194__SYSCALL(__NR_rmdir, sys_rmdir)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200195#define __NR_creat 85
Linus Torvalds1da177e2005-04-16 15:20:36 -0700196__SYSCALL(__NR_creat, sys_creat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200197#define __NR_link 86
Linus Torvalds1da177e2005-04-16 15:20:36 -0700198__SYSCALL(__NR_link, sys_link)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200199#define __NR_unlink 87
Linus Torvalds1da177e2005-04-16 15:20:36 -0700200__SYSCALL(__NR_unlink, sys_unlink)
201
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200202#define __NR_symlink 88
Linus Torvalds1da177e2005-04-16 15:20:36 -0700203__SYSCALL(__NR_symlink, sys_symlink)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200204#define __NR_readlink 89
Linus Torvalds1da177e2005-04-16 15:20:36 -0700205__SYSCALL(__NR_readlink, sys_readlink)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200206#define __NR_chmod 90
Linus Torvalds1da177e2005-04-16 15:20:36 -0700207__SYSCALL(__NR_chmod, sys_chmod)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200208#define __NR_fchmod 91
Linus Torvalds1da177e2005-04-16 15:20:36 -0700209__SYSCALL(__NR_fchmod, sys_fchmod)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200210#define __NR_chown 92
Linus Torvalds1da177e2005-04-16 15:20:36 -0700211__SYSCALL(__NR_chown, sys_chown)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200212#define __NR_fchown 93
Linus Torvalds1da177e2005-04-16 15:20:36 -0700213__SYSCALL(__NR_fchown, sys_fchown)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200214#define __NR_lchown 94
Linus Torvalds1da177e2005-04-16 15:20:36 -0700215__SYSCALL(__NR_lchown, sys_lchown)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200216#define __NR_umask 95
Linus Torvalds1da177e2005-04-16 15:20:36 -0700217__SYSCALL(__NR_umask, sys_umask)
218
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200219#define __NR_gettimeofday 96
Linus Torvalds1da177e2005-04-16 15:20:36 -0700220__SYSCALL(__NR_gettimeofday, sys_gettimeofday)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200221#define __NR_getrlimit 97
Linus Torvalds1da177e2005-04-16 15:20:36 -0700222__SYSCALL(__NR_getrlimit, sys_getrlimit)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200223#define __NR_getrusage 98
Linus Torvalds1da177e2005-04-16 15:20:36 -0700224__SYSCALL(__NR_getrusage, sys_getrusage)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200225#define __NR_sysinfo 99
Linus Torvalds1da177e2005-04-16 15:20:36 -0700226__SYSCALL(__NR_sysinfo, sys_sysinfo)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200227#define __NR_times 100
Linus Torvalds1da177e2005-04-16 15:20:36 -0700228__SYSCALL(__NR_times, sys_times)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200229#define __NR_ptrace 101
Linus Torvalds1da177e2005-04-16 15:20:36 -0700230__SYSCALL(__NR_ptrace, sys_ptrace)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200231#define __NR_getuid 102
Linus Torvalds1da177e2005-04-16 15:20:36 -0700232__SYSCALL(__NR_getuid, sys_getuid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200233#define __NR_syslog 103
Linus Torvalds1da177e2005-04-16 15:20:36 -0700234__SYSCALL(__NR_syslog, sys_syslog)
235
236/* at the very end the stuff that never runs during the benchmarks */
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200237#define __NR_getgid 104
Linus Torvalds1da177e2005-04-16 15:20:36 -0700238__SYSCALL(__NR_getgid, sys_getgid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200239#define __NR_setuid 105
Linus Torvalds1da177e2005-04-16 15:20:36 -0700240__SYSCALL(__NR_setuid, sys_setuid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200241#define __NR_setgid 106
Linus Torvalds1da177e2005-04-16 15:20:36 -0700242__SYSCALL(__NR_setgid, sys_setgid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200243#define __NR_geteuid 107
Linus Torvalds1da177e2005-04-16 15:20:36 -0700244__SYSCALL(__NR_geteuid, sys_geteuid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200245#define __NR_getegid 108
Linus Torvalds1da177e2005-04-16 15:20:36 -0700246__SYSCALL(__NR_getegid, sys_getegid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200247#define __NR_setpgid 109
Linus Torvalds1da177e2005-04-16 15:20:36 -0700248__SYSCALL(__NR_setpgid, sys_setpgid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200249#define __NR_getppid 110
Linus Torvalds1da177e2005-04-16 15:20:36 -0700250__SYSCALL(__NR_getppid, sys_getppid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200251#define __NR_getpgrp 111
Linus Torvalds1da177e2005-04-16 15:20:36 -0700252__SYSCALL(__NR_getpgrp, sys_getpgrp)
253
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200254#define __NR_setsid 112
Linus Torvalds1da177e2005-04-16 15:20:36 -0700255__SYSCALL(__NR_setsid, sys_setsid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200256#define __NR_setreuid 113
Linus Torvalds1da177e2005-04-16 15:20:36 -0700257__SYSCALL(__NR_setreuid, sys_setreuid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200258#define __NR_setregid 114
Linus Torvalds1da177e2005-04-16 15:20:36 -0700259__SYSCALL(__NR_setregid, sys_setregid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200260#define __NR_getgroups 115
Linus Torvalds1da177e2005-04-16 15:20:36 -0700261__SYSCALL(__NR_getgroups, sys_getgroups)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200262#define __NR_setgroups 116
Linus Torvalds1da177e2005-04-16 15:20:36 -0700263__SYSCALL(__NR_setgroups, sys_setgroups)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200264#define __NR_setresuid 117
Linus Torvalds1da177e2005-04-16 15:20:36 -0700265__SYSCALL(__NR_setresuid, sys_setresuid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200266#define __NR_getresuid 118
Linus Torvalds1da177e2005-04-16 15:20:36 -0700267__SYSCALL(__NR_getresuid, sys_getresuid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200268#define __NR_setresgid 119
Linus Torvalds1da177e2005-04-16 15:20:36 -0700269__SYSCALL(__NR_setresgid, sys_setresgid)
270
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200271#define __NR_getresgid 120
Linus Torvalds1da177e2005-04-16 15:20:36 -0700272__SYSCALL(__NR_getresgid, sys_getresgid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200273#define __NR_getpgid 121
Linus Torvalds1da177e2005-04-16 15:20:36 -0700274__SYSCALL(__NR_getpgid, sys_getpgid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200275#define __NR_setfsuid 122
Linus Torvalds1da177e2005-04-16 15:20:36 -0700276__SYSCALL(__NR_setfsuid, sys_setfsuid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200277#define __NR_setfsgid 123
Linus Torvalds1da177e2005-04-16 15:20:36 -0700278__SYSCALL(__NR_setfsgid, sys_setfsgid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200279#define __NR_getsid 124
Linus Torvalds1da177e2005-04-16 15:20:36 -0700280__SYSCALL(__NR_getsid, sys_getsid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200281#define __NR_capget 125
Linus Torvalds1da177e2005-04-16 15:20:36 -0700282__SYSCALL(__NR_capget, sys_capget)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200283#define __NR_capset 126
Linus Torvalds1da177e2005-04-16 15:20:36 -0700284__SYSCALL(__NR_capset, sys_capset)
285
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200286#define __NR_rt_sigpending 127
Linus Torvalds1da177e2005-04-16 15:20:36 -0700287__SYSCALL(__NR_rt_sigpending, sys_rt_sigpending)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200288#define __NR_rt_sigtimedwait 128
Linus Torvalds1da177e2005-04-16 15:20:36 -0700289__SYSCALL(__NR_rt_sigtimedwait, sys_rt_sigtimedwait)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200290#define __NR_rt_sigqueueinfo 129
Linus Torvalds1da177e2005-04-16 15:20:36 -0700291__SYSCALL(__NR_rt_sigqueueinfo, sys_rt_sigqueueinfo)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200292#define __NR_rt_sigsuspend 130
Linus Torvalds1da177e2005-04-16 15:20:36 -0700293__SYSCALL(__NR_rt_sigsuspend, stub_rt_sigsuspend)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200294#define __NR_sigaltstack 131
Linus Torvalds1da177e2005-04-16 15:20:36 -0700295__SYSCALL(__NR_sigaltstack, stub_sigaltstack)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200296#define __NR_utime 132
Linus Torvalds1da177e2005-04-16 15:20:36 -0700297__SYSCALL(__NR_utime, sys_utime)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200298#define __NR_mknod 133
Linus Torvalds1da177e2005-04-16 15:20:36 -0700299__SYSCALL(__NR_mknod, sys_mknod)
300
301/* Only needed for a.out */
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200302#define __NR_uselib 134
Linus Torvalds1da177e2005-04-16 15:20:36 -0700303__SYSCALL(__NR_uselib, sys_ni_syscall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200304#define __NR_personality 135
Linus Torvalds1da177e2005-04-16 15:20:36 -0700305__SYSCALL(__NR_personality, sys_personality)
306
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200307#define __NR_ustat 136
Linus Torvalds1da177e2005-04-16 15:20:36 -0700308__SYSCALL(__NR_ustat, sys_ustat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200309#define __NR_statfs 137
Linus Torvalds1da177e2005-04-16 15:20:36 -0700310__SYSCALL(__NR_statfs, sys_statfs)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200311#define __NR_fstatfs 138
Linus Torvalds1da177e2005-04-16 15:20:36 -0700312__SYSCALL(__NR_fstatfs, sys_fstatfs)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200313#define __NR_sysfs 139
Linus Torvalds1da177e2005-04-16 15:20:36 -0700314__SYSCALL(__NR_sysfs, sys_sysfs)
315
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200316#define __NR_getpriority 140
Linus Torvalds1da177e2005-04-16 15:20:36 -0700317__SYSCALL(__NR_getpriority, sys_getpriority)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200318#define __NR_setpriority 141
Linus Torvalds1da177e2005-04-16 15:20:36 -0700319__SYSCALL(__NR_setpriority, sys_setpriority)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200320#define __NR_sched_setparam 142
Linus Torvalds1da177e2005-04-16 15:20:36 -0700321__SYSCALL(__NR_sched_setparam, sys_sched_setparam)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200322#define __NR_sched_getparam 143
Linus Torvalds1da177e2005-04-16 15:20:36 -0700323__SYSCALL(__NR_sched_getparam, sys_sched_getparam)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200324#define __NR_sched_setscheduler 144
Linus Torvalds1da177e2005-04-16 15:20:36 -0700325__SYSCALL(__NR_sched_setscheduler, sys_sched_setscheduler)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200326#define __NR_sched_getscheduler 145
Linus Torvalds1da177e2005-04-16 15:20:36 -0700327__SYSCALL(__NR_sched_getscheduler, sys_sched_getscheduler)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200328#define __NR_sched_get_priority_max 146
Linus Torvalds1da177e2005-04-16 15:20:36 -0700329__SYSCALL(__NR_sched_get_priority_max, sys_sched_get_priority_max)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200330#define __NR_sched_get_priority_min 147
Linus Torvalds1da177e2005-04-16 15:20:36 -0700331__SYSCALL(__NR_sched_get_priority_min, sys_sched_get_priority_min)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200332#define __NR_sched_rr_get_interval 148
Linus Torvalds1da177e2005-04-16 15:20:36 -0700333__SYSCALL(__NR_sched_rr_get_interval, sys_sched_rr_get_interval)
334
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200335#define __NR_mlock 149
Linus Torvalds1da177e2005-04-16 15:20:36 -0700336__SYSCALL(__NR_mlock, sys_mlock)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200337#define __NR_munlock 150
Linus Torvalds1da177e2005-04-16 15:20:36 -0700338__SYSCALL(__NR_munlock, sys_munlock)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200339#define __NR_mlockall 151
Linus Torvalds1da177e2005-04-16 15:20:36 -0700340__SYSCALL(__NR_mlockall, sys_mlockall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200341#define __NR_munlockall 152
Linus Torvalds1da177e2005-04-16 15:20:36 -0700342__SYSCALL(__NR_munlockall, sys_munlockall)
343
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200344#define __NR_vhangup 153
Linus Torvalds1da177e2005-04-16 15:20:36 -0700345__SYSCALL(__NR_vhangup, sys_vhangup)
346
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200347#define __NR_modify_ldt 154
Linus Torvalds1da177e2005-04-16 15:20:36 -0700348__SYSCALL(__NR_modify_ldt, sys_modify_ldt)
349
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200350#define __NR_pivot_root 155
Linus Torvalds1da177e2005-04-16 15:20:36 -0700351__SYSCALL(__NR_pivot_root, sys_pivot_root)
352
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200353#define __NR__sysctl 156
Linus Torvalds1da177e2005-04-16 15:20:36 -0700354__SYSCALL(__NR__sysctl, sys_sysctl)
355
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200356#define __NR_prctl 157
Linus Torvalds1da177e2005-04-16 15:20:36 -0700357__SYSCALL(__NR_prctl, sys_prctl)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200358#define __NR_arch_prctl 158
359__SYSCALL(__NR_arch_prctl, sys_arch_prctl)
Linus Torvalds1da177e2005-04-16 15:20:36 -0700360
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200361#define __NR_adjtimex 159
Linus Torvalds1da177e2005-04-16 15:20:36 -0700362__SYSCALL(__NR_adjtimex, sys_adjtimex)
363
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200364#define __NR_setrlimit 160
Linus Torvalds1da177e2005-04-16 15:20:36 -0700365__SYSCALL(__NR_setrlimit, sys_setrlimit)
366
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200367#define __NR_chroot 161
Linus Torvalds1da177e2005-04-16 15:20:36 -0700368__SYSCALL(__NR_chroot, sys_chroot)
369
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200370#define __NR_sync 162
Linus Torvalds1da177e2005-04-16 15:20:36 -0700371__SYSCALL(__NR_sync, sys_sync)
372
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200373#define __NR_acct 163
Linus Torvalds1da177e2005-04-16 15:20:36 -0700374__SYSCALL(__NR_acct, sys_acct)
375
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200376#define __NR_settimeofday 164
Linus Torvalds1da177e2005-04-16 15:20:36 -0700377__SYSCALL(__NR_settimeofday, sys_settimeofday)
378
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200379#define __NR_mount 165
Linus Torvalds1da177e2005-04-16 15:20:36 -0700380__SYSCALL(__NR_mount, sys_mount)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200381#define __NR_umount2 166
Linus Torvalds1da177e2005-04-16 15:20:36 -0700382__SYSCALL(__NR_umount2, sys_umount)
383
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200384#define __NR_swapon 167
Linus Torvalds1da177e2005-04-16 15:20:36 -0700385__SYSCALL(__NR_swapon, sys_swapon)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200386#define __NR_swapoff 168
Linus Torvalds1da177e2005-04-16 15:20:36 -0700387__SYSCALL(__NR_swapoff, sys_swapoff)
388
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200389#define __NR_reboot 169
Linus Torvalds1da177e2005-04-16 15:20:36 -0700390__SYSCALL(__NR_reboot, sys_reboot)
391
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200392#define __NR_sethostname 170
Linus Torvalds1da177e2005-04-16 15:20:36 -0700393__SYSCALL(__NR_sethostname, sys_sethostname)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200394#define __NR_setdomainname 171
Linus Torvalds1da177e2005-04-16 15:20:36 -0700395__SYSCALL(__NR_setdomainname, sys_setdomainname)
396
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200397#define __NR_iopl 172
Linus Torvalds1da177e2005-04-16 15:20:36 -0700398__SYSCALL(__NR_iopl, stub_iopl)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200399#define __NR_ioperm 173
Linus Torvalds1da177e2005-04-16 15:20:36 -0700400__SYSCALL(__NR_ioperm, sys_ioperm)
401
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200402#define __NR_create_module 174
Linus Torvalds1da177e2005-04-16 15:20:36 -0700403__SYSCALL(__NR_create_module, sys_ni_syscall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200404#define __NR_init_module 175
Linus Torvalds1da177e2005-04-16 15:20:36 -0700405__SYSCALL(__NR_init_module, sys_init_module)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200406#define __NR_delete_module 176
Linus Torvalds1da177e2005-04-16 15:20:36 -0700407__SYSCALL(__NR_delete_module, sys_delete_module)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200408#define __NR_get_kernel_syms 177
Linus Torvalds1da177e2005-04-16 15:20:36 -0700409__SYSCALL(__NR_get_kernel_syms, sys_ni_syscall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200410#define __NR_query_module 178
Linus Torvalds1da177e2005-04-16 15:20:36 -0700411__SYSCALL(__NR_query_module, sys_ni_syscall)
412
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200413#define __NR_quotactl 179
Linus Torvalds1da177e2005-04-16 15:20:36 -0700414__SYSCALL(__NR_quotactl, sys_quotactl)
415
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200416#define __NR_nfsservctl 180
Linus Torvalds1da177e2005-04-16 15:20:36 -0700417__SYSCALL(__NR_nfsservctl, sys_nfsservctl)
418
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200419/* reserved for LiS/STREAMS */
420#define __NR_getpmsg 181
Linus Torvalds1da177e2005-04-16 15:20:36 -0700421__SYSCALL(__NR_getpmsg, sys_ni_syscall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200422#define __NR_putpmsg 182
Linus Torvalds1da177e2005-04-16 15:20:36 -0700423__SYSCALL(__NR_putpmsg, sys_ni_syscall)
424
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200425/* reserved for AFS */
426#define __NR_afs_syscall 183
Linus Torvalds1da177e2005-04-16 15:20:36 -0700427__SYSCALL(__NR_afs_syscall, sys_ni_syscall)
428
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200429/* reserved for tux */
430#define __NR_tuxcall 184
Linus Torvalds1da177e2005-04-16 15:20:36 -0700431__SYSCALL(__NR_tuxcall, sys_ni_syscall)
432
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200433#define __NR_security 185
Linus Torvalds1da177e2005-04-16 15:20:36 -0700434__SYSCALL(__NR_security, sys_ni_syscall)
435
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200436#define __NR_gettid 186
Linus Torvalds1da177e2005-04-16 15:20:36 -0700437__SYSCALL(__NR_gettid, sys_gettid)
438
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200439#define __NR_readahead 187
Linus Torvalds1da177e2005-04-16 15:20:36 -0700440__SYSCALL(__NR_readahead, sys_readahead)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200441#define __NR_setxattr 188
Linus Torvalds1da177e2005-04-16 15:20:36 -0700442__SYSCALL(__NR_setxattr, sys_setxattr)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200443#define __NR_lsetxattr 189
Linus Torvalds1da177e2005-04-16 15:20:36 -0700444__SYSCALL(__NR_lsetxattr, sys_lsetxattr)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200445#define __NR_fsetxattr 190
Linus Torvalds1da177e2005-04-16 15:20:36 -0700446__SYSCALL(__NR_fsetxattr, sys_fsetxattr)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200447#define __NR_getxattr 191
Linus Torvalds1da177e2005-04-16 15:20:36 -0700448__SYSCALL(__NR_getxattr, sys_getxattr)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200449#define __NR_lgetxattr 192
Linus Torvalds1da177e2005-04-16 15:20:36 -0700450__SYSCALL(__NR_lgetxattr, sys_lgetxattr)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200451#define __NR_fgetxattr 193
452__SYSCALL(__NR_fgetxattr, sys_fgetxattr)
453#define __NR_listxattr 194
454__SYSCALL(__NR_listxattr, sys_listxattr)
455#define __NR_llistxattr 195
456__SYSCALL(__NR_llistxattr, sys_llistxattr)
457#define __NR_flistxattr 196
458__SYSCALL(__NR_flistxattr, sys_flistxattr)
459#define __NR_removexattr 197
460__SYSCALL(__NR_removexattr, sys_removexattr)
461#define __NR_lremovexattr 198
462__SYSCALL(__NR_lremovexattr, sys_lremovexattr)
463#define __NR_fremovexattr 199
464__SYSCALL(__NR_fremovexattr, sys_fremovexattr)
465#define __NR_tkill 200
466__SYSCALL(__NR_tkill, sys_tkill)
467#define __NR_time 201
Paolo 'Blaisorblade' Giarrussoefbbdce2005-11-05 17:25:54 +0100468__SYSCALL(__NR_time, sys_time)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200469#define __NR_futex 202
Linus Torvalds1da177e2005-04-16 15:20:36 -0700470__SYSCALL(__NR_futex, sys_futex)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200471#define __NR_sched_setaffinity 203
Linus Torvalds1da177e2005-04-16 15:20:36 -0700472__SYSCALL(__NR_sched_setaffinity, sys_sched_setaffinity)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200473#define __NR_sched_getaffinity 204
Linus Torvalds1da177e2005-04-16 15:20:36 -0700474__SYSCALL(__NR_sched_getaffinity, sys_sched_getaffinity)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200475#define __NR_set_thread_area 205
Linus Torvalds1da177e2005-04-16 15:20:36 -0700476__SYSCALL(__NR_set_thread_area, sys_ni_syscall) /* use arch_prctl */
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200477#define __NR_io_setup 206
Linus Torvalds1da177e2005-04-16 15:20:36 -0700478__SYSCALL(__NR_io_setup, sys_io_setup)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200479#define __NR_io_destroy 207
Linus Torvalds1da177e2005-04-16 15:20:36 -0700480__SYSCALL(__NR_io_destroy, sys_io_destroy)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200481#define __NR_io_getevents 208
Linus Torvalds1da177e2005-04-16 15:20:36 -0700482__SYSCALL(__NR_io_getevents, sys_io_getevents)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200483#define __NR_io_submit 209
Linus Torvalds1da177e2005-04-16 15:20:36 -0700484__SYSCALL(__NR_io_submit, sys_io_submit)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200485#define __NR_io_cancel 210
Linus Torvalds1da177e2005-04-16 15:20:36 -0700486__SYSCALL(__NR_io_cancel, sys_io_cancel)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200487#define __NR_get_thread_area 211
Linus Torvalds1da177e2005-04-16 15:20:36 -0700488__SYSCALL(__NR_get_thread_area, sys_ni_syscall) /* use arch_prctl */
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200489#define __NR_lookup_dcookie 212
Linus Torvalds1da177e2005-04-16 15:20:36 -0700490__SYSCALL(__NR_lookup_dcookie, sys_lookup_dcookie)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200491#define __NR_epoll_create 213
Linus Torvalds1da177e2005-04-16 15:20:36 -0700492__SYSCALL(__NR_epoll_create, sys_epoll_create)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200493#define __NR_epoll_ctl_old 214
Linus Torvalds1da177e2005-04-16 15:20:36 -0700494__SYSCALL(__NR_epoll_ctl_old, sys_ni_syscall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200495#define __NR_epoll_wait_old 215
Linus Torvalds1da177e2005-04-16 15:20:36 -0700496__SYSCALL(__NR_epoll_wait_old, sys_ni_syscall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200497#define __NR_remap_file_pages 216
Linus Torvalds1da177e2005-04-16 15:20:36 -0700498__SYSCALL(__NR_remap_file_pages, sys_remap_file_pages)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200499#define __NR_getdents64 217
Linus Torvalds1da177e2005-04-16 15:20:36 -0700500__SYSCALL(__NR_getdents64, sys_getdents64)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200501#define __NR_set_tid_address 218
Linus Torvalds1da177e2005-04-16 15:20:36 -0700502__SYSCALL(__NR_set_tid_address, sys_set_tid_address)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200503#define __NR_restart_syscall 219
Linus Torvalds1da177e2005-04-16 15:20:36 -0700504__SYSCALL(__NR_restart_syscall, sys_restart_syscall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200505#define __NR_semtimedop 220
Linus Torvalds1da177e2005-04-16 15:20:36 -0700506__SYSCALL(__NR_semtimedop, sys_semtimedop)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200507#define __NR_fadvise64 221
Linus Torvalds1da177e2005-04-16 15:20:36 -0700508__SYSCALL(__NR_fadvise64, sys_fadvise64)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200509#define __NR_timer_create 222
Linus Torvalds1da177e2005-04-16 15:20:36 -0700510__SYSCALL(__NR_timer_create, sys_timer_create)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200511#define __NR_timer_settime 223
Linus Torvalds1da177e2005-04-16 15:20:36 -0700512__SYSCALL(__NR_timer_settime, sys_timer_settime)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200513#define __NR_timer_gettime 224
Linus Torvalds1da177e2005-04-16 15:20:36 -0700514__SYSCALL(__NR_timer_gettime, sys_timer_gettime)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200515#define __NR_timer_getoverrun 225
Linus Torvalds1da177e2005-04-16 15:20:36 -0700516__SYSCALL(__NR_timer_getoverrun, sys_timer_getoverrun)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200517#define __NR_timer_delete 226
Linus Torvalds1da177e2005-04-16 15:20:36 -0700518__SYSCALL(__NR_timer_delete, sys_timer_delete)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200519#define __NR_clock_settime 227
Linus Torvalds1da177e2005-04-16 15:20:36 -0700520__SYSCALL(__NR_clock_settime, sys_clock_settime)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200521#define __NR_clock_gettime 228
Linus Torvalds1da177e2005-04-16 15:20:36 -0700522__SYSCALL(__NR_clock_gettime, sys_clock_gettime)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200523#define __NR_clock_getres 229
Linus Torvalds1da177e2005-04-16 15:20:36 -0700524__SYSCALL(__NR_clock_getres, sys_clock_getres)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200525#define __NR_clock_nanosleep 230
Linus Torvalds1da177e2005-04-16 15:20:36 -0700526__SYSCALL(__NR_clock_nanosleep, sys_clock_nanosleep)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200527#define __NR_exit_group 231
Linus Torvalds1da177e2005-04-16 15:20:36 -0700528__SYSCALL(__NR_exit_group, sys_exit_group)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200529#define __NR_epoll_wait 232
Linus Torvalds1da177e2005-04-16 15:20:36 -0700530__SYSCALL(__NR_epoll_wait, sys_epoll_wait)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200531#define __NR_epoll_ctl 233
Linus Torvalds1da177e2005-04-16 15:20:36 -0700532__SYSCALL(__NR_epoll_ctl, sys_epoll_ctl)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200533#define __NR_tgkill 234
Linus Torvalds1da177e2005-04-16 15:20:36 -0700534__SYSCALL(__NR_tgkill, sys_tgkill)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200535#define __NR_utimes 235
Linus Torvalds1da177e2005-04-16 15:20:36 -0700536__SYSCALL(__NR_utimes, sys_utimes)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200537#define __NR_vserver 236
Linus Torvalds1da177e2005-04-16 15:20:36 -0700538__SYSCALL(__NR_vserver, sys_ni_syscall)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200539#define __NR_mbind 237
Linus Torvalds1da177e2005-04-16 15:20:36 -0700540__SYSCALL(__NR_mbind, sys_mbind)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200541#define __NR_set_mempolicy 238
Linus Torvalds1da177e2005-04-16 15:20:36 -0700542__SYSCALL(__NR_set_mempolicy, sys_set_mempolicy)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200543#define __NR_get_mempolicy 239
Linus Torvalds1da177e2005-04-16 15:20:36 -0700544__SYSCALL(__NR_get_mempolicy, sys_get_mempolicy)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200545#define __NR_mq_open 240
Linus Torvalds1da177e2005-04-16 15:20:36 -0700546__SYSCALL(__NR_mq_open, sys_mq_open)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200547#define __NR_mq_unlink 241
Linus Torvalds1da177e2005-04-16 15:20:36 -0700548__SYSCALL(__NR_mq_unlink, sys_mq_unlink)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200549#define __NR_mq_timedsend 242
Linus Torvalds1da177e2005-04-16 15:20:36 -0700550__SYSCALL(__NR_mq_timedsend, sys_mq_timedsend)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200551#define __NR_mq_timedreceive 243
Linus Torvalds1da177e2005-04-16 15:20:36 -0700552__SYSCALL(__NR_mq_timedreceive, sys_mq_timedreceive)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200553#define __NR_mq_notify 244
Linus Torvalds1da177e2005-04-16 15:20:36 -0700554__SYSCALL(__NR_mq_notify, sys_mq_notify)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200555#define __NR_mq_getsetattr 245
Linus Torvalds1da177e2005-04-16 15:20:36 -0700556__SYSCALL(__NR_mq_getsetattr, sys_mq_getsetattr)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200557#define __NR_kexec_load 246
Eric W. Biederman5234f5e2005-06-25 14:58:02 -0700558__SYSCALL(__NR_kexec_load, sys_kexec_load)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200559#define __NR_waitid 247
Linus Torvalds1da177e2005-04-16 15:20:36 -0700560__SYSCALL(__NR_waitid, sys_waitid)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200561#define __NR_add_key 248
Linus Torvalds1da177e2005-04-16 15:20:36 -0700562__SYSCALL(__NR_add_key, sys_add_key)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200563#define __NR_request_key 249
Linus Torvalds1da177e2005-04-16 15:20:36 -0700564__SYSCALL(__NR_request_key, sys_request_key)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200565#define __NR_keyctl 250
Linus Torvalds1da177e2005-04-16 15:20:36 -0700566__SYSCALL(__NR_keyctl, sys_keyctl)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200567#define __NR_ioprio_set 251
Jens Axboe22e2c502005-06-27 10:55:12 +0200568__SYSCALL(__NR_ioprio_set, sys_ioprio_set)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200569#define __NR_ioprio_get 252
Jens Axboe22e2c502005-06-27 10:55:12 +0200570__SYSCALL(__NR_ioprio_get, sys_ioprio_get)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200571#define __NR_inotify_init 253
Robert Love725b38ab2005-07-25 15:19:29 -0400572__SYSCALL(__NR_inotify_init, sys_inotify_init)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200573#define __NR_inotify_add_watch 254
Robert Love725b38ab2005-07-25 15:19:29 -0400574__SYSCALL(__NR_inotify_add_watch, sys_inotify_add_watch)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200575#define __NR_inotify_rm_watch 255
Robert Love725b38ab2005-07-25 15:19:29 -0400576__SYSCALL(__NR_inotify_rm_watch, sys_inotify_rm_watch)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200577#define __NR_migrate_pages 256
Christoph Lameter39743882006-01-08 01:00:51 -0800578__SYSCALL(__NR_migrate_pages, sys_migrate_pages)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200579#define __NR_openat 257
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800580__SYSCALL(__NR_openat, sys_openat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200581#define __NR_mkdirat 258
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800582__SYSCALL(__NR_mkdirat, sys_mkdirat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200583#define __NR_mknodat 259
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800584__SYSCALL(__NR_mknodat, sys_mknodat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200585#define __NR_fchownat 260
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800586__SYSCALL(__NR_fchownat, sys_fchownat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200587#define __NR_futimesat 261
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800588__SYSCALL(__NR_futimesat, sys_futimesat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200589#define __NR_newfstatat 262
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800590__SYSCALL(__NR_newfstatat, sys_newfstatat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200591#define __NR_unlinkat 263
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800592__SYSCALL(__NR_unlinkat, sys_unlinkat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200593#define __NR_renameat 264
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800594__SYSCALL(__NR_renameat, sys_renameat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200595#define __NR_linkat 265
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800596__SYSCALL(__NR_linkat, sys_linkat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200597#define __NR_symlinkat 266
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800598__SYSCALL(__NR_symlinkat, sys_symlinkat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200599#define __NR_readlinkat 267
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800600__SYSCALL(__NR_readlinkat, sys_readlinkat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200601#define __NR_fchmodat 268
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800602__SYSCALL(__NR_fchmodat, sys_fchmodat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200603#define __NR_faccessat 269
Ulrich Dreppera60fc512006-01-18 17:43:56 -0800604__SYSCALL(__NR_faccessat, sys_faccessat)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200605#define __NR_pselect6 270
Andi Kleen957dc872006-09-26 10:52:27 +0200606__SYSCALL(__NR_pselect6, sys_pselect6)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200607#define __NR_ppoll 271
Andi Kleen957dc872006-09-26 10:52:27 +0200608__SYSCALL(__NR_ppoll, sys_ppoll)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200609#define __NR_unshare 272
Andi Kleen4b88f092006-02-09 00:35:50 +0100610__SYSCALL(__NR_unshare, sys_unshare)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200611#define __NR_set_robust_list 273
Ingo Molnar8fdd6c62006-03-27 01:16:26 -0800612__SYSCALL(__NR_set_robust_list, sys_set_robust_list)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200613#define __NR_get_robust_list 274
Ingo Molnar8fdd6c62006-03-27 01:16:26 -0800614__SYSCALL(__NR_get_robust_list, sys_get_robust_list)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200615#define __NR_splice 275
Jens Axboe5274f052006-03-30 15:15:30 +0200616__SYSCALL(__NR_splice, sys_splice)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200617#define __NR_tee 276
Jens Axboe70524492006-04-11 15:51:17 +0200618__SYSCALL(__NR_tee, sys_tee)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200619#define __NR_sync_file_range 277
Andi Kleenf1233ab2006-04-18 12:35:19 +0200620__SYSCALL(__NR_sync_file_range, sys_sync_file_range)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200621#define __NR_vmsplice 278
Jens Axboe912d35f2006-04-26 10:59:21 +0200622__SYSCALL(__NR_vmsplice, sys_vmsplice)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200623#define __NR_move_pages 279
Christoph Lameterb63d64a2006-06-23 02:03:56 -0700624__SYSCALL(__NR_move_pages, sys_move_pages)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200625#define __NR_utimensat 280
Ulrich Drepper1c710c82007-05-08 00:33:25 -0700626__SYSCALL(__NR_utimensat, sys_utimensat)
Andi Kleen9393e1d2007-05-10 22:22:18 -0700627#define __IGNORE_getcpu /* implemented as a vsyscall */
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200628#define __NR_epoll_pwait 281
Andi Kleen9393e1d2007-05-10 22:22:18 -0700629__SYSCALL(__NR_epoll_pwait, sys_epoll_pwait)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200630#define __NR_signalfd 282
Davide Libenzi2121e242007-05-10 22:23:14 -0700631__SYSCALL(__NR_signalfd, sys_signalfd)
Davide Libenzicb9282e2008-02-04 22:27:28 -0800632#define __NR_timerfd_create 283
633__SYSCALL(__NR_timerfd_create, sys_timerfd_create)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200634#define __NR_eventfd 284
Davide Libenzifdb902b2007-05-10 22:23:20 -0700635__SYSCALL(__NR_eventfd, sys_eventfd)
Thomas Gleixner6b556ff2007-10-17 18:04:39 +0200636#define __NR_fallocate 285
Amit Arora97ac7352007-07-17 21:42:44 -0400637__SYSCALL(__NR_fallocate, sys_fallocate)
Davide Libenzicb9282e2008-02-04 22:27:28 -0800638#define __NR_timerfd_settime 286
639__SYSCALL(__NR_timerfd_settime, sys_timerfd_settime)
640#define __NR_timerfd_gettime 287
641__SYSCALL(__NR_timerfd_gettime, sys_timerfd_gettime)
642
Linus Torvalds1da177e2005-04-16 15:20:36 -0700643
Linus Torvalds1da177e2005-04-16 15:20:36 -0700644#ifndef __NO_STUBS
Linus Torvalds1da177e2005-04-16 15:20:36 -0700645#define __ARCH_WANT_OLD_READDIR
646#define __ARCH_WANT_OLD_STAT
647#define __ARCH_WANT_SYS_ALARM
648#define __ARCH_WANT_SYS_GETHOSTNAME
649#define __ARCH_WANT_SYS_PAUSE
650#define __ARCH_WANT_SYS_SGETMASK
651#define __ARCH_WANT_SYS_SIGNAL
652#define __ARCH_WANT_SYS_UTIME
653#define __ARCH_WANT_SYS_WAITPID
654#define __ARCH_WANT_SYS_SOCKETCALL
655#define __ARCH_WANT_SYS_FADVISE64
656#define __ARCH_WANT_SYS_GETPGRP
657#define __ARCH_WANT_SYS_LLSEEK
658#define __ARCH_WANT_SYS_NICE
659#define __ARCH_WANT_SYS_OLD_GETRLIMIT
660#define __ARCH_WANT_SYS_OLDUMOUNT
661#define __ARCH_WANT_SYS_SIGPENDING
662#define __ARCH_WANT_SYS_SIGPROCMASK
663#define __ARCH_WANT_SYS_RT_SIGACTION
Andi Kleen1d001df2006-09-26 10:52:26 +0200664#define __ARCH_WANT_SYS_RT_SIGSUSPEND
Paolo 'Blaisorblade' Giarrussoefbbdce2005-11-05 17:25:54 +0100665#define __ARCH_WANT_SYS_TIME
Linus Torvalds1da177e2005-04-16 15:20:36 -0700666#define __ARCH_WANT_COMPAT_SYS_TIME
Arnd Bergmann3db03b42006-10-02 02:18:31 -0700667#endif /* __NO_STUBS */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700668
Mike Frysinger6704ab12007-10-17 18:04:36 +0200669#ifdef __KERNEL__
Linus Torvalds1da177e2005-04-16 15:20:36 -0700670/*
671 * "Conditional" syscalls
672 *
673 * What we want is __attribute__((weak,alias("sys_ni_syscall"))),
674 * but it doesn't work on all toolchains, so we just do it by hand
675 */
676#define cond_syscall(x) asm(".weak\t" #x "\n\t.set\t" #x ",sys_ni_syscall")
Mike Frysinger6704ab12007-10-17 18:04:36 +0200677#endif /* __KERNEL__ */
Linus Torvalds1da177e2005-04-16 15:20:36 -0700678
David Woodhouse75da7362006-09-16 12:15:48 -0700679#endif /* _ASM_X86_64_UNISTD_H_ */