Re: _cleanup() vs Linux fcloseall()
- From: "Frank Behrens" <frank@xxxxxxxxxxxx>
- Date: Thu, 30 Mar 2006 11:05:46 +0200
Peter Jeremy <peterjeremy@xxxxxxxxxxxxxxxx> wrote on 30 Mar 2006 19:16:
On Thu, 2006-Mar-30 00:41:00 +0200, Maxime Henrion wrote:
FWIW, NetBSD has something that close all the file descriptors, and it's
done with fcntl(fd, F_CLOSEM) (using fcntl() on one file descriptor to
close all of them looks a bit weird to me, but well...).
If it close any fd's numerically greater than the passed fd, that would
make a lot of sense.
Yes. It is also implemented in IBM AIX (and I believe in SGI IRIX,
too).
see http://publib.boulder.ibm.com/infocenter/pseries/v5r3/index.jsp?topic=/com.ibm.aix.doc/libs/basetrf1/fcntl.htm
--
Frank Behrens, Osterwieck, Germany
PGP-key 0x5B7C47ED on public servers available.
_______________________________________________
freebsd-current@xxxxxxxxxxx mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-current
To unsubscribe, send any mail to "freebsd-current-unsubscribe@xxxxxxxxxxx"
- Follow-Ups:
- Re: _cleanup() vs Linux fcloseall()
- From: Daniel Eischen
- Re: _cleanup() vs Linux fcloseall()
- References:
- Re: _cleanup() vs Linux fcloseall()
- From: Maxime Henrion
- Re: _cleanup() vs Linux fcloseall()
- From: Peter Jeremy
- Re: _cleanup() vs Linux fcloseall()
- Prev by Date: Re: away
- Next by Date: Re: mysql performance test results under FreeBSD-7.0-CURRENT
- Previous by thread: Re: _cleanup() vs Linux fcloseall()
- Next by thread: Re: _cleanup() vs Linux fcloseall()
- Index(es):
Relevant Pages
|
|