mirror of
https://github.com/postgres/postgres.git
synced 2025-08-31 17:02:12 +03:00
This is the minimal version of the Darwin support patch from
Bruce Hartzler <bruceh@mail.utexas.edu>. It contains shared library support, regression test map, and the usual template files. The dynamic loader is missing, the spin lock code apparently doesn't assemble due to syntax problems, and semaphores are to be hoped for from Apple.
This commit is contained in:
36
src/backend/port/dynloader/darwin.c
Normal file
36
src/backend/port/dynloader/darwin.c
Normal file
@@ -0,0 +1,36 @@
|
||||
/*
|
||||
* This is a place holder until someone supplies a dynamic loader
|
||||
* interface for this platform.
|
||||
*
|
||||
* $Header: /cvsroot/pgsql/src/backend/port/dynloader/darwin.c,v 1.1 2000/10/31 19:55:19 petere Exp $
|
||||
*/
|
||||
|
||||
#include "postgres.h"
|
||||
#include "fmgr.h"
|
||||
#include "utils/dynamic_loader.h"
|
||||
#include "dynloader.h"
|
||||
|
||||
void *
|
||||
pg_dlopen(char *filename)
|
||||
{
|
||||
return (void *) NULL;
|
||||
}
|
||||
|
||||
PGFunction
|
||||
pg_dlsym(void *handle, char *funcname)
|
||||
{
|
||||
return NULL;
|
||||
}
|
||||
|
||||
void
|
||||
pg_dlclose(void *handle)
|
||||
{
|
||||
}
|
||||
|
||||
char *
|
||||
pg_dlerror()
|
||||
{
|
||||
static char errmsg[] = "the dynamic loader for darwin doesn't exist yet";
|
||||
|
||||
return errmsg;
|
||||
}
|
5
src/backend/port/dynloader/darwin.h
Normal file
5
src/backend/port/dynloader/darwin.h
Normal file
@@ -0,0 +1,5 @@
|
||||
/* $Header: /cvsroot/pgsql/src/backend/port/dynloader/darwin.h,v 1.1 2000/10/31 19:55:19 petere Exp $ */
|
||||
void *pg_dlopen(char *filename);
|
||||
PGFunction pg_dlsym(void *handle, char *funcname);
|
||||
void pg_dlclose(void *handle);
|
||||
char *pg_dlerror();
|
Reference in New Issue
Block a user