xref: /linux/arch/sparc/kernel/syscalls/syscall.tbl (revision bd628c1bed7902ec1f24ba0fe70758949146abbe)
1# SPDX-License-Identifier: GPL-2.0 WITH Linux-syscall-note
2#
3# system call numbers and entry vectors for sparc
4#
5# The format is:
6# <number> <abi> <name> <entry point> <compat entry point>
7#
8# The <abi> can be common, 64, or 32 for this file.
9#
100	common	restart_syscall		sys_restart_syscall
111	32	exit			sys_exit			sparc_exit
121	64	exit			sparc_exit
132	common	fork			sys_fork
143	common	read			sys_read
154	common	write			sys_write
165	common	open			sys_open			compat_sys_open
176	common	close			sys_close
187	common	wait4			sys_wait4			compat_sys_wait4
198	common	creat			sys_creat
209	common	link			sys_link
2110	common	unlink			sys_unlink
2211	32	execv			sunos_execv
2311	64	execv			sys_nis_syscall
2412	common	chdir			sys_chdir
2513	32    	chown			sys_chown16
2613	64	chown			sys_chown
2714	common	mknod			sys_mknod
2815	common	chmod			sys_chmod
2916	32	lchown			sys_lchown16
3016	64	lchown			sys_lchown
3117	common	brk			sys_brk
3218	common	perfctr			sys_nis_syscall
3319	common	lseek			sys_lseek			compat_sys_lseek
3420	common	getpid			sys_getpid
3521	common	capget			sys_capget
3622	common	capset			sys_capset
3723	32    	setuid			sys_setuid16
3823	64    	setuid			sys_setuid
3924	32	getuid			sys_getuid16
4024	64   	getuid			sys_getuid
4125	common	vmsplice		sys_vmsplice			compat_sys_vmsplice
4226	common	ptrace			sys_ptrace			compat_sys_ptrace
4327	common	alarm			sys_alarm
4428	common	sigaltstack		sys_sigaltstack			compat_sys_sigaltstack
4529	32    	pause			sys_pause
4629	64    	pause			sys_nis_syscall
4730	common	utime			sys_utime			compat_sys_utime
4831	32    	lchown32		sys_lchown
4932	32    	fchown32		sys_fchown
5033	common	access			sys_access
5134	common	nice			sys_nice
5235	32    	chown32			sys_chown
5336	common	sync			sys_sync
5437	common	kill			sys_kill
5538	common	stat			sys_newstat			compat_sys_newstat
5639	32	sendfile		sys_sendfile			compat_sys_sendfile
5739	64	sendfile		sys_sendfile64
5840	common	lstat			sys_newlstat			compat_sys_newlstat
5941	common	dup			sys_dup
6042	common	pipe			sys_sparc_pipe
6143	common	times			sys_times			compat_sys_times
6244	32    	getuid32		sys_getuid
6345	common	umount2			sys_umount
6446	32	setgid			sys_setgid16
6546	64	setgid			sys_setgid
6647	32	getgid			sys_getgid16
6747	64	getgid			sys_getgid
6848	common	signal			sys_signal
6949	32	geteuid			sys_geteuid16
7049	64	geteuid			sys_geteuid
7150	32	getegid			sys_getegid16
7250	64	getegid			sys_getegid
7351	common	acct			sys_acct
7452	64	memory_ordering		sys_memory_ordering
7553	32	getgid32		sys_getgid
7654	common	ioctl			sys_ioctl			compat_sys_ioctl
7755	common	reboot			sys_reboot
7856	32    	mmap2			sys_mmap2			sys32_mmap2
7957	common	symlink			sys_symlink
8058	common	readlink		sys_readlink
8159	32	execve			sys_execve			sys32_execve
8259	64	execve			sys64_execve
8360	common	umask			sys_umask
8461	common	chroot			sys_chroot
8562	common	fstat			sys_newfstat			compat_sys_newfstat
8663	common	fstat64			sys_fstat64			compat_sys_fstat64
8764	common	getpagesize		sys_getpagesize
8865	common	msync			sys_msync
8966	common	vfork			sys_vfork
9067	common	pread64			sys_pread64			compat_sys_pread64
9168	common	pwrite64		sys_pwrite64			compat_sys_pwrite64
9269	32    	geteuid32		sys_geteuid
9370	32	getegid32		sys_getegid
9471	common	mmap			sys_mmap
9572	32	setreuid32		sys_setreuid
9673	32	munmap			sys_munmap
9773	64	munmap			sys_64_munmap
9874	common	mprotect		sys_mprotect
9975	common	madvise			sys_madvise
10076	common	vhangup			sys_vhangup
10177	32	truncate64		sys_truncate64			compat_sys_truncate64
10278	common	mincore			sys_mincore
10379	32	getgroups		sys_getgroups16
10479	64	getgroups		sys_getgroups
10580	32	setgroups		sys_setgroups16
10680	64	setgroups		sys_setgroups
10781	common	getpgrp			sys_getpgrp
10882	32	setgroups32		sys_setgroups
10983	common	setitimer		sys_setitimer			compat_sys_setitimer
11084	32	ftruncate64		sys_ftruncate64			compat_sys_ftruncate64
11185	common	swapon			sys_swapon
11286	common	getitimer		sys_getitimer			compat_sys_getitimer
11387	32	setuid32		sys_setuid
11488	common	sethostname		sys_sethostname
11589	32	setgid32		sys_setgid
11690	common	dup2			sys_dup2
11791	32	setfsuid32		sys_setfsuid
11892	common	fcntl			sys_fcntl			compat_sys_fcntl
11993	common	select			sys_select
12094	32	setfsgid32		sys_setfsgid
12195	common	fsync			sys_fsync
12296	common	setpriority		sys_setpriority
12397	common	socket			sys_socket
12498	common	connect			sys_connect
12599	common	accept			sys_accept
126100	common	getpriority		sys_getpriority
127101	common	rt_sigreturn		sys_rt_sigreturn		sys32_rt_sigreturn
128102	common	rt_sigaction		sys_rt_sigaction		compat_sys_rt_sigaction
129103	common	rt_sigprocmask		sys_rt_sigprocmask		compat_sys_rt_sigprocmask
130104	common	rt_sigpending		sys_rt_sigpending		compat_sys_rt_sigpending
131105	common	rt_sigtimedwait		sys_rt_sigtimedwait		compat_sys_rt_sigtimedwait
132106	common	rt_sigqueueinfo		sys_rt_sigqueueinfo		compat_sys_rt_sigqueueinfo
133107	common	rt_sigsuspend		sys_rt_sigsuspend		compat_sys_rt_sigsuspend
134108	32	setresuid32		sys_setresuid
135108	64	setresuid		sys_setresuid
136109	32	getresuid32		sys_getresuid
137109	64	getresuid		sys_getresuid
138110	32	setresgid32		sys_setresgid
139110	64	setresgid		sys_setresgid
140111	32	getresgid32		sys_getresgid
141111	64	getresgid		sys_getresgid
142112	32	setregid32		sys_setregid
143113	common	recvmsg			sys_recvmsg			compat_sys_recvmsg
144114	common	sendmsg			sys_sendmsg			compat_sys_sendmsg
145115	32	getgroups32		sys_getgroups
146116	common	gettimeofday		sys_gettimeofday		compat_sys_gettimeofday
147117	common	getrusage		sys_getrusage			compat_sys_getrusage
148118	common	getsockopt		sys_getsockopt			compat_sys_getsockopt
149119	common	getcwd			sys_getcwd
150120	common	readv			sys_readv			compat_sys_readv
151121	common	writev			sys_writev			compat_sys_writev
152122	common	settimeofday		sys_settimeofday		compat_sys_settimeofday
153123	32	fchown			sys_fchown16
154123	64	fchown			sys_fchown
155124	common	fchmod			sys_fchmod
156125	common	recvfrom		sys_recvfrom
157126	32	setreuid		sys_setreuid16
158126	64	setreuid		sys_setreuid
159127	32	setregid		sys_setregid16
160127	64	setregid		sys_setregid
161128	common	rename			sys_rename
162129	common	truncate		sys_truncate			compat_sys_truncate
163130	common	ftruncate		sys_ftruncate			compat_sys_ftruncate
164131	common	flock			sys_flock
165132	common	lstat64			sys_lstat64			compat_sys_lstat64
166133	common	sendto			sys_sendto
167134	common	shutdown		sys_shutdown
168135	common	socketpair		sys_socketpair
169136	common	mkdir			sys_mkdir
170137	common	rmdir			sys_rmdir
171138	common	utimes			sys_utimes			compat_sys_utimes
172139	common	stat64			sys_stat64			compat_sys_stat64
173140	common	sendfile64		sys_sendfile64
174141	common	getpeername		sys_getpeername
175142	common	futex			sys_futex			compat_sys_futex
176143	common	gettid			sys_gettid
177144	common	getrlimit		sys_getrlimit			compat_sys_getrlimit
178145	common	setrlimit		sys_setrlimit			compat_sys_setrlimit
179146	common	pivot_root		sys_pivot_root
180147	common	prctl			sys_prctl
181148	common	pciconfig_read		sys_pciconfig_read
182149	common	pciconfig_write		sys_pciconfig_write
183150	common	getsockname		sys_getsockname
184151	common	inotify_init		sys_inotify_init
185152	common	inotify_add_watch	sys_inotify_add_watch
186153	common	poll			sys_poll
187154	common	getdents64		sys_getdents64
188155	32	fcntl64			sys_fcntl64			compat_sys_fcntl64
189156	common	inotify_rm_watch	sys_inotify_rm_watch
190157	common	statfs			sys_statfs			compat_sys_statfs
191158	common	fstatfs			sys_fstatfs			compat_sys_fstatfs
192159	common	umount			sys_oldumount
193160	common	sched_set_affinity	sys_sched_setaffinity		compat_sys_sched_setaffinity
194161	common	sched_get_affinity	sys_sched_getaffinity		compat_sys_sched_getaffinity
195162	common	getdomainname		sys_getdomainname
196163	common	setdomainname		sys_setdomainname
197164	64	utrap_install		sys_utrap_install
198165	common	quotactl		sys_quotactl
199166	common	set_tid_address		sys_set_tid_address
200167	common	mount			sys_mount			compat_sys_mount
201168	common	ustat			sys_ustat			compat_sys_ustat
202169	common	setxattr		sys_setxattr
203170	common	lsetxattr		sys_lsetxattr
204171	common	fsetxattr		sys_fsetxattr
205172	common	getxattr		sys_getxattr
206173	common	lgetxattr		sys_lgetxattr
207174	common	getdents		sys_getdents			compat_sys_getdents
208175	common	setsid			sys_setsid
209176	common	fchdir			sys_fchdir
210177	common	fgetxattr		sys_fgetxattr
211178	common	listxattr		sys_listxattr
212179	common	llistxattr		sys_llistxattr
213180	common	flistxattr		sys_flistxattr
214181	common	removexattr		sys_removexattr
215182	common	lremovexattr		sys_lremovexattr
216183	32	sigpending		sys_sigpending			compat_sys_sigpending
217183	64	sigpending		sys_nis_syscall
218184	common	query_module		sys_ni_syscall
219185	common	setpgid			sys_setpgid
220186	common	fremovexattr		sys_fremovexattr
221187	common	tkill			sys_tkill
222188	32	exit_group		sys_exit_group			sparc_exit_group
223188	64	exit_group		sparc_exit_group
224189	common	uname			sys_newuname
225190	common	init_module		sys_init_module
226191	32	personality		sys_personality			sys_sparc64_personality
227191	64	personality		sys_sparc64_personality
228192	32	remap_file_pages	sys_sparc_remap_file_pages	sys_remap_file_pages
229192	64	remap_file_pages	sys_remap_file_pages
230193	common	epoll_create		sys_epoll_create
231194	common	epoll_ctl		sys_epoll_ctl
232195	common	epoll_wait		sys_epoll_wait
233196	common	ioprio_set		sys_ioprio_set
234197	common	getppid			sys_getppid
235198	32	sigaction		sys_sparc_sigaction		compat_sys_sparc_sigaction
236198	64	sigaction		sys_nis_syscall
237199	common	sgetmask		sys_sgetmask
238200	common	ssetmask		sys_ssetmask
239201	32	sigsuspend		sys_sigsuspend
240201	64	sigsuspend		sys_nis_syscall
241202	common	oldlstat		sys_newlstat			compat_sys_newlstat
242203	common	uselib			sys_uselib
243204	32	readdir			sys_old_readdir			compat_sys_old_readdir
244204	64	readdir			sys_nis_syscall
245205	common	readahead		sys_readahead			compat_sys_readahead
246206	common	socketcall		sys_socketcall			sys32_socketcall
247207	common	syslog			sys_syslog
248208	common	lookup_dcookie		sys_lookup_dcookie		compat_sys_lookup_dcookie
249209	common	fadvise64		sys_fadvise64			compat_sys_fadvise64
250210	common	fadvise64_64		sys_fadvise64_64		compat_sys_fadvise64_64
251211	common	tgkill			sys_tgkill
252212	common	waitpid			sys_waitpid
253213	common	swapoff			sys_swapoff
254214	common	sysinfo			sys_sysinfo			compat_sys_sysinfo
255215	32	ipc			sys_ipc				compat_sys_ipc
256215	64	ipc			sys_sparc_ipc
257216	32	sigreturn		sys_sigreturn			sys32_sigreturn
258216	64	sigreturn		sys_nis_syscall
259217	common	clone			sys_clone
260218	common	ioprio_get		sys_ioprio_get
261219	common	adjtimex		sys_adjtimex			compat_sys_adjtimex
262220	32	sigprocmask		sys_sigprocmask			compat_sys_sigprocmask
263220	64	sigprocmask		sys_nis_syscall
264221	common	create_module		sys_ni_syscall
265222	common	delete_module		sys_delete_module
266223	common	get_kernel_syms		sys_ni_syscall
267224	common	getpgid			sys_getpgid
268225	common	bdflush			sys_bdflush
269226	common	sysfs			sys_sysfs
270227	common	afs_syscall		sys_nis_syscall
271228	common	setfsuid		sys_setfsuid16
272229	common	setfsgid		sys_setfsgid16
273230	common	_newselect		sys_select			compat_sys_select
274231	32	time			sys_time			compat_sys_time
275232	common	splice			sys_splice
276233	common	stime			sys_stime			compat_sys_stime
277234	common	statfs64		sys_statfs64			compat_sys_statfs64
278235	common	fstatfs64		sys_fstatfs64			compat_sys_fstatfs64
279236	common	_llseek			sys_llseek
280237	common	mlock			sys_mlock
281238	common	munlock			sys_munlock
282239	common	mlockall		sys_mlockall
283240	common	munlockall		sys_munlockall
284241	common	sched_setparam		sys_sched_setparam
285242	common	sched_getparam		sys_sched_getparam
286243	common	sched_setscheduler	sys_sched_setscheduler
287244	common	sched_getscheduler	sys_sched_getscheduler
288245	common	sched_yield		sys_sched_yield
289246	common	sched_get_priority_max	sys_sched_get_priority_max
290247	common	sched_get_priority_min	sys_sched_get_priority_min
291248	common	sched_rr_get_interval	sys_sched_rr_get_interval	compat_sys_sched_rr_get_interval
292249	common	nanosleep		sys_nanosleep			compat_sys_nanosleep
293250	32	mremap			sys_mremap
294250	64	mremap			sys_64_mremap
295251	common	_sysctl			sys_sysctl			compat_sys_sysctl
296252	common	getsid			sys_getsid
297253	common	fdatasync		sys_fdatasync
298254	32	nfsservctl		sys_ni_syscall			sys_nis_syscall
299254	64	nfsservctl		sys_nis_syscall
300255	common	sync_file_range		sys_sync_file_range		compat_sys_sync_file_range
301256	common	clock_settime		sys_clock_settime		compat_sys_clock_settime
302257	common	clock_gettime		sys_clock_gettime		compat_sys_clock_gettime
303258	common	clock_getres		sys_clock_getres		compat_sys_clock_getres
304259	common	clock_nanosleep		sys_clock_nanosleep		compat_sys_clock_nanosleep
305260	common	sched_getaffinity	sys_sched_getaffinity		compat_sys_sched_getaffinity
306261	common	sched_setaffinity	sys_sched_setaffinity		compat_sys_sched_setaffinity
307262	common	timer_settime		sys_timer_settime		compat_sys_timer_settime
308263	common	timer_gettime		sys_timer_gettime		compat_sys_timer_gettime
309264	common	timer_getoverrun	sys_timer_getoverrun
310265	common	timer_delete		sys_timer_delete
311266	common	timer_create		sys_timer_create		compat_sys_timer_create
312# 267 was vserver
313267	common	vserver			sys_nis_syscall
314268	common	io_setup		sys_io_setup			compat_sys_io_setup
315269	common	io_destroy		sys_io_destroy
316270	common	io_submit		sys_io_submit			compat_sys_io_submit
317271	common	io_cancel		sys_io_cancel
318272	common	io_getevents		sys_io_getevents		compat_sys_io_getevents
319273	common	mq_open			sys_mq_open			compat_sys_mq_open
320274	common	mq_unlink		sys_mq_unlink
321275	common	mq_timedsend		sys_mq_timedsend		compat_sys_mq_timedsend
322276	common	mq_timedreceive		sys_mq_timedreceive		compat_sys_mq_timedreceive
323277	common	mq_notify		sys_mq_notify			compat_sys_mq_notify
324278	common	mq_getsetattr		sys_mq_getsetattr		compat_sys_mq_getsetattr
325279	common	waitid			sys_waitid			compat_sys_waitid
326280	common	tee			sys_tee
327281	common	add_key			sys_add_key
328282	common	request_key		sys_request_key
329283	common	keyctl			sys_keyctl			compat_sys_keyctl
330284	common	openat			sys_openat			compat_sys_openat
331285	common	mkdirat			sys_mkdirat
332286	common	mknodat			sys_mknodat
333287	common	fchownat		sys_fchownat
334288	common	futimesat		sys_futimesat			compat_sys_futimesat
335289	common	fstatat64		sys_fstatat64			compat_sys_fstatat64
336290	common	unlinkat		sys_unlinkat
337291	common	renameat		sys_renameat
338292	common	linkat			sys_linkat
339293	common	symlinkat		sys_symlinkat
340294	common	readlinkat		sys_readlinkat
341295	common	fchmodat		sys_fchmodat
342296	common	faccessat		sys_faccessat
343297	common	pselect6		sys_pselect6			compat_sys_pselect6
344298	common	ppoll			sys_ppoll			compat_sys_ppoll
345299	common	unshare			sys_unshare
346300	common	set_robust_list		sys_set_robust_list		compat_sys_set_robust_list
347301	common	get_robust_list		sys_get_robust_list		compat_sys_get_robust_list
348302	common	migrate_pages		sys_migrate_pages		compat_sys_migrate_pages
349303	common	mbind			sys_mbind			compat_sys_mbind
350304	common	get_mempolicy		sys_get_mempolicy		compat_sys_get_mempolicy
351305	common	set_mempolicy		sys_set_mempolicy		compat_sys_set_mempolicy
352306	common	kexec_load		sys_kexec_load			compat_sys_kexec_load
353307	common	move_pages		sys_move_pages			compat_sys_move_pages
354308	common	getcpu			sys_getcpu
355309	common	epoll_pwait		sys_epoll_pwait			compat_sys_epoll_pwait
356310	common	utimensat		sys_utimensat			compat_sys_utimensat
357311	common	signalfd		sys_signalfd			compat_sys_signalfd
358312	common	timerfd_create		sys_timerfd_create
359313	common	eventfd			sys_eventfd
360314	common	fallocate		sys_fallocate			compat_sys_fallocate
361315	common	timerfd_settime		sys_timerfd_settime		compat_sys_timerfd_settime
362316	common	timerfd_gettime		sys_timerfd_gettime		compat_sys_timerfd_gettime
363317	common	signalfd4		sys_signalfd4			compat_sys_signalfd4
364318	common	eventfd2		sys_eventfd2
365319	common	epoll_create1		sys_epoll_create1
366320	common	dup3			sys_dup3
367321	common	pipe2			sys_pipe2
368322	common	inotify_init1		sys_inotify_init1
369323	common	accept4			sys_accept4
370324	common	preadv			sys_preadv			compat_sys_preadv
371325	common	pwritev			sys_pwritev			compat_sys_pwritev
372326	common	rt_tgsigqueueinfo	sys_rt_tgsigqueueinfo		compat_sys_rt_tgsigqueueinfo
373327	common	perf_event_open		sys_perf_event_open
374328	common	recvmmsg		sys_recvmmsg			compat_sys_recvmmsg
375329	common	fanotify_init		sys_fanotify_init
376330	common	fanotify_mark		sys_fanotify_mark		compat_sys_fanotify_mark
377331	common	prlimit64		sys_prlimit64
378332	common	name_to_handle_at	sys_name_to_handle_at
379333	common	open_by_handle_at	sys_open_by_handle_at		compat_sys_open_by_handle_at
380334	common	clock_adjtime		sys_clock_adjtime		compat_sys_clock_adjtime
381335	common	syncfs			sys_syncfs
382336	common	sendmmsg		sys_sendmmsg			compat_sys_sendmmsg
383337	common	setns			sys_setns
384338	common	process_vm_readv	sys_process_vm_readv		compat_sys_process_vm_readv
385339	common	process_vm_writev	sys_process_vm_writev		compat_sys_process_vm_writev
386340	32	kern_features		sys_ni_syscall			sys_kern_features
387340	64	kern_features		sys_kern_features
388341	common	kcmp			sys_kcmp
389342	common	finit_module		sys_finit_module
390343	common	sched_setattr		sys_sched_setattr
391344	common	sched_getattr		sys_sched_getattr
392345	common	renameat2		sys_renameat2
393346	common	seccomp			sys_seccomp
394347	common	getrandom		sys_getrandom
395348	common	memfd_create		sys_memfd_create
396349	common	bpf			sys_bpf
397350	32	execveat		sys_execveat			sys32_execveat
398350	64	execveat		sys64_execveat
399351	common	membarrier		sys_membarrier
400352	common	userfaultfd		sys_userfaultfd
401353	common	bind			sys_bind
402354	common	listen			sys_listen
403355	common	setsockopt		sys_setsockopt			compat_sys_setsockopt
404356	common	mlock2			sys_mlock2
405357	common	copy_file_range		sys_copy_file_range
406358	common	preadv2			sys_preadv2			compat_sys_preadv2
407359	common	pwritev2		sys_pwritev2			compat_sys_pwritev2
408360	common	statx			sys_statx
409361	common	io_pgetevents		sys_io_pgetevents		compat_sys_io_pgetevents
410