From owner-freebsd-hackers Mon Oct 16 16:13:35 2000 Delivered-To: freebsd-hackers@freebsd.org Received: from fw.wintelcom.net (ns1.wintelcom.net [209.1.153.20]) by hub.freebsd.org (Postfix) with ESMTP id C185737B677; Mon, 16 Oct 2000 16:13:33 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e9GNDTr25092; Mon, 16 Oct 2000 16:13:29 -0700 (PDT) Date: Mon, 16 Oct 2000 16:13:29 -0700 From: Alfred Perlstein To: David Malone Cc: hackers@freebsd.org, bde@freebsd.org Subject: Re: readv manpage != UIO_MAXIOV Message-ID: <20001016161329.W272@fw.wintelcom.net> References: <20001016150017.T272@fw.wintelcom.net> <20001017000926.A52976@walton.maths.tcd.ie> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i In-Reply-To: <20001017000926.A52976@walton.maths.tcd.ie>; from dwmalone@maths.tcd.ie on Tue, Oct 17, 2000 at 12:09:26AM +0100 Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG * David Malone [001016 16:09] wrote: > On Mon, Oct 16, 2000 at 03:00:17PM -0700, Alfred Perlstein wrote: > > > a) change the kernel to match the docco and possibly breaks > > lotsa stuff? > > b) change the docco to note that although FreeBSD allows > > more than 16 iovecs, it's not recommeneded for portability > > reasons > > c) change readv/writev but provide compat syscalls. > > Susv2 man pages say: > > iovcnt is valid if greater than 0 and less than or equal to > {IOV_MAX}, defined in > > We don't seem to #define IOV_MAX, but we could and them update the > man page to refer to it. It says IOV_MAX must be atleast _XOPEN_IOV_MAX > which is 16. So I guess we need a #define for IOV_MAX set to 1024? This would be ideal since it will give a reasonable #define for applications to use and we don't break our current interface. All that would be needed is the additional #define and a mention of it in the manpage. -- -Alfred Perlstein - [bright@wintelcom.net|alfred@freebsd.org] "I have the heart of a child; I keep it in a jar on my desk." To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message