xref: /linux/arch/riscv/include/asm/unistd.h (revision 908fc4c2)
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 
13 #ifdef CONFIG_COMPAT
14 #define __ARCH_WANT_COMPAT_TRUNCATE64
15 #define __ARCH_WANT_COMPAT_FTRUNCATE64
16 #define __ARCH_WANT_COMPAT_FALLOCATE
17 #define __ARCH_WANT_COMPAT_PREAD64
18 #define __ARCH_WANT_COMPAT_PWRITE64
19 #define __ARCH_WANT_COMPAT_SYNC_FILE_RANGE
20 #define __ARCH_WANT_COMPAT_READAHEAD
21 #define __ARCH_WANT_COMPAT_FADVISE64_64
22 #endif
23 
24 #include <uapi/asm/unistd.h>
25 
26 #define NR_syscalls (__NR_syscalls)
27