diff options
author | Jakub Jelinek <jakub@redhat.com> | 2009-04-24 08:00:37 +0000 |
---|---|---|
committer | Jakub Jelinek <jakub@redhat.com> | 2009-04-24 08:00:37 +0000 |
commit | 7dec33c08e4755e72d1280e48e61f0141dfc1da5 (patch) | |
tree | 22aa7aa8ebc1f795e180c8c0d99cdda7d2a3ffef /sysdeps/posix/preadv.c | |
parent | 335206256c84eaefab082284523e5b8f89fcffb2 (diff) |
Updated to fedora-glibc-20090424T0747cvs/fedora-glibc-2_9_90-20
Diffstat (limited to 'sysdeps/posix/preadv.c')
-rw-r--r-- | sysdeps/posix/preadv.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/sysdeps/posix/preadv.c b/sysdeps/posix/preadv.c index e697604c19..791077399e 100644 --- a/sysdeps/posix/preadv.c +++ b/sysdeps/posix/preadv.c @@ -48,7 +48,7 @@ ifree (char **ptrp) without change the file pointer, and put the result in the buffers described by VECTOR, which is a vector of COUNT 'struct iovec's. The buffers are filled in the order specified. Operates just like - 'read' (see <unistd.h>) except that data are put in VECTOR instead + 'pread' (see <unistd.h>) except that data are put in VECTOR instead of a contiguous buffer. */ ssize_t PREADV (int fd, const struct iovec *vector, int count, OFF_T offset) @@ -83,7 +83,7 @@ PREADV (int fd, const struct iovec *vector, int count, OFF_T offset) /* Read the data. */ ssize_t bytes_read = PREAD (fd, buffer, bytes, offset); - if (bytes_read <= 0) + if (bytes_read < 0) return -1; /* Copy the data from BUFFER into the memory specified by VECTOR. */ |