H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 1 | #ifndef _ASM_X86_UNISTD_H |
| 2 | #define _ASM_X86_UNISTD_H 1 |
| 3 | |
David Howells | af170c5 | 2012-12-14 22:37:13 +0000 | [diff] [blame] | 4 | #include <uapi/asm/unistd.h> |
H. Peter Anvin | 6cbb369 | 2012-02-14 14:38:31 -0800 | [diff] [blame] | 5 | |
H. Peter Anvin | fca460f | 2012-02-19 07:56:26 -0800 | [diff] [blame] | 6 | |
| 7 | # ifdef CONFIG_X86_X32_ABI |
| 8 | # define __SYSCALL_MASK (~(__X32_SYSCALL_BIT)) |
| 9 | # else |
| 10 | # define __SYSCALL_MASK (~0) |
| 11 | # endif |
| 12 | |
Adrian Bunk | b11caa7 | 2008-04-20 22:02:17 +0300 | [diff] [blame] | 13 | # ifdef CONFIG_X86_32 |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 14 | |
| 15 | # include <asm/unistd_32.h> |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 16 | # define __ARCH_WANT_STAT64 |
H. Peter Anvin | 4f2f81a | 2012-01-19 12:41:25 -0800 | [diff] [blame] | 17 | # define __ARCH_WANT_SYS_IPC |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 18 | # define __ARCH_WANT_SYS_OLD_MMAP |
| 19 | # define __ARCH_WANT_SYS_OLD_SELECT |
| 20 | |
Adrian Bunk | b11caa7 | 2008-04-20 22:02:17 +0300 | [diff] [blame] | 21 | # else |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 22 | |
| 23 | # include <asm/unistd_64.h> |
H. Peter Anvin | ea499fe | 2012-02-14 14:46:23 -0800 | [diff] [blame] | 24 | # include <asm/unistd_64_x32.h> |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 25 | # define __ARCH_WANT_COMPAT_SYS_TIME |
| 26 | |
Adrian Bunk | b11caa7 | 2008-04-20 22:02:17 +0300 | [diff] [blame] | 27 | # endif |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 28 | |
| 29 | # define __ARCH_WANT_OLD_READDIR |
| 30 | # define __ARCH_WANT_OLD_STAT |
| 31 | # define __ARCH_WANT_SYS_ALARM |
| 32 | # define __ARCH_WANT_SYS_FADVISE64 |
| 33 | # define __ARCH_WANT_SYS_GETHOSTNAME |
| 34 | # define __ARCH_WANT_SYS_GETPGRP |
| 35 | # define __ARCH_WANT_SYS_LLSEEK |
| 36 | # define __ARCH_WANT_SYS_NICE |
| 37 | # define __ARCH_WANT_SYS_OLDUMOUNT |
| 38 | # define __ARCH_WANT_SYS_OLD_GETRLIMIT |
| 39 | # define __ARCH_WANT_SYS_OLD_UNAME |
| 40 | # define __ARCH_WANT_SYS_PAUSE |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 41 | # define __ARCH_WANT_SYS_SGETMASK |
| 42 | # define __ARCH_WANT_SYS_SIGNAL |
| 43 | # define __ARCH_WANT_SYS_SIGPENDING |
| 44 | # define __ARCH_WANT_SYS_SIGPROCMASK |
| 45 | # define __ARCH_WANT_SYS_SOCKETCALL |
| 46 | # define __ARCH_WANT_SYS_TIME |
| 47 | # define __ARCH_WANT_SYS_UTIME |
| 48 | # define __ARCH_WANT_SYS_WAITPID |
Al Viro | 1d4b4b2 | 2012-10-22 22:34:11 -0400 | [diff] [blame] | 49 | # define __ARCH_WANT_SYS_FORK |
| 50 | # define __ARCH_WANT_SYS_VFORK |
| 51 | # define __ARCH_WANT_SYS_CLONE |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 52 | |
H. Peter Anvin | 303395a | 2011-11-11 16:07:41 -0800 | [diff] [blame] | 53 | #endif /* _ASM_X86_UNISTD_H */ |