diff options
Diffstat (limited to 'test/dlopen/libC.c')
-rw-r--r-- | test/dlopen/libC.c | 30 |
1 files changed, 0 insertions, 30 deletions
diff --git a/test/dlopen/libC.c b/test/dlopen/libC.c deleted file mode 100644 index 84cbbef3d..000000000 --- a/test/dlopen/libC.c +++ /dev/null @@ -1,30 +0,0 @@ -#include <dlfcn.h> -#include <stdio.h> -#include <stdlib.h> - -#define LIBNAME "libB.so" -void _libC_fini(void); -void _libC_fini(void) -{ - printf("libC_fini():finish - atexit()\n"); -} - -void libC_fini(void); -void libC_fini(void) -{ - _libC_fini(); -} - -void libC_func(void); -void libC_func(void) -{ - void *libB; - - libB = dlopen(LIBNAME, RTLD_LAZY); - if (!libB) { - fprintf(stderr, "Could not open ./%s: %s\n", LIBNAME, dlerror()); - exit(1); - } - - atexit(libC_fini); -} |