Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
P
Postgres FD Implementation
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Abuhujair Javed
Postgres FD Implementation
Commits
c87bc779
Commit
c87bc779
authored
May 14, 2001
by
Peter Eisentraut
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Use RTLD_GLOBAL flag for dlopen-style dynamic loaders.
parent
83966889
Changes
18
Hide whitespace changes
Inline
Side-by-side
Showing
18 changed files
with
44 additions
and
49 deletions
+44
-49
src/backend/port/dynloader/aix.h
src/backend/port/dynloader/aix.h
+2
-2
src/backend/port/dynloader/bsdi.c
src/backend/port/dynloader/bsdi.c
+2
-2
src/backend/port/dynloader/bsdi.h
src/backend/port/dynloader/bsdi.h
+8
-8
src/backend/port/dynloader/dgux.h
src/backend/port/dynloader/dgux.h
+2
-2
src/backend/port/dynloader/freebsd.h
src/backend/port/dynloader/freebsd.h
+2
-2
src/backend/port/dynloader/irix5.h
src/backend/port/dynloader/irix5.h
+1
-1
src/backend/port/dynloader/linux.h
src/backend/port/dynloader/linux.h
+10
-11
src/backend/port/dynloader/netbsd.h
src/backend/port/dynloader/netbsd.h
+2
-2
src/backend/port/dynloader/openbsd.h
src/backend/port/dynloader/openbsd.h
+2
-2
src/backend/port/dynloader/osf.h
src/backend/port/dynloader/osf.h
+2
-2
src/backend/port/dynloader/sco.h
src/backend/port/dynloader/sco.h
+2
-2
src/backend/port/dynloader/solaris.h
src/backend/port/dynloader/solaris.h
+2
-2
src/backend/port/dynloader/sunos4.h
src/backend/port/dynloader/sunos4.h
+2
-2
src/backend/port/dynloader/svr4.h
src/backend/port/dynloader/svr4.h
+2
-2
src/backend/port/dynloader/univel.h
src/backend/port/dynloader/univel.h
+1
-1
src/backend/port/dynloader/unixware.h
src/backend/port/dynloader/unixware.h
+1
-1
src/backend/port/dynloader/win.h
src/backend/port/dynloader/win.h
+1
-1
src/template/bsdi
src/template/bsdi
+0
-4
No files found.
src/backend/port/dynloader/aix.h
View file @
c87bc779
/*
* $Id: aix.h,v 1.
5 2001/03/22 03:59:42 momjian
Exp $
* $Id: aix.h,v 1.
6 2001/05/14 21:45:53 petere
Exp $
*
* @(#)dlfcn.h 1.4 revision of 95/04/25 09:36:52
* This is an unpublished work copyright (c) 1992 HELIOS Software GmbH
...
...
@@ -58,7 +58,7 @@ extern "C"
#include "utils/dynamic_loader.h"
#define pg_dlopen(f) dlopen(
f, RTLD_LAZY
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/bsdi.c
View file @
c87bc779
...
...
@@ -15,7 +15,7 @@
*
*-------------------------------------------------------------------------
*/
#if
def PRE_BSDI_2_1
#if
ndef HAVE_DLOPEN
#include "postgres.h"
extern
char
pg_pathname
[];
...
...
@@ -95,4 +95,4 @@ pg_dlerror()
return
dld_strerror
(
dld_errno
);
}
#endif
#endif
/* not HAVE_DLOPEN */
src/backend/port/dynloader/bsdi.h
View file @
c87bc779
/*-------------------------------------------------------------------------
*
* port_protos.h
* port-specific prototypes for SunOS 4
* Dynamic loader interface for BSD/OS
*
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
...
...
@@ -16,19 +15,20 @@
#include "utils/dynamic_loader.h"
/* dynloader.c */
#ifndef PRE_BSDI_2_1
#ifdef HAVE_DLOPEN
#include <dlfcn.h>
#define pg_dlopen(f) dlopen(
f, RTLD_LAZY
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
#else
#else
/* not HAVE_DLOPEN */
#define pg_dlsym(handle, funcname) ((PGFunction) dld_get_func((funcname)))
#define pg_dlclose(handle) ({ dld_unlink_by_file(handle, 1); free(handle); })
#endif
/* port.c
*/
#endif
/* not HAVE_DLOPEN
*/
#endif
/* PORT_PROTOS_H */
src/backend/port/dynloader/dgux.h
View file @
c87bc779
...
...
@@ -5,7 +5,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: dgux.h,v 1.
9 2001/02/10 02:31:26 tgl
Exp $
* $Id: dgux.h,v 1.
10 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -23,7 +23,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f,1
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/freebsd.h
View file @
c87bc779
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: freebsd.h,v 1.
8 2001/02/10 02:31:26 tgl
Exp $
* $Id: freebsd.h,v 1.
9 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,7 +33,7 @@
* begin with an underscore is fairly tricky, and some versions of
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
*/
#define pg_dlopen(f) BSD44_derived_dlopen(
f, 1
)
#define pg_dlopen(f) BSD44_derived_dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym BSD44_derived_dlsym
#define pg_dlclose BSD44_derived_dlclose
#define pg_dlerror BSD44_derived_dlerror
...
...
src/backend/port/dynloader/irix5.h
View file @
c87bc779
...
...
@@ -26,7 +26,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f,1
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/linux.h
View file @
c87bc779
/*-------------------------------------------------------------------------
*
* port_protos.h
* port-specific prototypes for Linux
* Dynamic loader interface for Linux
*
*
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: linux.h,v 1.1
1 2001/02/10 02:31:26 tgl
Exp $
* $Id: linux.h,v 1.1
2 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -15,13 +14,13 @@
#define PORT_PROTOS_H
#include "utils/dynamic_loader.h"
#ifdef
__ELF__
#ifdef
HAVE_DLOPEN
#include <dlfcn.h>
#endif
/* dynloader.c */
#ifndef __ELF__
#ifndef HAVE_DLOPEN
#ifndef HAVE_DLD_H
#define pg_dlsym(handle, funcname) (NULL)
#define pg_dlclose(handle) ({})
...
...
@@ -29,14 +28,14 @@
#define pg_dlsym(handle, funcname) ((PGFunction) dld_get_func((funcname)))
#define pg_dlclose(handle) ({ dld_unlink_by_file(handle, 1); free(handle); })
#endif
#else
/* #define pg_dlopen(f) dlopen(f, 1) */
#define pg_dlopen(f) dlopen(f, 2)
#else
/* HAVE_DLOPEN */
#define pg_dlopen(f) dlopen((f), RTLD_LAZY | RTLD_GLOBAL)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
#endif
/* port.c
*/
#endif
/* HAVE_DLOPEN
*/
#endif
/* PORT_PROTOS_H */
src/backend/port/dynloader/netbsd.h
View file @
c87bc779
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: netbsd.h,v 1.
3 2001/02/10 02:31:26 tgl
Exp $
* $Id: netbsd.h,v 1.
4 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,7 +33,7 @@
* begin with an underscore is fairly tricky, and some versions of
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
*/
#define pg_dlopen(f) BSD44_derived_dlopen(
f, 1
)
#define pg_dlopen(f) BSD44_derived_dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym BSD44_derived_dlsym
#define pg_dlclose BSD44_derived_dlclose
#define pg_dlerror BSD44_derived_dlerror
...
...
src/backend/port/dynloader/openbsd.h
View file @
c87bc779
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: openbsd.h,v 1.
3 2001/02/10 02:31:26 tgl
Exp $
* $Id: openbsd.h,v 1.
4 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -33,7 +33,7 @@
* begin with an underscore is fairly tricky, and some versions of
* NetBSD (like 1.0, and 1.0A pre June 1995) have no dlerror.)
*/
#define pg_dlopen(f) BSD44_derived_dlopen(
f, 1
)
#define pg_dlopen(f) BSD44_derived_dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym BSD44_derived_dlsym
#define pg_dlclose BSD44_derived_dlclose
#define pg_dlerror BSD44_derived_dlerror
...
...
src/backend/port/dynloader/osf.h
View file @
c87bc779
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: osf.h,v 1.
2 2001/01/24 19:43:04 momjian
Exp $
* $Id: osf.h,v 1.
3 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -28,7 +28,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f, RTLD_LAZY
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym(h, f) ((PGFunction) dlsym(h, f))
#define pg_dlclose(h) dlclose(h)
#define pg_dlerror() dlerror()
...
...
src/backend/port/dynloader/sco.h
View file @
c87bc779
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: sco.h,v 1.
7 2001/02/10 02:31:26 tgl
Exp $
* $Id: sco.h,v 1.
8 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -26,7 +26,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f,1
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/solaris.h
View file @
c87bc779
/* $Header: /cvsroot/pgsql/src/backend/port/dynloader/solaris.h,v 1.
3 2001/03/22 03:59:43 momjian
Exp $ */
/* $Header: /cvsroot/pgsql/src/backend/port/dynloader/solaris.h,v 1.
4 2001/05/14 21:45:53 petere
Exp $ */
#ifndef DYNLOADER_SOLARIS_H
#define DYNLOADER_SOLARIS_H
...
...
@@ -6,7 +6,7 @@
#include <dlfcn.h>
#include "utils/dynamic_loader.h"
#define pg_dlopen(f) dlopen(
f,1
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/sunos4.h
View file @
c87bc779
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: sunos4.h,v 1.
7 2001/02/10 02:31:26 tgl
Exp $
* $Id: sunos4.h,v 1.
8 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -26,7 +26,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f, 1
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/svr4.h
View file @
c87bc779
...
...
@@ -7,7 +7,7 @@
* Portions Copyright (c) 1996-2001, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $Id: svr4.h,v 1.
7 2001/02/10 02:31:26 tgl
Exp $
* $Id: svr4.h,v 1.
8 2001/05/14 21:45:53 petere
Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -26,7 +26,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f,RTLD_LAZY
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/univel.h
View file @
c87bc779
...
...
@@ -26,7 +26,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f,RTLD_LAZY
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/unixware.h
View file @
c87bc779
...
...
@@ -26,7 +26,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f,RTLD_LAZY
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/backend/port/dynloader/win.h
View file @
c87bc779
...
...
@@ -26,7 +26,7 @@
* library as the file to be dynamically loaded.
*
*/
#define pg_dlopen(f) dlopen(
f,1
)
#define pg_dlopen(f) dlopen(
(f), RTLD_LAZY | RTLD_GLOBAL
)
#define pg_dlsym dlsym
#define pg_dlclose dlclose
#define pg_dlerror dlerror
...
...
src/template/bsdi
View file @
c87bc779
...
...
@@ -4,10 +4,6 @@ case $host_cpu in
i?86) CFLAGS="$CFLAGS -m486";;
esac
case $host_os in
bsdi2.0) CFLAGS="$CFLAGS -DPRE_BSDI_2_1";;
esac
case $host_os in
bsdi2.0 | bsdi2.1 | bsdi3*)
CC=gcc2
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment