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 mingw-w64-crt/Makefile.am | 17 ++++- mingw-w64-crt/stdio/_fstat32.c | 48 ++++++++++++ mingw-w64-crt/stdio/_fstat32i64.c | 18 +++-- mingw-w64-crt/stdio/_stat32.c | 48 ++++++++++++ mingw-w64-crt/stdio/_stat32i64.c | 18 +++-- mingw-w64-crt/stdio/_wstat32.c | 48 ++++++++++++ mingw-w64-crt/stdio/_wstat32i64.c | 18 +++-- mingw-w64-crt/testcases/t__fstat_all.c | 100 ++++++++++++++++++++++++ mingw-w64-crt/testcases/t__stat_all.c | 100 ++++++++++++++++++++++++ mingw-w64-crt/testcases/t__wstat_all.c | 101 +++++++++++++++++++++++++ 10 files changed, 500 insertions(+), 16 deletions(-) create mode 100644 mingw-w64-crt/stdio/_fstat32.c create mode 100644 mingw-w64-crt/stdio/_stat32.c create mode 100644 mingw-w64-crt/stdio/_wstat32.c create mode 100644 mingw-w64-crt/testcases/t__fstat_all.c create mode 100644 mingw-w64-crt/testcases/t__stat_all.c create mode 100644 mingw-w64-crt/testcases/t__wstat_all.c -- 2.20.1 _______________________________________________ Mingw-w64-public mailing list Mingw-w64-public@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/mingw-w64-public