From 2a3d906e217757e3cbb4f3c089a09a4cb9cb8f75 Mon Sep 17 00:00:00 2001 From: Roland McGrath Date: Sat, 22 Feb 2003 01:58:06 +0000 Subject: * malloc/thread-freeres.c: Conditionalize on _LIBC_REENTRANT. * sunrpc/rpc_thread.c: Likewise for text_set_element use. (__rpc_thread_destroy): Add it to __libc_subfreeres too. * include/resolv.h: Add libc_hidden_proto for __res_nclose. * resolv/res_init.c (__res_nclose): Add libc_hidden_def. (res_thread_freeres): New function, on __libc_thread_subfreeres and __libc_subfreeres. * malloc/Versions (libc: GLIBC_PRIVATE): Add __libc_thread_freeres. * sunrpc/Versions (libc: GLIBC_PRIVATE): Removed. --- sunrpc/rpc_thread.c | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'sunrpc') diff --git a/sunrpc/rpc_thread.c b/sunrpc/rpc_thread.c index 9a3d4dbd0c..fbc1cf72fe 100644 --- a/sunrpc/rpc_thread.c +++ b/sunrpc/rpc_thread.c @@ -30,9 +30,13 @@ __rpc_thread_destroy (void) free (tvp->authdes_cache_s); free (tvp->authdes_lru_s); free (tvp); + __libc_tsd_set (RPC_VARS, NULL); } } +#ifdef _LIBC_REENTRANT text_set_element (__libc_thread_subfreeres, __rpc_thread_destroy); +#endif +text_set_element (__libc_subfreeres, __rpc_thread_destroy); /* -- cgit v1.2.3