Win32: make the lstat implementation pluggable
commit3e47623940b94ad40ffa12621956695d6595e980
authorKarsten Blees <blees@dcon.de>
Sun, 8 Sep 2013 12:21:30 +0000 (8 14:21 +0200)
committerKarsten Blees <blees@dcon.de>
Wed, 18 Dec 2013 19:20:54 +0000 (18 20:20 +0100)
treef3d1df5bfe7d8ee837b439d3df964d9ba33db60d
parenta7cb32356e92d2f55fba9348a7b174dc0c82df56
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