diff options
author | Eric Andersen <andersen@codepoet.org> | 2003-09-01 20:45:21 +0000 |
---|---|---|
committer | Eric Andersen <andersen@codepoet.org> | 2003-09-01 20:45:21 +0000 |
commit | 0b949f43abe3e11462ed59fed79299840f404851 (patch) | |
tree | 52f8beadcf6a1bba9d79650ee7b7b8ce78a14566 /test/ldso/dltest2.c | |
parent | 9efccabb26eed2b4b4ccb4a89561e1212b81d649 (diff) |
kill these too.
Diffstat (limited to 'test/ldso/dltest2.c')
-rw-r--r-- | test/ldso/dltest2.c | 50 |
1 files changed, 0 insertions, 50 deletions
diff --git a/test/ldso/dltest2.c b/test/ldso/dltest2.c deleted file mode 100644 index 91bafa40e..000000000 --- a/test/ldso/dltest2.c +++ /dev/null @@ -1,50 +0,0 @@ -#include <fcntl.h> -#include <stdlib.h> -#include <stdio.h> -#include <dlfcn.h> -#include "thread_db.h" - -extern void _dlinfo(); - -int main(int argc, char **argv) { - void *handle; - td_err_e (*td_init_p) (void); - - fprintf(stderr, "Attempting to dlopen() libpthread.so with RTLD_NOW\n"); - handle = dlopen ("libpthread.so", RTLD_NOW); - if (!handle) { - fputs (dlerror(), stderr); - exit(1); - } - - td_init_p = dlsym (handle, "__pthread_initialize"); - if (td_init_p == NULL) { - fprintf(stderr, "yipe! __pthread_initialize() failed!\n"); - return EXIT_FAILURE; - } -#if 0 //def __UCLIBC__ - _dlinfo(); /* not supported by ld.so.2 */ -#endif - dlclose(handle); - - - fprintf(stderr, "Attempting to dlopen() libpthread.so with RTLD_LAZY\n"); - handle = dlopen ("libpthread.so", RTLD_LAZY); - if (!handle) { - fputs (dlerror(), stderr); - exit(1); - } - - td_init_p = dlsym (handle, "__pthread_initialize"); - if (td_init_p == NULL) { - fprintf(stderr, "yipe! __pthread_initialize() failed!"); - return EXIT_FAILURE; - } -#if 0 //def __UCLIBC__ - _dlinfo(); /* not supported by ld.so.2 */ -#endif - dlclose(handle); - - fprintf(stderr, "Everything worked as expected.\n"); - return EXIT_SUCCESS; -} |