xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision b2f82565f2caa1a5c1a26e68593eaef355fae3f4)
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 
15*b2f82565SBreno 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 
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
32b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_TIME
33b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_UTIME
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_LLSEEK
39b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_NICE
40b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLD_GETRLIMIT
415cacdb4aSChristoph Hellwig #define __ARCH_WANT_SYS_OLD_UNAME
42b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_OLDUMOUNT
43b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPENDING
44b8b572e1SStephen Rothwell #define __ARCH_WANT_SYS_SIGPROCMASK
45b8b572e1SStephen Rothwell #ifdef CONFIG_PPC32
46b8b572e1SStephen Rothwell #define __ARCH_WANT_OLD_STAT
47b8b572e1SStephen Rothwell #endif
48b8b572e1SStephen Rothwell #ifdef CONFIG_PPC64
49b8b572e1SStephen Rothwell #define __ARCH_WANT_COMPAT_SYS_TIME
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