Win32: make the lstat implementation pluggable
commit5e96acf16e36fd9b9d275033e1796c5e950e4d34
authorKarsten Blees <blees@dcon.de>
Sun, 8 Sep 2013 12:21:30 +0000 (8 14:21 +0200)
committerStepan Kasal <kasal@ucw.cz>
Thu, 29 May 2014 08:42:34 +0000 (29 10:42 +0200)
treed26ba9918d3d591837abc5a12187e3547aa5554f
parentbab79360dd78c4e1606d08fa0f45b98d9d827733
Win32: make the lstat implementation pluggable

Emulating the POSIX lstat API on Windows via GetFileAttributes[Ex] is quite
slow. Windows operating system APIs seem to be much better at scanning the
status of entire directories than checking single files. A caching
implementation may improve performance by bulk-reading entire directories
or reusing data obtained via opendir / readdir.

Make the lstat implementation pluggable so that it can be switched at
runtime, e.g. based on a config option.

Signed-off-by: Karsten Blees <blees@dcon.de>
compat/mingw.c
compat/mingw.h