[git commit branch/0.9.33] linux: pread: fix __NR___syscall_pread define

Mike Frysinger vapier at gentoo.org
Mon Feb 17 21:35:09 UTC 2014


commit: http://git.uclibc.org/uClibc/commit/?id=8165f1616a95ecef7b407b11368bfd138889d82c
branch: http://git.uclibc.org/uClibc/commit/?id=refs/heads/0.9.33

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 at gentoo.org>
---
 libc/sysdeps/linux/common/pread_write.c |    2 +-
 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)
 


More information about the uClibc-cvs mailing list