mirror of
https://sourceware.org/git/glibc.git
synced 2025-08-08 17:42:12 +03:00
Remove <libc-tsd.h>
Use __thread variables directly instead. The macros do not save any typing. It seems unlikely that a future port will lack __thread variable support. Some of the __libc_tsd_* variables are referenced from assembler files, so keep their names. Previously, <libc-tls.h> included <tls.h>, which in turn included <errno.h>, so a few direct includes of <errno.h> are now required. Reviewed-by: Frédéric Bérat <fberat@redhat.com>
This commit is contained in:
@@ -64,12 +64,9 @@ _nl_postload_ctype (void)
|
||||
in fact using the global locale. */
|
||||
if (_NL_CURRENT_LOCALE == &_nl_global_locale)
|
||||
{
|
||||
__libc_tsd_set (const uint16_t *, CTYPE_B,
|
||||
(void *) _nl_global_locale.__ctype_b);
|
||||
__libc_tsd_set (const int32_t *, CTYPE_TOUPPER,
|
||||
(void *) _nl_global_locale.__ctype_toupper);
|
||||
__libc_tsd_set (const int32_t *, CTYPE_TOLOWER,
|
||||
(void *) _nl_global_locale.__ctype_tolower);
|
||||
__libc_tsd_CTYPE_B = _nl_global_locale.__ctype_b;
|
||||
__libc_tsd_CTYPE_TOUPPER = _nl_global_locale.__ctype_toupper;
|
||||
__libc_tsd_CTYPE_TOLOWER = _nl_global_locale.__ctype_tolower;
|
||||
}
|
||||
|
||||
#include <shlib-compat.h>
|
||||
|
Reference in New Issue
Block a user