xref: /linux/arch/riscv/include/asm/unistd.h (revision a1ff5a7d78a036d6c2178ee5acd6ba4946243800)
1 /* SPDX-License-Identifier: GPL-2.0-only */
2 /*
3  * Copyright (C) 2012 Regents of the University of California
4  */
5 
6 #define __ARCH_WANT_SYS_CLONE
7 
8 #ifdef CONFIG_COMPAT
9 #define __ARCH_WANT_COMPAT_TRUNCATE64
10 #define __ARCH_WANT_COMPAT_FTRUNCATE64
11 #define __ARCH_WANT_COMPAT_FALLOCATE
12 #define __ARCH_WANT_COMPAT_PREAD64
13 #define __ARCH_WANT_COMPAT_PWRITE64
14 #define __ARCH_WANT_COMPAT_SYNC_FILE_RANGE
15 #define __ARCH_WANT_COMPAT_READAHEAD
16 #define __ARCH_WANT_COMPAT_FADVISE64_64
17 #endif
18 
19 #if defined(__LP64__) && !defined(__SYSCALL_COMPAT)
20 #define __ARCH_WANT_NEW_STAT
21 #define __ARCH_WANT_SET_GET_RLIMIT
22 #endif /* __LP64__ */
23 
24 #define __ARCH_WANT_MEMFD_SECRET
25 
26 
27 #include <uapi/asm/unistd.h>
28 
29 #define NR_syscalls (__NR_syscalls)
30