From owner-freebsd-hackers Sun Jan 28 10:34: 1 2001 Delivered-To: freebsd-hackers@freebsd.org Received: from postfix1-2.free.fr (postfix1-2.free.fr [213.228.0.130]) by hub.freebsd.org (Postfix) with ESMTP id 4094E37B402 for ; Sun, 28 Jan 2001 10:33:43 -0800 (PST) Received: from dades.chilali.net (paris11-nas7-53-248.dial.proxad.net [212.27.53.248]) by postfix1-2.free.fr (Postfix) with SMTP id A9D3310296C; Sun, 28 Jan 2001 19:33:41 +0100 (CET) From: mouss To: Garance A Drosihn , hackers@FreeBSD.ORG Subject: Re: [kernel patch] fcntl(...) to close many descriptors Date: Sun, 28 Jan 2001 20:30:58 +0100 X-Mailer: KMail [version 1.0.28] Content-Type: text/plain Cc: Garrett Wollman References: <4.3.0.20010126193228.06e2a200@bluesun> In-Reply-To: MIME-Version: 1.0 Message-Id: <01012820330901.00214@dades.chilali.net> Content-Transfer-Encoding: 8bit Sender: owner-freebsd-hackers@FreeBSD.ORG Precedence: bulk X-Loop: FreeBSD.ORG There is a closeall() in NetBSD libc (it's a loop on close()). I suggest using the same name, and adding the function for all the *bsd. On Sat, 27 Jan 2001, Garance A Drosihn wrote: > [snip] > On the other hand, I seem to remember this being done (in some > other program, if not in lpr) because closeallfds *is* a system > routine in some place or another. The intent of closeallfds is > the same as what you have implemented, as it is: > void closeallfds(int start); > [snip] cheers, mouss To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-hackers" in the body of the message