On Sat, 21 Jun 2025, Pali Rohár wrote:
This patch series adds _fstat32, _stat32, _wstat32, _fstat32i64,
_stat32i64 and _wstat32i64 function emulation for 64-bit msvcrt.dll
builds as the msvcrt.dll is missing those functions. Last change adds a
compile time test which ensures that all _fstat*, _stat* and _wstat*
functions can be used in applications.
Pali Rohár (4):
crt: Check for underflow in *stat32i64 functions
crt: Provide emulation of _fstat32, _stat32 and _wstat32 functions for
64-bit msvcrt builds
crt: Provide emulation of _fstat32i64, _stat32i64 and _wstat32i64
functions for 64-bit msvcrt builds
crt: Add testcases for all _fstat*, _stat* and _wstat* functions
These patches look ok, and after getting the testsuite running properly in
a CI environment (with a bunch of patches still outstanding/pending), I've
been able to verify that this does seem to work as expected, filling the
gaps, so I'll push this.
As this fixes a regression in v13 (as far as I understand
https://github.com/mingw-w64/mingw-w64/issues/103), I wonder if we should
backport these changes to the v13.x branch, for a potential point release.
// Martin
_______________________________________________
Mingw-w64-public mailing list
Mingw-w64-public@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/mingw-w64-public