This is the mail archive of the
mailing list for the Cygwin project.
Re: support dirent.d_type
-----BEGIN PGP SIGNED MESSAGE-----
According to Christopher Faylor on 4/22/2005 11:06 AM:
> Actually, thanks but I don't think we want to go down this path.
> Properly implementing this field would introduce the same problems as
> properly implementing d_ino. Doing this would mean adding too much
> overhead to readdir.
But there are a number of applications out there that behave more
efficiently if d_ino/d_type ARE properly implemented. For example, both
coreutils and findutils are smart enough to avoid extra [l]stat()s on
systems with working d_type when traversing directories. You may find
that properly implementing d_type slows down readdir() but speeds up
applications. Most applications that use readdir() are doing so in the
context of directory traversal, and have to do a followup stat or lstat to
find out the type if readdir() doesn't tell them.
Life is short - so eat dessert first!
Eric Blake email@example.com
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.0 (Cygwin)
Comment: Public key at home.comcast.net/~ericblake/eblake.gpg
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org
-----END PGP SIGNATURE-----
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple
Problem reports: http://cygwin.com/problems.html