Skip to content
体验新版
项目
组织
正在加载...
登录
切换导航
打开侧边栏
Greenplum
Gpdb
提交
c87bc779
G
Gpdb
项目概览
Greenplum
/
Gpdb
通知
7
Star
1
Fork
0
代码
文件
提交
分支
Tags
贡献者
分支图
Diff
Issue
0
列表
看板
标记
里程碑
合并请求
0
DevOps
流水线
流水线任务
计划
Wiki
0
Wiki
分析
仓库
DevOps
项目成员
Pages
G
Gpdb
项目概览
项目概览
详情
发布
仓库
仓库
文件
提交
分支
标签
贡献者
分支图
比较
Issue
0
Issue
0
列表
看板
标记
里程碑
合并请求
0
合并请求
0
Pages
DevOps
DevOps
流水线
流水线任务
计划
分析
分析
仓库分析
DevOps
Wiki
0
Wiki
成员
成员
收起侧边栏
关闭侧边栏
动态
分支图
创建新Issue
流水线任务
提交
Issue看板
体验新版 GitCode,发现更多精彩内容 >>
提交
c87bc779
编写于
5月 14, 2001
作者:
P
Peter Eisentraut
浏览文件
操作
浏览文件
下载
电子邮件补丁
差异文件
Use RTLD_GLOBAL flag for dlopen-style dynamic loaders.
上级
83966889
变更
18
隐藏空白更改
内联
并排
Showing
18 changed file
with
44 addition
and
49 deletion
+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
未找到文件。
src/backend/port/dynloader/aix.h
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
浏览文件 @
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
...
...
编辑
预览
Markdown
is supported
0%
请重试
或
添加新附件
.
添加附件
取消
You are about to add
0
people
to the discussion. Proceed with caution.
先完成此消息的编辑!
取消
想要评论请
注册
或
登录