summaryrefslogtreecommitdiff
path: root/ext/dl/eg/main.c
diff options
context:
space:
mode:
Diffstat (limited to 'ext/dl/eg/main.c')
-rw-r--r--ext/dl/eg/main.c28
1 files changed, 0 insertions, 28 deletions
diff --git a/ext/dl/eg/main.c b/ext/dl/eg/main.c
deleted file mode 100644
index ac0155453e..0000000000
--- a/ext/dl/eg/main.c
+++ /dev/null
@@ -1,28 +0,0 @@
-#include <dlfcn.h>
-#include <stdio.h>
-
-main(argc, argv, arge)
-int argc;
-char **argv;
-char **arge;
-{
- void *obj;
- void (*proc)();
- void *obj1;
- void (*proc1)();
-
- if (!(obj = dlopen("test", 1)))
- fprintf(stderr, "%s\n", dlerror());
- if (!(obj1 = dlopen("test1", 1)))
- fprintf(stderr, "%s\n", dlerror());
- proc = (void (*)())dlsym(obj, "test");
- proc1 = (void (*)())dlsym(obj1, "test1");
- proc();
- proc1();
- dlclose(obj);
-}
-
-void print()
-{
- printf("got here!\n");
-}