Back to index

glibc  2.9
unload6mod1.c
Go to the documentation of this file.
00001 #include <dlfcn.h>
00002 #include <stdio.h>
00003 
00004 int
00005 foo (int i)
00006 {
00007   void *h = dlopen ("unload6mod2.so", RTLD_LAZY);
00008   if (h == NULL)
00009     {
00010       puts ("dlopen unload6mod2.so failed");
00011       return 1;
00012     }
00013 
00014   dlclose (h);
00015   return i + 8;
00016 }