Skip site navigation (1)Skip section navigation (2)
Date:      Fri, 17 Jul 2015 13:41:53 +0200
From:      Jilles Tjoelker <jilles@stack.nl>
To:        Ed Schouten <ed@FreeBSD.org>
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>
In-Reply-To: <201507141433.t6EEXLkn035058@repo.freebsd.org>
References:  <201507141433.t6EEXLkn035058@repo.freebsd.org>

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



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