How about an O_FDANY flag to open(2), which indicates that the
caller will accept any positive number as a file descriptor?
Similarly, for network connects, a setsockopt(SO_FDANY).
Just an idea. If it's stupid, flame me gently, please.
Michael Chastain
<mailto:mec@shout.net>
"love without fear"