xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision 884caada)
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 #define __NR__exit __NR_exit
13 
14 #ifndef __ASSEMBLY__
15 
16 #include <linux/types.h>
17 #include <linux/compiler.h>
18 #include <linux/linkage.h>
19 
20 #define __ARCH_WANT_NEW_STAT
21 #define __ARCH_WANT_OLD_READDIR
22 #define __ARCH_WANT_STAT64
23 #define __ARCH_WANT_SYS_ALARM
24 #define __ARCH_WANT_SYS_GETHOSTNAME
25 #define __ARCH_WANT_SYS_IPC
26 #define __ARCH_WANT_SYS_PAUSE
27 #define __ARCH_WANT_SYS_SIGNAL
28 #define __ARCH_WANT_SYS_TIME32
29 #define __ARCH_WANT_SYS_UTIME32
30 #define __ARCH_WANT_SYS_WAITPID
31 #define __ARCH_WANT_SYS_SOCKETCALL
32 #define __ARCH_WANT_SYS_FADVISE64
33 #define __ARCH_WANT_SYS_GETPGRP
34 #define __ARCH_WANT_SYS_NICE
35 #define __ARCH_WANT_SYS_OLD_GETRLIMIT
36 #define __ARCH_WANT_SYS_OLD_UNAME
37 #define __ARCH_WANT_SYS_OLDUMOUNT
38 #define __ARCH_WANT_SYS_SIGPENDING
39 #define __ARCH_WANT_SYS_SIGPROCMASK
40 #ifdef CONFIG_PPC32
41 #define __ARCH_WANT_OLD_STAT
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_SYS_SENDFILE
48 #endif
49 #define __ARCH_WANT_SYS_FORK
50 #define __ARCH_WANT_SYS_VFORK
51 #define __ARCH_WANT_SYS_CLONE
52 #define __ARCH_WANT_SYS_CLONE3
53 
54 #endif		/* __ASSEMBLY__ */
55 #endif /* _ASM_POWERPC_UNISTD_H_ */
56