sendfile(3ext): off and EINVAL are not documented properly
manpage - manual pages
There are two minor issues in the sendfile(3ext) man pages:
- It is documented that the offset is updated on success only, but the actual implementation updates the
offparameter even on failure.
- The sendfile(3ext) will fail with EINVAL in a case we attempt to send bytes past end of file (IOW, fewer bytes were transferred than were requested).
The man page for sendfile(3ext) should be updated to cover both undocumented cases above.
Updated by Electric Monk almost 4 years ago
- Status changed from Pending RTI to Closed
- % Done changed from 0 to 100
commit d3811b6fb7218c4fd6a4ecc171217022e137b5dc Author: Marcel Telka <email@example.com> Date: 2018-07-20T15:46:02.000Z 9657 sendfile(3ext): off and EINVAL are not documented properly Reviewed by: Robert Mustacchi <firstname.lastname@example.org> Reviewed by: Sebastian Wiedenroth <email@example.com> Approved by: Dan McDonald <firstname.lastname@example.org>