diff options
Diffstat (limited to 'src/dlfcn/dlopen.c')
| -rw-r--r-- | src/dlfcn/dlopen.c | 39 |
1 files changed, 0 insertions, 39 deletions
diff --git a/src/dlfcn/dlopen.c b/src/dlfcn/dlopen.c deleted file mode 100644 index a8929781..00000000 --- a/src/dlfcn/dlopen.c +++ /dev/null @@ -1,39 +0,0 @@ -#if 0 - -#include <dlfcn.h> -#include <fcntl.h> -#include <stdlib.h> -#include "_dlfcn.h" - -void *dlopen(const char *file, int mode) -{ - if ((mode & (RTLD_LAZY | RTLD_NOW)) == (RTLD_LAZY | RTLD_NOW)) { - return NULL; - } - - if ((mode & (RTLD_GLOBAL | RTLD_LOCAL)) == (RTLD_GLOBAL | RTLD_LOCAL)) { - return NULL; - } - - struct dlhandle *h = malloc(sizeof(*h)); - if (h == NULL) { - return NULL; - } - - h->fd = open(file, O_RDONLY | O_EXEC); - if (h->fd == -1) { - free(h); - return NULL; - } - - /* map and verify file header */ - - return h; -} - -/* -XOPEN(500) -*/ - - -#endif |
