From 11bfcffb6a70997a62dbf28b32a55f7cc5d53725 Mon Sep 17 00:00:00 2001 From: David Leonard Date: Thu, 6 Jan 2000 15:07:07 +0000 Subject: rename thread_storage to unithread_storage to avoid object name conflict --- lib/libc/thread/unithread_storage.c | 40 +++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 lib/libc/thread/unithread_storage.c (limited to 'lib/libc/thread/unithread_storage.c') 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 +#include +#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; +} -- cgit v1.2.3