summaryrefslogtreecommitdiff
path: root/sysdeps/generic/pt-init-specific.c
diff options
context:
space:
mode:
authorSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-06 03:03:30 +0100
committerSamuel Thibault <samuel.thibault@ens-lyon.org>2018-01-06 03:03:30 +0100
commitada00b30cf36beecdf4b900b67ffb602fd0b89ca (patch)
treefe3378dcb34fae36e93ea0b4711aba21389f7b86 /sysdeps/generic/pt-init-specific.c
parent7d4a84731cd80a1ef711c83535c6340f0e2b143f (diff)
Move key management to sysdeps/generic
Now that it does not use libihash any more, it is not hurd-dependent any more. * sysdeps/hurd/pt-destroy-specific.c: Move to sysdeps/generic/pt-destroy-specific.c * sysdeps/hurd/pt-key-create.c: Move to sysdeps/generic/pt-key-create.c. * sysdeps/hurd/pt-key-delete.c: Move to sysdeps/generic/pt-key-delete.c. * sysdeps/hurd/pt-key.h: Move to sysdeps/generic/pt-key.h. * sysdeps/hurd/pt-getspecific.c: Move to sysdeps/generic/pt-getspecific.c. * sysdeps/hurd/pt-init-specific.c: Move to sysdeps/generic/pt-init-specific.c. * sysdeps/hurd/pt-setspecific.c: Move to sysdeps/generic/pt-setspecific.c.
Diffstat (limited to 'sysdeps/generic/pt-init-specific.c')
-rw-r--r--sysdeps/generic/pt-init-specific.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/sysdeps/generic/pt-init-specific.c b/sysdeps/generic/pt-init-specific.c
index 00744fb..78958cb 100644
--- a/sysdeps/generic/pt-init-specific.c
+++ b/sysdeps/generic/pt-init-specific.c
@@ -1,4 +1,4 @@
-/* __pthread_init_specific. Generic version.
+/* __pthread_init_specific. Hurd version.
Copyright (C) 2002 Free Software Foundation, Inc.
This file is part of the GNU C Library.
@@ -18,10 +18,14 @@
Boston, MA 02111-1307, USA. */
#include <pthread.h>
+#include <stdlib.h>
+
#include <pt-internal.h>
error_t
__pthread_init_specific (struct __pthread *thread)
{
+ thread->thread_specifics = 0;
+ thread->thread_specifics_size = 0;
return 0;
}