summaryrefslogtreecommitdiffstats
path: root/arch/x86/include/asm/unistd.h
diff options
context:
space:
mode:
authorHeiko Carstens2014-03-05 10:43:51 +0100
committerHeiko Carstens2014-03-06 15:35:09 +0100
commit378a10f3ae2e8a67ecc8f548c8e5ff25881bd88a (patch)
treee477b1924739af0585a3b2b6aa8b043a06f7eda0 /arch/x86/include/asm/unistd.h
parentipc/compat_sys_msgrcv: change msgtyp type from long to compat_long_t (diff)
downloadkernel-qcow2-linux-378a10f3ae2e8a67ecc8f548c8e5ff25881bd88a.tar.gz
kernel-qcow2-linux-378a10f3ae2e8a67ecc8f548c8e5ff25881bd88a.tar.xz
kernel-qcow2-linux-378a10f3ae2e8a67ecc8f548c8e5ff25881bd88a.zip
fs/compat: optional preadv64/pwrite64 compat system calls
The preadv64/pwrite64 have been implemented for the x32 ABI, in order to allow passing 64 bit arguments from user space without splitting them into two 32 bit parameters, like it would be necessary for usual compat tasks. Howevert these two system calls are only being used for the x32 ABI, so add __ARCH_WANT_COMPAT defines for these two compat syscalls and make these two only visible for x86. Signed-off-by: Heiko Carstens <heiko.carstens@de.ibm.com>
Diffstat (limited to 'arch/x86/include/asm/unistd.h')
-rw-r--r--arch/x86/include/asm/unistd.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/arch/x86/include/asm/unistd.h b/arch/x86/include/asm/unistd.h
index f4b5795d7e34..3f556c6a0157 100644
--- a/arch/x86/include/asm/unistd.h
+++ b/arch/x86/include/asm/unistd.h
@@ -24,6 +24,8 @@
# include <asm/unistd_64_x32.h>
# define __ARCH_WANT_COMPAT_SYS_TIME
# define __ARCH_WANT_COMPAT_SYS_GETDENTS64
+# define __ARCH_WANT_COMPAT_SYS_PREADV64
+# define __ARCH_WANT_COMPAT_SYS_PWRITEV64
# endif