blob: 3b69a560a7ac567020c714c27b8241fe2dffc8ce [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);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010071
72/* fs/fcntl.c */
73
74/* fs/inotify_user.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010075COND_SYSCALL(inotify_init1);
76COND_SYSCALL(inotify_add_watch);
77COND_SYSCALL(inotify_rm_watch);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010078
79/* fs/ioctl.c */
80
81/* fs/ioprio.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010082COND_SYSCALL(ioprio_set);
83COND_SYSCALL(ioprio_get);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010084
85/* fs/locks.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010086COND_SYSCALL(flock);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +010087
88/* fs/namei.c */
89
90/* fs/namespace.c */
91
92/* fs/nfsctl.c */
93
94/* fs/open.c */
95
96/* fs/pipe.c */
97
98/* fs/quota.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +010099COND_SYSCALL(quotactl);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100100
101/* fs/readdir.c */
102
103/* fs/read_write.c */
104
105/* fs/sendfile.c */
106
107/* fs/select.c */
108
109/* fs/signalfd.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100110COND_SYSCALL(signalfd4);
111COND_SYSCALL_COMPAT(signalfd4);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100112
113/* fs/splice.c */
114
115/* fs/stat.c */
116
117/* fs/sync.c */
118
119/* fs/timerfd.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100120COND_SYSCALL(timerfd_create);
121COND_SYSCALL(timerfd_settime);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100122COND_SYSCALL(timerfd_settime32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100123COND_SYSCALL(timerfd_gettime);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100124COND_SYSCALL(timerfd_gettime32);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100125
126/* fs/utimes.c */
127
128/* kernel/acct.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100129COND_SYSCALL(acct);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100130
131/* kernel/capability.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100132COND_SYSCALL(capget);
133COND_SYSCALL(capset);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100134
135/* kernel/exec_domain.c */
136
137/* kernel/exit.c */
138
139/* kernel/fork.c */
Christian Braunerd68dbb02019-06-21 01:26:35 +0200140/* __ARCH_WANT_SYS_CLONE3 */
141COND_SYSCALL(clone3);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100142
143/* kernel/futex.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100144COND_SYSCALL(futex);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100145COND_SYSCALL(futex_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100146COND_SYSCALL(set_robust_list);
147COND_SYSCALL_COMPAT(set_robust_list);
148COND_SYSCALL(get_robust_list);
149COND_SYSCALL_COMPAT(get_robust_list);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100150
151/* kernel/hrtimer.c */
152
153/* kernel/itimer.c */
154
155/* kernel/kexec.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100156COND_SYSCALL(kexec_load);
157COND_SYSCALL_COMPAT(kexec_load);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100158
159/* kernel/module.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100160COND_SYSCALL(init_module);
161COND_SYSCALL(delete_module);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100162
163/* kernel/posix-timers.c */
164
165/* kernel/printk.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100166COND_SYSCALL(syslog);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100167
168/* kernel/ptrace.c */
169
170/* kernel/sched/core.c */
171
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100172/* kernel/sys.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100173COND_SYSCALL(setregid);
174COND_SYSCALL(setgid);
175COND_SYSCALL(setreuid);
176COND_SYSCALL(setuid);
177COND_SYSCALL(setresuid);
178COND_SYSCALL(getresuid);
179COND_SYSCALL(setresgid);
180COND_SYSCALL(getresgid);
181COND_SYSCALL(setfsuid);
182COND_SYSCALL(setfsgid);
183COND_SYSCALL(setgroups);
184COND_SYSCALL(getgroups);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100185
186/* kernel/time.c */
187
188/* kernel/timer.c */
189
190/* ipc/mqueue.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100191COND_SYSCALL(mq_open);
192COND_SYSCALL_COMPAT(mq_open);
193COND_SYSCALL(mq_unlink);
194COND_SYSCALL(mq_timedsend);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100195COND_SYSCALL(mq_timedsend_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100196COND_SYSCALL(mq_timedreceive);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100197COND_SYSCALL(mq_timedreceive_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100198COND_SYSCALL(mq_notify);
199COND_SYSCALL_COMPAT(mq_notify);
200COND_SYSCALL(mq_getsetattr);
201COND_SYSCALL_COMPAT(mq_getsetattr);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100202
203/* ipc/msg.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100204COND_SYSCALL(msgget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100205COND_SYSCALL(old_msgctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100206COND_SYSCALL(msgctl);
207COND_SYSCALL_COMPAT(msgctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100208COND_SYSCALL_COMPAT(old_msgctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100209COND_SYSCALL(msgrcv);
210COND_SYSCALL_COMPAT(msgrcv);
211COND_SYSCALL(msgsnd);
212COND_SYSCALL_COMPAT(msgsnd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100213
214/* ipc/sem.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100215COND_SYSCALL(semget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100216COND_SYSCALL(old_semctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100217COND_SYSCALL(semctl);
218COND_SYSCALL_COMPAT(semctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100219COND_SYSCALL_COMPAT(old_semctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100220COND_SYSCALL(semtimedop);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100221COND_SYSCALL(semtimedop_time32);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100222COND_SYSCALL(semop);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100223
224/* ipc/shm.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100225COND_SYSCALL(shmget);
Arnd Bergmann275f2212018-12-31 22:22:40 +0100226COND_SYSCALL(old_shmctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100227COND_SYSCALL(shmctl);
228COND_SYSCALL_COMPAT(shmctl);
Arnd Bergmann7e89a372019-02-28 15:22:53 +0100229COND_SYSCALL_COMPAT(old_shmctl);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100230COND_SYSCALL(shmat);
231COND_SYSCALL_COMPAT(shmat);
232COND_SYSCALL(shmdt);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100233
234/* net/socket.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100235COND_SYSCALL(socket);
236COND_SYSCALL(socketpair);
237COND_SYSCALL(bind);
238COND_SYSCALL(listen);
239COND_SYSCALL(accept);
240COND_SYSCALL(connect);
241COND_SYSCALL(getsockname);
242COND_SYSCALL(getpeername);
243COND_SYSCALL(setsockopt);
244COND_SYSCALL_COMPAT(setsockopt);
245COND_SYSCALL(getsockopt);
246COND_SYSCALL_COMPAT(getsockopt);
247COND_SYSCALL(sendto);
248COND_SYSCALL(shutdown);
249COND_SYSCALL(recvfrom);
250COND_SYSCALL_COMPAT(recvfrom);
251COND_SYSCALL(sendmsg);
252COND_SYSCALL_COMPAT(sendmsg);
253COND_SYSCALL(recvmsg);
254COND_SYSCALL_COMPAT(recvmsg);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100255
256/* mm/filemap.c */
257
258/* mm/nommu.c, also with MMU */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100259COND_SYSCALL(mremap);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100260
261/* security/keys/keyctl.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100262COND_SYSCALL(add_key);
263COND_SYSCALL(request_key);
264COND_SYSCALL(keyctl);
265COND_SYSCALL_COMPAT(keyctl);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100266
267/* arch/example/kernel/sys_example.c */
268
269/* mm/fadvise.c */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100270COND_SYSCALL(fadvise64_64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100271
272/* mm/, CONFIG_MMU only */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100273COND_SYSCALL(swapon);
274COND_SYSCALL(swapoff);
275COND_SYSCALL(mprotect);
276COND_SYSCALL(msync);
277COND_SYSCALL(mlock);
278COND_SYSCALL(munlock);
279COND_SYSCALL(mlockall);
280COND_SYSCALL(munlockall);
281COND_SYSCALL(mincore);
282COND_SYSCALL(madvise);
283COND_SYSCALL(remap_file_pages);
284COND_SYSCALL(mbind);
285COND_SYSCALL_COMPAT(mbind);
286COND_SYSCALL(get_mempolicy);
287COND_SYSCALL_COMPAT(get_mempolicy);
288COND_SYSCALL(set_mempolicy);
289COND_SYSCALL_COMPAT(set_mempolicy);
290COND_SYSCALL(migrate_pages);
291COND_SYSCALL_COMPAT(migrate_pages);
292COND_SYSCALL(move_pages);
293COND_SYSCALL_COMPAT(move_pages);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100294
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100295COND_SYSCALL(perf_event_open);
296COND_SYSCALL(accept4);
297COND_SYSCALL(recvmmsg);
Arnd Bergmanne11d4282018-04-18 13:43:52 +0200298COND_SYSCALL(recvmmsg_time32);
Arnd Bergmann8dabe722019-01-07 00:33:08 +0100299COND_SYSCALL_COMPAT(recvmmsg_time32);
Arnd Bergmanne11d4282018-04-18 13:43:52 +0200300COND_SYSCALL_COMPAT(recvmmsg_time64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100301
302/*
303 * Architecture specific syscalls: see further below
304 */
305
306/* fanotify */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100307COND_SYSCALL(fanotify_init);
308COND_SYSCALL(fanotify_mark);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100309
310/* open by handle */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100311COND_SYSCALL(name_to_handle_at);
312COND_SYSCALL(open_by_handle_at);
313COND_SYSCALL_COMPAT(open_by_handle_at);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100314
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100315COND_SYSCALL(sendmmsg);
316COND_SYSCALL_COMPAT(sendmmsg);
317COND_SYSCALL(process_vm_readv);
318COND_SYSCALL_COMPAT(process_vm_readv);
319COND_SYSCALL(process_vm_writev);
320COND_SYSCALL_COMPAT(process_vm_writev);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100321
322/* compare kernel pointers */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100323COND_SYSCALL(kcmp);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100324
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100325COND_SYSCALL(finit_module);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100326
327/* operate on Secure Computing state */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100328COND_SYSCALL(seccomp);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100329
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100330COND_SYSCALL(memfd_create);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100331
332/* access BPF programs and maps */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100333COND_SYSCALL(bpf);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100334
335/* execveat */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100336COND_SYSCALL(execveat);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100337
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100338COND_SYSCALL(userfaultfd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100339
340/* membarrier */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100341COND_SYSCALL(membarrier);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100342
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100343COND_SYSCALL(mlock2);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100344
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100345COND_SYSCALL(copy_file_range);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100346
347/* memory protection keys */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100348COND_SYSCALL(pkey_mprotect);
349COND_SYSCALL(pkey_alloc);
350COND_SYSCALL(pkey_free);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100351
352
353/*
354 * Architecture specific weak syscall entries.
355 */
356
357/* pciconfig: alpha, arm, arm64, ia64, sparc */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100358COND_SYSCALL(pciconfig_read);
359COND_SYSCALL(pciconfig_write);
360COND_SYSCALL(pciconfig_iobase);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100361
362/* sys_socketcall: arm, mips, x86, ... */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100363COND_SYSCALL(socketcall);
364COND_SYSCALL_COMPAT(socketcall);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100365
366/* compat syscalls for arm64, x86, ... */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100367COND_SYSCALL_COMPAT(sysctl);
368COND_SYSCALL_COMPAT(fanotify_mark);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100369
370/* x86 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100371COND_SYSCALL(vm86old);
372COND_SYSCALL(modify_ldt);
373COND_SYSCALL_COMPAT(quotactl32);
374COND_SYSCALL(vm86);
375COND_SYSCALL(kexec_file_load);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100376
377/* s390 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100378COND_SYSCALL(s390_pci_mmio_read);
379COND_SYSCALL(s390_pci_mmio_write);
Arnd Bergmann58fa4a42019-01-16 14:15:20 +0100380COND_SYSCALL(s390_ipc);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100381COND_SYSCALL_COMPAT(s390_ipc);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100382
383/* powerpc */
Al Viro4c392e62018-05-02 23:20:48 +1000384COND_SYSCALL(rtas);
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100385COND_SYSCALL(spu_run);
386COND_SYSCALL(spu_create);
387COND_SYSCALL(subpage_prot);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100388
389
390/*
391 * Deprecated system calls which are still defined in
392 * include/uapi/asm-generic/unistd.h and wanted by >= 1 arch
393 */
394
395/* __ARCH_WANT_SYSCALL_NO_FLAGS */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100396COND_SYSCALL(epoll_create);
397COND_SYSCALL(inotify_init);
398COND_SYSCALL(eventfd);
399COND_SYSCALL(signalfd);
400COND_SYSCALL_COMPAT(signalfd);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100401
402/* __ARCH_WANT_SYSCALL_OFF_T */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100403COND_SYSCALL(fadvise64);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100404
405/* __ARCH_WANT_SYSCALL_DEPRECATED */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100406COND_SYSCALL(epoll_wait);
407COND_SYSCALL(recv);
408COND_SYSCALL_COMPAT(recv);
409COND_SYSCALL(send);
410COND_SYSCALL(bdflush);
411COND_SYSCALL(uselib);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100412
Arnd Bergmann942437c2019-07-15 11:46:10 +0200413/* optional: time32 */
414COND_SYSCALL(time32);
415COND_SYSCALL(stime32);
416COND_SYSCALL(utime32);
417COND_SYSCALL(adjtimex_time32);
418COND_SYSCALL(sched_rr_get_interval_time32);
419COND_SYSCALL(nanosleep_time32);
420COND_SYSCALL(rt_sigtimedwait_time32);
421COND_SYSCALL_COMPAT(rt_sigtimedwait_time32);
422COND_SYSCALL(timer_settime32);
423COND_SYSCALL(timer_gettime32);
424COND_SYSCALL(clock_settime32);
425COND_SYSCALL(clock_gettime32);
426COND_SYSCALL(clock_getres_time32);
427COND_SYSCALL(clock_nanosleep_time32);
428COND_SYSCALL(utimes_time32);
429COND_SYSCALL(futimesat_time32);
430COND_SYSCALL(pselect6_time32);
431COND_SYSCALL_COMPAT(pselect6_time32);
432COND_SYSCALL(ppoll_time32);
433COND_SYSCALL_COMPAT(ppoll_time32);
434COND_SYSCALL(utimensat_time32);
435COND_SYSCALL(clock_adjtime32);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100436
437/*
438 * The syscalls below are not found in include/uapi/asm-generic/unistd.h
439 */
440
441/* obsolete: SGETMASK_SYSCALL */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100442COND_SYSCALL(sgetmask);
443COND_SYSCALL(ssetmask);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100444
445/* obsolete: SYSFS_SYSCALL */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100446COND_SYSCALL(sysfs);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100447
448/* obsolete: __ARCH_WANT_SYS_IPC */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100449COND_SYSCALL(ipc);
450COND_SYSCALL_COMPAT(ipc);
Dominik Brodowski70dd4b32018-03-06 19:53:01 +0100451
452/* obsolete: UID16 */
Dominik Brodowski67a7acd2018-03-04 19:06:35 +0100453COND_SYSCALL(chown16);
454COND_SYSCALL(fchown16);
455COND_SYSCALL(getegid16);
456COND_SYSCALL(geteuid16);
457COND_SYSCALL(getgid16);
458COND_SYSCALL(getgroups16);
459COND_SYSCALL(getresgid16);
460COND_SYSCALL(getresuid16);
461COND_SYSCALL(getuid16);
462COND_SYSCALL(lchown16);
463COND_SYSCALL(setfsgid16);
464COND_SYSCALL(setfsuid16);
465COND_SYSCALL(setgid16);
466COND_SYSCALL(setgroups16);
467COND_SYSCALL(setregid16);
468COND_SYSCALL(setresgid16);
469COND_SYSCALL(setresuid16);
470COND_SYSCALL(setreuid16);
471COND_SYSCALL(setuid16);
Mathieu Desnoyersd7822b12018-06-02 08:43:54 -0400472
473/* restartable sequence */
474COND_SYSCALL(rseq);