diff options
Diffstat (limited to 'nptl/pthread_key_create.c')
-rw-r--r-- | nptl/pthread_key_create.c | 20 |
1 files changed, 15 insertions, 5 deletions
diff --git a/nptl/pthread_key_create.c b/nptl/pthread_key_create.c index 5b725c56e2..46c5d7b7ff 100644 --- a/nptl/pthread_key_create.c +++ b/nptl/pthread_key_create.c @@ -1,4 +1,4 @@ -/* Copyright (C) 2002-2021 Free Software Foundation, Inc. + /* Copyright (C) 2002-2021 Free Software Foundation, Inc. This file is part of the GNU C Library. Contributed by Ulrich Drepper <drepper@redhat.com>, 2002. @@ -19,10 +19,10 @@ #include <errno.h> #include "pthreadP.h" #include <atomic.h> - +#include <shlib-compat.h> int -__pthread_key_create (pthread_key_t *key, void (*destr) (void *)) +___pthread_key_create (pthread_key_t *key, void (*destr) (void *)) { /* Find a slot in __pthread_keys which is unused. */ for (size_t cnt = 0; cnt < PTHREAD_KEYS_MAX; ++cnt) @@ -47,5 +47,15 @@ __pthread_key_create (pthread_key_t *key, void (*destr) (void *)) return EAGAIN; } -weak_alias (__pthread_key_create, pthread_key_create) -hidden_def (__pthread_key_create) +versioned_symbol (libc, ___pthread_key_create, __pthread_key_create, + GLIBC_2_34); +libc_hidden_ver (___pthread_key_create, __pthread_key_create) + +versioned_symbol (libc, ___pthread_key_create, pthread_key_create, + GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34) +compat_symbol (libpthread, ___pthread_key_create, __pthread_key_create, + GLIBC_2_0); +compat_symbol (libpthread, ___pthread_key_create, pthread_key_create, + GLIBC_2_0); +#endif |