Back to index

glibc  2.9
tst-tlsmod16b.c
Go to the documentation of this file.
00001 #include <tls.h>
00002 
00003 #if defined HAVE___THREAD && defined HAVE_TLS_MODEL_ATTRIBUTE
00004 extern __thread int tlsvar __attribute__((tls_model("initial-exec")));
00005 #else
00006 extern int tlsvar;
00007 #endif
00008 
00009 void *
00010 in_dso (void)
00011 {
00012   return &tlsvar;
00013 }