mirror of
git://sourceware.org/git/glibc.git
synced 2025-03-01 13:17:19 +08:00
* posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
This commit is contained in:
parent
680d780a4b
commit
05510ae659
@ -1,3 +1,7 @@
|
||||
2005-03-03 Jakub Jelinek <jakub@redhat.com>
|
||||
|
||||
* posix/bits/unistd.h (pread, pread64): Don't swap function arguments.
|
||||
|
||||
2005-03-01 H.J. Lu <hongjiu.lu@intel.com>
|
||||
|
||||
[BZ #776]
|
||||
|
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user