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