add pthread_atfork interface
[musl] / src / thread / pthread_getspecific.c
1 #include "pthread_impl.h"
2
3 void *pthread_getspecific(pthread_key_t k)
4 {
5         struct pthread *self = pthread_self();
6         if (!self->tsd) return 0;
7         return self->tsd[k];
8 }