mirror of
https://github.com/postgres/postgres.git
synced 2025-08-28 18:48:04 +03:00
Remove BEOS port.
This commit is contained in:
@@ -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);
|
||||
}
|
||||
}
|
@@ -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 */
|
Reference in New Issue
Block a user