1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-29 11:41:21 +03:00

nptl: Move pthread_testcancel into libc

The symbol was moved using scripts/move-symbol-to-libc.py.

A temporary __pthread_testcancel@@GLIBC_PRIVATE export is created
because it is needed by the semaphore implementation.

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer
2021-05-05 17:15:57 +02:00
parent 7cbf1c8416
commit 0197c1bc60
65 changed files with 79 additions and 36 deletions

View File

@ -18,12 +18,18 @@
#include <stdlib.h>
#include "pthreadP.h"
#include <shlib-compat.h>
void
__pthread_testcancel (void)
___pthread_testcancel (void)
{
CANCELLATION_P (THREAD_SELF);
}
strong_alias (__pthread_testcancel, pthread_testcancel)
hidden_def (__pthread_testcancel)
versioned_symbol (libc, ___pthread_testcancel, pthread_testcancel, GLIBC_2_34);
versioned_symbol (libc, ___pthread_testcancel, __pthread_testcancel,
GLIBC_PRIVATE);
libc_hidden_ver (___pthread_testcancel, __pthread_testcancel)
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_0, GLIBC_2_34)
compat_symbol (libc, ___pthread_testcancel, pthread_testcancel, GLIBC_2_0);
#endif