summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2014-02-17 21:35:09 (GMT)
committer Mike Frysinger <vapier@gentoo.org>2014-02-17 21:35:09 (GMT)
commit8165f1616a95ecef7b407b11368bfd138889d82c (patch)
tree84c0b1bf4e28fc2b18cd588cbab51addf9a3a18a
parente619d79c98316388638354d79a12ee6d80911bba (diff)
downloaduClibc-8165f1616a95ecef7b407b11368bfd138889d82c.tar.gz
uClibc-8165f1616a95ecef7b407b11368bfd138889d82c.tar.bz2
linux: pread: fix __NR___syscall_pread define
We set up __NR_pread to be the right value, but the code then uses __NR_pread64 all the time. Fix it to use __NR_pread as we intended. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
-rw-r--r--libc/sysdeps/linux/common/pread_write.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libc/sysdeps/linux/common/pread_write.c b/libc/sysdeps/linux/common/pread_write.c
index b13de66..8562ab4 100644
--- a/libc/sysdeps/linux/common/pread_write.c
+++ b/libc/sysdeps/linux/common/pread_write.c
@@ -42,7 +42,7 @@ extern __typeof(pwrite64) __libc_pwrite64;
#include <bits/kernel_types.h>
-# define __NR___syscall_pread __NR_pread64
+# define __NR___syscall_pread __NR_pread
static __inline__ _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf,
size_t, count, off_t, offset_hi, off_t, offset_lo)