https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=232207
Enji Cooper <[email protected]> changed: What |Removed |Added ---------------------------------------------------------------------------- Summary|sendfile(2) missing some |sendfile(2) does not |documented ERRORS |document potential for | |ENOTCAPABLE in ERRORS --- Comment #1 from Enji Cooper <[email protected]> --- (In reply to Enji Cooper from comment #0) > > [EINVAL] The iovcnt argument was less than or equal to 0, or > greater than IOV_MAX. > > [EINVAL] One of the iov_len values in the iov array was > negative. > > [EINVAL] The sum of the iov_len values in the iov array > overflowed a 32-bit integer. I did some more inspection, and I don't think this assumption is correct. It looks like the first ERROR case is handled The ENOTCAPABLE part is definitely an issue. CAP_PREAD needs to be set on `fd` and CAP_SEND needs to be set on `s`. I submitted a pull request for the ENOTCAPABLE documentation item: https://github.com/freebsd/freebsd/pull/170 . -- You are receiving this mail because: You are the assignee for the bug. _______________________________________________ [email protected] mailing list https://lists.freebsd.org/mailman/listinfo/freebsd-bugs To unsubscribe, send any mail to "[email protected]"
