On Sat, Sep 5, 2020 at 2:13 AM Andres Freund <and...@anarazel.de> wrote:

>
> > However, it looks like we might be missing a further opportunity
> > here...  Doesn't Windows already give us the flags we need in the
> > dwFileAttributes member of the WIN32_FIND_DATA object that the
> > Find{First,Next}File() functions populate?
>
> That'd be better...
>

At first I did not see how to get DT_LNK directly, but it is possible
without additional calls, so please find attached a version with that logic.

This version also drops the enum, defining just the macros.

Regards,

Juan José Santamaría Flecha

Attachment: v4-0001-Skip-unnecessary-stat-calls-in-walkdir.patch
Description: Binary data

Attachment: v4-0002-Add-d_type-to-WIN32-dirent-port.patch
Description: Binary data

Reply via email to