1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

nptl: Move tss_delete into libc

The symbol was moved using scripts/move-symbol-to-libc.py.

__pthread_key_delete@@GLIBC_PRIVATE is no longer needed after that,
so it is removed as well.

Reviewed-by: Carlos O'Donell <carlos@redhat.com>
Tested-by: Carlos O'Donell <carlos@redhat.com>
This commit is contained in:
Florian Weimer
2021-05-03 08:12:12 +02:00
parent e4036b1ce9
commit deb317d510
65 changed files with 81 additions and 36 deletions

View File

@ -32,7 +32,7 @@ headers += threads.h
routines += thrd_current thrd_equal thrd_sleep thrd_yield
libpthread-routines += thrd_create thrd_detach thrd_join \
tss_delete tss_get tss_set
tss_get tss_set
$(libpthread-routines-var) += \
call_once \
@ -50,6 +50,7 @@ $(libpthread-routines-var) += \
mtx_unlock \
thrd_exit \
tss_create \
tss_delete \
tests += tst-cnd-basic tst-mtx-trylock tst-cnd-broadcast \
tst-cnd-timedwait tst-thrd-detach tst-mtx-basic tst-thrd-sleep \

View File

@ -16,10 +16,19 @@
License along with the GNU C Library; if not, see
<https://www.gnu.org/licenses/>. */
#include <shlib-compat.h>
#include "thrd_priv.h"
void
tss_delete (tss_t tss_id)
__tss_delete (tss_t tss_id)
{
__pthread_key_delete (tss_id);
}
#if PTHREAD_IN_LIBC
versioned_symbol (libc, __tss_delete, tss_delete, GLIBC_2_34);
# if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_28, GLIBC_2_34)
compat_symbol (libpthread, __tss_delete, tss_delete, GLIBC_2_28);
# endif
#else /* !PTHREAD_IN_LIBC */
strong_alias (__tss_delete, tss_delete)
#endif