diff options
Diffstat (limited to 'src/port/dlopen.c')
-rw-r--r-- | src/port/dlopen.c | 50 |
1 files changed, 1 insertions, 49 deletions
diff --git a/src/port/dlopen.c b/src/port/dlopen.c index d441dc8196a..6ff9f4bf64f 100644 --- a/src/port/dlopen.c +++ b/src/port/dlopen.c @@ -15,55 +15,7 @@ #include "c.h" -#if defined(__hpux) - -/* System includes */ -#include <a.out.h> -#include <dl.h> - -void * -dlopen(const char *file, int mode) -{ - int flags = 0; - - if (mode & RTLD_NOW) - flags |= BIND_IMMEDIATE; -#ifdef NOT_USED - if (mode & RTLD_LAZY) - flags |= BIND_DEFERRED; -#endif - - return shl_load(file, flags | BIND_VERBOSE, 0L); -} - -void * -dlsym(void *handle, const char *symbol) -{ - void *value; - - if (shl_findsym((shl_t *) & handle, symbol, TYPE_PROCEDURE, &value) == -1) - return NULL; - return value; -} - -int -dlclose(void *handle) -{ - return shl_unload((shl_t) handle); -} - -char * -dlerror(void) -{ - static char errmsg[] = "shl_load failed"; - - if (errno) - return strerror(errno); - - return errmsg; -} - -#elif defined(WIN32) +#if defined(WIN32) static char last_dyn_error[512]; |