Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 1 | /* |
| 2 | * This file contains the system call numbers. |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 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. |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 8 | */ |
David Howells | c3617f7 | 2012-10-09 09:47:26 +0100 | [diff] [blame] | 9 | #ifndef _ASM_POWERPC_UNISTD_H_ |
| 10 | #define _ASM_POWERPC_UNISTD_H_ |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 11 | |
David Howells | c3617f7 | 2012-10-09 09:47:26 +0100 | [diff] [blame] | 12 | #include <uapi/asm/unistd.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 13 | |
David Woodhouse | 5614253 | 2006-04-29 01:51:47 +0100 | [diff] [blame] | 14 | |
Pranith Kumar | fcbb539 | 2014-10-10 01:53:45 -0400 | [diff] [blame] | 15 | #define __NR_syscalls 362 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 16 | |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 17 | #define __NR__exit __NR_exit |
| 18 | #define NR_syscalls __NR_syscalls |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 19 | |
| 20 | #ifndef __ASSEMBLY__ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 21 | |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 22 | #include <linux/types.h> |
| 23 | #include <linux/compiler.h> |
| 24 | #include <linux/linkage.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 25 | |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 26 | #define __ARCH_WANT_OLD_READDIR |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 27 | #define __ARCH_WANT_STAT64 |
| 28 | #define __ARCH_WANT_SYS_ALARM |
| 29 | #define __ARCH_WANT_SYS_GETHOSTNAME |
Christoph Hellwig | baed7fc | 2010-03-10 15:21:18 -0800 | [diff] [blame] | 30 | #define __ARCH_WANT_SYS_IPC |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 31 | #define __ARCH_WANT_SYS_PAUSE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 32 | #define __ARCH_WANT_SYS_SIGNAL |
| 33 | #define __ARCH_WANT_SYS_TIME |
| 34 | #define __ARCH_WANT_SYS_UTIME |
| 35 | #define __ARCH_WANT_SYS_WAITPID |
| 36 | #define __ARCH_WANT_SYS_SOCKETCALL |
| 37 | #define __ARCH_WANT_SYS_FADVISE64 |
| 38 | #define __ARCH_WANT_SYS_GETPGRP |
| 39 | #define __ARCH_WANT_SYS_LLSEEK |
| 40 | #define __ARCH_WANT_SYS_NICE |
| 41 | #define __ARCH_WANT_SYS_OLD_GETRLIMIT |
Christoph Hellwig | 5cacdb4 | 2010-03-10 15:21:21 -0800 | [diff] [blame] | 42 | #define __ARCH_WANT_SYS_OLD_UNAME |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 43 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 44 | #define __ARCH_WANT_SYS_SIGPENDING |
| 45 | #define __ARCH_WANT_SYS_SIGPROCMASK |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 46 | #ifdef CONFIG_PPC32 |
| 47 | #define __ARCH_WANT_OLD_STAT |
| 48 | #endif |
| 49 | #ifdef CONFIG_PPC64 |
| 50 | #define __ARCH_WANT_COMPAT_SYS_TIME |
Andreas Schwab | 2833c28 | 2006-04-27 15:46:42 +0200 | [diff] [blame] | 51 | #define __ARCH_WANT_SYS_NEWFSTATAT |
Catalin Marinas | 8f9c011 | 2012-09-19 12:01:52 +0100 | [diff] [blame] | 52 | #define __ARCH_WANT_COMPAT_SYS_SENDFILE |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 53 | #endif |
Al Viro | 0bcfe54 | 2012-10-26 23:08:25 -0400 | [diff] [blame] | 54 | #define __ARCH_WANT_SYS_FORK |
| 55 | #define __ARCH_WANT_SYS_VFORK |
| 56 | #define __ARCH_WANT_SYS_CLONE |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 57 | |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 58 | #endif /* __ASSEMBLY__ */ |
Becky Bruce | f4dcd3c | 2007-05-10 10:13:04 -0500 | [diff] [blame] | 59 | #endif /* _ASM_POWERPC_UNISTD_H_ */ |