summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--libgcompat/pthread.c23
1 files changed, 17 insertions, 6 deletions
diff --git a/libgcompat/pthread.c b/libgcompat/pthread.c
index 9333554..4ebbe6b 100644
--- a/libgcompat/pthread.c
+++ b/libgcompat/pthread.c
@@ -2,17 +2,28 @@
#include "alias.h" /* weak_alias */
-int __register_atfork(void (*prepare)(void), void (*parent)(void),
- void (*child)(void))
+/**
+ * Underlying function for pthread_cleanup_push.
+ */
+void __pthread_register_cancel(void *buf)
{
- return pthread_atfork(prepare, parent, child);
}
-weak_alias(__register_atfork, register_atfork);
-void __pthread_register_cancel(void *buf)
+/**
+ * Underlying function for pthread_cleanup_push.
+ */
+void __pthread_unregister_cancel(void *buf)
{
}
-void __pthread_unregister_cancel(void *buf)
+/**
+ * Register fork handlers.
+ *
+ * LSB 5.0: LSB-Core-generic/baselib---register-atfork.html
+ */
+int __register_atfork(void (*prepare)(void), void (*parent)(void),
+ void (*child)(void), void *__dso_handle)
{
+ return pthread_atfork(prepare, parent, child);
}
+weak_alias(__register_atfork, register_atfork);