summary refs log tree commit diff
path: root/posix/bits
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2005-03-03 17:08:56 +0000
committerUlrich Drepper <drepper@redhat.com>2005-03-03 17:08:56 +0000
commit05510ae6592bc7a03b8ffd44af3150bbb6d0b8ab (patch)
treef41533c870414ff6027514157d1dee585c5156ed /posix/bits
parent680d780a4b28cfbae5bfd7f41f370e34d4ea0e40 (diff)
downloadglibc-05510ae6592bc7a03b8ffd44af3150bbb6d0b8ab.tar.gz
glibc-05510ae6592bc7a03b8ffd44af3150bbb6d0b8ab.tar.xz
glibc-05510ae6592bc7a03b8ffd44af3150bbb6d0b8ab.zip
* posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
Diffstat (limited to 'posix/bits')
-rw-r--r--posix/bits/unistd.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/posix/bits/unistd.h b/posix/bits/unistd.h
index 215063f07d..0a391cfb51 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