summaryrefslogtreecommitdiffstats
path: root/libpthread/nptl/pthread_atfork.c
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/pthread_atfork.c
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/pthread_atfork.c')
-rw-r--r--libpthread/nptl/pthread_atfork.c11
1 files changed, 0 insertions, 11 deletions
diff --git a/libpthread/nptl/pthread_atfork.c b/libpthread/nptl/pthread_atfork.c
index 6437d6490..e0fc3cf75 100644
--- a/libpthread/nptl/pthread_atfork.c
+++ b/libpthread/nptl/pthread_atfork.c
@@ -41,13 +41,6 @@
extern void *__dso_handle __attribute__ ((__weak__));
-/* Hide the symbol so that no definition but the one locally in the
- executable or DSO is used. */
-int
-#ifndef __pthread_atfork
-/* Don't mark the compatibility function as hidden. */
-attribute_hidden
-#endif
__pthread_atfork (prepare, parent, child)
void (*prepare) (void);
void (*parent) (void);
@@ -56,8 +49,4 @@ __pthread_atfork (prepare, parent, child)
return __register_atfork (prepare, parent, child,
&__dso_handle == NULL ? NULL : __dso_handle);
}
-#ifndef __pthread_atfork
-extern int pthread_atfork (void (*prepare) (void), void (*parent) (void),
- void (*child) (void)) attribute_hidden;
strong_alias (__pthread_atfork, pthread_atfork)
-#endif