Date: Mon, 16 Jul 2007 21:34:25 +1000 From: Peter Jeremy <peterjeremy@optushome.com.au> To: Julian Elischer <julian@elischer.org> Cc: FreeBSD Hackers <freebsd-hackers@freebsd.org> Subject: Re: add closefrom() call Message-ID: <20070716113425.GC65937@turion.vk2pj.dyndns.org> In-Reply-To: <469AB30A.5000001@elischer.org> References: <de5dfb5a0707041727j3e3518f9l5a019717a9f90aa@mail.gmail.com> <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>
next in thread | previous in thread | raw e-mail | index | archive | help
[-- Attachment #1 --]
On 2007-Jul-15 16:51:38 -0700, Julian Elischer <julian@elischer.org> 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?
--
Peter Jeremy
[-- Attachment #2 --]
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.7 (FreeBSD)
iD8DBQFGm1fB/opHv/APuIcRAkc6AKCbyJ+DbrIosG5rTcr3B25PVmrmgwCgjp76
X/2HU5d0DfwSwTnwwTfvYAE=
=UJbg
-----END PGP SIGNATURE-----
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20070716113425.GC65937>
