1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

nptl: Move pthread_barrier_destroy 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:
Florian Weimer
2021-05-06 15:56:37 +02:00
parent 5633541d3b
commit 43b3746aff
64 changed files with 76 additions and 33 deletions

View File

@@ -20,10 +20,10 @@
#include "pthreadP.h"
#include <atomic.h>
#include <futex-internal.h>
#include <shlib-compat.h>
int
pthread_barrier_destroy (pthread_barrier_t *barrier)
__pthread_barrier_destroy (pthread_barrier_t *barrier)
{
struct pthread_barrier *bar = (struct pthread_barrier *) barrier;
@@ -59,3 +59,10 @@ pthread_barrier_destroy (pthread_barrier_t *barrier)
return 0;
}
versioned_symbol (libc, __pthread_barrier_destroy, pthread_barrier_destroy,
GLIBC_2_34);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_2, GLIBC_2_34)
compat_symbol (libpthread, __pthread_barrier_destroy, pthread_barrier_destroy,
GLIBC_2_2);
#endif