xref: /linux/arch/x86/entry/syscalls/syscall_32.tbl (revision ca55b2fef3a9373fcfc30f82fd26bc7fccbda732)
1#
2# 32-bit system call numbers and entry vectors
3#
4# The format is:
5# <number> <abi> <name> <entry point> <compat entry point>
6#
7# The abi is always "i386" for this file.
8#
90	i386	restart_syscall		sys_restart_syscall
101	i386	exit			sys_exit
112	i386	fork			sys_fork			stub32_fork
123	i386	read			sys_read
134	i386	write			sys_write
145	i386	open			sys_open			compat_sys_open
156	i386	close			sys_close
167	i386	waitpid			sys_waitpid			sys32_waitpid
178	i386	creat			sys_creat
189	i386	link			sys_link
1910	i386	unlink			sys_unlink
2011	i386	execve			sys_execve			stub32_execve
2112	i386	chdir			sys_chdir
2213	i386	time			sys_time			compat_sys_time
2314	i386	mknod			sys_mknod
2415	i386	chmod			sys_chmod
2516	i386	lchown			sys_lchown16
2617	i386	break
2718	i386	oldstat			sys_stat
2819	i386	lseek			sys_lseek			compat_sys_lseek
2920	i386	getpid			sys_getpid
3021	i386	mount			sys_mount			compat_sys_mount
3122	i386	umount			sys_oldumount
3223	i386	setuid			sys_setuid16
3324	i386	getuid			sys_getuid16
3425	i386	stime			sys_stime			compat_sys_stime
3526	i386	ptrace			sys_ptrace			compat_sys_ptrace
3627	i386	alarm			sys_alarm
3728	i386	oldfstat		sys_fstat
3829	i386	pause			sys_pause
3930	i386	utime			sys_utime			compat_sys_utime
4031	i386	stty
4132	i386	gtty
4233	i386	access			sys_access
4334	i386	nice			sys_nice
4435	i386	ftime
4536	i386	sync			sys_sync
4637	i386	kill			sys_kill
4738	i386	rename			sys_rename
4839	i386	mkdir			sys_mkdir
4940	i386	rmdir			sys_rmdir
5041	i386	dup			sys_dup
5142	i386	pipe			sys_pipe
5243	i386	times			sys_times			compat_sys_times
5344	i386	prof
5445	i386	brk			sys_brk
5546	i386	setgid			sys_setgid16
5647	i386	getgid			sys_getgid16
5748	i386	signal			sys_signal
5849	i386	geteuid			sys_geteuid16
5950	i386	getegid			sys_getegid16
6051	i386	acct			sys_acct
6152	i386	umount2			sys_umount
6253	i386	lock
6354	i386	ioctl			sys_ioctl			compat_sys_ioctl
6455	i386	fcntl			sys_fcntl			compat_sys_fcntl64
6556	i386	mpx
6657	i386	setpgid			sys_setpgid
6758	i386	ulimit
6859	i386	oldolduname		sys_olduname
6960	i386	umask			sys_umask
7061	i386	chroot			sys_chroot
7162	i386	ustat			sys_ustat			compat_sys_ustat
7263	i386	dup2			sys_dup2
7364	i386	getppid			sys_getppid
7465	i386	getpgrp			sys_getpgrp
7566	i386	setsid			sys_setsid
7667	i386	sigaction		sys_sigaction			compat_sys_sigaction
7768	i386	sgetmask		sys_sgetmask
7869	i386	ssetmask		sys_ssetmask
7970	i386	setreuid		sys_setreuid16
8071	i386	setregid		sys_setregid16
8172	i386	sigsuspend		sys_sigsuspend			sys_sigsuspend
8273	i386	sigpending		sys_sigpending			compat_sys_sigpending
8374	i386	sethostname		sys_sethostname
8475	i386	setrlimit		sys_setrlimit			compat_sys_setrlimit
8576	i386	getrlimit		sys_old_getrlimit		compat_sys_old_getrlimit
8677	i386	getrusage		sys_getrusage			compat_sys_getrusage
8778	i386	gettimeofday		sys_gettimeofday		compat_sys_gettimeofday
8879	i386	settimeofday		sys_settimeofday		compat_sys_settimeofday
8980	i386	getgroups		sys_getgroups16
9081	i386	setgroups		sys_setgroups16
9182	i386	select			sys_old_select			compat_sys_old_select
9283	i386	symlink			sys_symlink
9384	i386	oldlstat		sys_lstat
9485	i386	readlink		sys_readlink
9586	i386	uselib			sys_uselib
9687	i386	swapon			sys_swapon
9788	i386	reboot			sys_reboot
9889	i386	readdir			sys_old_readdir			compat_sys_old_readdir
9990	i386	mmap			sys_old_mmap			sys32_mmap
10091	i386	munmap			sys_munmap
10192	i386	truncate		sys_truncate			compat_sys_truncate
10293	i386	ftruncate		sys_ftruncate			compat_sys_ftruncate
10394	i386	fchmod			sys_fchmod
10495	i386	fchown			sys_fchown16
10596	i386	getpriority		sys_getpriority
10697	i386	setpriority		sys_setpriority
10798	i386	profil
10899	i386	statfs			sys_statfs			compat_sys_statfs
109100	i386	fstatfs			sys_fstatfs			compat_sys_fstatfs
110101	i386	ioperm			sys_ioperm
111102	i386	socketcall		sys_socketcall			compat_sys_socketcall
112103	i386	syslog			sys_syslog
113104	i386	setitimer		sys_setitimer			compat_sys_setitimer
114105	i386	getitimer		sys_getitimer			compat_sys_getitimer
115106	i386	stat			sys_newstat			compat_sys_newstat
116107	i386	lstat			sys_newlstat			compat_sys_newlstat
117108	i386	fstat			sys_newfstat			compat_sys_newfstat
118109	i386	olduname		sys_uname
119110	i386	iopl			sys_iopl
120111	i386	vhangup			sys_vhangup
121112	i386	idle
122113	i386	vm86old			sys_vm86old			sys_ni_syscall
123114	i386	wait4			sys_wait4			compat_sys_wait4
124115	i386	swapoff			sys_swapoff
125116	i386	sysinfo			sys_sysinfo			compat_sys_sysinfo
126117	i386	ipc			sys_ipc				compat_sys_ipc
127118	i386	fsync			sys_fsync
128119	i386	sigreturn		sys_sigreturn			stub32_sigreturn
129120	i386	clone			sys_clone			stub32_clone
130121	i386	setdomainname		sys_setdomainname
131122	i386	uname			sys_newuname
132123	i386	modify_ldt		sys_modify_ldt
133124	i386	adjtimex		sys_adjtimex			compat_sys_adjtimex
134125	i386	mprotect		sys_mprotect
135126	i386	sigprocmask		sys_sigprocmask			compat_sys_sigprocmask
136127	i386	create_module
137128	i386	init_module		sys_init_module
138129	i386	delete_module		sys_delete_module
139130	i386	get_kernel_syms
140131	i386	quotactl		sys_quotactl			sys32_quotactl
141132	i386	getpgid			sys_getpgid
142133	i386	fchdir			sys_fchdir
143134	i386	bdflush			sys_bdflush
144135	i386	sysfs			sys_sysfs
145136	i386	personality		sys_personality
146137	i386	afs_syscall
147138	i386	setfsuid		sys_setfsuid16
148139	i386	setfsgid		sys_setfsgid16
149140	i386	_llseek			sys_llseek
150141	i386	getdents		sys_getdents			compat_sys_getdents
151142	i386	_newselect		sys_select			compat_sys_select
152143	i386	flock			sys_flock
153144	i386	msync			sys_msync
154145	i386	readv			sys_readv			compat_sys_readv
155146	i386	writev			sys_writev			compat_sys_writev
156147	i386	getsid			sys_getsid
157148	i386	fdatasync		sys_fdatasync
158149	i386	_sysctl			sys_sysctl			compat_sys_sysctl
159150	i386	mlock			sys_mlock
160151	i386	munlock			sys_munlock
161152	i386	mlockall		sys_mlockall
162153	i386	munlockall		sys_munlockall
163154	i386	sched_setparam		sys_sched_setparam
164155	i386	sched_getparam		sys_sched_getparam
165156	i386	sched_setscheduler	sys_sched_setscheduler
166157	i386	sched_getscheduler	sys_sched_getscheduler
167158	i386	sched_yield		sys_sched_yield
168159	i386	sched_get_priority_max	sys_sched_get_priority_max
169160	i386	sched_get_priority_min	sys_sched_get_priority_min
170161	i386	sched_rr_get_interval	sys_sched_rr_get_interval	compat_sys_sched_rr_get_interval
171162	i386	nanosleep		sys_nanosleep			compat_sys_nanosleep
172163	i386	mremap			sys_mremap
173164	i386	setresuid		sys_setresuid16
174165	i386	getresuid		sys_getresuid16
175166	i386	vm86			sys_vm86			sys_ni_syscall
176167	i386	query_module
177168	i386	poll			sys_poll
178169	i386	nfsservctl
179170	i386	setresgid		sys_setresgid16
180171	i386	getresgid		sys_getresgid16
181172	i386	prctl			sys_prctl
182173	i386	rt_sigreturn		sys_rt_sigreturn		stub32_rt_sigreturn
183174	i386	rt_sigaction		sys_rt_sigaction		compat_sys_rt_sigaction
184175	i386	rt_sigprocmask		sys_rt_sigprocmask
185176	i386	rt_sigpending		sys_rt_sigpending		compat_sys_rt_sigpending
186177	i386	rt_sigtimedwait		sys_rt_sigtimedwait		compat_sys_rt_sigtimedwait
187178	i386	rt_sigqueueinfo		sys_rt_sigqueueinfo		compat_sys_rt_sigqueueinfo
188179	i386	rt_sigsuspend		sys_rt_sigsuspend
189180	i386	pread64			sys_pread64			sys32_pread
190181	i386	pwrite64		sys_pwrite64			sys32_pwrite
191182	i386	chown			sys_chown16
192183	i386	getcwd			sys_getcwd
193184	i386	capget			sys_capget
194185	i386	capset			sys_capset
195186	i386	sigaltstack		sys_sigaltstack			compat_sys_sigaltstack
196187	i386	sendfile		sys_sendfile			compat_sys_sendfile
197188	i386	getpmsg
198189	i386	putpmsg
199190	i386	vfork			sys_vfork			stub32_vfork
200191	i386	ugetrlimit		sys_getrlimit			compat_sys_getrlimit
201192	i386	mmap2			sys_mmap_pgoff
202193	i386	truncate64		sys_truncate64			sys32_truncate64
203194	i386	ftruncate64		sys_ftruncate64			sys32_ftruncate64
204195	i386	stat64			sys_stat64			sys32_stat64
205196	i386	lstat64			sys_lstat64			sys32_lstat64
206197	i386	fstat64			sys_fstat64			sys32_fstat64
207198	i386	lchown32		sys_lchown
208199	i386	getuid32		sys_getuid
209200	i386	getgid32		sys_getgid
210201	i386	geteuid32		sys_geteuid
211202	i386	getegid32		sys_getegid
212203	i386	setreuid32		sys_setreuid
213204	i386	setregid32		sys_setregid
214205	i386	getgroups32		sys_getgroups
215206	i386	setgroups32		sys_setgroups
216207	i386	fchown32		sys_fchown
217208	i386	setresuid32		sys_setresuid
218209	i386	getresuid32		sys_getresuid
219210	i386	setresgid32		sys_setresgid
220211	i386	getresgid32		sys_getresgid
221212	i386	chown32			sys_chown
222213	i386	setuid32		sys_setuid
223214	i386	setgid32		sys_setgid
224215	i386	setfsuid32		sys_setfsuid
225216	i386	setfsgid32		sys_setfsgid
226217	i386	pivot_root		sys_pivot_root
227218	i386	mincore			sys_mincore
228219	i386	madvise			sys_madvise
229220	i386	getdents64		sys_getdents64			compat_sys_getdents64
230221	i386	fcntl64			sys_fcntl64			compat_sys_fcntl64
231# 222 is unused
232# 223 is unused
233224	i386	gettid			sys_gettid
234225	i386	readahead		sys_readahead			sys32_readahead
235226	i386	setxattr		sys_setxattr
236227	i386	lsetxattr		sys_lsetxattr
237228	i386	fsetxattr		sys_fsetxattr
238229	i386	getxattr		sys_getxattr
239230	i386	lgetxattr		sys_lgetxattr
240231	i386	fgetxattr		sys_fgetxattr
241232	i386	listxattr		sys_listxattr
242233	i386	llistxattr		sys_llistxattr
243234	i386	flistxattr		sys_flistxattr
244235	i386	removexattr		sys_removexattr
245236	i386	lremovexattr		sys_lremovexattr
246237	i386	fremovexattr		sys_fremovexattr
247238	i386	tkill			sys_tkill
248239	i386	sendfile64		sys_sendfile64
249240	i386	futex			sys_futex			compat_sys_futex
250241	i386	sched_setaffinity	sys_sched_setaffinity		compat_sys_sched_setaffinity
251242	i386	sched_getaffinity	sys_sched_getaffinity		compat_sys_sched_getaffinity
252243	i386	set_thread_area		sys_set_thread_area
253244	i386	get_thread_area		sys_get_thread_area
254245	i386	io_setup		sys_io_setup			compat_sys_io_setup
255246	i386	io_destroy		sys_io_destroy
256247	i386	io_getevents		sys_io_getevents		compat_sys_io_getevents
257248	i386	io_submit		sys_io_submit			compat_sys_io_submit
258249	i386	io_cancel		sys_io_cancel
259250	i386	fadvise64		sys_fadvise64			sys32_fadvise64
260# 251 is available for reuse (was briefly sys_set_zone_reclaim)
261252	i386	exit_group		sys_exit_group
262253	i386	lookup_dcookie		sys_lookup_dcookie		compat_sys_lookup_dcookie
263254	i386	epoll_create		sys_epoll_create
264255	i386	epoll_ctl		sys_epoll_ctl
265256	i386	epoll_wait		sys_epoll_wait
266257	i386	remap_file_pages	sys_remap_file_pages
267258	i386	set_tid_address		sys_set_tid_address
268259	i386	timer_create		sys_timer_create		compat_sys_timer_create
269260	i386	timer_settime		sys_timer_settime		compat_sys_timer_settime
270261	i386	timer_gettime		sys_timer_gettime		compat_sys_timer_gettime
271262	i386	timer_getoverrun	sys_timer_getoverrun
272263	i386	timer_delete		sys_timer_delete
273264	i386	clock_settime		sys_clock_settime		compat_sys_clock_settime
274265	i386	clock_gettime		sys_clock_gettime		compat_sys_clock_gettime
275266	i386	clock_getres		sys_clock_getres		compat_sys_clock_getres
276267	i386	clock_nanosleep		sys_clock_nanosleep		compat_sys_clock_nanosleep
277268	i386	statfs64		sys_statfs64			compat_sys_statfs64
278269	i386	fstatfs64		sys_fstatfs64			compat_sys_fstatfs64
279270	i386	tgkill			sys_tgkill
280271	i386	utimes			sys_utimes			compat_sys_utimes
281272	i386	fadvise64_64		sys_fadvise64_64		sys32_fadvise64_64
282273	i386	vserver
283274	i386	mbind			sys_mbind
284275	i386	get_mempolicy		sys_get_mempolicy		compat_sys_get_mempolicy
285276	i386	set_mempolicy		sys_set_mempolicy
286277	i386	mq_open			sys_mq_open			compat_sys_mq_open
287278	i386	mq_unlink		sys_mq_unlink
288279	i386	mq_timedsend		sys_mq_timedsend		compat_sys_mq_timedsend
289280	i386	mq_timedreceive		sys_mq_timedreceive		compat_sys_mq_timedreceive
290281	i386	mq_notify		sys_mq_notify			compat_sys_mq_notify
291282	i386	mq_getsetattr		sys_mq_getsetattr		compat_sys_mq_getsetattr
292283	i386	kexec_load		sys_kexec_load			compat_sys_kexec_load
293284	i386	waitid			sys_waitid			compat_sys_waitid
294# 285 sys_setaltroot
295286	i386	add_key			sys_add_key
296287	i386	request_key		sys_request_key
297288	i386	keyctl			sys_keyctl
298289	i386	ioprio_set		sys_ioprio_set
299290	i386	ioprio_get		sys_ioprio_get
300291	i386	inotify_init		sys_inotify_init
301292	i386	inotify_add_watch	sys_inotify_add_watch
302293	i386	inotify_rm_watch	sys_inotify_rm_watch
303294	i386	migrate_pages		sys_migrate_pages
304295	i386	openat			sys_openat			compat_sys_openat
305296	i386	mkdirat			sys_mkdirat
306297	i386	mknodat			sys_mknodat
307298	i386	fchownat		sys_fchownat
308299	i386	futimesat		sys_futimesat			compat_sys_futimesat
309300	i386	fstatat64		sys_fstatat64			sys32_fstatat
310301	i386	unlinkat		sys_unlinkat
311302	i386	renameat		sys_renameat
312303	i386	linkat			sys_linkat
313304	i386	symlinkat		sys_symlinkat
314305	i386	readlinkat		sys_readlinkat
315306	i386	fchmodat		sys_fchmodat
316307	i386	faccessat		sys_faccessat
317308	i386	pselect6		sys_pselect6			compat_sys_pselect6
318309	i386	ppoll			sys_ppoll			compat_sys_ppoll
319310	i386	unshare			sys_unshare
320311	i386	set_robust_list		sys_set_robust_list		compat_sys_set_robust_list
321312	i386	get_robust_list		sys_get_robust_list		compat_sys_get_robust_list
322313	i386	splice			sys_splice
323314	i386	sync_file_range		sys_sync_file_range		sys32_sync_file_range
324315	i386	tee			sys_tee
325316	i386	vmsplice		sys_vmsplice			compat_sys_vmsplice
326317	i386	move_pages		sys_move_pages			compat_sys_move_pages
327318	i386	getcpu			sys_getcpu
328319	i386	epoll_pwait		sys_epoll_pwait
329320	i386	utimensat		sys_utimensat			compat_sys_utimensat
330321	i386	signalfd		sys_signalfd			compat_sys_signalfd
331322	i386	timerfd_create		sys_timerfd_create
332323	i386	eventfd			sys_eventfd
333324	i386	fallocate		sys_fallocate			sys32_fallocate
334325	i386	timerfd_settime		sys_timerfd_settime		compat_sys_timerfd_settime
335326	i386	timerfd_gettime		sys_timerfd_gettime		compat_sys_timerfd_gettime
336327	i386	signalfd4		sys_signalfd4			compat_sys_signalfd4
337328	i386	eventfd2		sys_eventfd2
338329	i386	epoll_create1		sys_epoll_create1
339330	i386	dup3			sys_dup3
340331	i386	pipe2			sys_pipe2
341332	i386	inotify_init1		sys_inotify_init1
342333	i386	preadv			sys_preadv			compat_sys_preadv
343334	i386	pwritev			sys_pwritev			compat_sys_pwritev
344335	i386	rt_tgsigqueueinfo	sys_rt_tgsigqueueinfo		compat_sys_rt_tgsigqueueinfo
345336	i386	perf_event_open		sys_perf_event_open
346337	i386	recvmmsg		sys_recvmmsg			compat_sys_recvmmsg
347338	i386	fanotify_init		sys_fanotify_init
348339	i386	fanotify_mark		sys_fanotify_mark		compat_sys_fanotify_mark
349340	i386	prlimit64		sys_prlimit64
350341	i386	name_to_handle_at	sys_name_to_handle_at
351342	i386	open_by_handle_at	sys_open_by_handle_at		compat_sys_open_by_handle_at
352343	i386	clock_adjtime		sys_clock_adjtime		compat_sys_clock_adjtime
353344	i386	syncfs			sys_syncfs
354345	i386	sendmmsg		sys_sendmmsg			compat_sys_sendmmsg
355346	i386	setns			sys_setns
356347	i386	process_vm_readv	sys_process_vm_readv		compat_sys_process_vm_readv
357348	i386	process_vm_writev	sys_process_vm_writev		compat_sys_process_vm_writev
358349	i386	kcmp			sys_kcmp
359350	i386	finit_module		sys_finit_module
360351	i386	sched_setattr		sys_sched_setattr
361352	i386	sched_getattr		sys_sched_getattr
362353	i386	renameat2		sys_renameat2
363354	i386	seccomp			sys_seccomp
364355	i386	getrandom		sys_getrandom
365356	i386	memfd_create		sys_memfd_create
366357	i386	bpf			sys_bpf
367358	i386	execveat		sys_execveat			stub32_execveat
368359	i386	socket			sys_socket
369360	i386	socketpair		sys_socketpair
370361	i386	bind			sys_bind
371362	i386	connect			sys_connect
372363	i386	listen			sys_listen
373364	i386	accept4			sys_accept4
374365	i386	getsockopt		sys_getsockopt			compat_sys_getsockopt
375366	i386	setsockopt		sys_setsockopt			compat_sys_setsockopt
376367	i386	getsockname		sys_getsockname
377368	i386	getpeername		sys_getpeername
378369	i386	sendto			sys_sendto
379370	i386	sendmsg			sys_sendmsg			compat_sys_sendmsg
380371	i386	recvfrom		sys_recvfrom			compat_sys_recvfrom
381372	i386	recvmsg			sys_recvmsg			compat_sys_recvmsg
382373	i386	shutdown		sys_shutdown
383374	i386	userfaultfd		sys_userfaultfd
384375	i386	membarrier		sys_membarrier
385