xref: /openbmc/linux/arch/riscv/include/asm/unistd.h (revision 55eb9a6c)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2012 Regents of the University of California
4  */
5 
6 /*
7  * There is explicitly no include guard here because this file is expected to
8  * be included multiple times.
9  */
10 
11 #define __ARCH_WANT_SYS_CLONE
12 #define __ARCH_WANT_MEMFD_SECRET
13 
14 #ifdef CONFIG_COMPAT
15 #define __ARCH_WANT_COMPAT_TRUNCATE64
16 #define __ARCH_WANT_COMPAT_FTRUNCATE64
17 #define __ARCH_WANT_COMPAT_FALLOCATE
18 #define __ARCH_WANT_COMPAT_PREAD64
19 #define __ARCH_WANT_COMPAT_PWRITE64
20 #define __ARCH_WANT_COMPAT_SYNC_FILE_RANGE
21 #define __ARCH_WANT_COMPAT_READAHEAD
22 #define __ARCH_WANT_COMPAT_FADVISE64_64
23 #endif
24 
25 #include <uapi/asm/unistd.h>
26 
27 #define NR_syscalls (__NR_syscalls)
28