xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision 367e5927)
1 /*
2  * This file contains the system call numbers.
3  *
4  * This program is free software; you can redistribute it and/or
5  * modify it under the terms of the GNU General Public License
6  * as published by the Free Software Foundation; either version
7  * 2 of the License, or (at your option) any later version.
8  */
9 #ifndef _ASM_POWERPC_UNISTD_H_
10 #define _ASM_POWERPC_UNISTD_H_
11 
12 #include <uapi/asm/unistd.h>
13 
14 #define NR_syscalls	__NR_syscalls
15 
16 #define __NR__exit __NR_exit
17 
18 #ifndef __ASSEMBLY__
19 
20 #include <linux/types.h>
21 #include <linux/compiler.h>
22 #include <linux/linkage.h>
23 
24 #define __ARCH_WANT_NEW_STAT
25 #define __ARCH_WANT_OLD_READDIR
26 #define __ARCH_WANT_STAT64
27 #define __ARCH_WANT_SYS_ALARM
28 #define __ARCH_WANT_SYS_GETHOSTNAME
29 #define __ARCH_WANT_SYS_IPC
30 #define __ARCH_WANT_SYS_PAUSE
31 #define __ARCH_WANT_SYS_SIGNAL
32 #define __ARCH_WANT_SYS_TIME32
33 #define __ARCH_WANT_SYS_UTIME32
34 #define __ARCH_WANT_SYS_WAITPID
35 #define __ARCH_WANT_SYS_SOCKETCALL
36 #define __ARCH_WANT_SYS_FADVISE64
37 #define __ARCH_WANT_SYS_GETPGRP
38 #define __ARCH_WANT_SYS_NICE
39 #define __ARCH_WANT_SYS_OLD_GETRLIMIT
40 #define __ARCH_WANT_SYS_OLD_UNAME
41 #define __ARCH_WANT_SYS_OLDUMOUNT
42 #define __ARCH_WANT_SYS_SIGPENDING
43 #define __ARCH_WANT_SYS_SIGPROCMASK
44 #ifdef CONFIG_PPC32
45 #define __ARCH_WANT_OLD_STAT
46 #endif
47 #ifdef CONFIG_PPC64
48 #define __ARCH_WANT_SYS_TIME
49 #define __ARCH_WANT_SYS_UTIME
50 #define __ARCH_WANT_SYS_NEWFSTATAT
51 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
52 #endif
53 #define __ARCH_WANT_SYS_FORK
54 #define __ARCH_WANT_SYS_VFORK
55 #define __ARCH_WANT_SYS_CLONE
56 
57 #endif		/* __ASSEMBLY__ */
58 #endif /* _ASM_POWERPC_UNISTD_H_ */
59