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! http://lists.gnu.org/archive/html/bug-coreutils/2009-08/msg00320.html http://lists.gnu.org/archive/html/bug-coreutils/2009-08/msg00331.html http://marc.info/?l=linux-kernel&m=125181054102075 -- Eric Blake -- Problem reports: http://cygwin.com/problems.html FAQ: http://cygwin.com/faq/ Documentation: http://cygwin.com/docs.html Unsubscribe info: http://cygwin.com/ml/#unsubscribe-simple