blob: a492f159624fa2545dfc43b78337a6166bfece18 [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);
Aneesh Kumar K.V21b084f2022-01-14 14:08:21 -0800300COND_SYSCALL(set_mempolicy_home_node);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100301
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100302COND_SYSCALL(perf_event_open);
303COND_SYSCALL(accept4);
304COND_SYSCALL(recvmmsg);
Arnd Bergmanne11d4282018-04-18 13:43:52 +0200305COND_SYSCALL(recvmmsg_time32);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100306COND_SYSCALL_COMPAT(recvmmsg_time32);
Arnd Bergmanne11d4282018-04-18 13:43:52 +0200307COND_SYSCALL_COMPAT(recvmmsg_time64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100308
309/*
310 * Architecture specific syscalls: see further below
311 */
312
313/* fanotify */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100314COND_SYSCALL(fanotify_init);
315COND_SYSCALL(fanotify_mark);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100316
317/* open by handle */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100318COND_SYSCALL(name_to_handle_at);
319COND_SYSCALL(open_by_handle_at);
320COND_SYSCALL_COMPAT(open_by_handle_at);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100321
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100322COND_SYSCALL(sendmmsg);
323COND_SYSCALL_COMPAT(sendmmsg);
324COND_SYSCALL(process_vm_readv);
325COND_SYSCALL_COMPAT(process_vm_readv);
326COND_SYSCALL(process_vm_writev);
327COND_SYSCALL_COMPAT(process_vm_writev);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100328
329/* compare kernel pointers */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100330COND_SYSCALL(kcmp);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100331
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100332COND_SYSCALL(finit_module);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100333
334/* operate on Secure Computing state */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100335COND_SYSCALL(seccomp);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100336
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100337COND_SYSCALL(memfd_create);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100338
339/* access BPF programs and maps */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100340COND_SYSCALL(bpf);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100341
342/* execveat */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100343COND_SYSCALL(execveat);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100344
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100345COND_SYSCALL(userfaultfd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100346
347/* membarrier */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100348COND_SYSCALL(membarrier);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100349
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100350COND_SYSCALL(mlock2);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100351
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100352COND_SYSCALL(copy_file_range);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100353
354/* memory protection keys */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100355COND_SYSCALL(pkey_mprotect);
356COND_SYSCALL(pkey_alloc);
357COND_SYSCALL(pkey_free);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100358
Mike Rapoport1507f512021-07-07 18:08:03 -0700359/* memfd_secret */
360COND_SYSCALL(memfd_secret);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100361
362/*
363 * Architecture specific weak syscall entries.
364 */
365
366/* pciconfig: alpha, arm, arm64, ia64, sparc */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100367COND_SYSCALL(pciconfig_read);
368COND_SYSCALL(pciconfig_write);
369COND_SYSCALL(pciconfig_iobase);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100370
371/* sys_socketcall: arm, mips, x86, ... */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100372COND_SYSCALL(socketcall);
373COND_SYSCALL_COMPAT(socketcall);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100374
375/* compat syscalls for arm64, x86, ... */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100376COND_SYSCALL_COMPAT(fanotify_mark);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100377
378/* x86 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100379COND_SYSCALL(vm86old);
380COND_SYSCALL(modify_ldt);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100381COND_SYSCALL(vm86);
382COND_SYSCALL(kexec_file_load);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100383
384/* s390 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100385COND_SYSCALL(s390_pci_mmio_read);
386COND_SYSCALL(s390_pci_mmio_write);
Arnd Bergmann58fa4a42019-01-16 14:15:20 +0100387COND_SYSCALL(s390_ipc);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100388COND_SYSCALL_COMPAT(s390_ipc);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100389
390/* powerpc */
Al Viro4c392e62018-05-02 23:20:48 +1000391COND_SYSCALL(rtas);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100392COND_SYSCALL(spu_run);
393COND_SYSCALL(spu_create);
394COND_SYSCALL(subpage_prot);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100395
396
397/*
398 * Deprecated system calls which are still defined in
399 * include/uapi/asm-generic/unistd.h and wanted by >= 1 arch
400 */
401
402/* __ARCH_WANT_SYSCALL_NO_FLAGS */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100403COND_SYSCALL(epoll_create);
404COND_SYSCALL(inotify_init);
405COND_SYSCALL(eventfd);
406COND_SYSCALL(signalfd);
407COND_SYSCALL_COMPAT(signalfd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100408
409/* __ARCH_WANT_SYSCALL_OFF_T */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100410COND_SYSCALL(fadvise64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100411
412/* __ARCH_WANT_SYSCALL_DEPRECATED */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100413COND_SYSCALL(epoll_wait);
414COND_SYSCALL(recv);
415COND_SYSCALL_COMPAT(recv);
416COND_SYSCALL(send);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100417COND_SYSCALL(uselib);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100418
Arnd Bergmann942437c2019-07-15 11:46:10 +0200419/* optional: time32 */
420COND_SYSCALL(time32);
421COND_SYSCALL(stime32);
422COND_SYSCALL(utime32);
423COND_SYSCALL(adjtimex_time32);
424COND_SYSCALL(sched_rr_get_interval_time32);
425COND_SYSCALL(nanosleep_time32);
426COND_SYSCALL(rt_sigtimedwait_time32);
427COND_SYSCALL_COMPAT(rt_sigtimedwait_time32);
428COND_SYSCALL(timer_settime32);
429COND_SYSCALL(timer_gettime32);
430COND_SYSCALL(clock_settime32);
431COND_SYSCALL(clock_gettime32);
432COND_SYSCALL(clock_getres_time32);
433COND_SYSCALL(clock_nanosleep_time32);
434COND_SYSCALL(utimes_time32);
435COND_SYSCALL(futimesat_time32);
436COND_SYSCALL(pselect6_time32);
437COND_SYSCALL_COMPAT(pselect6_time32);
438COND_SYSCALL(ppoll_time32);
439COND_SYSCALL_COMPAT(ppoll_time32);
440COND_SYSCALL(utimensat_time32);
441COND_SYSCALL(clock_adjtime32);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100442
443/*
444 * The syscalls below are not found in include/uapi/asm-generic/unistd.h
445 */
446
447/* obsolete: SGETMASK_SYSCALL */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100448COND_SYSCALL(sgetmask);
449COND_SYSCALL(ssetmask);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100450
451/* obsolete: SYSFS_SYSCALL */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100452COND_SYSCALL(sysfs);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100453
454/* obsolete: __ARCH_WANT_SYS_IPC */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100455COND_SYSCALL(ipc);
456COND_SYSCALL_COMPAT(ipc);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100457
458/* obsolete: UID16 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100459COND_SYSCALL(chown16);
460COND_SYSCALL(fchown16);
461COND_SYSCALL(getegid16);
462COND_SYSCALL(geteuid16);
463COND_SYSCALL(getgid16);
464COND_SYSCALL(getgroups16);
465COND_SYSCALL(getresgid16);
466COND_SYSCALL(getresuid16);
467COND_SYSCALL(getuid16);
468COND_SYSCALL(lchown16);
469COND_SYSCALL(setfsgid16);
470COND_SYSCALL(setfsuid16);
471COND_SYSCALL(setgid16);
472COND_SYSCALL(setgroups16);
473COND_SYSCALL(setregid16);
474COND_SYSCALL(setresgid16);
475COND_SYSCALL(setresuid16);
476COND_SYSCALL(setreuid16);
477COND_SYSCALL(setuid16);
Mathieu Desnoyersd7822b12018-06-02 08:43:54 -0400478
479/* restartable sequence */
480COND_SYSCALL(rseq);