From 05510ae6592bc7a03b8ffd44af3150bbb6d0b8ab Mon Sep 17 00:00:00 2001 From: Ulrich Drepper Date: Thu, 3 Mar 2005 17:08:56 +0000 Subject: [PATCH] * posix/bits/unistd.h (pread, pread64): Don't swap function arguments. --- ChangeLog | 4 ++++ posix/bits/unistd.h | 6 +++--- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 609538b..95d3a9e 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,7 @@ +2005-03-03 Jakub Jelinek + + * posix/bits/unistd.h (pread, pread64): Don't swap function arguments. + 2005-03-01 H.J. Lu [BZ #776] diff --git a/posix/bits/unistd.h b/posix/bits/unistd.h index 215063f..0a391cf 100644 --- a/posix/bits/unistd.h +++ b/posix/bits/unistd.h @@ -39,13 +39,13 @@ extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, (__bos0 (buf) != (size_t) -1 \ && (!__builtin_constant_p (nbytes) || (nbytes) > __bos0 (buf)) \ ? __pread64_chk (fd, buf, nbytes, offset, __bos0 (buf)) \ - : pread (fd, buf, offset, nbytes)) + : pread (fd, buf, nbytes, offset)) # else # define pread(fd, buf, nbytes, offset) \ (__bos0 (buf) != (size_t) -1 \ && (!__builtin_constant_p (nbytes) || (nbytes) > __bos0 (buf)) \ ? __pread_chk (fd, buf, nbytes, offset, __bos0 (buf)) \ - : pread (fd, buf, offset, nbytes)) + : pread (fd, buf, nbytes, offset)) # endif # ifdef __USE_LARGEFILE64 @@ -53,7 +53,7 @@ extern ssize_t __pread64_chk (int __fd, void *__buf, size_t __nbytes, (__bos0 (buf) != (size_t) -1 \ && (!__builtin_constant_p (nbytes) || (nbytes) > __bos0 (buf)) \ ? __pread64_chk (fd, buf, nbytes, offset, __bos0 (buf)) \ - : pread64 (fd, buf, offset, nbytes)) + : pread64 (fd, buf, nbytes, offset)) # endif #endif -- 2.7.4