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.