478 lines · 17.1 KB · Text
RawDownload
# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note## system call numbers and entry vectors for sh## The format is:# <number> <abi> <name> <entry point>## The <abi> is always "common" for this file#0	common	restart_syscall			sys_restart_syscall1	common	exit				sys_exit2	common	fork				sys_fork3	common	read				sys_read4	common	write				sys_write5	common	open				sys_open6	common	close				sys_close7	common	waitpid				sys_waitpid8	common	creat				sys_creat9	common	link				sys_link10	common	unlink				sys_unlink11	common	execve				sys_execve12	common	chdir				sys_chdir13	common	time				sys_time3214	common	mknod				sys_mknod15	common	chmod				sys_chmod16	common	lchown				sys_lchown16# 17 was break18	common	oldstat				sys_stat19	common	lseek				sys_lseek20	common	getpid				sys_getpid21	common	mount				sys_mount22	common	umount				sys_oldumount23	common	setuid				sys_setuid1624	common	getuid				sys_getuid1625	common	stime				sys_stime3226	common	ptrace				sys_ptrace27	common	alarm				sys_alarm28	common	oldfstat			sys_fstat29	common	pause				sys_pause30	common	utime				sys_utime32# 31 was stty# 32 was gtty33	common	access				sys_access34	common	nice				sys_nice# 35 was ftime36	common	sync				sys_sync37	common	kill				sys_kill38	common	rename				sys_rename39	common	mkdir				sys_mkdir40	common	rmdir				sys_rmdir41	common	dup				sys_dup42	common	pipe				sys_sh_pipe43	common	times				sys_times# 44 was prof45	common	brk				sys_brk46	common	setgid				sys_setgid1647	common	getgid				sys_getgid1648	common	signal				sys_signal49	common	geteuid				sys_geteuid1650	common	getegid				sys_getegid1651	common	acct				sys_acct52	common	umount2				sys_umount# 53 was lock54	common	ioctl				sys_ioctl55	common	fcntl				sys_fcntl# 56 was mpx57	common	setpgid				sys_setpgid# 58 was ulimit# 59 was olduname60	common	umask				sys_umask61	common	chroot				sys_chroot62	common	ustat				sys_ustat63	common	dup2				sys_dup264	common	getppid				sys_getppid65	common	getpgrp				sys_getpgrp66	common	setsid				sys_setsid67	common	sigaction			sys_sigaction68	common	sgetmask			sys_sgetmask69	common	ssetmask			sys_ssetmask70	common	setreuid			sys_setreuid1671	common	setregid			sys_setregid1672	common	sigsuspend			sys_sigsuspend73	common	sigpending			sys_sigpending74	common	sethostname			sys_sethostname75	common	setrlimit			sys_setrlimit76	common	getrlimit			sys_old_getrlimit77	common	getrusage			sys_getrusage78	common	gettimeofday			sys_gettimeofday79	common	settimeofday			sys_settimeofday80	common	getgroups			sys_getgroups1681	common	setgroups			sys_setgroups16# 82 was select83	common	symlink				sys_symlink84	common	oldlstat			sys_lstat85	common	readlink			sys_readlink86	common	uselib				sys_uselib87	common	swapon				sys_swapon88	common	reboot				sys_reboot89	common	readdir				sys_old_readdir90	common	mmap				old_mmap91	common	munmap				sys_munmap92	common	truncate			sys_truncate93	common	ftruncate			sys_ftruncate94	common	fchmod				sys_fchmod95	common	fchown				sys_fchown1696	common	getpriority			sys_getpriority97	common	setpriority			sys_setpriority# 98 was profil99	common	statfs				sys_statfs100	common	fstatfs				sys_fstatfs# 101 was ioperm102	common	socketcall			sys_socketcall103	common	syslog				sys_syslog104	common	setitimer			sys_setitimer105	common	getitimer			sys_getitimer106	common	stat				sys_newstat107	common	lstat				sys_newlstat108	common	fstat				sys_newfstat109	common	olduname			sys_uname# 110 was iopl111	common	vhangup				sys_vhangup# 112 was idle# 113 was vm86old114	common	wait4				sys_wait4115	common	swapoff				sys_swapoff116	common	sysinfo				sys_sysinfo117	common	ipc				sys_ipc118	common	fsync				sys_fsync119	common	sigreturn			sys_sigreturn120	common	clone				sys_clone121	common	setdomainname			sys_setdomainname122	common	uname				sys_newuname123	common	cacheflush			sys_cacheflush124	common	adjtimex			sys_adjtimex_time32125	common	mprotect			sys_mprotect126	common	sigprocmask			sys_sigprocmask# 127 was create_module128	common	init_module			sys_init_module129	common	delete_module			sys_delete_module# 130 was get_kernel_syms131	common	quotactl			sys_quotactl132	common	getpgid				sys_getpgid133	common	fchdir				sys_fchdir134	common	bdflush				sys_ni_syscall135	common	sysfs				sys_sysfs136	common	personality			sys_personality# 137 was afs_syscall138	common	setfsuid			sys_setfsuid16139	common	setfsgid			sys_setfsgid16140	common	_llseek				sys_llseek141	common	getdents			sys_getdents142	common	_newselect			sys_select143	common	flock				sys_flock144	common	msync				sys_msync145	common	readv				sys_readv146	common	writev				sys_writev147	common	getsid				sys_getsid148	common	fdatasync			sys_fdatasync149	common	_sysctl				sys_ni_syscall150	common	mlock				sys_mlock151	common	munlock				sys_munlock152	common	mlockall			sys_mlockall153	common	munlockall			sys_munlockall154	common	sched_setparam			sys_sched_setparam155	common	sched_getparam			sys_sched_getparam156	common	sched_setscheduler		sys_sched_setscheduler157	common	sched_getscheduler		sys_sched_getscheduler158	common	sched_yield			sys_sched_yield159	common	sched_get_priority_max		sys_sched_get_priority_max160	common	sched_get_priority_min		sys_sched_get_priority_min161	common	sched_rr_get_interval		sys_sched_rr_get_interval_time32162	common	nanosleep			sys_nanosleep_time32163	common	mremap				sys_mremap164	common	setresuid			sys_setresuid16165	common	getresuid			sys_getresuid16# 166 was vm86# 167 was query_module168	common	poll				sys_poll169	common	nfsservctl			sys_ni_syscall170	common	setresgid			sys_setresgid16171	common	getresgid			sys_getresgid16172	common	prctl				sys_prctl173	common	rt_sigreturn			sys_rt_sigreturn174	common	rt_sigaction			sys_rt_sigaction175	common	rt_sigprocmask			sys_rt_sigprocmask176	common	rt_sigpending			sys_rt_sigpending177	common	rt_sigtimedwait			sys_rt_sigtimedwait_time32178	common	rt_sigqueueinfo			sys_rt_sigqueueinfo179	common	rt_sigsuspend			sys_rt_sigsuspend180	common	pread64				sys_pread_wrapper181	common	pwrite64			sys_pwrite_wrapper182	common	chown				sys_chown16183	common	getcwd				sys_getcwd184	common	capget				sys_capget185	common	capset				sys_capset186	common	sigaltstack			sys_sigaltstack187	common	sendfile			sys_sendfile# 188 is reserved for getpmsg# 189 is reserved for putpmsg190	common	vfork				sys_vfork191	common	ugetrlimit			sys_getrlimit192	common	mmap2				sys_mmap2193	common	truncate64			sys_truncate64194	common	ftruncate64			sys_ftruncate64195	common	stat64				sys_stat64196	common	lstat64				sys_lstat64197	common	fstat64				sys_fstat64198	common	lchown32			sys_lchown199	common	getuid32			sys_getuid200	common	getgid32			sys_getgid201	common	geteuid32			sys_geteuid202	common	getegid32			sys_getegid203	common	setreuid32			sys_setreuid204	common	setregid32			sys_setregid205	common	getgroups32			sys_getgroups206	common	setgroups32			sys_setgroups207	common	fchown32			sys_fchown208	common	setresuid32			sys_setresuid209	common	getresuid32			sys_getresuid210	common	setresgid32			sys_setresgid211	common	getresgid32			sys_getresgid212	common	chown32				sys_chown213	common	setuid32			sys_setuid214	common	setgid32			sys_setgid215	common	setfsuid32			sys_setfsuid216	common	setfsgid32			sys_setfsgid217	common	pivot_root			sys_pivot_root218	common	mincore				sys_mincore219	common	madvise				sys_madvise220	common	getdents64			sys_getdents64221	common	fcntl64				sys_fcntl64# 222 is reserved for tux# 223 is unused224	common	gettid				sys_gettid225	common	readahead			sys_readahead226	common	setxattr			sys_setxattr227	common	lsetxattr			sys_lsetxattr228	common	fsetxattr			sys_fsetxattr229	common	getxattr			sys_getxattr230	common	lgetxattr			sys_lgetxattr231	common	fgetxattr			sys_fgetxattr232	common	listxattr			sys_listxattr233	common	llistxattr			sys_llistxattr234	common	flistxattr			sys_flistxattr235	common	removexattr			sys_removexattr236	common	lremovexattr			sys_lremovexattr237	common	fremovexattr			sys_fremovexattr238	common	tkill				sys_tkill239	common	sendfile64			sys_sendfile64240	common	futex				sys_futex_time32241	common	sched_setaffinity		sys_sched_setaffinity242	common	sched_getaffinity		sys_sched_getaffinity# 243 is reserved for set_thread_area# 244 is reserved for get_thread_area245	common	io_setup			sys_io_setup246	common	io_destroy			sys_io_destroy247	common	io_getevents			sys_io_getevents_time32248	common	io_submit			sys_io_submit249	common	io_cancel			sys_io_cancel250	common	fadvise64			sys_fadvise64# 251 is unused252	common	exit_group			sys_exit_group253	common	lookup_dcookie			sys_ni_syscall254	common	epoll_create			sys_epoll_create255	common	epoll_ctl			sys_epoll_ctl256	common	epoll_wait			sys_epoll_wait257	common	remap_file_pages		sys_remap_file_pages258	common	set_tid_address			sys_set_tid_address259	common	timer_create			sys_timer_create260	common	timer_settime			sys_timer_settime32261	common	timer_gettime			sys_timer_gettime32262	common	timer_getoverrun		sys_timer_getoverrun263	common	timer_delete			sys_timer_delete264	common	clock_settime			sys_clock_settime32265	common	clock_gettime			sys_clock_gettime32266	common	clock_getres			sys_clock_getres_time32267	common	clock_nanosleep			sys_clock_nanosleep_time32268	common	statfs64			sys_statfs64269	common	fstatfs64			sys_fstatfs64270	common	tgkill				sys_tgkill271	common	utimes				sys_utimes_time32272	common	fadvise64_64			sys_fadvise64_64_wrapper# 273 is reserved for vserver274	common	mbind				sys_mbind275	common	get_mempolicy			sys_get_mempolicy276	common	set_mempolicy			sys_set_mempolicy277	common	mq_open				sys_mq_open278	common	mq_unlink			sys_mq_unlink279	common	mq_timedsend			sys_mq_timedsend_time32280	common	mq_timedreceive			sys_mq_timedreceive_time32281	common	mq_notify			sys_mq_notify282	common	mq_getsetattr			sys_mq_getsetattr283	common	kexec_load			sys_kexec_load284	common	waitid				sys_waitid285	common	add_key				sys_add_key286	common	request_key			sys_request_key287	common	keyctl				sys_keyctl288	common	ioprio_set			sys_ioprio_set289	common	ioprio_get			sys_ioprio_get290	common	inotify_init			sys_inotify_init291	common	inotify_add_watch		sys_inotify_add_watch292	common	inotify_rm_watch		sys_inotify_rm_watch# 293 is unused294	common	migrate_pages			sys_migrate_pages295	common	openat				sys_openat296	common	mkdirat				sys_mkdirat297	common	mknodat				sys_mknodat298	common	fchownat			sys_fchownat299	common	futimesat			sys_futimesat_time32300	common	fstatat64			sys_fstatat64301	common	unlinkat			sys_unlinkat302	common	renameat			sys_renameat303	common	linkat				sys_linkat304	common	symlinkat			sys_symlinkat305	common	readlinkat			sys_readlinkat306	common	fchmodat			sys_fchmodat307	common	faccessat			sys_faccessat308	common	pselect6			sys_pselect6_time32309	common	ppoll				sys_ppoll_time32310	common	unshare				sys_unshare311	common	set_robust_list			sys_set_robust_list312	common	get_robust_list			sys_get_robust_list313	common	splice				sys_splice314	common	sync_file_range			sys_sh_sync_file_range6315	common	tee				sys_tee316	common	vmsplice			sys_vmsplice317	common	move_pages			sys_move_pages318	common	getcpu				sys_getcpu319	common	epoll_pwait			sys_epoll_pwait320	common	utimensat			sys_utimensat_time32321	common	signalfd			sys_signalfd322	common	timerfd_create			sys_timerfd_create323	common	eventfd				sys_eventfd324	common	fallocate			sys_fallocate325	common	timerfd_settime			sys_timerfd_settime32326	common	timerfd_gettime			sys_timerfd_gettime32327	common	signalfd4			sys_signalfd4328	common	eventfd2			sys_eventfd2329	common	epoll_create1			sys_epoll_create1330	common	dup3				sys_dup3331	common	pipe2				sys_pipe2332	common	inotify_init1			sys_inotify_init1333	common	preadv				sys_preadv334	common	pwritev				sys_pwritev335	common	rt_tgsigqueueinfo		sys_rt_tgsigqueueinfo336	common	perf_event_open			sys_perf_event_open337	common	fanotify_init			sys_fanotify_init338	common	fanotify_mark			sys_fanotify_mark339	common	prlimit64			sys_prlimit64340	common	socket				sys_socket341	common	bind				sys_bind342	common	connect				sys_connect343	common	listen				sys_listen344	common	accept				sys_accept345	common	getsockname			sys_getsockname346	common	getpeername			sys_getpeername347	common	socketpair			sys_socketpair348	common	send				sys_send349	common	sendto				sys_sendto350	common	recv				sys_recv351	common	recvfrom			sys_recvfrom352	common	shutdown			sys_shutdown353	common	setsockopt			sys_setsockopt354	common	getsockopt			sys_getsockopt355	common	sendmsg				sys_sendmsg356	common	recvmsg				sys_recvmsg357	common	recvmmsg			sys_recvmmsg_time32358	common	accept4				sys_accept4359	common	name_to_handle_at		sys_name_to_handle_at360	common	open_by_handle_at		sys_open_by_handle_at361	common	clock_adjtime			sys_clock_adjtime32362	common	syncfs				sys_syncfs363	common	sendmmsg			sys_sendmmsg364	common	setns				sys_setns365	common	process_vm_readv		sys_process_vm_readv366	common	process_vm_writev		sys_process_vm_writev367	common	kcmp				sys_kcmp368	common	finit_module			sys_finit_module369	common	sched_getattr			sys_sched_getattr370	common	sched_setattr			sys_sched_setattr371	common	renameat2			sys_renameat2372	common	seccomp				sys_seccomp373	common	getrandom			sys_getrandom374	common	memfd_create			sys_memfd_create375	common	bpf				sys_bpf376	common	execveat			sys_execveat377	common	userfaultfd			sys_userfaultfd378	common	membarrier			sys_membarrier379	common	mlock2				sys_mlock2380	common	copy_file_range			sys_copy_file_range381	common	preadv2				sys_preadv2382	common	pwritev2			sys_pwritev2383	common	statx				sys_statx384	common	pkey_mprotect			sys_pkey_mprotect385	common	pkey_alloc			sys_pkey_alloc386	common	pkey_free			sys_pkey_free387	common	rseq				sys_rseq388	common	sync_file_range2		sys_sync_file_range2# room for arch specific syscalls393	common	semget				sys_semget394	common	semctl				sys_semctl395	common	shmget				sys_shmget396	common	shmctl				sys_shmctl397	common	shmat				sys_shmat398	common	shmdt				sys_shmdt399	common	msgget				sys_msgget400	common	msgsnd				sys_msgsnd401	common	msgrcv				sys_msgrcv402	common	msgctl				sys_msgctl403	common	clock_gettime64			sys_clock_gettime404	common	clock_settime64			sys_clock_settime405	common	clock_adjtime64			sys_clock_adjtime406	common	clock_getres_time64		sys_clock_getres407	common	clock_nanosleep_time64		sys_clock_nanosleep408	common	timer_gettime64			sys_timer_gettime409	common	timer_settime64			sys_timer_settime410	common	timerfd_gettime64		sys_timerfd_gettime411	common	timerfd_settime64		sys_timerfd_settime412	common	utimensat_time64		sys_utimensat413	common	pselect6_time64			sys_pselect6414	common	ppoll_time64			sys_ppoll416	common	io_pgetevents_time64		sys_io_pgetevents417	common	recvmmsg_time64			sys_recvmmsg418	common	mq_timedsend_time64		sys_mq_timedsend419	common	mq_timedreceive_time64		sys_mq_timedreceive420	common	semtimedop_time64		sys_semtimedop421	common	rt_sigtimedwait_time64		sys_rt_sigtimedwait422	common	futex_time64			sys_futex423	common	sched_rr_get_interval_time64	sys_sched_rr_get_interval424	common	pidfd_send_signal		sys_pidfd_send_signal425	common	io_uring_setup			sys_io_uring_setup426	common	io_uring_enter			sys_io_uring_enter427	common	io_uring_register		sys_io_uring_register428	common	open_tree			sys_open_tree429	common	move_mount			sys_move_mount430	common	fsopen				sys_fsopen431	common	fsconfig			sys_fsconfig432	common	fsmount				sys_fsmount433	common	fspick				sys_fspick434	common	pidfd_open			sys_pidfd_open# 435 reserved for clone3436	common	close_range			sys_close_range437	common	openat2				sys_openat2438	common	pidfd_getfd			sys_pidfd_getfd439	common	faccessat2			sys_faccessat2440	common	process_madvise			sys_process_madvise441	common	epoll_pwait2			sys_epoll_pwait2442	common	mount_setattr			sys_mount_setattr443	common	quotactl_fd			sys_quotactl_fd444	common	landlock_create_ruleset		sys_landlock_create_ruleset445	common	landlock_add_rule		sys_landlock_add_rule446	common	landlock_restrict_self		sys_landlock_restrict_self# 447 reserved for memfd_secret448	common	process_mrelease		sys_process_mrelease449	common  futex_waitv                     sys_futex_waitv450	common	set_mempolicy_home_node		sys_set_mempolicy_home_node451	common	cachestat			sys_cachestat452	common	fchmodat2			sys_fchmodat2453	common	map_shadow_stack		sys_map_shadow_stack454	common	futex_wake			sys_futex_wake455	common	futex_wait			sys_futex_wait456	common	futex_requeue			sys_futex_requeue457	common	statmount			sys_statmount458	common	listmount			sys_listmount459	common	lsm_get_self_attr		sys_lsm_get_self_attr460	common	lsm_set_self_attr		sys_lsm_set_self_attr461	common	lsm_list_modules		sys_lsm_list_modules462	common	mseal				sys_mseal463	common	setxattrat			sys_setxattrat464	common	getxattrat			sys_getxattrat465	common	listxattrat			sys_listxattrat466	common	removexattrat			sys_removexattrat467	common	open_tree_attr			sys_open_tree_attr468	common	file_getattr			sys_file_getattr469	common	file_setattr			sys_file_setattr470	common	listns				sys_listns471	common	rseq_slice_yield		sys_rseq_slice_yield472	common	fchroot				sys_fchroot