add closefrom() call

LI Xin delphij at
Thu Jul 5 11:43:06 UTC 2007

Ighighi Ighighi wrote:
> The closefrom() call, available in Solaris, is present in NetBSD since
> version 3.0.
> It is implemented with the F_CLOSEM fcntl() available since version 2.0.

I think it might worth an effort (sendmail and perhaps some part of JDK
uses it IIRC), but I do not want to rush it into -CURRENT unless we have
test cases to make sure that we have done things correctly, because I do
not have a NetBSD nor Solaris box at hand to experiment its behavior... :-(

Do you have some test cases for this?

Xin LI <delphij at>
FreeBSD - The Power to Serve!

-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 249 bytes
Desc: OpenPGP digital signature
Url :

More information about the freebsd-hackers mailing list