X-Git-Url: http://nsz.repo.hu/git/?a=blobdiff_plain;f=src%2Fthread%2Fpthread_getspecific.c;h=d9342a560f7bc6c9341b27911ae353d03a78fb1f;hb=7396ef0a05b834bf92c4f268a3336c0bc10c3593;hp=a6ca27d0d50169c3c905adab5dad08f285804662;hpb=0b44a0315b47dd8eced9f3b7f31580cf14bbfc01;p=musl diff --git a/src/thread/pthread_getspecific.c b/src/thread/pthread_getspecific.c index a6ca27d0..d9342a56 100644 --- a/src/thread/pthread_getspecific.c +++ b/src/thread/pthread_getspecific.c @@ -1,8 +1,11 @@ #include "pthread_impl.h" +#include -void *pthread_getspecific(pthread_key_t k) +static void *__pthread_getspecific(pthread_key_t k) { - struct pthread *self = pthread_self(); - if (!self->tsd) return 0; + struct pthread *self = __pthread_self(); return self->tsd[k]; } + +weak_alias(__pthread_getspecific, pthread_getspecific); +weak_alias(__pthread_getspecific, tss_get);