1 2 3 4 5 6 7
#include "pthread_impl.h" void *pthread_getspecific(pthread_key_t k) { struct pthread *self = __pthread_self(); return self->tsd[k]; }