You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
libcxx/test/std/depr/depr.c.headers
Ed Schouten 1e17bc1faf 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


git-svn-id: https://llvm.org/svn/llvm-project/libcxx/trunk@290748 91177308-0d34-0410-b5e6-96231b3b80d8
9 years ago
..
assert_h.pass.cpp Move test into test/std subdirectory. 11 years ago
ciso646.pass.cpp Remove all _LIBCPP_VERSION tests from under test/std 9 years ago
complex.h.pass.cpp Remove all _LIBCPP_VERSION tests from under test/std 9 years ago
ctype_h.pass.cpp Move test into test/std subdirectory. 11 years ago
errno_h.pass.cpp Move test into test/std subdirectory. 11 years ago
fenv_h.pass.cpp Cleanup warnings and remove use of __builtin_va_list in depr.c.headers 10 years ago
float_h.pass.cpp Move test into test/std subdirectory. 11 years ago
inttypes_h.pass.cpp [libcxx] [test] D26314: Fix MSVC warning C4189 "local variable is initialized but not referenced". 9 years ago
iso646_h.pass.cpp Move test into test/std subdirectory. 11 years ago
limits_h.pass.cpp Move test into test/std subdirectory. 11 years ago
locale_h.pass.cpp Cleanup warnings in test/std/depr 10 years ago
math_h.pass.cpp Tolerate incorrect return type for 'isinf' and 'isnan' in tests. 10 years ago
setjmp_h.pass.cpp Void cast runtime-unused variables. Patch from STL@microsoft.com 10 years ago
signal_h.pass.cpp Cleanup warnings in test/std/depr 10 years ago
stdarg_h.pass.cpp Replace __cplusplus comparisons and dialect __has_feature checks with TEST_STD_VER. 10 years ago
stdbool_h.pass.cpp Move test into test/std subdirectory. 11 years ago
stddef_h.pass.cpp Fix test failure in C++98 mode due to imperfect static_assert emulation. 10 years ago
stdint_h.pass.cpp Avoid applying unary minus to unsigned integers. Patch from STL@microsoft.com 9 years ago
stdio_h.pass.cpp Cleanup warnings and remove use of __builtin_va_list in depr.c.headers 10 years ago
stdlib_h.pass.cpp Remove mblen(), mbtowc() and wctomb() from the thread-unsafe functions. 9 years ago
string_h.pass.cpp Fix overload sets of strchr, strpbrk, strrchr, memchr and strstr from 10 years ago
tgmath_h.pass.cpp Remove all _LIBCPP_VERSION tests from under test/std 9 years ago
time_h.pass.cpp Cleanup warnings and remove use of __builtin_va_list in depr.c.headers 10 years ago
uchar_h.pass.cpp [libcxx] Fixup a few fumbles in the initial no-exceptions XFAILs list. 10 years ago
wchar_h.pass.cpp Silence more unused variable warnings. Patch from STL@microsoft.com 10 years ago
wctype_h.pass.cpp Move test into test/std subdirectory. 11 years ago