On Sun, 5 Oct 2025, Pali Rohár wrote:
Pali Rohár (8): crt: Define ftruncate symbol via alias in crt-aliases.def.in headers: Simplify ftruncate* and truncate* declaration headers: Remove inline ftruncate() definition crt: Provide ftruncate64 function via wrapper around native CRT function _chsize_s crt: Provide emulation of _telli64 function for crtdll.dll and msvcrt10.dll crt: Disable free space check in mingw-w64 ftruncate64 function headers: Use _FILE_OFFSET_BITS == 64 also for 64-bit truncate definition crt: Split truncate64 implementation into its own file
Other than the mentioned issues (commit message, unnecessary #ifdef block, code removal instead of #if 0), this patchset seems fine. Plus some earlier mentioned issues with msvcr80plus_ftruncate64.c which was missing in Makefile.am.
It might be nicer with a full re-send of a version of this with all the mentioned fixes in one.
// Martin _______________________________________________ Mingw-w64-public mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/mingw-w64-public
