aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2016-07-11 15:32:10 -0700
committerH.J. Lu <hjl.tools@gmail.com>2016-07-11 15:32:23 -0700
commitcf1ad5b3add36790cbf58a3972c492a8f1632929 (patch)
tree941623f93e951e3ad7ee23b6becef195c68f1750
parentc10f90dcef42092a96007fed7e77f9d470e5bb76 (diff)
downloadglibc-cf1ad5b3add36790cbf58a3972c492a8f1632929.zip
glibc-cf1ad5b3add36790cbf58a3972c492a8f1632929.tar.gz
glibc-cf1ad5b3add36790cbf58a3972c492a8f1632929.tar.bz2
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.
-rw-r--r--ChangeLog5
-rw-r--r--sysdeps/unix/sysv/linux/x86_64/sysdep.h4
2 files changed, 9 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index cac942d..8ef71cc 100644
--- 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]
diff --git a/sysdeps/unix/sysv/linux/x86_64/sysdep.h b/sysdeps/unix/sysv/linux/x86_64/sysdep.h
index d023d68..1a671e1 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 */