xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision 9dbbc3b9)
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_LLSEEK
35 #define __ARCH_WANT_SYS_NICE
36 #define __ARCH_WANT_SYS_OLD_GETRLIMIT
37 #define __ARCH_WANT_SYS_OLD_UNAME
38 #define __ARCH_WANT_SYS_OLDUMOUNT
39 #define __ARCH_WANT_SYS_SIGPENDING
40 #define __ARCH_WANT_SYS_SIGPROCMASK
41 #ifdef CONFIG_PPC32
42 #define __ARCH_WANT_OLD_STAT
43 #define __ARCH_WANT_SYS_OLD_SELECT
44 #endif
45 #ifdef CONFIG_PPC64
46 #define __ARCH_WANT_SYS_TIME
47 #define __ARCH_WANT_SYS_UTIME
48 #define __ARCH_WANT_SYS_NEWFSTATAT
49 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
50 #endif
51 #define __ARCH_WANT_SYS_FORK
52 #define __ARCH_WANT_SYS_VFORK
53 #define __ARCH_WANT_SYS_CLONE
54 #define __ARCH_WANT_SYS_CLONE3
55 
56 #endif		/* __ASSEMBLY__ */
57 #endif /* _ASM_POWERPC_UNISTD_H_ */
58