From owner-freebsd-hackers Mon Oct 16 15: 0:21 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 7F03437B66D; Mon, 16 Oct 2000 15:00:18 -0700 (PDT) Received: (from bright@localhost) by fw.wintelcom.net (8.10.0/8.10.0) id e9GM0Ip22393; Mon, 16 Oct 2000 15:00:18 -0700 (PDT) Date: Mon, 16 Oct 2000 15:00:17 -0700 From: Alfred Perlstein To: hackers@freebsd.org Cc: bde@freebsd.org Subject: readv manpage != UIO_MAXIOV Message-ID: <20001016150017.T272@fw.wintelcom.net> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline User-Agent: Mutt/1.2.4i Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG Several months ago I was having trouble porting a program of mine to solaris, the problem was that I'd get EINVAL back from writev/readv if my iovec was larger than 16 entries long. I thought this was a pretty stupidly set low limit, however the solaris #define for it looked pretty official: sys/socket.h:#define MSG_MAXIOVLEN 16 sys/stream.h:#define DEF_IOV_MAX 16 anyhow, I just noticed that our manpages now proclaim a 16 entry limit, however our kernel code doesn't seemt to mind up to 1024 iovs. (sys/uio.h:#define UIO_MAXIOV 1024) So do we: 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. -- -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