From owner-freebsd-doc@FreeBSD.ORG Thu Oct 12 18:46:13 2006 Return-Path: X-Original-To: freebsd-doc@hub.freebsd.org Delivered-To: freebsd-doc@hub.freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id A28E516A407; Thu, 12 Oct 2006 18:46:13 +0000 (UTC) (envelope-from ru@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [216.136.204.21]) by mx1.FreeBSD.org (Postfix) with ESMTP id C1A3243D7D; Thu, 12 Oct 2006 18:46:12 +0000 (GMT) (envelope-from ru@FreeBSD.org) Received: from freefall.freebsd.org (ru@localhost [127.0.0.1]) by freefall.freebsd.org (8.13.4/8.13.4) with ESMTP id k9CIkCA0025215; Thu, 12 Oct 2006 18:46:12 GMT (envelope-from ru@freefall.freebsd.org) Received: (from ru@localhost) by freefall.freebsd.org (8.13.4/8.13.4/Submit) id k9CIkCGh025211; Thu, 12 Oct 2006 18:46:12 GMT (envelope-from ru) Date: Thu, 12 Oct 2006 18:46:12 GMT From: Ruslan Ermilov Message-Id: <200610121846.k9CIkCGh025211@freefall.freebsd.org> To: ru@FreeBSD.org, freebsd-doc@FreeBSD.org, rwatson@FreeBSD.org Cc: Subject: Re: docs/99356: man page of sendmsg(2) does not include EINVAL X-BeenThere: freebsd-doc@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Documentation project List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Thu, 12 Oct 2006 18:46:13 -0000 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