mingw: replace MSVCRT's fstat() with a Win32-based implementation
commitd75e6973539f1f99561ae6f42a81f024497e3dfa
authorKarsten Blees <blees@dcon.de>
Tue, 23 Oct 2018 10:23:21 +0000 (23 03:23 -0700)
committerJunio C Hamano <gitster@pobox.com>
Wed, 24 Oct 2018 04:18:14 +0000 (24 13:18 +0900)
tree79b005112f9282155e2bd2fcfb8f78f8d673344c
parent7bf198388645995d72073d331fd2bc00243ffea1
mingw: replace MSVCRT's fstat() with a Win32-based implementation

fstat() is the only stat-related CRT function for which we don't have a
full replacement yet (and thus the only reason to stick with MSVCRT's
'struct stat' definition).

Fully implement fstat(), in preparation of implementing a POSIX 2013
compatible 'struct stat' with nanosecond-precision file times.

This allows us also to implement some clever code to handle pipes and
character devices in our own way.

Signed-off-by: Karsten Blees <blees@dcon.de>
Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Signed-off-by: Junio C Hamano <gitster@pobox.com>
compat/mingw.c