> 
> A function like dirfd() is probably needed for
> completeness and
> compatibility, though I wonder what people are using
> it for....

Supposedly to do an opendir() then convert the result to
something they could use with fchdir(), although it seems
to me that if one was always going to do both, one could
open() the directory and then do fdopendir() just as well.

But since it's on Linux and other platforms, having it might
make porting code to Solaris easier.

Either approach (opendir()/dirfd() or open()/fdopendir())
might be handy on Solaris or anything else that has openat(),
for use with multithreaded programs.
 
 
This message posted from opensolaris.org
_______________________________________________
opensolaris-discuss mailing list
[email protected]

Reply via email to