blob: 0dc4bf8914603a07f31f0947a3e80a4670224372 [file] [log] [blame]
H. Peter Anvind1817642011-11-11 15:55:49 -08001#
2# 64-bit system call numbers and entry vectors
3#
4# The format is:
5# <number> <abi> <name> <entry point>
6#
H. Peter Anvin6630f112012-02-14 14:18:50 -08007# The abi is "common", "64" or "x32" for this file.
H. Peter Anvind1817642011-11-11 15:55:49 -08008#
H. Peter Anvin6630f112012-02-14 14:18:50 -080090 common read sys_read
101 common write sys_write
112 common open sys_open
123 common close sys_close
134 common stat sys_newstat
145 common fstat sys_newfstat
156 common lstat sys_newlstat
167 common poll sys_poll
178 common lseek sys_lseek
189 common mmap sys_mmap
1910 common mprotect sys_mprotect
2011 common munmap sys_munmap
2112 common brk sys_brk
H. Peter Anvind1817642011-11-11 15:55:49 -08002213 64 rt_sigaction sys_rt_sigaction
H. Peter Anvin6630f112012-02-14 14:18:50 -08002314 common rt_sigprocmask sys_rt_sigprocmask
H. Peter Anvind1817642011-11-11 15:55:49 -08002415 64 rt_sigreturn stub_rt_sigreturn
2516 64 ioctl sys_ioctl
H. Peter Anvin6630f112012-02-14 14:18:50 -08002617 common pread64 sys_pread64
2718 common pwrite64 sys_pwrite64
H. Peter Anvind1817642011-11-11 15:55:49 -08002819 64 readv sys_readv
2920 64 writev sys_writev
H. Peter Anvin6630f112012-02-14 14:18:50 -08003021 common access sys_access
3122 common pipe sys_pipe
3223 common select sys_select
3324 common sched_yield sys_sched_yield
3425 common mremap sys_mremap
3526 common msync sys_msync
3627 common mincore sys_mincore
3728 common madvise sys_madvise
3829 common shmget sys_shmget
3930 common shmat sys_shmat
4031 common shmctl sys_shmctl
4132 common dup sys_dup
4233 common dup2 sys_dup2
4334 common pause sys_pause
4435 common nanosleep sys_nanosleep
4536 common getitimer sys_getitimer
4637 common alarm sys_alarm
4738 common setitimer sys_setitimer
4839 common getpid sys_getpid
4940 common sendfile sys_sendfile64
5041 common socket sys_socket
5142 common connect sys_connect
5243 common accept sys_accept
5344 common sendto sys_sendto
H. Peter Anvind1817642011-11-11 15:55:49 -08005445 64 recvfrom sys_recvfrom
5546 64 sendmsg sys_sendmsg
5647 64 recvmsg sys_recvmsg
H. Peter Anvin6630f112012-02-14 14:18:50 -08005748 common shutdown sys_shutdown
5849 common bind sys_bind
5950 common listen sys_listen
6051 common getsockname sys_getsockname
6152 common getpeername sys_getpeername
6253 common socketpair sys_socketpair
Mike Frysinger515c7af2012-08-18 16:11:37 -04006354 64 setsockopt sys_setsockopt
6455 64 getsockopt sys_getsockopt
H. Peter Anvin6630f112012-02-14 14:18:50 -08006556 common clone stub_clone
6657 common fork stub_fork
6758 common vfork stub_vfork
H. Peter Anvind1817642011-11-11 15:55:49 -08006859 64 execve stub_execve
H. Peter Anvin6630f112012-02-14 14:18:50 -08006960 common exit sys_exit
7061 common wait4 sys_wait4
7162 common kill sys_kill
7263 common uname sys_newuname
7364 common semget sys_semget
7465 common semop sys_semop
7566 common semctl sys_semctl
7667 common shmdt sys_shmdt
7768 common msgget sys_msgget
7869 common msgsnd sys_msgsnd
7970 common msgrcv sys_msgrcv
8071 common msgctl sys_msgctl
8172 common fcntl sys_fcntl
8273 common flock sys_flock
8374 common fsync sys_fsync
8475 common fdatasync sys_fdatasync
8576 common truncate sys_truncate
8677 common ftruncate sys_ftruncate
8778 common getdents sys_getdents
8879 common getcwd sys_getcwd
8980 common chdir sys_chdir
9081 common fchdir sys_fchdir
9182 common rename sys_rename
9283 common mkdir sys_mkdir
9384 common rmdir sys_rmdir
9485 common creat sys_creat
9586 common link sys_link
9687 common unlink sys_unlink
9788 common symlink sys_symlink
9889 common readlink sys_readlink
9990 common chmod sys_chmod
10091 common fchmod sys_fchmod
10192 common chown sys_chown
10293 common fchown sys_fchown
10394 common lchown sys_lchown
10495 common umask sys_umask
10596 common gettimeofday sys_gettimeofday
10697 common getrlimit sys_getrlimit
10798 common getrusage sys_getrusage
10899 common sysinfo sys_sysinfo
H. Peter Anvine7084fd2012-03-05 13:40:24 -0800109100 common times sys_times
H.J. Lu55283e22012-03-05 15:32:11 -0800110101 64 ptrace sys_ptrace
H. Peter Anvin6630f112012-02-14 14:18:50 -0800111102 common getuid sys_getuid
112103 common syslog sys_syslog
113104 common getgid sys_getgid
114105 common setuid sys_setuid
115106 common setgid sys_setgid
116107 common geteuid sys_geteuid
117108 common getegid sys_getegid
118109 common setpgid sys_setpgid
119110 common getppid sys_getppid
120111 common getpgrp sys_getpgrp
121112 common setsid sys_setsid
122113 common setreuid sys_setreuid
123114 common setregid sys_setregid
124115 common getgroups sys_getgroups
125116 common setgroups sys_setgroups
126117 common setresuid sys_setresuid
127118 common getresuid sys_getresuid
128119 common setresgid sys_setresgid
129120 common getresgid sys_getresgid
130121 common getpgid sys_getpgid
131122 common setfsuid sys_setfsuid
132123 common setfsgid sys_setfsgid
133124 common getsid sys_getsid
134125 common capget sys_capget
135126 common capset sys_capset
H. Peter Anvind1817642011-11-11 15:55:49 -0800136127 64 rt_sigpending sys_rt_sigpending
137128 64 rt_sigtimedwait sys_rt_sigtimedwait
138129 64 rt_sigqueueinfo sys_rt_sigqueueinfo
H. Peter Anvin6630f112012-02-14 14:18:50 -0800139130 common rt_sigsuspend sys_rt_sigsuspend
Al Viro6bf9adf2012-12-14 14:09:47 -0500140131 64 sigaltstack sys_sigaltstack
H. Peter Anvin6630f112012-02-14 14:18:50 -0800141132 common utime sys_utime
142133 common mknod sys_mknod
H. Peter Anvind1817642011-11-11 15:55:49 -0800143134 64 uselib
H. Peter Anvin6630f112012-02-14 14:18:50 -0800144135 common personality sys_personality
145136 common ustat sys_ustat
146137 common statfs sys_statfs
147138 common fstatfs sys_fstatfs
148139 common sysfs sys_sysfs
149140 common getpriority sys_getpriority
150141 common setpriority sys_setpriority
151142 common sched_setparam sys_sched_setparam
152143 common sched_getparam sys_sched_getparam
153144 common sched_setscheduler sys_sched_setscheduler
154145 common sched_getscheduler sys_sched_getscheduler
155146 common sched_get_priority_max sys_sched_get_priority_max
156147 common sched_get_priority_min sys_sched_get_priority_min
157148 common sched_rr_get_interval sys_sched_rr_get_interval
158149 common mlock sys_mlock
159150 common munlock sys_munlock
160151 common mlockall sys_mlockall
161152 common munlockall sys_munlockall
162153 common vhangup sys_vhangup
163154 common modify_ldt sys_modify_ldt
164155 common pivot_root sys_pivot_root
H. Peter Anvind1817642011-11-11 15:55:49 -0800165156 64 _sysctl sys_sysctl
H. Peter Anvin6630f112012-02-14 14:18:50 -0800166157 common prctl sys_prctl
167158 common arch_prctl sys_arch_prctl
168159 common adjtimex sys_adjtimex
169160 common setrlimit sys_setrlimit
170161 common chroot sys_chroot
171162 common sync sys_sync
172163 common acct sys_acct
173164 common settimeofday sys_settimeofday
174165 common mount sys_mount
175166 common umount2 sys_umount
176167 common swapon sys_swapon
177168 common swapoff sys_swapoff
178169 common reboot sys_reboot
179170 common sethostname sys_sethostname
180171 common setdomainname sys_setdomainname
181172 common iopl stub_iopl
182173 common ioperm sys_ioperm
H. Peter Anvind1817642011-11-11 15:55:49 -0800183174 64 create_module
H. Peter Anvin6630f112012-02-14 14:18:50 -0800184175 common init_module sys_init_module
185176 common delete_module sys_delete_module
H. Peter Anvind1817642011-11-11 15:55:49 -0800186177 64 get_kernel_syms
187178 64 query_module
H. Peter Anvin6630f112012-02-14 14:18:50 -0800188179 common quotactl sys_quotactl
H. Peter Anvind1817642011-11-11 15:55:49 -0800189180 64 nfsservctl
H. Peter Anvin6630f112012-02-14 14:18:50 -0800190181 common getpmsg
191182 common putpmsg
192183 common afs_syscall
193184 common tuxcall
194185 common security
195186 common gettid sys_gettid
196187 common readahead sys_readahead
197188 common setxattr sys_setxattr
198189 common lsetxattr sys_lsetxattr
199190 common fsetxattr sys_fsetxattr
200191 common getxattr sys_getxattr
201192 common lgetxattr sys_lgetxattr
202193 common fgetxattr sys_fgetxattr
203194 common listxattr sys_listxattr
204195 common llistxattr sys_llistxattr
205196 common flistxattr sys_flistxattr
206197 common removexattr sys_removexattr
207198 common lremovexattr sys_lremovexattr
208199 common fremovexattr sys_fremovexattr
209200 common tkill sys_tkill
210201 common time sys_time
211202 common futex sys_futex
212203 common sched_setaffinity sys_sched_setaffinity
213204 common sched_getaffinity sys_sched_getaffinity
H. Peter Anvind1817642011-11-11 15:55:49 -0800214205 64 set_thread_area
Mike Frysinger7fd44da2014-05-04 20:43:15 -0400215206 64 io_setup sys_io_setup
H. Peter Anvin6630f112012-02-14 14:18:50 -0800216207 common io_destroy sys_io_destroy
217208 common io_getevents sys_io_getevents
Mike Frysinger7fd44da2014-05-04 20:43:15 -0400218209 64 io_submit sys_io_submit
H. Peter Anvin6630f112012-02-14 14:18:50 -0800219210 common io_cancel sys_io_cancel
H. Peter Anvind1817642011-11-11 15:55:49 -0800220211 64 get_thread_area
H. Peter Anvin6630f112012-02-14 14:18:50 -0800221212 common lookup_dcookie sys_lookup_dcookie
222213 common epoll_create sys_epoll_create
H. Peter Anvind1817642011-11-11 15:55:49 -0800223214 64 epoll_ctl_old
224215 64 epoll_wait_old
H. Peter Anvin6630f112012-02-14 14:18:50 -0800225216 common remap_file_pages sys_remap_file_pages
226217 common getdents64 sys_getdents64
227218 common set_tid_address sys_set_tid_address
228219 common restart_syscall sys_restart_syscall
229220 common semtimedop sys_semtimedop
230221 common fadvise64 sys_fadvise64
H. Peter Anvind1817642011-11-11 15:55:49 -0800231222 64 timer_create sys_timer_create
H. Peter Anvin6630f112012-02-14 14:18:50 -0800232223 common timer_settime sys_timer_settime
233224 common timer_gettime sys_timer_gettime
234225 common timer_getoverrun sys_timer_getoverrun
235226 common timer_delete sys_timer_delete
236227 common clock_settime sys_clock_settime
237228 common clock_gettime sys_clock_gettime
238229 common clock_getres sys_clock_getres
239230 common clock_nanosleep sys_clock_nanosleep
240231 common exit_group sys_exit_group
241232 common epoll_wait sys_epoll_wait
242233 common epoll_ctl sys_epoll_ctl
243234 common tgkill sys_tgkill
244235 common utimes sys_utimes
H. Peter Anvind1817642011-11-11 15:55:49 -0800245236 64 vserver
H. Peter Anvin6630f112012-02-14 14:18:50 -0800246237 common mbind sys_mbind
247238 common set_mempolicy sys_set_mempolicy
248239 common get_mempolicy sys_get_mempolicy
249240 common mq_open sys_mq_open
250241 common mq_unlink sys_mq_unlink
251242 common mq_timedsend sys_mq_timedsend
252243 common mq_timedreceive sys_mq_timedreceive
H. Peter Anvind1817642011-11-11 15:55:49 -0800253244 64 mq_notify sys_mq_notify
H. Peter Anvin6630f112012-02-14 14:18:50 -0800254245 common mq_getsetattr sys_mq_getsetattr
H. Peter Anvind1817642011-11-11 15:55:49 -0800255246 64 kexec_load sys_kexec_load
256247 64 waitid sys_waitid
H. Peter Anvin6630f112012-02-14 14:18:50 -0800257248 common add_key sys_add_key
258249 common request_key sys_request_key
259250 common keyctl sys_keyctl
260251 common ioprio_set sys_ioprio_set
261252 common ioprio_get sys_ioprio_get
262253 common inotify_init sys_inotify_init
263254 common inotify_add_watch sys_inotify_add_watch
264255 common inotify_rm_watch sys_inotify_rm_watch
265256 common migrate_pages sys_migrate_pages
266257 common openat sys_openat
267258 common mkdirat sys_mkdirat
268259 common mknodat sys_mknodat
269260 common fchownat sys_fchownat
270261 common futimesat sys_futimesat
271262 common newfstatat sys_newfstatat
272263 common unlinkat sys_unlinkat
273264 common renameat sys_renameat
274265 common linkat sys_linkat
275266 common symlinkat sys_symlinkat
276267 common readlinkat sys_readlinkat
277268 common fchmodat sys_fchmodat
278269 common faccessat sys_faccessat
279270 common pselect6 sys_pselect6
280271 common ppoll sys_ppoll
281272 common unshare sys_unshare
H. Peter Anvind1817642011-11-11 15:55:49 -0800282273 64 set_robust_list sys_set_robust_list
283274 64 get_robust_list sys_get_robust_list
H. Peter Anvin6630f112012-02-14 14:18:50 -0800284275 common splice sys_splice
285276 common tee sys_tee
286277 common sync_file_range sys_sync_file_range
H. Peter Anvind1817642011-11-11 15:55:49 -0800287278 64 vmsplice sys_vmsplice
288279 64 move_pages sys_move_pages
H. Peter Anvin6630f112012-02-14 14:18:50 -0800289280 common utimensat sys_utimensat
290281 common epoll_pwait sys_epoll_pwait
291282 common signalfd sys_signalfd
292283 common timerfd_create sys_timerfd_create
293284 common eventfd sys_eventfd
294285 common fallocate sys_fallocate
295286 common timerfd_settime sys_timerfd_settime
296287 common timerfd_gettime sys_timerfd_gettime
297288 common accept4 sys_accept4
298289 common signalfd4 sys_signalfd4
299290 common eventfd2 sys_eventfd2
300291 common epoll_create1 sys_epoll_create1
301292 common dup3 sys_dup3
302293 common pipe2 sys_pipe2
303294 common inotify_init1 sys_inotify_init1
H. Peter Anvind1817642011-11-11 15:55:49 -0800304295 64 preadv sys_preadv
305296 64 pwritev sys_pwritev
306297 64 rt_tgsigqueueinfo sys_rt_tgsigqueueinfo
H. Peter Anvin6630f112012-02-14 14:18:50 -0800307298 common perf_event_open sys_perf_event_open
H. Peter Anvind1817642011-11-11 15:55:49 -0800308299 64 recvmmsg sys_recvmmsg
H. Peter Anvin6630f112012-02-14 14:18:50 -0800309300 common fanotify_init sys_fanotify_init
310301 common fanotify_mark sys_fanotify_mark
311302 common prlimit64 sys_prlimit64
312303 common name_to_handle_at sys_name_to_handle_at
313304 common open_by_handle_at sys_open_by_handle_at
314305 common clock_adjtime sys_clock_adjtime
315306 common syncfs sys_syncfs
H. Peter Anvind1817642011-11-11 15:55:49 -0800316307 64 sendmmsg sys_sendmmsg
H. Peter Anvin6630f112012-02-14 14:18:50 -0800317308 common setns sys_setns
318309 common getcpu sys_getcpu
H. Peter Anvind1817642011-11-11 15:55:49 -0800319310 64 process_vm_readv sys_process_vm_readv
320311 64 process_vm_writev sys_process_vm_writev
H. Peter Anvineaf4ce62012-08-01 15:59:58 -0700321312 common kcmp sys_kcmp
Kees Cook34e11692012-10-16 07:31:07 +1030322313 common finit_module sys_finit_module
Dario Faggiolid50dde52013-11-07 14:43:36 +0100323314 common sched_setattr sys_sched_setattr
324315 common sched_getattr sys_sched_getattr
Miklos Szeredi520c8b12014-04-01 17:08:42 +0200325316 common renameat2 sys_renameat2
Theodore Ts'oc6e9d6f2014-07-17 04:13:05 -0400326318 common getrandom sys_getrandom
Cyrill Gorcunovd97b46a2012-05-31 16:26:44 -0700327
H. Peter Anvin6630f112012-02-14 14:18:50 -0800328#
329# x32-specific system call numbers start at 512 to avoid cache impact
330# for native 64-bit operation.
331#
Al Viro29fd4482012-12-25 18:42:26 -0500332512 x32 rt_sigaction compat_sys_rt_sigaction
H. Peter Anvin6630f112012-02-14 14:18:50 -0800333513 x32 rt_sigreturn stub_x32_rt_sigreturn
334514 x32 ioctl compat_sys_ioctl
335515 x32 readv compat_sys_readv
336516 x32 writev compat_sys_writev
337517 x32 recvfrom compat_sys_recvfrom
338518 x32 sendmsg compat_sys_sendmsg
339519 x32 recvmsg compat_sys_recvmsg
340520 x32 execve stub_x32_execve
H.J. Lu55283e22012-03-05 15:32:11 -0800341521 x32 ptrace compat_sys_ptrace
Al Virof45adb02012-12-25 14:46:17 -0500342522 x32 rt_sigpending compat_sys_rt_sigpending
H. Peter Anvin6630f112012-02-14 14:18:50 -0800343523 x32 rt_sigtimedwait compat_sys_rt_sigtimedwait
Al Viro7b83d1a2012-12-25 15:26:55 -0500344524 x32 rt_sigqueueinfo compat_sys_rt_sigqueueinfo
Al Viro90268432012-12-14 14:47:53 -0500345525 x32 sigaltstack compat_sys_sigaltstack
H. Peter Anvin6630f112012-02-14 14:18:50 -0800346526 x32 timer_create compat_sys_timer_create
347527 x32 mq_notify compat_sys_mq_notify
348528 x32 kexec_load compat_sys_kexec_load
349529 x32 waitid compat_sys_waitid
350530 x32 set_robust_list compat_sys_set_robust_list
351531 x32 get_robust_list compat_sys_get_robust_list
352532 x32 vmsplice compat_sys_vmsplice
353533 x32 move_pages compat_sys_move_pages
354534 x32 preadv compat_sys_preadv64
355535 x32 pwritev compat_sys_pwritev64
356536 x32 rt_tgsigqueueinfo compat_sys_rt_tgsigqueueinfo
357537 x32 recvmmsg compat_sys_recvmmsg
358538 x32 sendmmsg compat_sys_sendmmsg
359539 x32 process_vm_readv compat_sys_process_vm_readv
360540 x32 process_vm_writev compat_sys_process_vm_writev
Mike Frysinger515c7af2012-08-18 16:11:37 -0400361541 x32 setsockopt compat_sys_setsockopt
362542 x32 getsockopt compat_sys_getsockopt
Mike Frysinger7fd44da2014-05-04 20:43:15 -0400363543 x32 io_setup compat_sys_io_setup
364544 x32 io_submit compat_sys_io_submit