xref: /linux/scripts/syscall.tbl (revision 527eff227d4321c6ea453db1083bc4fdd4d3a3e8)
1# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2#
3# This file contains the system call numbers for all of the
4# more recently added architectures.
5#
6# As a basic principle, no duplication of functionality
7# should be added, e.g. we don't use lseek when llseek
8# is present. New architectures should use this file
9# and implement the less feature-full calls in user space.
10#
110	common	io_setup			sys_io_setup			compat_sys_io_setup
121	common	io_destroy			sys_io_destroy
132	common	io_submit			sys_io_submit			compat_sys_io_submit
143	common	io_cancel			sys_io_cancel
154	time32	io_getevents			sys_io_getevents_time32
164	64	io_getevents			sys_io_getevents
175	common	setxattr			sys_setxattr
186	common	lsetxattr			sys_lsetxattr
197	common	fsetxattr			sys_fsetxattr
208	common	getxattr			sys_getxattr
219	common	lgetxattr			sys_lgetxattr
2210	common	fgetxattr			sys_fgetxattr
2311	common	listxattr			sys_listxattr
2412	common	llistxattr			sys_llistxattr
2513	common	flistxattr			sys_flistxattr
2614	common	removexattr			sys_removexattr
2715	common	lremovexattr			sys_lremovexattr
2816	common	fremovexattr			sys_fremovexattr
2917	common	getcwd				sys_getcwd
3018	common	lookup_dcookie			sys_ni_syscall
3119	common	eventfd2			sys_eventfd2
3220	common	epoll_create1			sys_epoll_create1
3321	common	epoll_ctl			sys_epoll_ctl
3422	common	epoll_pwait			sys_epoll_pwait			compat_sys_epoll_pwait
3523	common	dup				sys_dup
3624	common	dup3				sys_dup3
3725	32	fcntl64				sys_fcntl64			compat_sys_fcntl64
3825	64	fcntl				sys_fcntl
3926	common	inotify_init1			sys_inotify_init1
4027	common	inotify_add_watch		sys_inotify_add_watch
4128	common	inotify_rm_watch		sys_inotify_rm_watch
4229	common	ioctl				sys_ioctl			compat_sys_ioctl
4330	common	ioprio_set			sys_ioprio_set
4431	common	ioprio_get			sys_ioprio_get
4532	common	flock				sys_flock
4633	common	mknodat				sys_mknodat
4734	common	mkdirat				sys_mkdirat
4835	common	unlinkat			sys_unlinkat
4936	common	symlinkat			sys_symlinkat
5037	common	linkat				sys_linkat
51# renameat is superseded with flags by renameat2
5238	renameat renameat			sys_renameat
5339	common	umount2				sys_umount
5440	common	mount				sys_mount
5541	common	pivot_root			sys_pivot_root
5643	32	statfs64			sys_statfs64			compat_sys_statfs64
5743	64	statfs				sys_statfs
5844	32	fstatfs64			sys_fstatfs64			compat_sys_fstatfs64
5944	64	fstatfs				sys_fstatfs
6045	32	truncate64			sys_truncate64			compat_sys_truncate64
6145	64	truncate			sys_truncate
6246	32	ftruncate64			sys_ftruncate64			compat_sys_ftruncate64
6346	64	ftruncate			sys_ftruncate
6447	common	fallocate			sys_fallocate			compat_sys_fallocate
6548	common	faccessat			sys_faccessat
6649	common	chdir				sys_chdir
6750	common	fchdir				sys_fchdir
6851	common	chroot				sys_chroot
6952	common	fchmod				sys_fchmod
7053	common	fchmodat			sys_fchmodat
7154	common	fchownat			sys_fchownat
7255	common	fchown				sys_fchown
7356	common	openat				sys_openat
7457	common	close				sys_close
7558	common	vhangup				sys_vhangup
7659	common	pipe2				sys_pipe2
7760	common	quotactl			sys_quotactl
7861	common	getdents64			sys_getdents64
7962	32	llseek				sys_llseek
8062	64	lseek				sys_lseek
8163	common	read				sys_read
8264	common	write				sys_write
8365	common	readv				sys_readv			sys_readv
8466	common	writev				sys_writev			sys_writev
8567	common	pread64				sys_pread64			compat_sys_pread64
8668	common	pwrite64			sys_pwrite64			compat_sys_pwrite64
8769	common	preadv				sys_preadv			compat_sys_preadv
8870	common	pwritev				sys_pwritev			compat_sys_pwritev
8971	32	sendfile64			sys_sendfile64
9071	64	sendfile			sys_sendfile64
9172	time32	pselect6			sys_pselect6_time32		compat_sys_pselect6_time32
9272	64	pselect6			sys_pselect6
9373	time32	ppoll				sys_ppoll_time32		compat_sys_ppoll_time32
9473	64	ppoll				sys_ppoll
9574	common	signalfd4			sys_signalfd4			compat_sys_signalfd4
9675	common	vmsplice			sys_vmsplice
9776	common	splice				sys_splice
9877	common	tee				sys_tee
9978	common	readlinkat			sys_readlinkat
10079	stat64	fstatat64			sys_fstatat64
10179	newstat	fstatat				sys_newfstatat
10280	stat64	fstat64				sys_fstat64
10380	newstat	fstat				sys_newfstat
10481	common	sync				sys_sync
10582	common	fsync				sys_fsync
10683	common	fdatasync			sys_fdatasync
10784	common	sync_file_range			sys_sync_file_range		compat_sys_sync_file_range
10885	common	timerfd_create			sys_timerfd_create
10986	time32	timerfd_settime			sys_timerfd_settime32
11086	64	timerfd_settime			sys_timerfd_settime
11187	time32	timerfd_gettime			sys_timerfd_gettime32
11287	64	timerfd_gettime			sys_timerfd_gettime
11388	time32	utimensat			sys_utimensat_time32
11488	64	utimensat			sys_utimensat
11589	common	acct				sys_acct
11690	common	capget				sys_capget
11791	common	capset				sys_capset
11892	common	personality			sys_personality
11993	common	exit				sys_exit
12094	common	exit_group			sys_exit_group
12195	common	waitid				sys_waitid			compat_sys_waitid
12296	common	set_tid_address			sys_set_tid_address
12397	common	unshare				sys_unshare
12498	time32	futex				sys_futex_time32
12598	64	futex				sys_futex
12699	common	set_robust_list			sys_set_robust_list		compat_sys_set_robust_list
127100	common	get_robust_list			sys_get_robust_list		compat_sys_get_robust_list
128101	time32	nanosleep			sys_nanosleep_time32
129101	64	nanosleep			sys_nanosleep
130102	common	getitimer			sys_getitimer			compat_sys_getitimer
131103	common	setitimer			sys_setitimer			compat_sys_setitimer
132104	common	kexec_load			sys_kexec_load			compat_sys_kexec_load
133105	common	init_module			sys_init_module
134106	common	delete_module			sys_delete_module
135107	common	timer_create			sys_timer_create		compat_sys_timer_create
136108	time32	timer_gettime			sys_timer_gettime32
137108	64	timer_gettime			sys_timer_gettime
138109	common	timer_getoverrun		sys_timer_getoverrun
139110	time32	timer_settime			sys_timer_settime32
140110	64	timer_settime			sys_timer_settime
141111	common	timer_delete			sys_timer_delete
142112	time32	clock_settime			sys_clock_settime32
143112	64	clock_settime			sys_clock_settime
144113	time32	clock_gettime			sys_clock_gettime32
145113	64	clock_gettime			sys_clock_gettime
146114	time32	clock_getres			sys_clock_getres_time32
147114	64	clock_getres			sys_clock_getres
148115	time32	clock_nanosleep			sys_clock_nanosleep_time32
149115	64	clock_nanosleep			sys_clock_nanosleep
150116	common	syslog				sys_syslog
151117	common	ptrace				sys_ptrace			compat_sys_ptrace
152118	common	sched_setparam			sys_sched_setparam
153119	common	sched_setscheduler		sys_sched_setscheduler
154120	common	sched_getscheduler		sys_sched_getscheduler
155121	common	sched_getparam			sys_sched_getparam
156122	common	sched_setaffinity		sys_sched_setaffinity		compat_sys_sched_setaffinity
157123	common	sched_getaffinity		sys_sched_getaffinity		compat_sys_sched_getaffinity
158124	common	sched_yield			sys_sched_yield
159125	common	sched_get_priority_max		sys_sched_get_priority_max
160126	common	sched_get_priority_min		sys_sched_get_priority_min
161127	time32	sched_rr_get_interval		sys_sched_rr_get_interval_time32
162127	64	sched_rr_get_interval		sys_sched_rr_get_interval
163128	common	restart_syscall			sys_restart_syscall
164129	common	kill				sys_kill
165130	common	tkill				sys_tkill
166131	common	tgkill				sys_tgkill
167132	common	sigaltstack			sys_sigaltstack			compat_sys_sigaltstack
168133	common	rt_sigsuspend			sys_rt_sigsuspend		compat_sys_rt_sigsuspend
169134	common	rt_sigaction			sys_rt_sigaction		compat_sys_rt_sigaction
170135	common	rt_sigprocmask			sys_rt_sigprocmask		compat_sys_rt_sigprocmask
171136	common	rt_sigpending			sys_rt_sigpending		compat_sys_rt_sigpending
172137	time32	rt_sigtimedwait			sys_rt_sigtimedwait_time32	compat_sys_rt_sigtimedwait_time32
173137	64	rt_sigtimedwait			sys_rt_sigtimedwait
174138	common	rt_sigqueueinfo			sys_rt_sigqueueinfo		compat_sys_rt_sigqueueinfo
175139	common	rt_sigreturn			sys_rt_sigreturn		compat_sys_rt_sigreturn
176140	common	setpriority			sys_setpriority
177141	common	getpriority			sys_getpriority
178142	common	reboot				sys_reboot
179143	common	setregid			sys_setregid
180144	common	setgid				sys_setgid
181145	common	setreuid			sys_setreuid
182146	common	setuid				sys_setuid
183147	common	setresuid			sys_setresuid
184148	common	getresuid			sys_getresuid
185149	common	setresgid			sys_setresgid
186150	common	getresgid			sys_getresgid
187151	common	setfsuid			sys_setfsuid
188152	common	setfsgid			sys_setfsgid
189153	common	times				sys_times			compat_sys_times
190154	common	setpgid				sys_setpgid
191155	common	getpgid				sys_getpgid
192156	common	getsid				sys_getsid
193157	common	setsid				sys_setsid
194158	common	getgroups			sys_getgroups
195159	common	setgroups			sys_setgroups
196160	common	uname				sys_newuname
197161	common	sethostname			sys_sethostname
198162	common	setdomainname			sys_setdomainname
199# getrlimit and setrlimit are superseded with prlimit64
200163	rlimit	getrlimit			sys_getrlimit			compat_sys_getrlimit
201164	rlimit	setrlimit			sys_setrlimit			compat_sys_setrlimit
202165	common	getrusage			sys_getrusage			compat_sys_getrusage
203166	common	umask				sys_umask
204167	common	prctl				sys_prctl
205168	common	getcpu				sys_getcpu
206169	time32	gettimeofday			sys_gettimeofday		compat_sys_gettimeofday
207169	64	gettimeofday			sys_gettimeofday
208170	time32	settimeofday			sys_settimeofday		compat_sys_settimeofday
209170	64	settimeofday			sys_settimeofday
210171	time32	adjtimex			sys_adjtimex_time32
211171	64	adjtimex			sys_adjtimex
212172	common	getpid				sys_getpid
213173	common	getppid				sys_getppid
214174	common	getuid				sys_getuid
215175	common	geteuid				sys_geteuid
216176	common	getgid				sys_getgid
217177	common	getegid				sys_getegid
218178	common	gettid				sys_gettid
219179	common	sysinfo				sys_sysinfo			compat_sys_sysinfo
220180	common	mq_open				sys_mq_open			compat_sys_mq_open
221181	common	mq_unlink			sys_mq_unlink
222182	time32	mq_timedsend			sys_mq_timedsend_time32
223182	64	mq_timedsend			sys_mq_timedsend
224183	time32	mq_timedreceive			sys_mq_timedreceive_time32
225183	64	mq_timedreceive			sys_mq_timedreceive
226184	common	mq_notify			sys_mq_notify			compat_sys_mq_notify
227185	common	mq_getsetattr			sys_mq_getsetattr		compat_sys_mq_getsetattr
228186	common	msgget				sys_msgget
229187	common	msgctl				sys_msgctl			compat_sys_msgctl
230188	common	msgrcv				sys_msgrcv			compat_sys_msgrcv
231189	common	msgsnd				sys_msgsnd			compat_sys_msgsnd
232190	common	semget				sys_semget
233191	common	semctl				sys_semctl			compat_sys_semctl
234192	time32	semtimedop			sys_semtimedop_time32
235192	64	semtimedop			sys_semtimedop
236193	common	semop				sys_semop
237194	common	shmget				sys_shmget
238195	common	shmctl				sys_shmctl			compat_sys_shmctl
239196	common	shmat				sys_shmat			compat_sys_shmat
240197	common	shmdt				sys_shmdt
241198	common	socket				sys_socket
242199	common	socketpair			sys_socketpair
243200	common	bind				sys_bind
244201	common	listen				sys_listen
245202	common	accept				sys_accept
246203	common	connect				sys_connect
247204	common	getsockname			sys_getsockname
248205	common	getpeername			sys_getpeername
249206	common	sendto				sys_sendto
250207	common	recvfrom			sys_recvfrom			compat_sys_recvfrom
251208	common	setsockopt			sys_setsockopt			sys_setsockopt
252209	common	getsockopt			sys_getsockopt			sys_getsockopt
253210	common	shutdown			sys_shutdown
254211	common	sendmsg				sys_sendmsg			compat_sys_sendmsg
255212	common	recvmsg				sys_recvmsg			compat_sys_recvmsg
256213	common	readahead			sys_readahead			compat_sys_readahead
257214	common	brk				sys_brk
258215	common	munmap				sys_munmap
259216	common	mremap				sys_mremap
260217	common	add_key				sys_add_key
261218	common	request_key			sys_request_key
262219	common	keyctl				sys_keyctl			compat_sys_keyctl
263220	common	clone				sys_clone
264221	common	execve				sys_execve			compat_sys_execve
265222	32	mmap2				sys_mmap2
266222	64	mmap				sys_mmap
267223	32	fadvise64_64			sys_fadvise64_64		compat_sys_fadvise64_64
268223	64	fadvise64			sys_fadvise64_64
269224	common	swapon				sys_swapon
270225	common	swapoff				sys_swapoff
271226	common	mprotect			sys_mprotect
272227	common	msync				sys_msync
273228	common	mlock				sys_mlock
274229	common	munlock				sys_munlock
275230	common	mlockall			sys_mlockall
276231	common	munlockall			sys_munlockall
277232	common	mincore				sys_mincore
278233	common	madvise				sys_madvise
279234	common	remap_file_pages		sys_remap_file_pages
280235	common	mbind				sys_mbind
281236	common	get_mempolicy			sys_get_mempolicy
282237	common	set_mempolicy			sys_set_mempolicy
283238	common	migrate_pages			sys_migrate_pages
284239	common	move_pages			sys_move_pages
285240	common	rt_tgsigqueueinfo		sys_rt_tgsigqueueinfo		compat_sys_rt_tgsigqueueinfo
286241	common	perf_event_open			sys_perf_event_open
287242	common	accept4				sys_accept4
288243	time32	recvmmsg			sys_recvmmsg_time32		compat_sys_recvmmsg_time32
289243	64	recvmmsg			sys_recvmmsg
290# Architectures may provide up to 16 syscalls of their own between 244 and 259
291244	arc	cacheflush			sys_cacheflush
292245	arc	arc_settls			sys_arc_settls
293246	arc	arc_gettls			sys_arc_gettls
294247	arc	sysfs				sys_sysfs
295248	arc	arc_usr_cmpxchg			sys_arc_usr_cmpxchg
296
297244	csky	set_thread_area			sys_set_thread_area
298245	csky	cacheflush			sys_cacheflush
299
300244	nios2	cacheflush			sys_cacheflush
301
302244	or1k	or1k_atomic			sys_or1k_atomic
303
304258	riscv	riscv_hwprobe			sys_riscv_hwprobe
305259	riscv	riscv_flush_icache		sys_riscv_flush_icache
306
307260	time32	wait4				sys_wait4			compat_sys_wait4
308260	64	wait4				sys_wait4
309261	common	prlimit64			sys_prlimit64
310262	common	fanotify_init			sys_fanotify_init
311263	common	fanotify_mark			sys_fanotify_mark
312264	common	name_to_handle_at		sys_name_to_handle_at
313265	common	open_by_handle_at		sys_open_by_handle_at
314266	time32	clock_adjtime			sys_clock_adjtime32
315266	64	clock_adjtime			sys_clock_adjtime
316267	common	syncfs				sys_syncfs
317268	common	setns				sys_setns
318269	common	sendmmsg			sys_sendmmsg			compat_sys_sendmmsg
319270	common	process_vm_readv		sys_process_vm_readv
320271	common	process_vm_writev		sys_process_vm_writev
321272	common	kcmp				sys_kcmp
322273	common	finit_module			sys_finit_module
323274	common	sched_setattr			sys_sched_setattr
324275	common	sched_getattr			sys_sched_getattr
325276	common	renameat2			sys_renameat2
326277	common	seccomp				sys_seccomp
327278	common	getrandom			sys_getrandom
328279	common	memfd_create			sys_memfd_create
329280	common	bpf				sys_bpf
330281	common	execveat			sys_execveat			compat_sys_execveat
331282	common	userfaultfd			sys_userfaultfd
332283	common	membarrier			sys_membarrier
333284	common	mlock2				sys_mlock2
334285	common	copy_file_range			sys_copy_file_range
335286	common	preadv2				sys_preadv2			compat_sys_preadv2
336287	common	pwritev2			sys_pwritev2			compat_sys_pwritev2
337288	common	pkey_mprotect			sys_pkey_mprotect
338289	common	pkey_alloc			sys_pkey_alloc
339290	common	pkey_free			sys_pkey_free
340291	common	statx				sys_statx
341292	time32	io_pgetevents			sys_io_pgetevents_time32	compat_sys_io_pgetevents
342292	64	io_pgetevents			sys_io_pgetevents
343293	common	rseq				sys_rseq
344294	common	kexec_file_load			sys_kexec_file_load
345# 295 through 402 are unassigned to sync up with generic numbers don't use
346403	32	clock_gettime64			sys_clock_gettime
347404	32	clock_settime64			sys_clock_settime
348405	32	clock_adjtime64			sys_clock_adjtime
349406	32	clock_getres_time64		sys_clock_getres
350407	32	clock_nanosleep_time64		sys_clock_nanosleep
351408	32	timer_gettime64			sys_timer_gettime
352409	32	timer_settime64			sys_timer_settime
353410	32	timerfd_gettime64		sys_timerfd_gettime
354411	32	timerfd_settime64		sys_timerfd_settime
355412	32	utimensat_time64		sys_utimensat
356413	32	pselect6_time64			sys_pselect6			compat_sys_pselect6_time64
357414	32	ppoll_time64			sys_ppoll			compat_sys_ppoll_time64
358416	32	io_pgetevents_time64		sys_io_pgetevents		compat_sys_io_pgetevents_time64
359417	32	recvmmsg_time64			sys_recvmmsg			compat_sys_recvmmsg_time64
360418	32	mq_timedsend_time64		sys_mq_timedsend
361419	32	mq_timedreceive_time64		sys_mq_timedreceive
362420	32	semtimedop_time64		sys_semtimedop
363421	32	rt_sigtimedwait_time64		sys_rt_sigtimedwait		compat_sys_rt_sigtimedwait_time64
364422	32	futex_time64			sys_futex
365423	32	sched_rr_get_interval_time64	sys_sched_rr_get_interval
366424	common	pidfd_send_signal		sys_pidfd_send_signal
367425	common	io_uring_setup			sys_io_uring_setup
368426	common	io_uring_enter			sys_io_uring_enter
369427	common	io_uring_register		sys_io_uring_register
370428	common	open_tree			sys_open_tree
371429	common	move_mount			sys_move_mount
372430	common	fsopen				sys_fsopen
373431	common	fsconfig			sys_fsconfig
374432	common	fsmount				sys_fsmount
375433	common	fspick				sys_fspick
376434	common	pidfd_open			sys_pidfd_open
377435	common	clone3				sys_clone3
378436	common	close_range			sys_close_range
379437	common	openat2				sys_openat2
380438	common	pidfd_getfd			sys_pidfd_getfd
381439	common	faccessat2			sys_faccessat2
382440	common	process_madvise			sys_process_madvise
383441	common	epoll_pwait2			sys_epoll_pwait2		compat_sys_epoll_pwait2
384442	common	mount_setattr			sys_mount_setattr
385443	common	quotactl_fd			sys_quotactl_fd
386444	common	landlock_create_ruleset		sys_landlock_create_ruleset
387445	common	landlock_add_rule		sys_landlock_add_rule
388446	common	landlock_restrict_self		sys_landlock_restrict_self
389447	memfd_secret	memfd_secret		sys_memfd_secret
390448	common	process_mrelease		sys_process_mrelease
391449	common	futex_waitv			sys_futex_waitv
392450	common	set_mempolicy_home_node		sys_set_mempolicy_home_node
393451	common	cachestat			sys_cachestat
394452	common	fchmodat2			sys_fchmodat2
395453	common	map_shadow_stack		sys_map_shadow_stack
396454	common	futex_wake			sys_futex_wake
397455	common	futex_wait			sys_futex_wait
398456	common	futex_requeue			sys_futex_requeue
399457	common	statmount			sys_statmount
400458	common	listmount			sys_listmount
401459	common	lsm_get_self_attr		sys_lsm_get_self_attr
402460	common	lsm_set_self_attr		sys_lsm_set_self_attr
403461	common	lsm_list_modules		sys_lsm_list_modules
404462	common	mseal				sys_mseal
405467	common	uretprobe			sys_uretprobe
406