From owner-freebsd-hackers Wed Jan 3 21:49:45 1996 Return-Path: owner-hackers Received: (from root@localhost) by freefall.freebsd.org (8.7.3/8.7.3) id VAA13071 for hackers-outgoing; Wed, 3 Jan 1996 21:49:45 -0800 (PST) Received: from godzilla.zeta.org.au (godzilla.zeta.org.au [203.2.228.19]) by freefall.freebsd.org (8.7.3/8.7.3) with SMTP id VAA13065 for ; Wed, 3 Jan 1996 21:49:34 -0800 (PST) Received: (from bde@localhost) by godzilla.zeta.org.au (8.6.9/8.6.9) id QAA15201; Thu, 4 Jan 1996 16:46:09 +1100 Date: Thu, 4 Jan 1996 16:46:09 +1100 From: Bruce Evans Message-Id: <199601040546.QAA15201@godzilla.zeta.org.au> To: hackers@freebsd.org, terry@lambert.org Subject: Re: OK, I'm stumped... 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); Bruce