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 | |
Breno Leitao | b2f8256 | 2018-06-20 16:35:16 -0300 | [diff] [blame] | 15 | #define NR_syscalls 389 |
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 |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 18 | |
| 19 | #ifndef __ASSEMBLY__ |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 20 | |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 21 | #include <linux/types.h> |
| 22 | #include <linux/compiler.h> |
| 23 | #include <linux/linkage.h> |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 24 | |
Arnd Bergmann | 82b355d | 2018-04-13 11:50:12 +0200 | [diff] [blame] | 25 | #define __ARCH_WANT_NEW_STAT |
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 |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 39 | #define __ARCH_WANT_SYS_NICE |
| 40 | #define __ARCH_WANT_SYS_OLD_GETRLIMIT |
Christoph Hellwig | 5cacdb4 | 2010-03-10 15:21:21 -0800 | [diff] [blame] | 41 | #define __ARCH_WANT_SYS_OLD_UNAME |
Linus Torvalds | 1da177e | 2005-04-16 15:20:36 -0700 | [diff] [blame] | 42 | #define __ARCH_WANT_SYS_OLDUMOUNT |
| 43 | #define __ARCH_WANT_SYS_SIGPENDING |
| 44 | #define __ARCH_WANT_SYS_SIGPROCMASK |
Paul Mackerras | eef289f | 2005-10-10 22:56:11 +1000 | [diff] [blame] | 45 | #ifdef CONFIG_PPC32 |
| 46 | #define __ARCH_WANT_OLD_STAT |
| 47 | #endif |
| 48 | #ifdef CONFIG_PPC64 |
| 49 | #define __ARCH_WANT_COMPAT_SYS_TIME |
Arnd Bergmann | 4faea23 | 2018-04-17 12:03:19 +0200 | [diff] [blame^] | 50 | #define __ARCH_WANT_SYS_UTIME32 |
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_ */ |