From cf1ad5b3add36790cbf58a3972c492a8f1632929 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Mon, 11 Jul 2016 15:32:10 -0700 Subject: X86-64: Define LO_HI_LONG to skip pos_h [BZ #20349] Define LO_HI_LONG to skip pos_h since it is ignored by kernel: static inline loff_t pos_from_hilo(unsigned long high, unsigned long low) { #define HALF_LONG_BITS (BITS_PER_LONG / 2) return (((loff_t)high << HALF_LONG_BITS) << HALF_LONG_BITS) | low; } where size of loff_t == size of long. [BZ #20349] * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New. --- sysdeps/unix/sysv/linux/x86_64/sysdep.h | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sysdeps/unix/sysv/linux/x86_64/sysdep.h') diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h index d023d68174..1a671e1819 100644 --- a/sysdeps/unix/sysv/linux/x86_64/sysdep.h +++ b/sysdeps/unix/sysv/linux/x86_64/sysdep.h @@ -385,4 +385,8 @@ # endif #endif +/* How to pass the off{64}_t argument on p{readv,writev}{64}. */ +#undef LO_HI_LONG +#define LO_HI_LONG(val) (val) + #endif /* linux/x86_64/sysdep.h */ -- cgit 1.4.1