From owner-freebsd-hackers Fri May 25 1:47:51 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from salmon.maths.tcd.ie (salmon.maths.tcd.ie [134.226.81.11]) by hub.freebsd.org (Postfix) with SMTP id BD08E37B422 for ; Fri, 25 May 2001 01:47:48 -0700 (PDT) (envelope-from dwmalone@maths.tcd.ie) Received: from walton.maths.tcd.ie by salmon.maths.tcd.ie with SMTP id ; 25 May 2001 09:47:48 +0100 (BST) Date: Fri, 25 May 2001 09:47:47 +0100 From: David Malone To: John Cc: Hackers List Subject: Re: sys/uio.h UIO_MAXIOV hidden inside _KERNEL Message-ID: <20010525094747.A74059@walton.maths.tcd.ie> References: <20010524223613.A23038@bsdwins.com> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.5i In-Reply-To: <20010524223613.A23038@bsdwins.com>; from jwd@bsdwins.com on Thu, May 24, 2001 at 10:36:13PM -0400 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk List-ID: List-Archive: (Web Archive) List-Help: (List Instructions) List-Subscribe: List-Unsubscribe: X-Loop: FreeBSD.ORG On Thu, May 24, 2001 at 10:36:13PM -0400, John wrote: > Can someone provide some insight as to why UIO_MAXIOV > is hidden inside _KERNEL? According to SUSv2 the corect #define to use here is IOV_MAX, which unfortunately we don't seem to define anywhere. Steven's Unix programming book says: 4.3BSD and SVR4 limit iovcnt to 16. 4.3+BSD defines the constant UIO_MAXIOV, which is currently 1024. The SVID claims the constant IOV_MAX provides the same Syetem V limit, but it's not defined in any of the SVR4 headers. Maybe Garrett or Bruce could comment further on what the correct way for us to define this is. David. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message