From owner-freebsd-hackers Thu Jan 4 10:54:27 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id KAA23659 for hackers-outgoing; Thu, 4 Jan 1996 10:54:27 -0800 (PST) Received: from phaeton.artisoft.com (phaeton.Artisoft.COM [198.17.250.211]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id KAA23643 for ; Thu, 4 Jan 1996 10:54:24 -0800 (PST) Received: (from terry@localhost) by phaeton.artisoft.com (8.6.11/8.6.9) id LAA18218; Thu, 4 Jan 1996 11:44:40 -0700 From: Terry Lambert Message-Id: <199601041844.LAA18218@phaeton.artisoft.com> Subject: Re: OK, I'm stumped... To: bde@zeta.org.au (Bruce Evans) Date: Thu, 4 Jan 1996 11:44:40 -0700 (MST) Cc: hackers@freebsd.org, terry@lambert.org In-Reply-To: <199601040546.QAA15201@godzilla.zeta.org.au> from "Bruce Evans" at Jan 4, 96 04:46:09 pm X-Mailer: ELM [version 2.4 PL24] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-hackers@freebsd.org Precedence: bulk > >Why would anyone ever specify a second argument to uiomove() that > >was less than the largest iov->iov_len for the iov list in the > >uio structure that was passed in? > > Because iov->iov_len might be as large as INT_MAX and it may be hard > to allocate a large enough kernel buffer. > > char buf[SMALLSIZE]; > ... > r = uiomove(buf, sizeof buf, uio); I agree that this is a possibility. But I didn't see this usage in the kernel. Did I not look hard enough? Regards, Terry Lambert terry@lambert.org --- Any opinions in this posting are my own and not those of my present or previous employers.