Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 12 Oct 2006 18:46:12 GMT
From:      Ruslan Ermilov <ru@FreeBSD.org>
To:        ru@FreeBSD.org, freebsd-doc@FreeBSD.org, rwatson@FreeBSD.org
Subject:   Re: docs/99356: man page of sendmsg(2) does not include EINVAL
Message-ID:  <200610121846.k9CIkCGh025211@freefall.freebsd.org>

next in thread | raw e-mail | index | archive | help
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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?200610121846.k9CIkCGh025211>