This is the mail archive of the cygwin mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

RE: struct dirent doesn't contain d_namlen and d_type fields.


----Original Message----
>From: thomas.revell
>Sent: 22 April 2005 12:09

> Does anyone know how I can simulate the d_type field? Or if it's even
> relevant in Cygwin at all?
> 
> Any advice will be much appreciated.
> 
> Regards,
> 
> Thomas Revell


  The posix standard says the only thing you can *absolutely* rely on to be
there is the d_name field, even the d_ino is an XSI extension.

http://www.opengroup.org/onlinepubs/009695399/basedefs/dirent.h.html

  If you want to know the type of a file, you have to stat (...) it.


    cheers,
      DaveK
-- 
Can't think of a witty .sigline today....


--
Unsubscribe info:      http://cygwin.com/ml/#unsubscribe-simple
Problem reports:       http://cygwin.com/problems.html
Documentation:         http://cygwin.com/docs.html
FAQ:                   http://cygwin.com/faq/


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]