mirror of
git://sourceware.org/git/glibc.git
synced 2024-11-21 01:12:26 +08:00
17 lines
231 B
C
17 lines
231 B
C
|
#include <dlfcn.h>
|
||
|
#include <stdio.h>
|
||
|
|
||
|
int
|
||
|
foo (int i)
|
||
|
{
|
||
|
void *h = dlopen ("unload6mod2.so", RTLD_LAZY);
|
||
|
if (h == NULL)
|
||
|
{
|
||
|
puts ("dlopen unload6mod2.so failed");
|
||
|
return 1;
|
||
|
}
|
||
|
|
||
|
dlclose (h);
|
||
|
return i + 8;
|
||
|
}
|