]> git.ipfire.org Git - thirdparty/glibc.git/commitdiff
X86-64: Define LO_HI_LONG to skip pos_h [BZ #20349]
authorH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Jul 2016 22:32:10 +0000 (15:32 -0700)
committerH.J. Lu <hjl.tools@gmail.com>
Mon, 11 Jul 2016 22:32:23 +0000 (15:32 -0700)
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.

ChangeLog
sysdeps/unix/sysv/linux/x86_64/sysdep.h

index cac942d98004b200f0c3102a6a1208caea3e9a6e..8ef71cc2948fc5be911ef1b7bcf714de4d120b78 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,8 @@
+2016-07-11  H.J. Lu  <hongjiu.lu@intel.com>
+
+       [BZ #20349]
+       * sysdeps/unix/sysv/linux/x86_64/sysdep.h (LO_HI_LONG): New.
+
 2016-07-11  Szabolcs Nagy  <szabolcs.nagy@arm.com>
 
        [BZ #18707]
index d023d68174d3dfb4e698160b31ae31ad291802e1..1a671e181967b25b5fb78a595e9a9f9f8b1ef936 100644 (file)
 # 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 */