diff options
author | Bruce Momjian <bruce@momjian.us> | 2006-01-05 03:01:38 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 2006-01-05 03:01:38 +0000 |
commit | 44f90212236bfb6fc1279e95dc8fa315104d964e (patch) | |
tree | 2f63a7547c3d27de26003be69d60d48fb03d855f /src/backend/port/dynloader | |
parent | 6f84b2da75d3c5d4d401c94f92c9ac184a6faf5a (diff) | |
download | postgresql-44f90212236bfb6fc1279e95dc8fa315104d964e.tar.gz |
Remove BEOS port.
Diffstat (limited to 'src/backend/port/dynloader')
-rw-r--r-- | src/backend/port/dynloader/beos.c | 69 | ||||
-rw-r--r-- | src/backend/port/dynloader/beos.h | 17 |
2 files changed, 0 insertions, 86 deletions
diff --git a/src/backend/port/dynloader/beos.c b/src/backend/port/dynloader/beos.c deleted file mode 100644 index 1fbb6992cb..0000000000 --- a/src/backend/port/dynloader/beos.c +++ /dev/null @@ -1,69 +0,0 @@ -/*------------------------------------------------------------------------- - * - * dynloader.c - * Dynamic Loader for Postgres for BeOS - * - * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * - * IDENTIFICATION - * $PostgreSQL: pgsql/src/backend/port/dynloader/beos.c,v 1.15 2004/12/31 22:00:32 pgsql Exp $ - * - *------------------------------------------------------------------------- - */ - -#include "postgres.h" - -#include "utils/dynamic_loader.h" - - -void * -pg_dlopen(char *filename) -{ - image_id *im; - - /* Handle memory allocation to store the Id of the shared object */ - im = (image_id *) (malloc(sizeof(image_id))); - - /* Add-on loading */ - *im = beos_dl_open(filename); - - return im; -} - - -char * -pg_dlerror() -{ - static char errmsg[] = "Load Add-On failed"; - - return errmsg; -} - -PGFunction -pg_dlsym(void *handle, char *funcname) -{ - PGFunction fpt; - - /* Checking that "Handle" is valid */ - if ((handle) && ((*(int *) (handle)) >= 0)) - { - beos_dl_sym(*((int *) (handle)), funcname, (void **) &fpt); - return fpt; - } - elog(WARNING, "add-on not loaded correctly"); - return NULL; -} - -void -pg_dlclose(void *handle) -{ - /* Checking that "Handle" is valid */ - if ((handle) && ((*(int *) (handle)) >= 0)) - { - if (beos_dl_close(*(image_id *) handle) != B_OK) - elog(WARNING, "error while unloading add-on"); - free(handle); - } -} diff --git a/src/backend/port/dynloader/beos.h b/src/backend/port/dynloader/beos.h deleted file mode 100644 index 457fd87986..0000000000 --- a/src/backend/port/dynloader/beos.h +++ /dev/null @@ -1,17 +0,0 @@ -/*------------------------------------------------------------------------- - * - * port_protos.h - * port-specific prototypes for BeOS - * - * - * Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group - * Portions Copyright (c) 1994, Regents of the University of California - * - * $PostgreSQL: pgsql/src/backend/port/dynloader/beos.h,v 1.11 2004/12/31 22:00:32 pgsql Exp $ - * - *------------------------------------------------------------------------- - */ -#ifndef PORT_PROTOS_H -#define PORT_PROTOS_H - -#endif /* PORT_PROTOS_H */ |