diff -Naur uClibc-0.9.33.2.orig/libc/sysdeps/linux/common/pread_write.c uClibc-0.9.33.2/libc/sysdeps/linux/common/pread_write.c --- uClibc-0.9.33.2.orig/libc/sysdeps/linux/common/pread_write.c 2014-02-17 21:58:37.700039157 +0000 +++ uClibc-0.9.33.2/libc/sysdeps/linux/common/pread_write.c 2014-02-17 21:59:25.875039179 +0000 @@ -29,13 +29,13 @@ #include # define __NR___syscall_pread __NR_pread64 -static __inline__ _syscall5(ssize_t, __syscall_pread, int, fd, void *, buf, - size_t, count, off_t, offset_hi, off_t, offset_lo) +static __inline__ _syscall6(ssize_t, __syscall_pread, int, fd, void *, buf, + size_t, count, int, dummy, off_t, offset_hi, off_t, offset_lo) ssize_t __libc_pread(int fd, void *buf, size_t count, off_t offset) { int oldtype = LIBC_CANCEL_ASYNC (); - int result = __syscall_pread(fd, buf, count, __LONG_LONG_PAIR(offset >> 31, offset)); + int result = __syscall_pread(fd, buf, count, 0, __LONG_LONG_PAIR(offset >> 31, offset)); LIBC_CANCEL_RESET (oldtype); return result; @@ -48,7 +48,7 @@ uint32_t low = offset & 0xffffffff; uint32_t high = offset >> 32; int oldtype = LIBC_CANCEL_ASYNC (); - int result = __syscall_pread(fd, buf, count, __LONG_LONG_PAIR(high, low)); + int result = __syscall_pread(fd, buf, count, 0, __LONG_LONG_PAIR(high, low)); LIBC_CANCEL_RESET (oldtype); return result; } @@ -56,13 +56,13 @@ # endif /* __UCLIBC_HAS_LFS__ */ # define __NR___syscall_pwrite __NR_pwrite64 -static __inline__ _syscall5(ssize_t, __syscall_pwrite, int, fd, const void *, buf, - size_t, count, off_t, offset_hi, off_t, offset_lo) +static __inline__ _syscall6(ssize_t, __syscall_pwrite, int, fd, const void *, buf, + size_t, count, int, dummy, off_t, offset_hi, off_t, offset_lo) ssize_t __libc_pwrite(int fd, const void *buf, size_t count, off_t offset) { int oldtype = LIBC_CANCEL_ASYNC (); - int result = __syscall_pwrite(fd, buf, count, __LONG_LONG_PAIR(offset >> 31, offset)); + int result = __syscall_pwrite(fd, buf, count, 0, __LONG_LONG_PAIR(offset >> 31, offset)); LIBC_CANCEL_RESET (oldtype); return result; } @@ -74,7 +74,7 @@ uint32_t low = offset & 0xffffffff; uint32_t high = offset >> 32; int oldtype = LIBC_CANCEL_ASYNC (); - int result = __syscall_pwrite(fd, buf, count, __LONG_LONG_PAIR(high, low)); + int result = __syscall_pwrite(fd, buf, count, 0, __LONG_LONG_PAIR(high, low)); LIBC_CANCEL_RESET (oldtype); return result; }