diff options
author | Florian Weimer <fweimer@redhat.com> | 2021-05-11 11:52:56 +0200 |
---|---|---|
committer | Florian Weimer <fweimer@redhat.com> | 2021-05-11 20:21:27 +0200 |
commit | c4c53e0f56ed14ba2416bb0181e82a9d49eefde0 (patch) | |
tree | 9ff07ab6c5b63d004daf561090e648b7bc053657 /nptl/cleanup_defer.c | |
parent | 3ec8b1c7a921baa673ad9a33e0c63b4571915caa (diff) | |
download | glibc-c4c53e0f56ed14ba2416bb0181e82a9d49eefde0.zip glibc-c4c53e0f56ed14ba2416bb0181e82a9d49eefde0.tar.gz glibc-c4c53e0f56ed14ba2416bb0181e82a9d49eefde0.tar.bz2 |
nptl: Move __pthread_register_cancel_defer, __pthread_unregister_cancel_restore to libc
The symbols were moved using scripts/move-symbol-to-libc.py.
Reviewed-by: Adhemerval Zanella <adhemerval.zanella@linaro.org>
Diffstat (limited to 'nptl/cleanup_defer.c')
-rw-r--r-- | nptl/cleanup_defer.c | 19 |
1 files changed, 16 insertions, 3 deletions
diff --git a/nptl/cleanup_defer.c b/nptl/cleanup_defer.c index 08271e3..6d85359 100644 --- a/nptl/cleanup_defer.c +++ b/nptl/cleanup_defer.c @@ -18,11 +18,11 @@ #include <stdlib.h> #include "pthreadP.h" - +#include <shlib-compat.h> void __cleanup_fct_attribute -__pthread_register_cancel_defer (__pthread_unwind_buf_t *buf) +___pthread_register_cancel_defer (__pthread_unwind_buf_t *buf) { struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf; struct pthread *self = THREAD_SELF; @@ -56,11 +56,17 @@ __pthread_register_cancel_defer (__pthread_unwind_buf_t *buf) /* Store the new cleanup handler info. */ THREAD_SETMEM (self, cleanup_jmp_buf, (struct pthread_unwind_buf *) buf); } +versioned_symbol (libc, ___pthread_register_cancel_defer, + __pthread_register_cancel_defer, GLIBC_2_34); +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34) +compat_symbol (libpthread, ___pthread_register_cancel_defer, + __pthread_register_cancel_defer, GLIBC_2_3_3); +#endif void __cleanup_fct_attribute -__pthread_unregister_cancel_restore (__pthread_unwind_buf_t *buf) +___pthread_unregister_cancel_restore (__pthread_unwind_buf_t *buf) { struct pthread *self = THREAD_SELF; struct pthread_unwind_buf *ibuf = (struct pthread_unwind_buf *) buf; @@ -89,3 +95,10 @@ __pthread_unregister_cancel_restore (__pthread_unwind_buf_t *buf) CANCELLATION_P (self); } } +versioned_symbol (libc, ___pthread_unregister_cancel_restore, + __pthread_unregister_cancel_restore, GLIBC_2_34); + +#if OTHER_SHLIB_COMPAT (libpthread, GLIBC_2_3_3, GLIBC_2_34) +compat_symbol (libpthread, ___pthread_unregister_cancel_restore, + __pthread_unregister_cancel_restore, GLIBC_2_3_3); +#endif |