use weak symbols for the POSIX functions that will be used by C threads
[musl] / src / thread / pthread_getspecific.c
1 #include "pthread_impl.h"
2
3 static void *__pthread_getspecific(pthread_key_t k)
4 {
5         struct pthread *self = __pthread_self();
6         return self->tsd[k];
7 }
8
9 weak_alias(__pthread_getspecific, pthread_getspecific);