aboutsummaryrefslogtreecommitdiff
path: root/sysdeps/mach
diff options
context:
space:
mode:
authorUlrich Drepper <drepper@redhat.com>2003-10-02 18:56:20 +0000
committerUlrich Drepper <drepper@redhat.com>2003-10-02 18:56:20 +0000
commit1b6f6a92e34fc726b6dfc249d90e8812f9d757a8 (patch)
tree16ad0d8aec0c7bfe4612181b79f858ce92483e13 /sysdeps/mach
parent4d961dc7aa520e17b15e1fe024be8d6ccdadf87e (diff)
downloadglibc-1b6f6a92e34fc726b6dfc249d90e8812f9d757a8.zip
glibc-1b6f6a92e34fc726b6dfc249d90e8812f9d757a8.tar.gz
glibc-1b6f6a92e34fc726b6dfc249d90e8812f9d757a8.tar.bz2
Update.
2003-10-02 Jeroen Dekkers <jeroen@dekkers.cx> * sysdeps/mach/hurd/malloc-machine.h: Copy the tsd code from the old thread-m.h header too.
Diffstat (limited to 'sysdeps/mach')
-rw-r--r--sysdeps/mach/hurd/malloc-machine.h10
1 files changed, 10 insertions, 0 deletions
diff --git a/sysdeps/mach/hurd/malloc-machine.h b/sysdeps/mach/hurd/malloc-machine.h
index f04947f..70aaf11 100644
--- a/sysdeps/mach/hurd/malloc-machine.h
+++ b/sysdeps/mach/hurd/malloc-machine.h
@@ -53,6 +53,16 @@
/* No we're *not* using pthreads. */
#define __pthread_initialize ((void (*)(void))0)
+/* thread specific data for glibc */
+
+#include <bits/libc-tsd.h>
+
+typedef int tsd_key_t[1]; /* no key data structure, libc magic does it */
+__libc_tsd_define (static, MALLOC) /* declaration/common definition */
+#define tsd_key_create(key, destr) ((void) (key))
+#define tsd_setspecific(key, data) __libc_tsd_set (MALLOC, (data))
+#define tsd_getspecific(key, vptr) ((vptr) = __libc_tsd_get (MALLOC))
+
#include <sysdeps/generic/malloc-machine.h>
#endif /* !defined(_MALLOC_MACHINE_H) */