Red Hat Bugzilla – Bug 197581
writev/readv man pages are not accurate.
Last modified: 2010-10-22 01:21:49 EDT
* Following the Bugzilla number : 146238.
When using readv() and writev(), the return code is not always the one
described on the man page, this has been fixed in FC5 man pages for both vfs
calls. It is true these functions are meant to be wrapped by FS functions
calling these from the VFS layer, but still the man pages should be as accurate
as possible to help understanding the developpers.
readv() and writev() does not return EINVAL when count is zero.
But readv/writev man pages describe as follows:
The errors are as given for read(2) and write(2). Additionally
the following error is defined.
EINVAL The sum of the iov_len values overflows an ssize_t value.
Or, the vector count count is zero or greater than
This should be a problem in readv/writev man pages. Actually, FC5's man page
has been modified:
The errors are as given for read(2) and write(2). Additionally the
following error is defined:
EINVAL The sum of the iov_len values overflows an ssize_t value. Or,
the vector count count is less than zero or greater than the
Please change RHEL4 man-pages as well.
An advisory has been issued which should help the problem
described in this bug report. This report is therefore being
closed with a resolution of ERRATA. For more information
on the solution and/or where to find the updated files,
please follow the link below. You may reopen this bug report
if the solution does not work for you.