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
d6ac61cd
Commit
d6ac61cd
authored
Aug 16, 2006
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Seems some C compilers think 'restrict' is a fully reserved word.
Per buildfarm results from warthog.
parent
1395ac6c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
11 additions
and
11 deletions
+11
-11
src/backend/utils/fmgr/dfmgr.c
src/backend/utils/fmgr/dfmgr.c
+4
-4
src/backend/utils/init/miscinit.c
src/backend/utils/init/miscinit.c
+5
-5
src/include/fmgr.h
src/include/fmgr.h
+2
-2
No files found.
src/backend/utils/fmgr/dfmgr.c
View file @
d6ac61cd
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.8
8 2006/08/15 18:26:5
8 tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/fmgr/dfmgr.c,v 1.8
9 2006/08/16 04:32:4
8 tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -131,16 +131,16 @@ load_external_function(char *filename, char *funcname,
* function in it. If the same shlib has previously been loaded,
* unload and reload it.
*
* When 'restrict' is true, only libraries in the presumed-secure
* When 'restrict
ed
' is true, only libraries in the presumed-secure
* directory $libdir/plugins may be referenced.
*/
void
load_file
(
const
char
*
filename
,
bool
restrict
)
load_file
(
const
char
*
filename
,
bool
restrict
ed
)
{
char
*
fullname
;
/* Apply security restriction if requested */
if
(
restrict
)
if
(
restrict
ed
)
check_restricted_library_name
(
filename
);
/* Expand the possibly-abbreviated filename to an exact path name */
...
...
src/backend/utils/init/miscinit.c
View file @
d6ac61cd
...
...
@@ -8,7 +8,7 @@
*
*
* IDENTIFICATION
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.15
7 2006/08/15 18:26:59
tgl Exp $
* $PostgreSQL: pgsql/src/backend/utils/init/miscinit.c,v 1.15
8 2006/08/16 04:32:48
tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -1108,10 +1108,10 @@ char *local_preload_libraries_string = NULL;
* load the shared libraries listed in 'libraries'
*
* 'gucname': name of GUC variable, for error reports
* 'restrict': if true, force libraries to be in $libdir/plugins/
* 'restrict
ed
': if true, force libraries to be in $libdir/plugins/
*/
static
void
load_libraries
(
const
char
*
libraries
,
const
char
*
gucname
,
bool
restrict
)
load_libraries
(
const
char
*
libraries
,
const
char
*
gucname
,
bool
restrict
ed
)
{
char
*
rawstring
;
List
*
elemlist
;
...
...
@@ -1144,7 +1144,7 @@ load_libraries(const char *libraries, const char *gucname, bool restrict)
filename
=
pstrdup
(
tok
);
canonicalize_path
(
filename
);
/* If restricting, insert $libdir/plugins if not mentioned already */
if
(
restrict
&&
first_dir_separator
(
filename
)
==
NULL
)
if
(
restrict
ed
&&
first_dir_separator
(
filename
)
==
NULL
)
{
char
*
expanded
;
...
...
@@ -1154,7 +1154,7 @@ load_libraries(const char *libraries, const char *gucname, bool restrict)
pfree
(
filename
);
filename
=
expanded
;
}
load_file
(
filename
,
restrict
);
load_file
(
filename
,
restrict
ed
);
ereport
(
LOG
,
(
errmsg
(
"loaded library
\"
%s
\"
"
,
filename
)));
pfree
(
filename
);
...
...
src/include/fmgr.h
View file @
d6ac61cd
...
...
@@ -11,7 +11,7 @@
* Portions Copyright (c) 1996-2006, PostgreSQL Global Development Group
* Portions Copyright (c) 1994, Regents of the University of California
*
* $PostgreSQL: pgsql/src/include/fmgr.h,v 1.4
6 2006/08/15 18:26:5
9 tgl Exp $
* $PostgreSQL: pgsql/src/include/fmgr.h,v 1.4
7 2006/08/16 04:32:4
9 tgl Exp $
*
*-------------------------------------------------------------------------
*/
...
...
@@ -488,7 +488,7 @@ extern char *Dynamic_library_path;
extern
PGFunction
load_external_function
(
char
*
filename
,
char
*
funcname
,
bool
signalNotFound
,
void
**
filehandle
);
extern
PGFunction
lookup_external_function
(
void
*
filehandle
,
char
*
funcname
);
extern
void
load_file
(
const
char
*
filename
,
bool
restrict
);
extern
void
load_file
(
const
char
*
filename
,
bool
restrict
ed
);
extern
void
**
find_rendezvous_variable
(
const
char
*
varName
);
...
...
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