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
b9cb1326
Commit
b9cb1326
authored
Jul 06, 2005
by
Tom Lane
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Sync dlopen error handling for the *BSDs ... seems to me I've done this
before, but they were out of sync again. Per Kris Jurka.
parent
6e2ff6e8
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
5 deletions
+6
-5
src/backend/port/dynloader/freebsd.c
src/backend/port/dynloader/freebsd.c
+4
-3
src/backend/port/dynloader/netbsd.c
src/backend/port/dynloader/netbsd.c
+1
-1
src/backend/port/dynloader/openbsd.c
src/backend/port/dynloader/openbsd.c
+1
-1
No files found.
src/backend/port/dynloader/freebsd.c
View file @
b9cb1326
/*
-
/*
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1996-2005, PostgreSQL Global Development Group
* Portions Copyright (c) 1990 The Regents of the University of California.
* Portions Copyright (c) 1990 The Regents of the University of California.
* All rights reserved.
* All rights reserved.
...
@@ -37,12 +37,13 @@ static char sccsid[] = "@(#)dl.c 5.4 (Berkeley) 2/23/91";
...
@@ -37,12 +37,13 @@ static char sccsid[] = "@(#)dl.c 5.4 (Berkeley) 2/23/91";
#endif
/* LIBC_SCCS and not lint */
#endif
/* LIBC_SCCS and not lint */
#include "postgres.h"
#include "postgres.h"
#include "dynloader.h"
#include <nlist.h>
#include <nlist.h>
#include <link.h>
#include <link.h>
#include <dlfcn.h>
#include <dlfcn.h>
#include "dynloader.h"
static
char
error_message
[
BUFSIZ
];
static
char
error_message
[
BUFSIZ
];
char
*
char
*
...
@@ -67,7 +68,7 @@ BSD44_derived_dlopen(const char *file, int num)
...
@@ -67,7 +68,7 @@ BSD44_derived_dlopen(const char *file, int num)
if
((
vp
=
dlopen
((
char
*
)
file
,
num
))
==
NULL
)
if
((
vp
=
dlopen
((
char
*
)
file
,
num
))
==
NULL
)
snprintf
(
error_message
,
sizeof
(
error_message
),
snprintf
(
error_message
,
sizeof
(
error_message
),
"dlopen
'%s' failed. (%s)
"
,
file
,
dlerror
());
"dlopen
(%s) failed: %s
"
,
file
,
dlerror
());
return
vp
;
return
vp
;
#endif
#endif
}
}
...
...
src/backend/port/dynloader/netbsd.c
View file @
b9cb1326
...
@@ -68,7 +68,7 @@ BSD44_derived_dlopen(const char *file, int num)
...
@@ -68,7 +68,7 @@ BSD44_derived_dlopen(const char *file, int num)
if
((
vp
=
dlopen
((
char
*
)
file
,
num
))
==
NULL
)
if
((
vp
=
dlopen
((
char
*
)
file
,
num
))
==
NULL
)
snprintf
(
error_message
,
sizeof
(
error_message
),
snprintf
(
error_message
,
sizeof
(
error_message
),
"dlopen (%s) failed
"
,
file
);
"dlopen (%s) failed
: %s"
,
file
,
dlerror
()
);
return
vp
;
return
vp
;
#endif
#endif
}
}
...
...
src/backend/port/dynloader/openbsd.c
View file @
b9cb1326
...
@@ -68,7 +68,7 @@ BSD44_derived_dlopen(const char *file, int num)
...
@@ -68,7 +68,7 @@ BSD44_derived_dlopen(const char *file, int num)
if
((
vp
=
dlopen
((
char
*
)
file
,
num
))
==
NULL
)
if
((
vp
=
dlopen
((
char
*
)
file
,
num
))
==
NULL
)
snprintf
(
error_message
,
sizeof
(
error_message
),
snprintf
(
error_message
,
sizeof
(
error_message
),
"dlopen (%s) failed
"
,
file
);
"dlopen (%s) failed
: %s"
,
file
,
dlerror
()
);
return
vp
;
return
vp
;
#endif
#endif
}
}
...
...
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