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 close it, as a side effect.

That sounds like a good way to go, yes. Can you implement that and contribute the resulting patch? I hope it's relatively simple. Please bear in mind that I don't know MinGW well, and rely on users like you to fix things.

Reply via email to