]> code.delx.au - gnu-emacs/commit
Speed up most calls to 'stat' and 'lstat' on MS-Windows.
authorEli Zaretskii <eliz@gnu.org>
Fri, 14 Dec 2012 14:05:01 +0000 (16:05 +0200)
committerEli Zaretskii <eliz@gnu.org>
Fri, 14 Dec 2012 14:05:01 +0000 (16:05 +0200)
commit5c207910c4899af1c547b0e508692d846c145d48
treeb3516d3332d126e8add66cfff68c11ac7ed187b8
parentb421decc52e07a3c56b2b259321867bc352f5173
Speed up most calls to 'stat' and 'lstat' on MS-Windows.

 src/w32.c (stat_worker): If w32_stat_get_owner_group is zero, do not
 try to get accurate owner and group information from NT file
 security APIs.  This is to make most callers of 'stat' and
 'lstat', which don't need that information, much faster.
 src/dired.c (Ffile_attributes) [WINDOWSNT]: Set
 w32_stat_get_owner_group to a non-zero value, to request accurate
 owner and group information from 'lstat'.

 nt/inc/sys/stat.h: Declare w32_stat_get_owner_group.
nt/ChangeLog
nt/inc/sys/stat.h
src/ChangeLog
src/dired.c
src/w32.c