Back to index

glibc  2.9
tst-dlmopen3.c
Go to the documentation of this file.
00001 #include <dlfcn.h>
00002 #include <stdio.h>
00003 
00004 
00005 static int
00006 do_test (void)
00007 {
00008   void *h = dlmopen (LM_ID_NEWLM, "$ORIGIN/tst-dlmopen1mod.so", RTLD_LAZY);
00009   if (h == NULL)
00010     {
00011       printf ("cannot get handle for %s: %s\n",
00012              "tst-dlmopen1mod.so", dlerror ());
00013       return 1;
00014     }
00015 
00016   /* Do not unload.  */
00017 
00018   return 0;
00019 }
00020 
00021 #define TEST_FUNCTION do_test ()
00022 #include "../test-skeleton.c"