diff options
author | Bruce Momjian <bruce@momjian.us> | 1998-07-19 04:17:13 +0000 |
---|---|---|
committer | Bruce Momjian <bruce@momjian.us> | 1998-07-19 04:17:13 +0000 |
commit | 0624f3dcbd990bc9cf9b2e9740cdd68de72227c9 (patch) | |
tree | 05bea5c250581f041f38a305786709c53c9b0524 /src/backend/port/dynloader/unixware.h | |
parent | 5b4ca671470e5f74f37e52a6744eb13d5db78e6f (diff) | |
download | postgresql-0624f3dcbd990bc9cf9b2e9740cdd68de72227c9.tar.gz postgresql-0624f3dcbd990bc9cf9b2e9740cdd68de72227c9.zip |
My mailer munged the intro text in my last post. Here is the text
in a more readable form. -- I am submitting the following patches
to the June 6, 1998 snapshot of PostgreSQL. These patches implement
a port of PostgreSQL to SCO UnixWare 7, and updates the Univel port
(UnixWare 2.x). The patched files, and the reason
for the patch are:
File Reason for the patch ---------------
---------------------------------------------------------------
src/backend/port/dynloader/unixware.c src/backend/port/dynloader/unixware.h
src/include/port/unixware.h src/makefiles/Makefile.unixware
src/template/unixware
Created for the UNIXWARE port.
src/include/port/univel.h
Modifed this file to work with the changes made to
s_lock.[ch].
src/backend/storage/buffer/s_lock.c src/include/storage/s_lock.h
Moved the UNIXWARE (and Univel) tas() function from
s_lock.c to s_lock.h. The UnixWare compiler asm
construct is treated as a macro and needs to be in
the s_lock.h file. I also reworked the tas()
function to correct some errors in the code.
src/include/version.h.in
The use of the ## operator with quoted strings in
the VERSION macro caused problems with the UnixWare
C compiler. I removed the ## operators since they
were not needed in this case. The macro expands
into a sequence of quoted strings that will be
concatenated by any ANSI C compiler.
src/config.guess
This script was modified to recognize SCO UnixWare
7.
src/configure src/configure.in
The configure script was modified to recognize SCO
UnixWare 7.
Billy G. Allie
Diffstat (limited to 'src/backend/port/dynloader/unixware.h')
-rw-r--r-- | src/backend/port/dynloader/unixware.h | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/src/backend/port/dynloader/unixware.h b/src/backend/port/dynloader/unixware.h new file mode 100644 index 00000000000..edc3a3b18e0 --- /dev/null +++ b/src/backend/port/dynloader/unixware.h @@ -0,0 +1,34 @@ +/*------------------------------------------------------------------------- + * + * unixware.h-- + * port-specific prototypes for Intel x86/UNIXWARE 7 + * + * + * Copyright (c) 1994, Regents of the University of California + * + * unixware.h,v 1.2 1995/03/17 06:40:18 andrew Exp + * + *------------------------------------------------------------------------- + */ +#ifndef PORT_PROTOS_H +#define PORT_PROTOS_H + +#include <dlfcn.h> +#include "fmgr.h" /* for func_ptr */ +#include "utils/dynamic_loader.h" + + /* dynloader.c */ +/* + * Dynamic Loader on Intel x86/Intel SVR4. + * + * this dynamic loader uses the system dynamic loading interface for shared + * libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared + * library as the file to be dynamically loaded. + * + */ +#define pg_dlopen(f) dlopen(f,RTLD_LAZY) +#define pg_dlsym dlsym +#define pg_dlclose dlclose +#define pg_dlerror dlerror + +#endif /* PORT_PROTOS_H */ |