diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:51 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-04-21 19:49:51 +0200 |
commit | 6f009ea9848a473578ccdebc0dc1ccf50debc047 (patch) | |
tree | 6f50bdd34cb58dda52ecb53f0651d2d5c3baa693 /nptl/pthread_key_create.c | |
parent | 442e8a40da9dfa24aeebf4f1a163f0a58b12cf7e (diff) | |
download | glibc-6f009ea9848a473578ccdebc0dc1ccf50debc047.tar.gz glibc-6f009ea9848a473578ccdebc0dc1ccf50debc047.tar.xz glibc-6f009ea9848a473578ccdebc0dc1ccf50debc047.zip |
nptl: Move pthread_key_create, __pthread_key_create into libc
The symbols have been moved using scripts/move-symbol-to-libc.py.
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 |