summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/sysdeps/unix/sysv
diff options
context:
space:
mode:
author"Steven J. Hill" <sjhill@realitydiluted.com>2006-01-15 05:30:47 +0000
committer"Steven J. Hill" <sjhill@realitydiluted.com>2006-01-15 05:30:47 +0000
commit402cb6dedfb3d271c7aab269ad9b79b04c21b62d (patch)
tree003ce7df109ff21b4561376c4c4bc690b8b7ba3d /libpthread/nptl/sysdeps/unix/sysv
parent46850f098985cb7ca49b7617dd49257634da8561 (diff)
downloaduClibc-alpine-402cb6dedfb3d271c7aab269ad9b79b04c21b62d.tar.bz2
uClibc-alpine-402cb6dedfb3d271c7aab269ad9b79b04c21b62d.tar.xz
Clean up '_res' such that it will now work for, NPTL, linuxthreads and
even no threads. Fix 'pthread_atfork' function and clean up duplicate of '__set_errno' that is not needed.
Diffstat (limited to 'libpthread/nptl/sysdeps/unix/sysv')
-rw-r--r--libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c29
1 files changed, 0 insertions, 29 deletions
diff --git a/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c b/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c
index a3bb3c34c..18b9893d9 100644
--- a/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c
+++ b/libpthread/nptl/sysdeps/unix/sysv/linux/register-atfork.c
@@ -106,32 +106,3 @@ __register_atfork (prepare, parent, child, dso_handle)
return newp == NULL ? ENOMEM : 0;
}
-hidden_def (__register_atfork)
-
-
-#ifndef __UCLIBC__
-libc_freeres_fn (free_mem)
-{
- /* Get the lock to not conflict with running forks. */
- lll_lock (__fork_lock);
-
- /* No more fork handlers. */
- __fork_handlers = NULL;
-
- /* Free eventually alloated memory blocks for the object pool. */
- struct fork_handler_pool *runp = fork_handler_pool.next;
-
- memset (&fork_handler_pool, '\0', sizeof (fork_handler_pool));
-
- /* Release the lock. */
- lll_unlock (__fork_lock);
-
- /* We can free the memory after releasing the lock. */
- while (runp != NULL)
- {
- struct fork_handler_pool *oldp = runp;
- runp = runp->next;
- free (oldp);
- }
-}
-#endif