diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-06 15:56:37 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-06 15:56:37 +0200 |
commit | f1af331c4e87dee7d91e404b9f746c99ca3f2c71 (patch) | |
tree | ef6ff8254bf6fbed0f2a9132abc66b996197f4ef /nptl/pthread_barrier_init.c | |
parent | 43b3746aff2f20c5865f559a76896fc6b131c09c (diff) | |
download | glibc-f1af331c4e87dee7d91e404b9f746c99ca3f2c71.tar glibc-f1af331c4e87dee7d91e404b9f746c99ca3f2c71.tar.gz glibc-f1af331c4e87dee7d91e404b9f746c99ca3f2c71.tar.bz2 glibc-f1af331c4e87dee7d91e404b9f746c99ca3f2c71.zip |
nptl: Move pthread_barrier_init into libc
The symbol was moved using scripts/move-symbol-to-libc.py.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/pthread_barrier_init.c')
-rw-r--r-- | nptl/pthread_barrier_init.c | 15 |
1 files changed, 12 insertions, 3 deletions
diff --git a/nptl/pthread_barrier_init.c b/nptl/pthread_barrier_init.c index b14243e618..3a13d2a756 100644 --- a/nptl/pthread_barrier_init.c +++ b/nptl/pthread_barrier_init.c @@ -20,7 +20,7 @@ #include "pthreadP.h" #include <futex-internal.h> #include <kernel-features.h> - +#include <shlib-compat.h> static const struct pthread_barrierattr default_barrierattr = { @@ -29,7 +29,7 @@ static const struct pthread_barrierattr default_barrierattr = int -__pthread_barrier_init (pthread_barrier_t *barrier, +___pthread_barrier_init (pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count) { ASSERT_TYPE_SIZE (pthread_barrier_t, __SIZEOF_PTHREAD_BARRIER_T); @@ -61,4 +61,13 @@ __pthread_barrier_init (pthread_barrier_t *barrier, return 0; } -weak_alias (__pthread_barrier_init, pthread_barrier_init) +versioned_symbol (libc, ___pthread_barrier_init, pthread_barrier_init, + GLIBC_2_34); +versioned_symbol (libc, ___pthread_barrier_init, __pthread_barrier_init, + GLIBC_PRIVATE); +libc_hidden_ver (___pthread_barrier_init, __pthread_barrier_init) + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34) +compat_symbol (libpthread, ___pthread_barrier_init, pthread_barrier_init, + GLIBC_2_2); +#endif |