From 124e025864bb39732c71fc60c1443d5680881a0a Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Tue, 26 Jun 2018 15:13:54 +0200 Subject: Run thread shutdown functions in an explicit order This removes the __libc_thread_subfreeres hook in favor of explict calls. Reviewed-by: Carlos O'Donell --- include/rpc/rpc.h | 2 +- include/string.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) (limited to 'include') diff --git a/include/rpc/rpc.h b/include/rpc/rpc.h index 327d84319e..f5cee6caef 100644 --- a/include/rpc/rpc.h +++ b/include/rpc/rpc.h @@ -45,7 +45,7 @@ extern void __rpc_thread_svc_cleanup (void) attribute_hidden; extern void __rpc_thread_clnt_cleanup (void) attribute_hidden; extern void __rpc_thread_key_cleanup (void) attribute_hidden; -extern void __rpc_thread_destroy (void); +extern void __rpc_thread_destroy (void) attribute_hidden; __libc_tsd_define (extern, struct rpc_thread_variables *, RPC_VARS) diff --git a/include/string.h b/include/string.h index bb4922cbbe..4d622f1c03 100644 --- a/include/string.h +++ b/include/string.h @@ -50,6 +50,9 @@ extern int __ffs (int __i) __attribute__ ((const)); extern char *__strerror_r (int __errnum, char *__buf, size_t __buflen); +/* Called as part of the thread shutdown sequence. */ +void __strerror_thread_freeres (void) attribute_hidden; + /* Get _STRING_ARCH_unaligned. */ #include #endif -- cgit v1.2.3