123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263 |
- #include "pthreadP.h"
- #include <fork.h>
- extern void *__dso_handle __attribute__ ((__weak__,
- __visibility__ ("hidden")));
- int
- #ifndef __pthread_atfork
- attribute_hidden
- #endif
- __pthread_atfork (
- void (*prepare) (void),
- void (*parent) (void),
- void (*child) (void))
- {
- 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
|