aboutsummaryrefslogtreecommitdiff
path: root/linuxthreads/tst-tls1.h
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2005-07-03 04:40:34 +0000
committerRoland McGrath <roland@gnu.org>2005-07-03 04:40:34 +0000
commit88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b (patch)
tree41b73f55c91439f87d82e5d32b9d8e46e82ce3c1 /linuxthreads/tst-tls1.h
parentd19b1b4f2ff49e085b55e8564b52ca17b028e335 (diff)
downloadglibc-88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b.zip
glibc-88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b.tar.gz
glibc-88e3fbcb5d6829f8980d6bb356b1c0cd7a38187b.tar.bz2
linuxthreads, linuxthreads_db: Directories removed (preserved in ports repository).
Diffstat (limited to 'linuxthreads/tst-tls1.h')
-rw-r--r--linuxthreads/tst-tls1.h28
1 files changed, 0 insertions, 28 deletions
diff --git a/linuxthreads/tst-tls1.h b/linuxthreads/tst-tls1.h
deleted file mode 100644
index b7c14eb..0000000
--- a/linuxthreads/tst-tls1.h
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <stdint.h>
-#include <stdlib.h>
-#include <tls.h>
-
-#if USE_TLS && HAVE___THREAD
-
-struct tls_obj
-{
- const char *name;
- uintptr_t addr;
- size_t size;
- size_t align;
-};
-extern struct tls_obj tls_registry[];
-
-#define TLS_REGISTER(x) \
-static void __attribute__((constructor)) \
-tls_register_##x (void) \
-{ \
- size_t i; \
- for (i = 0; tls_registry[i].name; ++i); \
- tls_registry[i].name = #x; \
- tls_registry[i].addr = (uintptr_t) &x; \
- tls_registry[i].size = sizeof (x); \
- tls_registry[i].align = __alignof__ (x); \
-}
-
-#endif