Home
last modified time | relevance | path

Searched refs:h (Results 1 – 25 of 54) sorted by relevance

123

/elf/
A Dtst-leaks1.c9 void *h; in do_test() local
14 h = dlopen ("$ORIGIN/tst-leaks1.o", RTLD_LAZY); in do_test()
15 if (h != NULL) in do_test()
19 dlclose (h); in do_test()
28 h = dlopen (i < 5 in do_test()
31 if (h != NULL) in do_test()
35 dlclose (h); in do_test()
A Dunload4.c12 void *h; in main() local
14 h = dlopen ("unload4mod1.so", RTLD_LAZY); in main()
15 if (h == NULL) in main()
20 fn = dlsym (h, "foo"); in main()
32 dlclose (h); in main()
33 h = dlopen ("unload4mod3.so", RTLD_LAZY); in main()
34 fn = dlsym (h, "mod3fn2"); in main()
46 dlclose (h); in main()
A Dlateglobal.c9 void *h[2]; in main() local
15 h[0] = dlopen ("ltglobmod1.so", RTLD_LAZY); in main()
16 if (h[0] == NULL) in main()
22 h[1] = dlopen ("ltglobmod2.so", RTLD_LAZY); in main()
23 if (h[1] == NULL) in main()
32 fp = dlsym (h[1], "foo"); in main()
43 dlclose (h[1]); in main()
44 dlclose (h[0]); in main()
A Dunload2.c21 void *h[3]; in main() local
25 h[0] = dlopen ("unload2mod.so", RTLD_LAZY); in main()
26 h[1] = dlopen ("unload2mod.so", RTLD_LAZY); in main()
27 if (h[0] == NULL || h[1] == NULL) in main()
29 h[2] = dlopen ("unload2dep.so", RTLD_LAZY); in main()
30 if (h[2] == NULL) in main()
36 dlclose (h[0]); in main()
41 dlclose (h[1]); in main()
46 fp = dlsym (h[2], "foo"); in main()
53 dlclose (h[2]); in main()
A Dunload3.c8 void *h = dlopen ("unload3mod2.so", RTLD_GLOBAL | RTLD_NOW); in main() local
9 if (g == NULL || h == NULL) in main()
11 printf ("dlopen unload3mod{1,2}.so failed: %p %p\n", g, h); in main()
14 dlclose (h); in main()
18 h = dlopen ("unload3mod4.so", RTLD_GLOBAL | RTLD_NOW); in main()
19 if (g == NULL || h == NULL) in main()
21 printf ("dlopen unload3mod{3,4}.so failed: %p %p\n", g, h); in main()
26 fn = dlsym (h, "bar"); in main()
A Dtst-tls7.c14 void *h; in do_test() local
20 h = dlopen (modname, RTLD_LAZY); in do_test()
21 if (h == NULL) in do_test()
31 modid = ((struct link_map *) h)->l_tls_modid; in do_test()
32 else if (((struct link_map *) h)->l_tls_modid != (size_t) modid) in do_test()
35 i, ((struct link_map *) h)->l_tls_modid, modid); in do_test()
39 fp = dlsym (h, "in_dso2"); in do_test()
48 dlclose (h); in do_test()
A Dunload5.c8 void *h = dlopen ("unload3mod2.so", RTLD_GLOBAL | RTLD_NOW); in main() local
9 if (g == NULL || h == NULL) in main()
11 printf ("dlopen unload3mod{1,2}.so failed: %p %p\n", g, h); in main()
15 dlclose (h); in main()
19 h = dlopen ("unload3mod4.so", RTLD_GLOBAL | RTLD_NOW); in main()
20 if (g == NULL || h == NULL) in main()
22 printf ("dlopen unload3mod{3,4}.so failed: %p %p\n", g, h); in main()
27 fn = dlsym (h, "bar"); in main()
A Dtst-tls16.c8 void *h = dlopen ("tst-tlsmod16a.so", RTLD_LAZY | RTLD_GLOBAL); in do_test() local
9 if (h == NULL) in do_test()
15 void *p = dlsym (h, "tlsvar"); in do_test()
23 h = dlopen ("tst-tlsmod16b.so", RTLD_NOW | RTLD_GLOBAL); in do_test()
24 if (h == NULL) in do_test()
32 void *(*fp) (void) = (void *(*) (void)) dlsym (h, "in_dso"); in do_test()
A Dtst-tls6.c16 void *h; in do_test() local
22 h = dlopen (modname, RTLD_LAZY); in do_test()
23 if (h == NULL) in do_test()
33 modid = ((struct link_map *) h)->l_tls_modid; in do_test()
34 else if (((struct link_map *) h)->l_tls_modid != modid) in do_test()
37 i, ((struct link_map *) h)->l_tls_modid, modid); in do_test()
41 foop = dlsym (h, "foo"); in do_test()
50 fp = dlsym (h, "in_dso"); in do_test()
59 foop2 = dlsym (h, "foo"); in do_test()
77 dlclose (h); in do_test()
A Dtst-dlmopen1.c10 void *h = dlopen (LIBC_SO, RTLD_LAZY|RTLD_NOLOAD); in do_test() local
11 if (h == NULL) in do_test()
18 if (dlinfo (h, RTLD_DI_LMID, &ns) != 0) in do_test()
31 if (dlclose (h) != 0) in do_test()
38 h = dlmopen (LM_ID_NEWLM, TEST_SO, RTLD_LAZY); in do_test()
39 if (h == NULL) in do_test()
47 if (dlinfo (h, RTLD_DI_LMID, &ns) != 0) in do_test()
60 int (*fct) (Lmid_t) = dlsym (h, "foo"); in do_test()
70 if (dlclose (h) != 0) in do_test()
A Dtst-tls15.c8 void *h = dlopen ("tst-tlsmod15a.so", RTLD_NOW); in do_test() local
9 if (h != NULL) in do_test()
15 h = dlopen ("tst-tlsmod15b.so", RTLD_NOW); in do_test()
16 if (h == NULL) in do_test()
22 int (*fp) (void) = (int (*) (void)) dlsym (h, "in_dso"); in do_test()
A Dconstload1.c12 void *h; in main() local
17 h = dlopen ("constload2.so", RTLD_LAZY | RTLD_GLOBAL); in main()
18 if (h == NULL) in main()
20 foo = dlsym (h, "foo"); in main()
26 if (dlclose (h) != 0) in main()
A Dtst-tls-dlinfo.c13 void *h; in do_test() local
15 h = dlopen (modname, RTLD_LAZY); in do_test()
16 if (h == NULL) in do_test()
22 fp = dlsym (h, "in_dso"); in do_test()
30 if (dlinfo (h, RTLD_DI_TLS_MODID, &modid)) in do_test()
39 if (dlinfo (h, RTLD_DI_TLS_DATA, &block)) in do_test()
53 foop = dlsym (h, "foo"); in do_test()
66 if (dlinfo (h, RTLD_DI_TLS_DATA, &block)) in do_test()
79 dlclose (h); in do_test()
A Dtst-tls4.c13 void *h; in do_test() local
15 h = dlopen (modname, RTLD_LAZY); in do_test()
16 if (h == NULL) in do_test()
22 fp = dlsym (h, "in_dso"); in do_test()
31 foop = dlsym (h, "foo"); in do_test()
43 dlclose (h); in do_test()
A Dtst-align.c28 void *h; in do_test() local
30 h = dlopen (modname, RTLD_LAZY); in do_test()
31 if (h == NULL) in do_test()
37 fp = dlsym (h, "in_dso"); in do_test()
46 dlclose (h); in do_test()
A Dtst-tls5.c14 void *h; in do_test() local
16 h = dlopen (modname, RTLD_LAZY); in do_test()
17 if (h == NULL) in do_test()
23 foop = dlsym (h, "foo"); in do_test()
32 fp = dlsym (h, "in_dso"); in do_test()
41 foop2 = dlsym (h, "foo"); in do_test()
59 dlclose (h); in do_test()
A Dtst-pathopt.c10 void *h; in do_test() local
16 h = dlopen ("renamed.so", RTLD_LAZY); in do_test()
17 if (h == NULL) in do_test()
23 fp = dlsym (h, "in_renamed"); in do_test()
32 if (dlclose (h) != 0) in do_test()
A Dreldepmod4.c10 void *h; in call_me() local
14 h = dlopen ("reldepmod1.so", RTLD_LAZY); in call_me()
15 if (h == NULL) in call_me()
21 fp = dlsym (h, "foo"); in call_me()
30 if (dlclose (h) != 0) in call_me()
A Dunload6mod2.c5 static void *h; variable
10 h = dlopen ("unload6mod3.so", RTLD_LAZY); in mod2init()
11 if (h == NULL) in mod2init()
22 dlclose (h); in mod2fini()
A Dunload6mod3.c5 static void *h; variable
10 h = dlopen ("unload6mod1.so", RTLD_LAZY); in mod3init()
11 if (h == NULL) in mod3init()
22 dlclose (h); in mod3fini()
A Difuncmain3.c42 void *h = dlopen ("ifuncmod3.so", RTLD_LAZY); in main() local
43 if (h == NULL) in main()
49 p = dlsym (h, "foo"); in main()
58 f = dlsym (h, "get_foo_p"); in main()
65 ret = dlsym (h, "ret_foo"); in main()
80 f = dlsym (h, "get_foo_hidden_p"); in main()
87 ret = dlsym (h, "ret_foo_hidden"); in main()
100 f = dlsym (h, "get_foo_protected_p"); in main()
107 ret = dlsym (h, "ret_foo_protected"); in main()
122 if (dlclose (h) != 0) in main()
A Dorigtest.c9 void *h; in main() local
13 h = dlopen ("${ORIGIN}/testobj1.so", RTLD_LAZY); in main()
14 if (h == NULL) in main()
18 fp = dlsym (h, "obj1func1"); in main()
26 if (dlclose (h) != 0) in main()
A Dunload8.c7 void *h = dlopen ("$ORIGIN/unload8mod1.so", RTLD_LAZY); in main() local
8 if (h == NULL) in main()
22 int (*mod1) (void) = dlsym (h, "mod1"); in main()
30 dlclose (h); in main()
A Dltglobmod2.c11 void *h; in foo() local
15 h = dlopen ("ltglobmod1.so", RTLD_GLOBAL | RTLD_LAZY); in foo()
16 if (h == NULL) in foo()
30 dlclose (h); in foo()
A Dunload6mod1.c7 void *h = dlopen ("unload6mod2.so", RTLD_LAZY); in foo() local
8 if (h == NULL) in foo()
14 dlclose (h); in foo()

Completed in 16 milliseconds

123