xref: /openbmc/linux/arch/powerpc/include/asm/unistd.h (revision 232b0b08)
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 
15 #define NR_syscalls		384
16 
17 #define __NR__exit __NR_exit
18 
19 #define __IGNORE_pkey_mprotect
20 #define __IGNORE_pkey_alloc
21 #define __IGNORE_pkey_free
22 
23 #ifndef __ASSEMBLY__
24 
25 #include <linux/types.h>
26 #include <linux/compiler.h>
27 #include <linux/linkage.h>
28 
29 #define __ARCH_WANT_OLD_READDIR
30 #define __ARCH_WANT_STAT64
31 #define __ARCH_WANT_SYS_ALARM
32 #define __ARCH_WANT_SYS_GETHOSTNAME
33 #define __ARCH_WANT_SYS_IPC
34 #define __ARCH_WANT_SYS_PAUSE
35 #define __ARCH_WANT_SYS_SIGNAL
36 #define __ARCH_WANT_SYS_TIME
37 #define __ARCH_WANT_SYS_UTIME
38 #define __ARCH_WANT_SYS_WAITPID
39 #define __ARCH_WANT_SYS_SOCKETCALL
40 #define __ARCH_WANT_SYS_FADVISE64
41 #define __ARCH_WANT_SYS_GETPGRP
42 #define __ARCH_WANT_SYS_LLSEEK
43 #define __ARCH_WANT_SYS_NICE
44 #define __ARCH_WANT_SYS_OLD_GETRLIMIT
45 #define __ARCH_WANT_SYS_OLD_UNAME
46 #define __ARCH_WANT_SYS_OLDUMOUNT
47 #define __ARCH_WANT_SYS_SIGPENDING
48 #define __ARCH_WANT_SYS_SIGPROCMASK
49 #ifdef CONFIG_PPC32
50 #define __ARCH_WANT_OLD_STAT
51 #endif
52 #ifdef CONFIG_PPC64
53 #define __ARCH_WANT_COMPAT_SYS_TIME
54 #define __ARCH_WANT_SYS_NEWFSTATAT
55 #define __ARCH_WANT_COMPAT_SYS_SENDFILE
56 #endif
57 #define __ARCH_WANT_SYS_FORK
58 #define __ARCH_WANT_SYS_VFORK
59 #define __ARCH_WANT_SYS_CLONE
60 
61 #endif		/* __ASSEMBLY__ */
62 #endif /* _ASM_POWERPC_UNISTD_H_ */
63