xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision ccc319dc)
1 /* SPDX-License-Identifier: GPL-2.0-or-later */
2 /*
3  * This file contains the system call numbers.
4  */
5 #ifndef _ASM_POWERPC_UNISTD_H_
6 #define _ASM_POWERPC_UNISTD_H_
7 
8 #include <uapi/asm/unistd.h>
9 
10 #define NR_syscalls	__NR_syscalls
11 
12 #ifndef __ASSEMBLY__
13 
14 #include <linux/types.h>
15 #include <linux/compiler.h>
16 #include <linux/linkage.h>
17 
18 #define __ARCH_WANT_NEW_STAT
19 #define __ARCH_WANT_OLD_READDIR
20 #define __ARCH_WANT_STAT64
21 #define __ARCH_WANT_SYS_ALARM
22 #define __ARCH_WANT_SYS_GETHOSTNAME
23 #define __ARCH_WANT_SYS_IPC
24 #define __ARCH_WANT_SYS_PAUSE
25 #define __ARCH_WANT_SYS_SIGNAL
26 #define __ARCH_WANT_SYS_TIME32
27 #define __ARCH_WANT_SYS_UTIME32
28 #define __ARCH_WANT_SYS_WAITPID
29 #define __ARCH_WANT_SYS_SOCKETCALL
30 #define __ARCH_WANT_SYS_FADVISE64
31 #define __ARCH_WANT_SYS_GETPGRP
32 #define __ARCH_WANT_SYS_LLSEEK
33 #define __ARCH_WANT_SYS_NICE
34 #define __ARCH_WANT_SYS_OLD_GETRLIMIT
35 #define __ARCH_WANT_SYS_OLD_UNAME
36 #define __ARCH_WANT_SYS_OLDUMOUNT
37 #define __ARCH_WANT_SYS_SIGPENDING
38 #define __ARCH_WANT_SYS_SIGPROCMASK
39 #ifdef CONFIG_PPC32
40 #define __ARCH_WANT_OLD_STAT
41 #define __ARCH_WANT_SYS_OLD_SELECT
42 #endif
43 #ifdef CONFIG_PPC64
44 #define __ARCH_WANT_SYS_TIME
45 #define __ARCH_WANT_SYS_UTIME
46 #define __ARCH_WANT_SYS_NEWFSTATAT
47 #define __ARCH_WANT_COMPAT_STAT
48 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
49 #endif
50 #define __ARCH_WANT_SYS_FORK
51 #define __ARCH_WANT_SYS_VFORK
52 #define __ARCH_WANT_SYS_CLONE
53 #define __ARCH_WANT_SYS_CLONE3
54 
55 #endif		/* __ASSEMBLY__ */
56 #endif /* _ASM_POWERPC_UNISTD_H_ */
57