summaryrefslogtreecommitdiff
path: root/src/dlfcn
diff options
context:
space:
mode:
Diffstat (limited to 'src/dlfcn')
-rw-r--r--src/dlfcn/RTLD_GLOBAL.h5
-rw-r--r--src/dlfcn/RTLD_LAZY.h5
-rw-r--r--src/dlfcn/RTLD_LOCAL.h5
-rw-r--r--src/dlfcn/RTLD_NOW.h5
-rw-r--r--src/dlfcn/_dlfcn.h12
-rw-r--r--src/dlfcn/dlclose.c18
-rw-r--r--src/dlfcn/dlerror.c17
-rw-r--r--src/dlfcn/dlopen.c39
-rw-r--r--src/dlfcn/dlsym.c18
9 files changed, 0 insertions, 124 deletions
diff --git a/src/dlfcn/RTLD_GLOBAL.h b/src/dlfcn/RTLD_GLOBAL.h
deleted file mode 100644
index d9dee8b2..00000000
--- a/src/dlfcn/RTLD_GLOBAL.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#define RTLD_GLOBAL (1<<2)
-
-/*
-XOPEN(500)
-*/
diff --git a/src/dlfcn/RTLD_LAZY.h b/src/dlfcn/RTLD_LAZY.h
deleted file mode 100644
index f123753b..00000000
--- a/src/dlfcn/RTLD_LAZY.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#define RTLD_LAZY (1<<0)
-
-/*
-XOPEN(500)
-*/
diff --git a/src/dlfcn/RTLD_LOCAL.h b/src/dlfcn/RTLD_LOCAL.h
deleted file mode 100644
index 817d3adf..00000000
--- a/src/dlfcn/RTLD_LOCAL.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#define RTLD_LOCAL (1<<3)
-
-/*
-XOPEN(500)
-*/
diff --git a/src/dlfcn/RTLD_NOW.h b/src/dlfcn/RTLD_NOW.h
deleted file mode 100644
index 91b98afb..00000000
--- a/src/dlfcn/RTLD_NOW.h
+++ /dev/null
@@ -1,5 +0,0 @@
-#define RTLD_NOW (1<<1)
-
-/*
-XOPEN(500)
-*/
diff --git a/src/dlfcn/_dlfcn.h b/src/dlfcn/_dlfcn.h
deleted file mode 100644
index fd5e30d0..00000000
--- a/src/dlfcn/_dlfcn.h
+++ /dev/null
@@ -1,12 +0,0 @@
-#ifndef ___DLFCN_H__
-#define ___DLFCN_H__
-
-#include <stddef.h>
-
-struct dlhandle {
- void *base;
- size_t size;
- int fd;
-};
-
-#endif
diff --git a/src/dlfcn/dlclose.c b/src/dlfcn/dlclose.c
deleted file mode 100644
index 9189caec..00000000
--- a/src/dlfcn/dlclose.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#if 0
-
-#include <dlfcn.h>
-#include "_dlfcn.h"
-
-int dlclose(void *handle)
-{
- struct dlhandle *h = handle;
- munmap(h->base, h->size);
- close(h->fd);
-}
-
-/*
-XOPEN(500)
-*/
-
-
-#endif
diff --git a/src/dlfcn/dlerror.c b/src/dlfcn/dlerror.c
deleted file mode 100644
index c2d26dcd..00000000
--- a/src/dlfcn/dlerror.c
+++ /dev/null
@@ -1,17 +0,0 @@
-#if 0
-
-#include <dlfcn.h>
-#include "_dlfcn.h"
-
-char *dlerror(void)
-{
- extern char *__dlerror;
- return __dlerror;
-}
-
-/*
-XOPEN(500)
-*/
-
-
-#endif
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
diff --git a/src/dlfcn/dlsym.c b/src/dlfcn/dlsym.c
deleted file mode 100644
index f4afe83e..00000000
--- a/src/dlfcn/dlsym.c
+++ /dev/null
@@ -1,18 +0,0 @@
-#if 0
-
-#include <dlfcn.h>
-#include "_dlfcn.h"
-
-void *dlsym(void *restrict handle, const char *restrict name)
-{
- struct dlhandle *h = handle;
- (void)name;
- return h;
-}
-
-/*
-XOPEN(500)
-*/
-
-
-#endif