Hi Eric,

Eric Blake wrote:
> Adding such a workaround would allow code like this to work on mingw:
> 
> FILE *f = fopen (".", "r");
> DIR *d = fdopendir (fileno (f));
> readdir (d);

I understand the heavy use of fdopendir() in coreutils: on those systems
which implement this function natively, it's a race-free alternative to
opendir(). Therefore I find it reasonable to emulate fdopendir() in gnulib.

But fopen() on a directory? Who does that? If no-one needs that, I would be
satisfied with mentioning the problem under "Portability problems not fixed by
Gnulib" in the doc.

Bruno



Reply via email to