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 about 3 years ago
- Status changed from Pending RTI to Closed
- % Done changed from 0 to 100
commit d3811b6fb7218c4fd6a4ecc171217022e137b5dc Author: Marcel Telka <firstname.lastname@example.org> Date: 2018-07-20T15:46:02.000Z 9657 sendfile(3ext): off and EINVAL are not documented properly Reviewed by: Robert Mustacchi <email@example.com> Reviewed by: Sebastian Wiedenroth <firstname.lastname@example.org> Approved by: Dan McDonald <email@example.com>