blob: d1944258cfc0138720658966395c485de06699c1 [file] [log] [blame]
Greg Kroah-Hartmanb2441312017-11-01 15:07:57 +01001// SPDX-License-Identifier: GPL-2.0
Linus Torvalds1da177e2005-04-16 15:20:36 -07002
3#include <linux/linkage.h>
4#include <linux/errno.h>
5
6#include <asm/unistd.h>
7
Dominik Brodowski7303e302018-04-05 11:53:03 +02008#ifdef CONFIG_ARCH_HAS_SYSCALL_WRAPPER
9/* Architectures may override COND_SYSCALL and COND_SYSCALL_COMPAT */
10#include <asm/syscall_wrapper.h>
11#endif /* CONFIG_ARCH_HAS_SYSCALL_WRAPPER */
12
Adrian Bunk0732a552007-10-16 23:29:25 -070013/* we can't #include <linux/syscalls.h> here,
14 but tell gcc to not warn with -Wmissing-prototypes */
15asmlinkage long sys_ni_syscall(void);
16
Linus Torvalds1da177e2005-04-16 15:20:36 -070017/*
18 * Non-implemented system calls get redirected here.
19 */
20asmlinkage long sys_ni_syscall(void)
21{
22 return -ENOSYS;
23}
24
Dominik Brodowski7303e302018-04-05 11:53:03 +020025#ifndef COND_SYSCALL
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010026#define COND_SYSCALL(name) cond_syscall(sys_##name)
Dominik Brodowski7303e302018-04-05 11:53:03 +020027#endif /* COND_SYSCALL */
28
29#ifndef COND_SYSCALL_COMPAT
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010030#define COND_SYSCALL_COMPAT(name) cond_syscall(compat_sys_##name)
Dominik Brodowski7303e302018-04-05 11:53:03 +020031#endif /* COND_SYSCALL_COMPAT */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010032
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010033/*
34 * This list is kept in the same order as include/uapi/asm-generic/unistd.h.
35 * Architecture specific entries go below, followed by deprecated or obsolete
36 * system calls.
37 */
38
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010039COND_SYSCALL(io_setup);
40COND_SYSCALL_COMPAT(io_setup);
41COND_SYSCALL(io_destroy);
42COND_SYSCALL(io_submit);
43COND_SYSCALL_COMPAT(io_submit);
44COND_SYSCALL(io_cancel);
Arnd Bergmann8dabe722019-01-07 00:33:08 +010045COND_SYSCALL(io_getevents_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010046COND_SYSCALL(io_getevents);
Arnd Bergmann8dabe722019-01-07 00:33:08 +010047COND_SYSCALL(io_pgetevents_time32);
Christoph Hellwig7a074e92018-05-02 19:51:00 +020048COND_SYSCALL(io_pgetevents);
Arnd Bergmann8dabe722019-01-07 00:33:08 +010049COND_SYSCALL_COMPAT(io_pgetevents_time32);
Christoph Hellwig7a074e92018-05-02 19:51:00 +020050COND_SYSCALL_COMPAT(io_pgetevents);
Jens Axboe2b188cc2019-01-07 10:46:33 -070051COND_SYSCALL(io_uring_setup);
52COND_SYSCALL(io_uring_enter);
Jens Axboeedafcce2019-01-09 09:16:05 -070053COND_SYSCALL(io_uring_register);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010054
55/* fs/xattr.c */
56
57/* fs/dcache.c */
58
59/* fs/cookies.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010060COND_SYSCALL(lookup_dcookie);
61COND_SYSCALL_COMPAT(lookup_dcookie);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010062
63/* fs/eventfd.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010064COND_SYSCALL(eventfd2);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010065
66/* fs/eventfd.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010067COND_SYSCALL(epoll_create1);
68COND_SYSCALL(epoll_ctl);
69COND_SYSCALL(epoll_pwait);
70COND_SYSCALL_COMPAT(epoll_pwait);
Willem de Bruijnb0a0c262020-12-18 14:05:41 -080071COND_SYSCALL(epoll_pwait2);
72COND_SYSCALL_COMPAT(epoll_pwait2);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010073
74/* fs/fcntl.c */
75
76/* fs/inotify_user.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010077COND_SYSCALL(inotify_init1);
78COND_SYSCALL(inotify_add_watch);
79COND_SYSCALL(inotify_rm_watch);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010080
81/* fs/ioctl.c */
82
83/* fs/ioprio.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010084COND_SYSCALL(ioprio_set);
85COND_SYSCALL(ioprio_get);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010086
87/* fs/locks.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010088COND_SYSCALL(flock);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010089
90/* fs/namei.c */
91
92/* fs/namespace.c */
93
94/* fs/nfsctl.c */
95
96/* fs/open.c */
97
98/* fs/pipe.c */
99
100/* fs/quota.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100101COND_SYSCALL(quotactl);
Jan Kara64c2c2c2021-05-25 16:07:48 +0200102COND_SYSCALL(quotactl_fd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100103
104/* fs/readdir.c */
105
106/* fs/read_write.c */
107
108/* fs/sendfile.c */
109
110/* fs/select.c */
111
112/* fs/signalfd.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100113COND_SYSCALL(signalfd4);
114COND_SYSCALL_COMPAT(signalfd4);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100115
116/* fs/splice.c */
117
118/* fs/stat.c */
119
120/* fs/sync.c */
121
122/* fs/timerfd.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100123COND_SYSCALL(timerfd_create);
124COND_SYSCALL(timerfd_settime);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100125COND_SYSCALL(timerfd_settime32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100126COND_SYSCALL(timerfd_gettime);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100127COND_SYSCALL(timerfd_gettime32);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100128
129/* fs/utimes.c */
130
131/* kernel/acct.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100132COND_SYSCALL(acct);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100133
134/* kernel/capability.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100135COND_SYSCALL(capget);
136COND_SYSCALL(capset);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100137
138/* kernel/exec_domain.c */
139
140/* kernel/exit.c */
141
142/* kernel/fork.c */
Christian Braunerd68dbb02019-06-21 01:26:35 +0200143/* __ARCH_WANT_SYS_CLONE3 */
144COND_SYSCALL(clone3);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100145
Peter Zijlstraaf8cc962021-09-23 14:10:51 -0300146/* kernel/futex/syscalls.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100147COND_SYSCALL(futex);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100148COND_SYSCALL(futex_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100149COND_SYSCALL(set_robust_list);
150COND_SYSCALL_COMPAT(set_robust_list);
151COND_SYSCALL(get_robust_list);
152COND_SYSCALL_COMPAT(get_robust_list);
André Almeidabf69bad2021-09-23 14:11:05 -0300153COND_SYSCALL(futex_waitv);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100154
155/* kernel/hrtimer.c */
156
157/* kernel/itimer.c */
158
159/* kernel/kexec.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100160COND_SYSCALL(kexec_load);
161COND_SYSCALL_COMPAT(kexec_load);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100162
163/* kernel/module.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100164COND_SYSCALL(init_module);
165COND_SYSCALL(delete_module);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100166
167/* kernel/posix-timers.c */
168
169/* kernel/printk.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100170COND_SYSCALL(syslog);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100171
172/* kernel/ptrace.c */
173
174/* kernel/sched/core.c */
175
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100176/* kernel/sys.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100177COND_SYSCALL(setregid);
178COND_SYSCALL(setgid);
179COND_SYSCALL(setreuid);
180COND_SYSCALL(setuid);
181COND_SYSCALL(setresuid);
182COND_SYSCALL(getresuid);
183COND_SYSCALL(setresgid);
184COND_SYSCALL(getresgid);
185COND_SYSCALL(setfsuid);
186COND_SYSCALL(setfsgid);
187COND_SYSCALL(setgroups);
188COND_SYSCALL(getgroups);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100189
190/* kernel/time.c */
191
192/* kernel/timer.c */
193
194/* ipc/mqueue.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100195COND_SYSCALL(mq_open);
196COND_SYSCALL_COMPAT(mq_open);
197COND_SYSCALL(mq_unlink);
198COND_SYSCALL(mq_timedsend);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100199COND_SYSCALL(mq_timedsend_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100200COND_SYSCALL(mq_timedreceive);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100201COND_SYSCALL(mq_timedreceive_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100202COND_SYSCALL(mq_notify);
203COND_SYSCALL_COMPAT(mq_notify);
204COND_SYSCALL(mq_getsetattr);
205COND_SYSCALL_COMPAT(mq_getsetattr);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100206
207/* ipc/msg.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100208COND_SYSCALL(msgget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100209COND_SYSCALL(old_msgctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100210COND_SYSCALL(msgctl);
211COND_SYSCALL_COMPAT(msgctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100212COND_SYSCALL_COMPAT(old_msgctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100213COND_SYSCALL(msgrcv);
214COND_SYSCALL_COMPAT(msgrcv);
215COND_SYSCALL(msgsnd);
216COND_SYSCALL_COMPAT(msgsnd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100217
218/* ipc/sem.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100219COND_SYSCALL(semget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100220COND_SYSCALL(old_semctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100221COND_SYSCALL(semctl);
222COND_SYSCALL_COMPAT(semctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100223COND_SYSCALL_COMPAT(old_semctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100224COND_SYSCALL(semtimedop);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100225COND_SYSCALL(semtimedop_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100226COND_SYSCALL(semop);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100227
228/* ipc/shm.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100229COND_SYSCALL(shmget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100230COND_SYSCALL(old_shmctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100231COND_SYSCALL(shmctl);
232COND_SYSCALL_COMPAT(shmctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100233COND_SYSCALL_COMPAT(old_shmctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100234COND_SYSCALL(shmat);
235COND_SYSCALL_COMPAT(shmat);
236COND_SYSCALL(shmdt);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100237
238/* net/socket.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100239COND_SYSCALL(socket);
240COND_SYSCALL(socketpair);
241COND_SYSCALL(bind);
242COND_SYSCALL(listen);
243COND_SYSCALL(accept);
244COND_SYSCALL(connect);
245COND_SYSCALL(getsockname);
246COND_SYSCALL(getpeername);
247COND_SYSCALL(setsockopt);
248COND_SYSCALL_COMPAT(setsockopt);
249COND_SYSCALL(getsockopt);
250COND_SYSCALL_COMPAT(getsockopt);
251COND_SYSCALL(sendto);
252COND_SYSCALL(shutdown);
253COND_SYSCALL(recvfrom);
254COND_SYSCALL_COMPAT(recvfrom);
255COND_SYSCALL(sendmsg);
256COND_SYSCALL_COMPAT(sendmsg);
257COND_SYSCALL(recvmsg);
258COND_SYSCALL_COMPAT(recvmsg);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100259
260/* mm/filemap.c */
261
262/* mm/nommu.c, also with MMU */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100263COND_SYSCALL(mremap);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100264
265/* security/keys/keyctl.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100266COND_SYSCALL(add_key);
267COND_SYSCALL(request_key);
268COND_SYSCALL(keyctl);
269COND_SYSCALL_COMPAT(keyctl);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100270
Mickaël Salaün265885d2021-04-22 17:41:18 +0200271/* security/landlock/syscalls.c */
272COND_SYSCALL(landlock_create_ruleset);
273COND_SYSCALL(landlock_add_rule);
274COND_SYSCALL(landlock_restrict_self);
275
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100276/* arch/example/kernel/sys_example.c */
277
278/* mm/fadvise.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100279COND_SYSCALL(fadvise64_64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100280
281/* mm/, CONFIG_MMU only */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100282COND_SYSCALL(swapon);
283COND_SYSCALL(swapoff);
284COND_SYSCALL(mprotect);
285COND_SYSCALL(msync);
286COND_SYSCALL(mlock);
287COND_SYSCALL(munlock);
288COND_SYSCALL(mlockall);
289COND_SYSCALL(munlockall);
290COND_SYSCALL(mincore);
291COND_SYSCALL(madvise);
Minchan Kimecb8ac82020-10-17 16:14:59 -0700292COND_SYSCALL(process_madvise);
Suren Baghdasaryandce49102021-09-02 15:00:33 -0700293COND_SYSCALL(process_mrelease);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100294COND_SYSCALL(remap_file_pages);
295COND_SYSCALL(mbind);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100296COND_SYSCALL(get_mempolicy);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100297COND_SYSCALL(set_mempolicy);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100298COND_SYSCALL(migrate_pages);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100299COND_SYSCALL(move_pages);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100300
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100301COND_SYSCALL(perf_event_open);
302COND_SYSCALL(accept4);
303COND_SYSCALL(recvmmsg);
Arnd Bergmanne11d4282018-04-18 13:43:52 +0200304COND_SYSCALL(recvmmsg_time32);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100305COND_SYSCALL_COMPAT(recvmmsg_time32);
Arnd Bergmanne11d4282018-04-18 13:43:52 +0200306COND_SYSCALL_COMPAT(recvmmsg_time64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100307
308/*
309 * Architecture specific syscalls: see further below
310 */
311
312/* fanotify */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100313COND_SYSCALL(fanotify_init);
314COND_SYSCALL(fanotify_mark);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100315
316/* open by handle */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100317COND_SYSCALL(name_to_handle_at);
318COND_SYSCALL(open_by_handle_at);
319COND_SYSCALL_COMPAT(open_by_handle_at);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100320
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100321COND_SYSCALL(sendmmsg);
322COND_SYSCALL_COMPAT(sendmmsg);
323COND_SYSCALL(process_vm_readv);
324COND_SYSCALL_COMPAT(process_vm_readv);
325COND_SYSCALL(process_vm_writev);
326COND_SYSCALL_COMPAT(process_vm_writev);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100327
328/* compare kernel pointers */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100329COND_SYSCALL(kcmp);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100330
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100331COND_SYSCALL(finit_module);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100332
333/* operate on Secure Computing state */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100334COND_SYSCALL(seccomp);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100335
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100336COND_SYSCALL(memfd_create);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100337
338/* access BPF programs and maps */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100339COND_SYSCALL(bpf);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100340
341/* execveat */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100342COND_SYSCALL(execveat);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100343
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100344COND_SYSCALL(userfaultfd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100345
346/* membarrier */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100347COND_SYSCALL(membarrier);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100348
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100349COND_SYSCALL(mlock2);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100350
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100351COND_SYSCALL(copy_file_range);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100352
353/* memory protection keys */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100354COND_SYSCALL(pkey_mprotect);
355COND_SYSCALL(pkey_alloc);
356COND_SYSCALL(pkey_free);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100357
Mike Rapoport1507f512021-07-07 18:08:03 -0700358/* memfd_secret */
359COND_SYSCALL(memfd_secret);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100360
361/*
362 * Architecture specific weak syscall entries.
363 */
364
365/* pciconfig: alpha, arm, arm64, ia64, sparc */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100366COND_SYSCALL(pciconfig_read);
367COND_SYSCALL(pciconfig_write);
368COND_SYSCALL(pciconfig_iobase);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100369
370/* sys_socketcall: arm, mips, x86, ... */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100371COND_SYSCALL(socketcall);
372COND_SYSCALL_COMPAT(socketcall);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100373
374/* compat syscalls for arm64, x86, ... */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100375COND_SYSCALL_COMPAT(fanotify_mark);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100376
377/* x86 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100378COND_SYSCALL(vm86old);
379COND_SYSCALL(modify_ldt);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100380COND_SYSCALL(vm86);
381COND_SYSCALL(kexec_file_load);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100382
383/* s390 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100384COND_SYSCALL(s390_pci_mmio_read);
385COND_SYSCALL(s390_pci_mmio_write);
Arnd Bergmann58fa4a42019-01-16 14:15:20 +0100386COND_SYSCALL(s390_ipc);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100387COND_SYSCALL_COMPAT(s390_ipc);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100388
389/* powerpc */
Al Viro4c392e62018-05-02 23:20:48 +1000390COND_SYSCALL(rtas);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100391COND_SYSCALL(spu_run);
392COND_SYSCALL(spu_create);
393COND_SYSCALL(subpage_prot);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100394
395
396/*
397 * Deprecated system calls which are still defined in
398 * include/uapi/asm-generic/unistd.h and wanted by >= 1 arch
399 */
400
401/* __ARCH_WANT_SYSCALL_NO_FLAGS */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100402COND_SYSCALL(epoll_create);
403COND_SYSCALL(inotify_init);
404COND_SYSCALL(eventfd);
405COND_SYSCALL(signalfd);
406COND_SYSCALL_COMPAT(signalfd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100407
408/* __ARCH_WANT_SYSCALL_OFF_T */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100409COND_SYSCALL(fadvise64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100410
411/* __ARCH_WANT_SYSCALL_DEPRECATED */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100412COND_SYSCALL(epoll_wait);
413COND_SYSCALL(recv);
414COND_SYSCALL_COMPAT(recv);
415COND_SYSCALL(send);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100416COND_SYSCALL(uselib);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100417
Arnd Bergmann942437c2019-07-15 11:46:10 +0200418/* optional: time32 */
419COND_SYSCALL(time32);
420COND_SYSCALL(stime32);
421COND_SYSCALL(utime32);
422COND_SYSCALL(adjtimex_time32);
423COND_SYSCALL(sched_rr_get_interval_time32);
424COND_SYSCALL(nanosleep_time32);
425COND_SYSCALL(rt_sigtimedwait_time32);
426COND_SYSCALL_COMPAT(rt_sigtimedwait_time32);
427COND_SYSCALL(timer_settime32);
428COND_SYSCALL(timer_gettime32);
429COND_SYSCALL(clock_settime32);
430COND_SYSCALL(clock_gettime32);
431COND_SYSCALL(clock_getres_time32);
432COND_SYSCALL(clock_nanosleep_time32);
433COND_SYSCALL(utimes_time32);
434COND_SYSCALL(futimesat_time32);
435COND_SYSCALL(pselect6_time32);
436COND_SYSCALL_COMPAT(pselect6_time32);
437COND_SYSCALL(ppoll_time32);
438COND_SYSCALL_COMPAT(ppoll_time32);
439COND_SYSCALL(utimensat_time32);
440COND_SYSCALL(clock_adjtime32);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100441
442/*
443 * The syscalls below are not found in include/uapi/asm-generic/unistd.h
444 */
445
446/* obsolete: SGETMASK_SYSCALL */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100447COND_SYSCALL(sgetmask);
448COND_SYSCALL(ssetmask);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100449
450/* obsolete: SYSFS_SYSCALL */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100451COND_SYSCALL(sysfs);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100452
453/* obsolete: __ARCH_WANT_SYS_IPC */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100454COND_SYSCALL(ipc);
455COND_SYSCALL_COMPAT(ipc);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100456
457/* obsolete: UID16 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100458COND_SYSCALL(chown16);
459COND_SYSCALL(fchown16);
460COND_SYSCALL(getegid16);
461COND_SYSCALL(geteuid16);
462COND_SYSCALL(getgid16);
463COND_SYSCALL(getgroups16);
464COND_SYSCALL(getresgid16);
465COND_SYSCALL(getresuid16);
466COND_SYSCALL(getuid16);
467COND_SYSCALL(lchown16);
468COND_SYSCALL(setfsgid16);
469COND_SYSCALL(setfsuid16);
470COND_SYSCALL(setgid16);
471COND_SYSCALL(setgroups16);
472COND_SYSCALL(setregid16);
473COND_SYSCALL(setresgid16);
474COND_SYSCALL(setresuid16);
475COND_SYSCALL(setreuid16);
476COND_SYSCALL(setuid16);
Mathieu Desnoyersd7822b12018-06-02 08:43:54 -0400477
478/* restartable sequence */
479COND_SYSCALL(rseq);