Win32: make the lstat implementation pluggable
commit2a6a5faed7f5bac3785d3b5142fe306825b70d39
authorKarsten Blees <blees@dcon.de>
Sun, 8 Sep 2013 12:21:30 +0000 (8 14:21 +0200)
committerStepan Kasal <kasal@ucw.cz>
Thu, 15 May 2014 07:43:37 +0000 (15 09:43 +0200)
tree39078771cb2d024a395cc6616f566ba0027e4ed0
parentd84cf9c0c076c3bc8452731982432d7bf601f9b5
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