blob: 18a9c2cde767503ace2fa02126c66821331cf695 [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
146/* kernel/futex.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);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100153
154/* kernel/hrtimer.c */
155
156/* kernel/itimer.c */
157
158/* kernel/kexec.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100159COND_SYSCALL(kexec_load);
160COND_SYSCALL_COMPAT(kexec_load);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100161
162/* kernel/module.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100163COND_SYSCALL(init_module);
164COND_SYSCALL(delete_module);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100165
166/* kernel/posix-timers.c */
167
168/* kernel/printk.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100169COND_SYSCALL(syslog);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100170
171/* kernel/ptrace.c */
172
173/* kernel/sched/core.c */
174
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100175/* kernel/sys.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100176COND_SYSCALL(setregid);
177COND_SYSCALL(setgid);
178COND_SYSCALL(setreuid);
179COND_SYSCALL(setuid);
180COND_SYSCALL(setresuid);
181COND_SYSCALL(getresuid);
182COND_SYSCALL(setresgid);
183COND_SYSCALL(getresgid);
184COND_SYSCALL(setfsuid);
185COND_SYSCALL(setfsgid);
186COND_SYSCALL(setgroups);
187COND_SYSCALL(getgroups);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100188
189/* kernel/time.c */
190
191/* kernel/timer.c */
192
193/* ipc/mqueue.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100194COND_SYSCALL(mq_open);
195COND_SYSCALL_COMPAT(mq_open);
196COND_SYSCALL(mq_unlink);
197COND_SYSCALL(mq_timedsend);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100198COND_SYSCALL(mq_timedsend_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100199COND_SYSCALL(mq_timedreceive);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100200COND_SYSCALL(mq_timedreceive_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100201COND_SYSCALL(mq_notify);
202COND_SYSCALL_COMPAT(mq_notify);
203COND_SYSCALL(mq_getsetattr);
204COND_SYSCALL_COMPAT(mq_getsetattr);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100205
206/* ipc/msg.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100207COND_SYSCALL(msgget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100208COND_SYSCALL(old_msgctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100209COND_SYSCALL(msgctl);
210COND_SYSCALL_COMPAT(msgctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100211COND_SYSCALL_COMPAT(old_msgctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100212COND_SYSCALL(msgrcv);
213COND_SYSCALL_COMPAT(msgrcv);
214COND_SYSCALL(msgsnd);
215COND_SYSCALL_COMPAT(msgsnd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100216
217/* ipc/sem.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100218COND_SYSCALL(semget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100219COND_SYSCALL(old_semctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100220COND_SYSCALL(semctl);
221COND_SYSCALL_COMPAT(semctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100222COND_SYSCALL_COMPAT(old_semctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100223COND_SYSCALL(semtimedop);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100224COND_SYSCALL(semtimedop_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100225COND_SYSCALL(semop);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100226
227/* ipc/shm.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100228COND_SYSCALL(shmget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100229COND_SYSCALL(old_shmctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100230COND_SYSCALL(shmctl);
231COND_SYSCALL_COMPAT(shmctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100232COND_SYSCALL_COMPAT(old_shmctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100233COND_SYSCALL(shmat);
234COND_SYSCALL_COMPAT(shmat);
235COND_SYSCALL(shmdt);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100236
237/* net/socket.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100238COND_SYSCALL(socket);
239COND_SYSCALL(socketpair);
240COND_SYSCALL(bind);
241COND_SYSCALL(listen);
242COND_SYSCALL(accept);
243COND_SYSCALL(connect);
244COND_SYSCALL(getsockname);
245COND_SYSCALL(getpeername);
246COND_SYSCALL(setsockopt);
247COND_SYSCALL_COMPAT(setsockopt);
248COND_SYSCALL(getsockopt);
249COND_SYSCALL_COMPAT(getsockopt);
250COND_SYSCALL(sendto);
251COND_SYSCALL(shutdown);
252COND_SYSCALL(recvfrom);
253COND_SYSCALL_COMPAT(recvfrom);
254COND_SYSCALL(sendmsg);
255COND_SYSCALL_COMPAT(sendmsg);
256COND_SYSCALL(recvmsg);
257COND_SYSCALL_COMPAT(recvmsg);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100258
259/* mm/filemap.c */
260
261/* mm/nommu.c, also with MMU */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100262COND_SYSCALL(mremap);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100263
264/* security/keys/keyctl.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100265COND_SYSCALL(add_key);
266COND_SYSCALL(request_key);
267COND_SYSCALL(keyctl);
268COND_SYSCALL_COMPAT(keyctl);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100269
Mickaël Salaün265885d2021-04-22 17:41:18 +0200270/* security/landlock/syscalls.c */
271COND_SYSCALL(landlock_create_ruleset);
272COND_SYSCALL(landlock_add_rule);
273COND_SYSCALL(landlock_restrict_self);
274
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100275/* arch/example/kernel/sys_example.c */
276
277/* mm/fadvise.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100278COND_SYSCALL(fadvise64_64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100279
280/* mm/, CONFIG_MMU only */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100281COND_SYSCALL(swapon);
282COND_SYSCALL(swapoff);
283COND_SYSCALL(mprotect);
284COND_SYSCALL(msync);
285COND_SYSCALL(mlock);
286COND_SYSCALL(munlock);
287COND_SYSCALL(mlockall);
288COND_SYSCALL(munlockall);
289COND_SYSCALL(mincore);
290COND_SYSCALL(madvise);
Minchan Kimecb8ac82020-10-17 16:14:59 -0700291COND_SYSCALL(process_madvise);
Suren Baghdasaryandce49102021-09-02 15:00:33 -0700292COND_SYSCALL(process_mrelease);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100293COND_SYSCALL(remap_file_pages);
294COND_SYSCALL(mbind);
295COND_SYSCALL_COMPAT(mbind);
296COND_SYSCALL(get_mempolicy);
297COND_SYSCALL_COMPAT(get_mempolicy);
298COND_SYSCALL(set_mempolicy);
299COND_SYSCALL_COMPAT(set_mempolicy);
300COND_SYSCALL(migrate_pages);
301COND_SYSCALL_COMPAT(migrate_pages);
302COND_SYSCALL(move_pages);
303COND_SYSCALL_COMPAT(move_pages);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100304
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100305COND_SYSCALL(perf_event_open);
306COND_SYSCALL(accept4);
307COND_SYSCALL(recvmmsg);
Arnd Bergmanne11d4282018-04-18 13:43:52 +0200308COND_SYSCALL(recvmmsg_time32);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100309COND_SYSCALL_COMPAT(recvmmsg_time32);
Arnd Bergmanne11d4282018-04-18 13:43:52 +0200310COND_SYSCALL_COMPAT(recvmmsg_time64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100311
312/*
313 * Architecture specific syscalls: see further below
314 */
315
316/* fanotify */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100317COND_SYSCALL(fanotify_init);
318COND_SYSCALL(fanotify_mark);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100319
320/* open by handle */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100321COND_SYSCALL(name_to_handle_at);
322COND_SYSCALL(open_by_handle_at);
323COND_SYSCALL_COMPAT(open_by_handle_at);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100324
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100325COND_SYSCALL(sendmmsg);
326COND_SYSCALL_COMPAT(sendmmsg);
327COND_SYSCALL(process_vm_readv);
328COND_SYSCALL_COMPAT(process_vm_readv);
329COND_SYSCALL(process_vm_writev);
330COND_SYSCALL_COMPAT(process_vm_writev);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100331
332/* compare kernel pointers */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100333COND_SYSCALL(kcmp);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100334
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100335COND_SYSCALL(finit_module);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100336
337/* operate on Secure Computing state */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100338COND_SYSCALL(seccomp);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100339
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100340COND_SYSCALL(memfd_create);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100341
342/* access BPF programs and maps */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100343COND_SYSCALL(bpf);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100344
345/* execveat */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100346COND_SYSCALL(execveat);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100347
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100348COND_SYSCALL(userfaultfd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100349
350/* membarrier */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100351COND_SYSCALL(membarrier);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100352
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100353COND_SYSCALL(mlock2);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100354
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100355COND_SYSCALL(copy_file_range);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100356
357/* memory protection keys */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100358COND_SYSCALL(pkey_mprotect);
359COND_SYSCALL(pkey_alloc);
360COND_SYSCALL(pkey_free);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100361
Mike Rapoport1507f512021-07-07 18:08:03 -0700362/* memfd_secret */
363COND_SYSCALL(memfd_secret);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100364
365/*
366 * Architecture specific weak syscall entries.
367 */
368
369/* pciconfig: alpha, arm, arm64, ia64, sparc */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100370COND_SYSCALL(pciconfig_read);
371COND_SYSCALL(pciconfig_write);
372COND_SYSCALL(pciconfig_iobase);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100373
374/* sys_socketcall: arm, mips, x86, ... */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100375COND_SYSCALL(socketcall);
376COND_SYSCALL_COMPAT(socketcall);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100377
378/* compat syscalls for arm64, x86, ... */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100379COND_SYSCALL_COMPAT(fanotify_mark);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100380
381/* x86 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100382COND_SYSCALL(vm86old);
383COND_SYSCALL(modify_ldt);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100384COND_SYSCALL(vm86);
385COND_SYSCALL(kexec_file_load);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100386
387/* s390 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100388COND_SYSCALL(s390_pci_mmio_read);
389COND_SYSCALL(s390_pci_mmio_write);
Arnd Bergmann58fa4a42019-01-16 14:15:20 +0100390COND_SYSCALL(s390_ipc);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100391COND_SYSCALL_COMPAT(s390_ipc);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100392
393/* powerpc */
Al Viro4c392e62018-05-02 23:20:48 +1000394COND_SYSCALL(rtas);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100395COND_SYSCALL(spu_run);
396COND_SYSCALL(spu_create);
397COND_SYSCALL(subpage_prot);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100398
399
400/*
401 * Deprecated system calls which are still defined in
402 * include/uapi/asm-generic/unistd.h and wanted by >= 1 arch
403 */
404
405/* __ARCH_WANT_SYSCALL_NO_FLAGS */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100406COND_SYSCALL(epoll_create);
407COND_SYSCALL(inotify_init);
408COND_SYSCALL(eventfd);
409COND_SYSCALL(signalfd);
410COND_SYSCALL_COMPAT(signalfd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100411
412/* __ARCH_WANT_SYSCALL_OFF_T */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100413COND_SYSCALL(fadvise64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100414
415/* __ARCH_WANT_SYSCALL_DEPRECATED */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100416COND_SYSCALL(epoll_wait);
417COND_SYSCALL(recv);
418COND_SYSCALL_COMPAT(recv);
419COND_SYSCALL(send);
420COND_SYSCALL(bdflush);
421COND_SYSCALL(uselib);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100422
Arnd Bergmann942437c2019-07-15 11:46:10 +0200423/* optional: time32 */
424COND_SYSCALL(time32);
425COND_SYSCALL(stime32);
426COND_SYSCALL(utime32);
427COND_SYSCALL(adjtimex_time32);
428COND_SYSCALL(sched_rr_get_interval_time32);
429COND_SYSCALL(nanosleep_time32);
430COND_SYSCALL(rt_sigtimedwait_time32);
431COND_SYSCALL_COMPAT(rt_sigtimedwait_time32);
432COND_SYSCALL(timer_settime32);
433COND_SYSCALL(timer_gettime32);
434COND_SYSCALL(clock_settime32);
435COND_SYSCALL(clock_gettime32);
436COND_SYSCALL(clock_getres_time32);
437COND_SYSCALL(clock_nanosleep_time32);
438COND_SYSCALL(utimes_time32);
439COND_SYSCALL(futimesat_time32);
440COND_SYSCALL(pselect6_time32);
441COND_SYSCALL_COMPAT(pselect6_time32);
442COND_SYSCALL(ppoll_time32);
443COND_SYSCALL_COMPAT(ppoll_time32);
444COND_SYSCALL(utimensat_time32);
445COND_SYSCALL(clock_adjtime32);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100446
447/*
448 * The syscalls below are not found in include/uapi/asm-generic/unistd.h
449 */
450
451/* obsolete: SGETMASK_SYSCALL */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100452COND_SYSCALL(sgetmask);
453COND_SYSCALL(ssetmask);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100454
455/* obsolete: SYSFS_SYSCALL */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100456COND_SYSCALL(sysfs);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100457
458/* obsolete: __ARCH_WANT_SYS_IPC */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100459COND_SYSCALL(ipc);
460COND_SYSCALL_COMPAT(ipc);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100461
462/* obsolete: UID16 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100463COND_SYSCALL(chown16);
464COND_SYSCALL(fchown16);
465COND_SYSCALL(getegid16);
466COND_SYSCALL(geteuid16);
467COND_SYSCALL(getgid16);
468COND_SYSCALL(getgroups16);
469COND_SYSCALL(getresgid16);
470COND_SYSCALL(getresuid16);
471COND_SYSCALL(getuid16);
472COND_SYSCALL(lchown16);
473COND_SYSCALL(setfsgid16);
474COND_SYSCALL(setfsuid16);
475COND_SYSCALL(setgid16);
476COND_SYSCALL(setgroups16);
477COND_SYSCALL(setregid16);
478COND_SYSCALL(setresgid16);
479COND_SYSCALL(setresuid16);
480COND_SYSCALL(setreuid16);
481COND_SYSCALL(setuid16);
Mathieu Desnoyersd7822b12018-06-02 08:43:54 -0400482
483/* restartable sequence */
484COND_SYSCALL(rseq);