[ruby-cvs:57115] nobu:r49966 (trunk): dir.h: direct::d_type

nobu at ruby-lang.org nobu at ruby-lang.org
Sat Mar 14 12:23:57 JST 2015


nobu	2015-03-14 12:23:56 +0900 (Sat, 14 Mar 2015)

  New Revision: 49966

  http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=49966

  Log:
    dir.h: direct::d_type
    
    * dir.c (glob_helper): use d_type to reduce lstat system calls.
    * win32/dir.h (struct direct): add d_type instead of d_isdir and
      d_isrep.  SYMLINKD is unreliable, since the target can be
      replaced after a link was created.
    * win32/win32.c (readdir_internal): set d_type.

  Modified files:
    trunk/ChangeLog
    trunk/dir.c
    trunk/win32/dir.h
    trunk/win32/win32.c


More information about the ruby-cvs mailing list