From owner-svn-src-head@freebsd.org Fri Jul 17 11:41:57 2015 Return-Path: Delivered-To: svn-src-head@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id 478539A3619; Fri, 17 Jul 2015 11:41:57 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from mx1.stack.nl (relay04.stack.nl [IPv6:2001:610:1108:5010::107]) (using TLSv1 with cipher DHE-RSA-CAMELLIA256-SHA (256/256 bits)) (Client CN "mailhost.stack.nl", Issuer "CA Cert Signing Authority" (not verified)) by mx1.freebsd.org (Postfix) with ESMTPS id 0E9A41206; Fri, 17 Jul 2015 11:41:57 +0000 (UTC) (envelope-from jilles@stack.nl) Received: from snail.stack.nl (snail.stack.nl [IPv6:2001:610:1108:5010::131]) by mx1.stack.nl (Postfix) with ESMTP id 06157B8056; Fri, 17 Jul 2015 13:41:54 +0200 (CEST) Received: by snail.stack.nl (Postfix, from userid 1677) id E346528494; Fri, 17 Jul 2015 13:41:53 +0200 (CEST) Date: Fri, 17 Jul 2015 13:41:53 +0200 From: Jilles Tjoelker To: Ed Schouten Cc: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r285539 - head/sys/compat/cloudabi64 Message-ID: <20150717114153.GA93168@stack.nl> References: <201507141433.t6EEXLkn035058@repo.freebsd.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <201507141433.t6EEXLkn035058@repo.freebsd.org> User-Agent: Mutt/1.5.21 (2010-09-15) X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 17 Jul 2015 11:41:57 -0000 On Tue, Jul 14, 2015 at 02:33:21PM +0000, Ed Schouten wrote: > Author: ed > Date: Tue Jul 14 14:33:21 2015 > New Revision: 285539 > URL: https://svnweb.freebsd.org/changeset/base/285539 > Log: > Implement {,p}{read,write}{,v}(). > Add a routine similar to copyinuio() and freebsd32_copyinuio() that > copies in CloudABI's struct iovecs. These are then translated into > FreeBSD format and placed in a 'struct uio', so we can call into the > kern_*() functions. > [snip] > + if (iovcnt > UIO_MAXIOV) > + return (EINVAL); The maximum number of iovecs is part of the ABI and should therefore probably have a CLOUDABI_* constant. It turns out that both FreeBSD and Linux report 1024 for getconf IOV_MAX, so there is little practical effect. -- Jilles Tjoelker