1
0
mirror of https://sourceware.org/git/glibc.git synced 2025-08-08 17:42:12 +03:00

* 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.
This commit is contained in:
Roland McGrath
2003-02-22 01:58:06 +00:00
parent e8783fd53d
commit 2a3d906e21
5 changed files with 42 additions and 2 deletions

View File

@@ -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);
/*