From owner-freebsd-hackers@FreeBSD.ORG Mon Jul 16 11:34:32 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 DCD6E16A409 for ; Mon, 16 Jul 2007 11:34:32 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (c220-239-20-82.belrs4.nsw.optusnet.com.au [220.239.20.82]) by mx1.freebsd.org (Postfix) with ESMTP id 67F7F13C47E for ; Mon, 16 Jul 2007 11:34:31 +0000 (UTC) (envelope-from peterjeremy@optushome.com.au) Received: from turion.vk2pj.dyndns.org (localhost.vk2pj.dyndns.org [127.0.0.1]) by turion.vk2pj.dyndns.org (8.14.1/8.14.1) with ESMTP id l6GBYRE5066789; Mon, 16 Jul 2007 21:34:27 +1000 (EST) (envelope-from peter@turion.vk2pj.dyndns.org) Received: (from peter@localhost) by turion.vk2pj.dyndns.org (8.14.1/8.14.1/Submit) id l6GBYPaa066788; Mon, 16 Jul 2007 21:34:25 +1000 (EST) (envelope-from peter) Date: Mon, 16 Jul 2007 21:34:25 +1000 From: Peter Jeremy To: Julian Elischer Message-ID: <20070716113425.GC65937@turion.vk2pj.dyndns.org> 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="J/dobhs11T7y2rNN" Content-Disposition: inline In-Reply-To: <469AB30A.5000001@elischer.org> X-PGP-Key: http://members.optusnet.com.au/peterjeremy/pubkey.asc 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 11:34:33 -0000 --J/dobhs11T7y2rNN Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable On 2007-Jul-15 16:51:38 -0700, Julian Elischer wrote: >> void >> closefrom(int lowfd) >> { >> fcntl(lowfd, F_CLOSEM, NULL); >> } > >what on earth would that achieve? >(as opposed to just a simple syscall) The only benefit I can think of is minimising the number of syscalls. Is there any other benefit? --=20 Peter Jeremy --J/dobhs11T7y2rNN Content-Type: application/pgp-signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (FreeBSD) iD8DBQFGm1fB/opHv/APuIcRAkc6AKCbyJ+DbrIosG5rTcr3B25PVmrmgwCgjp76 X/2HU5d0DfwSwTnwwTfvYAE= =UJbg -----END PGP SIGNATURE----- --J/dobhs11T7y2rNN--