(__pselect): No need to enable async cancellation here. This is done in select.
[glibc.git] / elf / tst-tls9.c
blobe317696dfc348b61954a6f12d59030be9d6c4955
1 #include <dlfcn.h>
2 #include <stdio.h>
3 #include <stdlib.h>
5 #include <link.h>
6 #include <tls.h>
8 #define TEST_FUNCTION do_test ()
9 static int
10 do_test (void)
12 #ifdef USE_TLS
13 static const char modname1[] = "tst-tlsmod5.so";
14 static const char modname2[] = "tst-tlsmod6.so";
15 int result = 0;
17 void *h1 = dlopen (modname1, RTLD_LAZY);
18 if (h1 == NULL)
20 printf ("cannot open '%s': %s\n", modname1, dlerror ());
21 result = 1;
23 void *h2 = dlopen (modname2, RTLD_LAZY);
24 if (h2 == NULL)
26 printf ("cannot open '%s': %s\n", modname2, dlerror ());
27 result = 1;
30 if (h1 != NULL)
31 dlclose (h1);
32 if (h2 != NULL)
33 dlclose (h2);
35 return result;
36 #else
37 return 0;
38 #endif
42 #include "../test-skeleton.c"