fdopendir closes the file descriptor on MinGW

2015-03-16 Thread David Grayson
Hello. When running under MinGW on Windows, there seems to be a bug in Gnulib's fdopendir implementation. Gnulib's fdopendir closes the file descriptor that was passed to it as an argument. It then tries to reopen the directory using the same file descriptor, but that doesn't seem to work in Min

Re: fdopendir closes the file descriptor on MinGW

2015-03-16 Thread Paul Eggert
On 03/15/2015 08:10 PM, David Grayson wrote: To make fdopendir be POSIX compliant on MinGW, it seems like you would want to somehow associate the fd with the DIR pointer even if the fd isn't used by typical dirent functions. Then when closedir is called, you would want to retrieve that fd and cl