]> CyberLeo.Net >> Repos - FreeBSD/FreeBSD.git/commit
Document that `sendfile` will return an invalid value for `sbytes` if provided an...
authorngie <ngie@FreeBSD.org>
Fri, 25 Jan 2019 19:56:02 +0000 (19:56 +0000)
committerngie <ngie@FreeBSD.org>
Fri, 25 Jan 2019 19:56:02 +0000 (19:56 +0000)
commitd1a640f492541733b80fafe9a5b16203c915ff32
tree5cf90310a44328665f27bf8ec12479a1ae8e17f9
parent2227128c5e7cdef223324a1167806d4f40327fc1
Document that `sendfile` will return an invalid value for `sbytes` if provided an invalid address

This is meant to clarify the fact that the system call will not fail
with -1/EFAULT, as one might expect, when reading the sendfile(2)
manpage today.

While here, pet the mandoc linter, when dealing with the section that
describes valid values for `flags`.

PR: 232210
MFC after: 2 weeks
Approved by: emaste (mentor)
Reviewed by: glebius, 0mp
Differential Revision: https://reviews.freebsd.org/D18949
lib/libc/sys/sendfile.2