aboutsummaryrefslogtreecommitdiff
path: root/src/thread/pthread_getspecific.c
blob: 1a4e2d140ca4e8d0d10105964ad4d2884b31879e (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
#include "pthread_impl.h"
#include <threads.h>

static void *__pthread_getspecific(pthread_key_t k)
{
	struct pthread *self = __pthread_self();
	return self->tsd[k];
}

weak_alias(__pthread_getspecific, pthread_getspecific);
weak_alias(__pthread_getspecific, tss_get);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif