mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
* sysdeps/posix/preadv.c: Reading of zero bytes is no error.
* sysdeps/posix/readv.c: Likewise. Reported by Markus Armbruster <armbru@redhat.com>.
This commit is contained in:
@ -1,5 +1,9 @@
|
|||||||
2009-04-17 Ulrich Drepper <drepper@redhat.com>
|
2009-04-17 Ulrich Drepper <drepper@redhat.com>
|
||||||
|
|
||||||
|
* sysdeps/posix/preadv.c: Reading of zero bytes is no error.
|
||||||
|
* sysdeps/posix/readv.c: Likewise.
|
||||||
|
Reported by Markus Armbruster <armbru@redhat.com>.
|
||||||
|
|
||||||
* malloc/hooks.c (top_check): Force hook value into register.
|
* malloc/hooks.c (top_check): Force hook value into register.
|
||||||
|
|
||||||
2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
2009-04-16 Samuel Thibault <samuel.thibault@ens-lyon.org>
|
||||||
|
@ -83,7 +83,7 @@ PREADV (int fd, const struct iovec *vector, int count, OFF_T offset)
|
|||||||
|
|
||||||
/* Read the data. */
|
/* Read the data. */
|
||||||
ssize_t bytes_read = PREAD (fd, buffer, bytes, offset);
|
ssize_t bytes_read = PREAD (fd, buffer, bytes, offset);
|
||||||
if (bytes_read <= 0)
|
if (bytes_read < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Copy the data from BUFFER into the memory specified by VECTOR. */
|
/* Copy the data from BUFFER into the memory specified by VECTOR. */
|
||||||
|
@ -70,7 +70,7 @@ __libc_readv (int fd, const struct iovec *vector, int count)
|
|||||||
|
|
||||||
/* Read the data. */
|
/* Read the data. */
|
||||||
ssize_t bytes_read = __read (fd, buffer, bytes);
|
ssize_t bytes_read = __read (fd, buffer, bytes);
|
||||||
if (bytes_read <= 0)
|
if (bytes_read < 0)
|
||||||
return -1;
|
return -1;
|
||||||
|
|
||||||
/* Copy the data from BUFFER into the memory specified by VECTOR. */
|
/* Copy the data from BUFFER into the memory specified by VECTOR. */
|
||||||
|
Reference in New Issue
Block a user