From owner-freebsd-hackers Mon Jan 29 12: 7:34 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from iguana.aciri.org (iguana.aciri.org [192.150.187.36]) by hub.freebsd.org (Postfix) with ESMTP id CFCED37B402 for ; Mon, 29 Jan 2001 12:07:14 -0800 (PST) Received: (from rizzo@localhost) by iguana.aciri.org (8.11.1/8.11.1) id f0TK7Bc34876; Mon, 29 Jan 2001 12:07:11 -0800 (PST) (envelope-from rizzo) From: Luigi Rizzo Message-Id: <200101292007.f0TK7Bc34876@iguana.aciri.org> Subject: Re: [kernel patch] fcntl(...) to close many descriptors In-Reply-To: <200101292000.PAA37796@khavrinen.lcs.mit.edu> from Garrett Wollman at "Jan 29, 2001 3: 0:23 pm" To: wollman@khavrinen.lcs.mit.edu (Garrett Wollman) Date: Mon, 29 Jan 2001 12:07:11 -0800 (PST) Cc: rizzo@aciri.org, hackers@FreeBSD.ORG X-Mailer: ELM [version 2.4ME+ PL43 (25)] MIME-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG > Of course it can, and the manual page doesn't even suggest what you > say. It says: > > There is no way to simulate system calls that have multiple return values > such as pipe(2). ok, sorry for the confusion then (though, how does one tell from the manpage for pipe(2) what is going on there!) cheers luigi > pipe(2) is a special case in that it returns two values rather than > one. The actual pipe(2) system call has *no* formal parameters; the > unpacking of the two values returned into the declared C formal > parameter is done by an assembly-language stub. (This was done for > reasons of speed; it is much faster to return two values than it is to > copyout() a two-element array. To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message