Re: dirent.d_type is not working on Cygwin symbolic links.

2017-01-30 Thread Csaba Raduly
On Sun, Jan 29, 2017 at 8:34 PM, Thomas Wolff wrote: > Am 29.01.2017 um 20:17 schrieb waterlan: >> >> Christian Franke schreef op 2017-01-29 12:15: >>> >>> waterlan wrote: The dirent.d_type value for Cygwin symbolic links is 0 (DT_UNKNOWN). The value is 10 (DT_LNK) for Windows nativ

Re: dirent.d_type is not working on Cygwin symbolic links.

2017-01-29 Thread Thomas Wolff
Am 29.01.2017 um 20:17 schrieb waterlan: Christian Franke schreef op 2017-01-29 12:15: waterlan wrote: The dirent.d_type value for Cygwin symbolic links is 0 (DT_UNKNOWN). The value is 10 (DT_LNK) for Windows native symbolic links. I think d_type should be 10 for Cygwin symbolic links too.

Re: dirent.d_type is not working on Cygwin symbolic links.

2017-01-29 Thread waterlan
Christian Franke schreef op 2017-01-29 12:15: waterlan wrote: The dirent.d_type value for Cygwin symbolic links is 0 (DT_UNKNOWN). The value is 10 (DT_LNK) for Windows native symbolic links. I think d_type should be 10 for Cygwin symbolic links too. Sorry, no. The actual type should only b

Re: dirent.d_type is not working on Cygwin symbolic links.

2017-01-29 Thread Christian Franke
waterlan wrote: The dirent.d_type value for Cygwin symbolic links is 0 (DT_UNKNOWN). The value is 10 (DT_LNK) for Windows native symbolic links. I think d_type should be 10 for Cygwin symbolic links too. Sorry, no. The actual type should only be returned in dirent.d_type if the info is ava

dirent.d_type is not working on Cygwin symbolic links.

2017-01-28 Thread waterlan
Hi, The dirent.d_type value for Cygwin symbolic links is 0 (DT_UNKNOWN). The value is 10 (DT_LNK) for Windows native symbolic links. I think d_type should be 10 for Cygwin symbolic links too. Example program. Run it in a folder with a Cygwin symbolic link and a Windows symbolic link (create