mirror of
https://sourceware.org/git/glibc.git
synced 2025-07-29 11:41:21 +03:00
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>
This commit is contained in:
@ -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
|
||||
|
Reference in New Issue
Block a user