From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 16 04:24:20 2007 Return-Path: X-Original-To: freebsd-hackers@freebsd.org Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [69.147.83.52]) by hub.freebsd.org (Postfix) with ESMTP id 95F0B16A400 for ; Mon, 16 Jul 2007 04:24:20 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: from palm.hoeg.nl (mx0.hoeg.nl [83.98.131.211]) by mx1.freebsd.org (Postfix) with ESMTP id 5D39113C4A5 for ; Mon, 16 Jul 2007 04:24:20 +0000 (UTC) (envelope-from ed@hoeg.nl) Received: by palm.hoeg.nl (Postfix, from userid 1000) id 681AE1CCE0; Mon, 16 Jul 2007 06:22:16 +0200 (CEST) Date: Mon, 16 Jul 2007 06:22:16 +0200 From: Ed Schouten To: Julian Elischer Message-ID: <20070716042216.GD39075@hoeg.nl> References: <20070705122650.GE1302@britannica.bec.de> <468E16E6.6030608@delphij.net> <20070706112453.GA3217@hoeg.nl> <468E7007.5050607@elischer.org> <20070715211549.GB39075@hoeg.nl> <469AB30A.5000001@elischer.org> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="eqp4TxRxnD4KrmFZ" Content-Disposition: inline In-Reply-To: <469AB30A.5000001@elischer.org> User-Agent: Mutt/1.5.16 (2007-06-09) Cc: FreeBSD Hackers Subject: Re: add closefrom() call X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 16 Jul 2007 04:24:20 -0000 --eqp4TxRxnD4KrmFZ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable * Julian Elischer wrote: > Ed Schouten wrote: >> Woops! Sorry for responding this late, but it looks like I didn't >> explain myself good enough. Sorry. :) To rephrase myself: >> Wouldn't it be better to just implement fcntl(..., F_CLOSEM, ...) in the >> kernel and make closefrom() a simple libc routine: >> void >> closefrom(int lowfd) >> { >> fcntl(lowfd, F_CLOSEM, NULL); >> } > > what on earth would that achieve? > (as opposed to just a simple syscall) Compatability with an existing implementation. --=20 Ed Schouten WWW: http://g-rave.nl/ --eqp4TxRxnD4KrmFZ Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGmvJ452SDGA2eCwURAur1AJ9e5Ft+T1fBTT4TQVMUMsu09cIlbACfQJw3 fsqdT2FgEfMFREZ/8FzcoGQ= =rXxf -----END PGP SIGNATURE----- --eqp4TxRxnD4KrmFZ--