[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: fdopendir closes the file descriptor on MinGW
From: |
Eli Zaretskii |
Subject: |
Re: fdopendir closes the file descriptor on MinGW |
Date: |
Thu, 19 Mar 2015 18:13:19 +0200 |
> Date: Wed, 18 Mar 2015 12:33:57 -0700
> From: Paul Eggert <address@hidden>
> CC: address@hidden
>
> On 03/18/2015 09:16 AM, Eli Zaretskii wrote:
> > An alternative would be to use Gnulib's opendir instead, which seems
> > to already take care of allocating a file descriptor. However,
> > Gnulib's opendir is not being linked into the test program; instead,
> > MinGW's own opendir is.
>
> That doesn't sound right. The whole point of the dir business on
> Windows (as I understand it) is to wrap all the directory primitives,
> and opendir ought to be one of those primitives. Perhaps someone could
> investigate why the Gnulib opendir isn't being used here, as it should be.
I was wrong, sorry. Gnulib's opendir is being called. But as I wrote
earlier, that cannot solve the issue, because dirfd cannot return the
file descriptor, if any, which was used to open the directory.
- Re: fdopendir closes the file descriptor on MinGW, (continued)
- Re: fdopendir closes the file descriptor on MinGW, Paul Eggert, 2015/03/19
- Re: fdopendir closes the file descriptor on MinGW, David Grayson, 2015/03/20
- Re: fdopendir closes the file descriptor on MinGW, Eli Zaretskii, 2015/03/20
- Re: fdopendir closes the file descriptor on MinGW, David Grayson, 2015/03/22
- Re: fdopendir closes the file descriptor on MinGW, Eli Zaretskii, 2015/03/22
- Re: fdopendir closes the file descriptor on MinGW, Paul Eggert, 2015/03/22
- Re: fdopendir closes the file descriptor on MinGW, Paul Eggert, 2015/03/18
- Re: fdopendir closes the file descriptor on MinGW, Eli Zaretskii, 2015/03/19
- Re: fdopendir closes the file descriptor on MinGW, Eric Blake, 2015/03/18
- Re: fdopendir closes the file descriptor on MinGW, Eli Zaretskii, 2015/03/18
- Re: fdopendir closes the file descriptor on MinGW,
Eli Zaretskii <=