+2020-03-03 Keith Marshall <keith@users.osdn.me>
+
+ Reimplement btowc(), and wctob() functions.
+
+ * include/wchar.h [__MSVCRT_VERSION__ < __MSVCR80_DLL]
+ (btowc, wctob): Implement them as static inline redirects...
+ (__msvcrt_btowc, __msvcrt_wctob): ...to these; declare them, with
+ additional MinGW specific alternatives declared...
+ (__mingw_btowc, __mingw_wctob): ...thus.
+
+ * mingwex/btowc.c: Rewrite as new; it now implements...
+ (__mingw_btowc, __msvcrt_btowc): ...these public API functions, either
+ of which serves as a suitable replacement entry point for...
+ (btowc): ...this, with ultimate fallback served by...
+ (__mingw_btowc_fallback): ...this private function.
+
+ * mingwex/wctob.c: Rewrite as new; it now implements...
+ (__mingw_wctob, __msvcrt_wctob): ...these public API functions, either
+ of which serves as a suitable replacement entry point for...
+ (wctob): ...this, with ultimate fallback served by...
+ (__mingw_wctob_fallback): ...this private function.
+
+2020-03-02 Keith Marshall <keith@users.osdn.me>
+
+ Reimplement mbrlen(), mbrtowc(), and mbsrtowcs() functions.
+
+ * include/wchar.h [__MSVCRT_VERSION__ < __MSVCR80_DLL]
+ (mbrlen, mbrtowc, mbsrtowcs): Implement as static inline redirects...
+ (__msvcrt_mbrlen, __msvcrt_mbrtowc, __msvcrt_mbsrtowcs): ...to these;
+ declare them, with additional MinGW specific alternatives declared...
+ (__mingw_mbrlen, __mingw_mbrtowc, __mingw_mbsrtowcs): ...thus.
+
+ * mingwex/mbsrtowcs.c: New file; it implements...
+ (__mingw_mbsrtowcs, __msvcrt_mbsrtowcs): ...this pair of new
+ functions, either of which serves as a replacement for...
+ (mbsrtowcs): ...this; it was originally implemented...
+ * mingwex/mbrtowc.c: ...here; rewritten as new, it now implements...
+ (__mingw_mbrtowc, __msvcrt_mbrtowc): ...these new functions,
+ either of which serves as a public API replacement for...
+ (mbrtowc): ...this; with ultimate fallback served by...
+ (__mingw_mbrtowc_fallback): ...this private function.
+
+ * mingwex/mbrlen.c: New file; it implements...
+ (__mingw_mbrlen, __msvcrt_mbrlen): ...these public API entries, and...
+ (__mingw_mbrlen_fallback): ...this supporting private function.
+
+ * mingwex/mbrconv.c: New file; it implements...
+ (__mingw_mbrtowc_handler): ...this backend interpreter, shared by...
+ (__mingw_mbrlen_fallback, __mingw_mbrtowc_fallback): ...these.
+
+ * mingwex/mbrscan.c: New file; it implements...
+ (__mingw_mbtowc_codeset_init, __mingw_mbtowc_cur_max_init)
+ (__mingw_mbtowc_cur_max): ...these TLS accessor functions, and...
+ (__mingw_mbrscan_begin, __mingw_mbtowc_convert, __mingw_mbtowc_copy):
+ ...these MBCS to wide character conversion helper functions.
+
+ * mingwex/wcharmap.h (boolean): Define new private use data type...
+ (false, true): ...with these effective symbolic values; define them.
+ (__mingw_mbtowc_codeset_init, __mingw_mbtowc_cur_max_init)
+ (__mingw_mbtowc_cur_max, __mingw_mbrscan_begin, __mingw_mbtowc_copy)
+ (__mingw_mbtowc_convert): Declare them.
+
+ * Makefile.in (libmingwex.a): Add dependency references for...
+ (mbrconv.$OBJEXT, mbrscan.$OBJEXT, mbrlen.$OBJEXT, mbsrtowcs.$OBJEXT):
+ ...these.
+
+2020-02-25 Keith Marshall <keith@users.osdn.me>
+
+ Reimplement wcrtomb() and wcsrtombs(); cf. MinGW-Issue #39687.
+
+ * include/wchar.h [__MSVCRT_VERSION__ < __MSVCR80_DLL]
+ (wcrtomb, wcsrtombs): Implement them as static inline redirects to...
+ (__msvcrt_wcrtomb, __msvcrt_wcsrtombs): ...these; declare them.
+ (__mingw_wcrtomb, __mingw_wcsrtombs): Also declare these.
+
+ * include/limits.h (MB_LEN_MAX): Update value; was 2, but should be 5.
+
+ * mingwex/wcsrtombs.c: New file; it implements...
+ (__mingw_wcsrtombs, __msvcrt_wcsrtombs): ...this pair of new
+ functions, either of which serves as a replacement for...
+ (wcsrtombs): ...this; it was originally implemented...
+ * mingwex/wcrtomb.c: ...here; rewritten as new, it now implements...
+ (__mingw_wcrtomb, __msvcrt_wcrtomb): ...these new functions,
+ either of which serves as a replacement for...
+ (wcrtomb): ...this.
+
+ * mingwex/wcharmap.h: New private header; it declares the API for...
+ * mingwex/wcharmap.c: ...this new file, which implements...
+ (__mingw_wctomb_convert): ...this new function, required by...
+ (__mingw_wcrtomb, __msvcrt_wcrtomb, __mingw_wcsrtombs)
+ (__msvcrt_wcsrtombs): ...these; also provides...
+ (__mingw_wctomb_codeset_init, __mingw_wctomb_cur_max_init)
+ (__mingw_wctomb_cur_max): ...these supporting thread local storage
+ accessor functions.
+
+ * mingwex/codeset.c: New file; it implements...
+ (__mb_codeset_for_locale, __mb_len_max_for_codeset): ...this pair of
+ new helper functions; they identify the codeset, and respectively, its
+ MB_CUR_MAX for the effective process locale, which are required by...
+ (__mingw_wctomb_convert): ...this.
+
+ * Makefile.in (libmingwex.a): Add dependency references for...
+ (codeset.$OBJEXT, wcharmap.$OBJEXT, wcsrtombs.$OBJEXT): ...these.
+
+2020-01-21 Keith Marshall <keith@users.osdn.me>
+
+ Address MinGW-Issue #39658; declare rand_s() function.
+
+ * include/stdlib.h: When the user has defined...
+ [_CRT_RAND_S]: ...this optional feature test macro, and then...
+ [__MSVCRT_VERSION__ >= __MSVCR80_DLL]: ...either this non-free, or...
+ [_WIN32_WINNT >=_ WIN32_WINNT_VISTA]: ...this system-standard runtime
+ library version constraint is satisfied, then...
+ (rand_s): ...declare function prototype.
+
+2020-01-17 Keith Marshall <keith@users.osdn.me>
+
+ Support GCC-9.x gratuitous dependency on ftruncate64() function.
+
+ * include/unistd.h (ftruncate64): Declare prototype; implement it...
+ * mingwex/ftruncate.c: ...in this new file; it will delegate to...
+ (_chsize_s): ...this MSVCRT.DLL function, if available.
+
+ * Makefile.in (libmingwex.a): Add dependency on...
+ (ftruncate.$OBJEXT): ...this.
+
+ * msvcrt-xref/msvcrt.def.in (_chsize_s): Require dlsym look-up.
+
+2020-01-17 Keith Marshall <keith@users.osdn.me>
+
+ Preserve order of tests for integrity of header files.
+
+ * tests/Makefile.in: Explicitly sort $wildcard output, within...
+ (list_headers): ...this new function-style macro.
+ (enum_headers): Use it.
+
+ * tests/headers.at: Adjust to recent GNU make $sort order.
+
+2020-01-17 Keith Marshall <keith@users.osdn.me>
+
+ Update handling of <process.h> test-suite limitation.
+
+ * include/process.h (-Wbuiltin-declaration-mismatch)
+ [__IN_MINGWRT_TESTSUITE__ && __GNUC__ >= 7 && __cplusplus]: Drop...
+ [__cplusplus]: ...this diagnostic constraint, in test case when...
+ [__GNUC__ >= 9]: ...this applies; this diagnostic now affects both
+ C and C++ compilers, with respect to each of...
+ (execv, execve, execvp): ...these functions.
+
+2020-01-17 Keith Marshall <keith@users.osdn.me>
+
+ Support GCC-9.x gratuitous use of non-standard errno accessor API.
+
+ * include/stdlib.h (_get_errno, _set_errno): Declare prototypes;
+ implement them in-line, for legacy Windows versions which may lack
+ them, since GCC-9.x gratuitously and ill-advisedly requires them.
+ (__STDLIB_H_SOURCED__): Define, and selectively #include...
+
+ * include/errno.h: ...this, subject to criterion...
+ [__STDLIB_H_SOURCED__]: ...for exposure of only...
+ (errno): ...this public API declaration, and...
+ (EINVAL): ...this symbolic constant.
+
+2019-10-26 Keith Marshall <keith@users.osdn.me>
+
+ Fix MinGW-Issue #39757; avoid multiple vsnprintf() definitions.
+
+ * include/stdio.h [C++] (__mingw_stdio_redirect__): Defer redirection
+ to in-line definitions applicable for C, when the compiler suite is...
+ [__GNUC__]: ...this.
+
+2019-10-16 Keith Marshall <keith@users.osdn.me>
+
+ Address MinGW-Issue #39677; declare _findclose() only once.
+
+ * include/io.h (_findclose): Relocate declaration within conditional
+ block, to prevent second exposure when <io.h> is included in full,
+ following partial inclusion by <wchar.h>
+
+2019-07-06 Keith Marshall <keith@users.osdn.me>
+
+ Prepare and publish MinGW.org WSL-5.2.2 release.
+
+ * All files (wsl-5.2.2-release): Tag assigned.
+
+2019-07-03 Keith Marshall <keith@users.osdn.me>
+
+ Avoid built-in snprintf() prototypes; fix MinGW-Bug #39224
+
+ * include/stdio.h [__USE_MINGW_ANSI_STDIO]
+ (snprintf, vsnprintf): Implement them in-line, delegating to...
+ (__mingw_vsnprintf): ...this external function.
+
+ * mingwex/stdio/snprintf.c mingwex/stdio/vsnprintf.c: Assert
+ copyright; include <stddef.h>, instead of <stdio.h>, to obtain a
+ definition of "size_t"; this is required because the new in-line
+ prototypes, now provided in <stdio.h>, conflict with the intent
+ to provide external implementations.
+
+ * tests/ansiprintf.at (MINGW_AT_CHECK_SNPRINTF): Conditionally
+ circumvent conditions which may produce -Wformat warnings.
+
+2019-07-01 Keith Marshall <keith@users.osdn.me>
+
+ Revert to macro implementation of "alloca()" functions.
+
+ * include/alloca.h (alloca, _alloca): Delete any prior definitions;
+ remove in-line implementations; replace with conventional prototypes,
+ followed by corresponding function style macro definitions.
+
2019-01-22 Keith Marshall <keith@users.osdn.me>
Prepare and publish MinGW.org WSL-5.2.1 release.