github.com/afumu/libc@v0.0.6/musl/src/thread/pthread_getspecific.c (about) 1 #include "pthread_impl.h" 2 #include <threads.h> 3 4 static void *__pthread_getspecific(pthread_key_t k) 5 { 6 struct pthread *self = __pthread_self(); 7 return self->tsd[k]; 8 } 9 10 weak_alias(__pthread_getspecific, pthread_getspecific); 11 weak_alias(__pthread_getspecific, tss_get);