> These bright guys (the mingw64 developers) meant to fix one stat() bug, > but > 1) in the process, opened another bug, > 2) did not apply their fix to the other variants (_stat, _stat64, etc.)
Observation confirmed by looking at the mingw64 source code: http://mingw-w64.sourcearchive.com/documentation/2.0-1/__stat_8c_source.html