bug-gnulib
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: fdopendir closes the file descriptor on MinGW


From: Paul Eggert
Subject: Re: fdopendir closes the file descriptor on MinGW
Date: Mon, 16 Mar 2015 09:43:15 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:31.0) Gecko/20100101 Thunderbird/31.5.0

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

[Prev in Thread] Current Thread [Next in Thread]