llvm-project/libcxx/test/std/depr/depr.c.headers
Ed Schouten 0a92402436 Remove mblen(), mbtowc() and wctomb() from the thread-unsafe functions.
Back in r240527 I added a knob to prevent thread-unsafe functions from
being exposed. mblen(), mbtowc() and wctomb() were also added to this
list, as the latest issue of POSIX doesn't require these functions to be
thread-safe.

It turns out that the only circumstance in which these functions are not
thread-safe is in case they are used in combination with state-dependent
character sets (e.g., Shift-JIS). According to Austin Group Bug 708,
these character sets "[...] are mostly a relic of the past and which
were never supported on most POSIX systems".

Though in many cases the use of these functions can be prevented by
using the reentrant counterparts, they are the only functions that allow
you to query whether the locale's character set is state-dependent. This
means that omitting these functions removes actual functionality.

Let's be a bit less pedantic and drop the guards around these functions.

Links:
http://austingroupbugs.net/view.php?id=708
http://www.open-std.org/jtc1/sc22/wg14/www/docs/n2037.htm

Reviewed by:	ericwf
Differential Revision:	https://reviews.llvm.org/D21436

llvm-svn: 290748
2016-12-30 10:44:00 +00:00
..
assert_h.pass.cpp
ciso646.pass.cpp Remove all _LIBCPP_VERSION tests from under test/std 2016-10-08 01:32:56 +00:00
complex.h.pass.cpp Remove all _LIBCPP_VERSION tests from under test/std 2016-10-08 01:32:56 +00:00
ctype_h.pass.cpp
errno_h.pass.cpp
fenv_h.pass.cpp Cleanup warnings and remove use of __builtin_va_list in depr.c.headers 2016-05-02 20:08:16 +00:00
float_h.pass.cpp
inttypes_h.pass.cpp [libcxx] [test] D26314: Fix MSVC warning C4189 "local variable is initialized but not referenced". 2016-11-14 17:35:14 +00:00
iso646_h.pass.cpp
limits_h.pass.cpp
locale_h.pass.cpp Cleanup warnings in test/std/depr 2015-07-18 22:51:51 +00:00
math_h.pass.cpp Tolerate incorrect return type for 'isinf' and 'isnan' in tests. 2016-05-27 22:19:53 +00:00
setjmp_h.pass.cpp Void cast runtime-unused variables. Patch from STL@microsoft.com 2016-05-02 19:15:48 +00:00
signal_h.pass.cpp Cleanup warnings in test/std/depr 2015-07-18 22:51:51 +00:00
stdarg_h.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 2016-06-14 21:31:42 +00:00
stdbool_h.pass.cpp
stddef_h.pass.cpp Fix test failure in C++98 mode due to imperfect static_assert emulation. 2015-10-08 23:44:26 +00:00
stdint_h.pass.cpp Avoid applying unary minus to unsigned integers. Patch from STL@microsoft.com 2016-06-30 04:21:52 +00:00
stdio_h.pass.cpp Cleanup warnings and remove use of __builtin_va_list in depr.c.headers 2016-05-02 20:08:16 +00:00
stdlib_h.pass.cpp Remove mblen(), mbtowc() and wctomb() from the thread-unsafe functions. 2016-12-30 10:44:00 +00:00
string_h.pass.cpp Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from 2016-02-10 00:59:02 +00:00
tgmath_h.pass.cpp Remove all _LIBCPP_VERSION tests from under test/std 2016-10-08 01:32:56 +00:00
time_h.pass.cpp Cleanup warnings and remove use of __builtin_va_list in depr.c.headers 2016-05-02 20:08:16 +00:00
uchar_h.pass.cpp [libcxx] Fixup a few fumbles in the initial no-exceptions XFAILs list. 2015-11-12 10:41:57 +00:00
wchar_h.pass.cpp Silence more unused variable warnings. Patch from STL@microsoft.com 2016-06-14 02:46:39 +00:00
wctype_h.pass.cpp