From 16984701aa5165b77f229cc318e8025ee8cf81b5 Mon Sep 17 00:00:00 2001 From: Mystery Man Date: Mon, 14 May 2001 14:17:54 +0000 Subject: This commit was manufactured by cvs2svn to create branch 'dietlibc'. --- .../dietlibc/libpthread/pthread_setspecific.c | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) create mode 100644 mdk-stage1/dietlibc/libpthread/pthread_setspecific.c (limited to 'mdk-stage1/dietlibc/libpthread/pthread_setspecific.c') diff --git a/mdk-stage1/dietlibc/libpthread/pthread_setspecific.c b/mdk-stage1/dietlibc/libpthread/pthread_setspecific.c new file mode 100644 index 000000000..78339c20b --- /dev/null +++ b/mdk-stage1/dietlibc/libpthread/pthread_setspecific.c @@ -0,0 +1,21 @@ +#include +#include + +#include +#include "thread_internal.h" + +extern struct _thread_key __thread_keys[PTHREAD_KEYS_MAX]; +int pthread_setspecific(pthread_key_t key, const void *value) +{ + int id; + __THREAD_INIT(); + + id=__find_thread_id(getpid()); + if ((key