diff options
author | Marc G. Fournier <scrappy@hub.org> | 1997-12-20 04:48:11 +0000 |
---|---|---|
committer | Marc G. Fournier <scrappy@hub.org> | 1997-12-20 04:48:11 +0000 |
commit | 1783963cab9e938b04b936f61d287384d7f11f2a (patch) | |
tree | 9201e565281b1ad6a4d3af0c4b5a63b8659ea2ce /src/backend/port/hpux/dynloader.c | |
parent | 44be631dd8eb0f66222c779ca4eff49df5a30d76 (diff) |
Move more to dynloader subdir
Diffstat (limited to 'src/backend/port/hpux/dynloader.c')
-rw-r--r-- | src/backend/port/hpux/dynloader.c | 59 |
1 files changed, 0 insertions, 59 deletions
diff --git a/src/backend/port/hpux/dynloader.c b/src/backend/port/hpux/dynloader.c deleted file mode 100644 index 972654adb50..00000000000 --- a/src/backend/port/hpux/dynloader.c +++ /dev/null @@ -1,59 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dynloader.c-- - * dynamic loader for HP-UX using the shared library mechanism - * - * Copyright (c) 1994, Regents of the University of California - * - * - * IDENTIFICATION - * $Header: /cvsroot/pgsql/src/backend/port/hpux/Attic/dynloader.c,v 1.3 1997/09/08 02:26:15 momjian Exp $ - * - * NOTES - * all functions are defined here -- it's impossible to trace the - * shl_* routines from the bundled HP-UX debugger. - * - *------------------------------------------------------------------------- - */ -/* System includes */ -#include <stdio.h> -#include <a.out.h> -#include <dl.h> -#include "c.h" -#include "fmgr.h" -#include "utils/dynamic_loader.h" -#include "port-protos.h" - -void * -pg_dlopen(char *filename) -{ - shl_t handle = shl_load(filename, BIND_DEFERRED, 0); - - return ((void *) handle); -} - -func_ptr -pg_dlsym(void *handle, char *funcname) -{ - func_ptr f; - - if (shl_findsym((shl_t *) & handle, funcname, TYPE_PROCEDURE, &f) == -1) - { - f = (func_ptr) NULL; - } - return (f); -} - -void -pg_dlclose(void *handle) -{ - shl_unload((shl_t) handle); -} - -char * -pg_dlerror() -{ - static char errmsg[] = "shl_load failed"; - - return errmsg; -} |