diff options
author | David Leonard <d@cvs.openbsd.org> | 2000-01-06 15:07:07 +0000 |
---|---|---|
committer | David Leonard <d@cvs.openbsd.org> | 2000-01-06 15:07:07 +0000 |
commit | 11bfcffb6a70997a62dbf28b32a55f7cc5d53725 (patch) | |
tree | 292a4c81b96032c4580ede80fe20b0c26db33bae /lib/libc/thread/unithread_storage.c | |
parent | d2f0bbb91ccc350e820e5b903d63f2994382433d (diff) |
rename thread_storage to unithread_storage to avoid object name conflict
Diffstat (limited to 'lib/libc/thread/unithread_storage.c')
-rw-r--r-- | lib/libc/thread/unithread_storage.c | 40 |
1 files changed, 40 insertions, 0 deletions
diff --git a/lib/libc/thread/unithread_storage.c b/lib/libc/thread/unithread_storage.c new file mode 100644 index 00000000000..456082a8a2b --- /dev/null +++ b/lib/libc/thread/unithread_storage.c @@ -0,0 +1,40 @@ +/* $OpenBSD: unithread_storage.c,v 1.1 2000/01/06 15:07:06 d Exp $ */ +/* + * + */ +/* unthreaded storage allocation helper functions */ + +#include <sys/cdefs.h> +#include <pthread.h> +#include "thread_private.h" + +WEAK_PROTOTYPE(_libc_private_storage_lock); +WEAK_PROTOTYPE(_libc_private_storage_unlock); +WEAK_PROTOTYPE(_libc_private_storage); + +WEAK_ALIAS(_libc_private_storage_lock); +WEAK_ALIAS(_libc_private_storage_unlock); +WEAK_ALIAS(_libc_private_storage); + +void +WEAK_NAME(_libc_private_storage_lock)(mutex) + pthread_mutex_t *mutex; +{ +} + +void +WEAK_NAME(_libc_private_storage_unlock)(mutex) + pthread_mutex_t *mutex; +{ +} + +void * +WEAK_NAME(_libc_private_storage)(key, init, initsz, error) + volatile struct _thread_private_key_struct * key; + void *init; + size_t initsz; + void *error; +{ + + return init; +} |