xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision b58c6630)
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 #endif
44 #ifdef CONFIG_PPC64
45 #define __ARCH_WANT_SYS_TIME
46 #define __ARCH_WANT_SYS_UTIME
47 #define __ARCH_WANT_SYS_NEWFSTATAT
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