11 if (dlopen ("testobj1.so", RTLD_GLOBAL
| RTLD_NOW
) == NULL
12 || dlopen ("testobj1.so", RTLD_GLOBAL
| RTLD_NOW
) == NULL
13 || dlopen ("testobj2.so", RTLD_GLOBAL
| RTLD_NOW
) == NULL
14 || dlopen ("testobj3.so", RTLD_GLOBAL
| RTLD_NOW
) == NULL
15 || dlopen ("testobj4.so", RTLD_GLOBAL
| RTLD_NOW
) == NULL
16 || dlopen ("testobj5.so", RTLD_GLOBAL
| RTLD_NOW
) == NULL
)
17 error (EXIT_FAILURE
, 0, "failed to load shared object: %s", dlerror ());
19 h
= dlopen ("failobj.so", RTLD_GLOBAL
| RTLD_NOW
);
21 printf ("h = %p, %s\n", h
, h
== NULL
? "ok" : "fail");