docs/99356: man page of sendmsg(2) does not include EINVAL
Ruslan Ermilov
ru at FreeBSD.org
Thu Oct 12 18:46:13 UTC 2006
Synopsis: man page of sendmsg(2) does not include EINVAL
Responsible-Changed-From-To: freebsd-doc->rwatson
Responsible-Changed-By: ru
Responsible-Changed-When: Thu Oct 12 18:40:19 UTC 2006
Responsible-Changed-Why:
Robert, can you please look into this? POSIX says that EINVAL
may be returned if "the sum of the iov_len values overflows an
ssize_t". I see a similar code in FreeBSD:
for (i = 0; i < mp->msg_iovlen; i++, iov++) {
if ((auio.uio_resid += iov->iov_len) < 0) {
error = EINVAL;
goto bad;
}
}
except the type of uio_resid in FreeBSD is "int". (On NetBSD,
it's size_t.)
http://www.freebsd.org/cgi/query-pr.cgi?pr=99356
More information about the freebsd-doc
mailing list