xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision 82b355d161c9525ab8838cc27d3200bc3bc9082d)
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 
14b8b572e1SStephen Rothwell 
15b2f82565SBreno Leitao #define NR_syscalls		389
16b8b572e1SStephen Rothwell 
17b8b572e1SStephen Rothwell #define __NR__exit __NR_exit
18b8b572e1SStephen Rothwell 
19b8b572e1SStephen Rothwell #ifndef __ASSEMBLY__
20b8b572e1SStephen Rothwell 
21b8b572e1SStephen Rothwell #include <linux/types.h>
22b8b572e1SStephen Rothwell #include <linux/compiler.h>
23b8b572e1SStephen Rothwell #include <linux/linkage.h>
24b8b572e1SStephen Rothwell 
25*82b355d1SArnd Bergmann #define __ARCH_WANT_NEW_STAT
26b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_READDIR
27b8b572e1SStephen Rothwell #define __ARCH_WANT_STAT64
28b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_ALARM
29b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETHOSTNAME
30baed7fc9SChristoph Hellwig #define __ARCH_WANT_SYS_IPC
31b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_PAUSE
32b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGNAL
33b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_TIME
34b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_UTIME
35b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_WAITPID
36b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SOCKETCALL
37b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_FADVISE64
38b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_GETPGRP
39b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_LLSEEK
40b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NICE
41b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLD_GETRLIMIT
425cacdb4aSChristoph Hellwig #define __ARCH_WANT_SYS_OLD_UNAME
43b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLDUMOUNT
44b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPENDING
45b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPROCMASK
46b8b572e1SStephen Rothwell #ifdef CONFIG_PPC32
47b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_STAT
48b8b572e1SStephen Rothwell #endif
49b8b572e1SStephen Rothwell #ifdef CONFIG_PPC64
50b8b572e1SStephen Rothwell #define __ARCH_WANT_COMPAT_SYS_TIME
51b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NEWFSTATAT
528f9c0119SCatalin Marinas #define __ARCH_WANT_COMPAT_SYS_SENDFILE
53b8b572e1SStephen Rothwell #endif
540bcfe540SAl Viro #define __ARCH_WANT_SYS_FORK
550bcfe540SAl Viro #define __ARCH_WANT_SYS_VFORK
560bcfe540SAl Viro #define __ARCH_WANT_SYS_CLONE
57b8b572e1SStephen Rothwell 
58b8b572e1SStephen Rothwell #endif		/* __ASSEMBLY__ */
59b8b572e1SStephen Rothwell #endif /* _ASM_POWERPC_UNISTD_H_ */
60