This is the mail archive of the
mailing list for the Cygwin project.
- From: Eric Blake <ebb9 at byu dot net>
- To: cygwin at cygwin dot com
- Date: Tue, 1 Sep 2009 17:39:02 +0000 (UTC)
- Subject: struct dirent.d_reclen
Wish list (probably post 7.1): As long as we are making struct dirent more like
Linux with the recent addition of d_type, we should probably also burn two of
the remaining 3 __d_unused1 bytes to declare unsigned short d_reclen, whose
value is always strlen(d_name), so that applications could get by with fewer
strlen calls. Coreutils ls would certainly benefit from this optimization.
P.S. This is an interesting thread related to struct dirent - it shows that for
once, cygwin is doing something more POSIX-y than Linux (ie. POSIX 2008 added a
requirement that readdir d_ino always match stat st_ino, even for mount
points), and therefore Cygwin actually gets to benefit from a coreutils
optimization when Linux doesn't!
Problem reports: http://cygwin.com/problems.html
Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple