Re: add closefrom() call
Peter Jeremy wrote:
> 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?
>
I don't think so.. it's less efficient, and harder to do..
syscalls are not in short supply.
_______________________________________________
freebsd-hackers@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-hackers
To unsubscribe, send any mail to "freebsd-hackers-unsubscribe@freebsd.org"
討論串 (同標題文章)
完整討論串 (本文為第 25 之 26 篇):