1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-07-30 22:43:12 +03:00

nptl: Move __pthread_cleanup_routine into libc

Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
This commit is contained in:
Florian Weimer
2021-04-21 19:49:50 +02:00
parent f03b78fae4
commit 5715c29e91
64 changed files with 76 additions and 33 deletions

View File

@ -17,11 +17,18 @@
<https://www.gnu.org/licenses/>. */
#include <pthread.h>
#include <shlib-compat.h>
void
__pthread_cleanup_routine (struct __pthread_cleanup_frame *f)
___pthread_cleanup_routine (struct __pthread_cleanup_frame *f)
{
if (f->__do_it)
f->__cancel_routine (f->__cancel_arg);
}
versioned_symbol (libc, ___pthread_cleanup_routine, __pthread_cleanup_routine,
GLIBC_2_34);
#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34)
compat_symbol (libpthread, ___pthread_cleanup_routine,
__pthread_cleanup_routine, GLIBC_2_3_3);
#endif