diff options
author | Ulrich Drepper <drepper@redhat.com> | 2003-10-02 18:56:20 +0000 |
---|---|---|
committer | Ulrich Drepper <drepper@redhat.com> | 2003-10-02 18:56:20 +0000 |
commit | 1b6f6a92e34fc726b6dfc249d90e8812f9d757a8 (patch) | |
tree | 16ad0d8aec0c7bfe4612181b79f858ce92483e13 /sysdeps | |
parent | 4d961dc7aa520e17b15e1fe024be8d6ccdadf87e (diff) | |
download | glibc-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')
-rw-r--r-- | sysdeps/mach/hurd/malloc-machine.h | 10 |
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) */ |