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
2c9dbc57
Commit
2c9dbc57
authored
Feb 06, 1997
by
Marc G. Fournier
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Various changes to improve/support Mklinux
Submitted by: Tatsuo Ishii
parent
9b914124
Changes
5
Hide whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
29 additions
and
8 deletions
+29
-8
src/backend/port/linux/dynloader.c
src/backend/port/linux/dynloader.c
+12
-1
src/backend/port/linux/port-protos.h
src/backend/port/linux/port-protos.h
+7
-2
src/configure
src/configure
+1
-1
src/configure.in
src/configure.in
+1
-1
src/include/config.h.in
src/include/config.h.in
+8
-3
No files found.
src/backend/port/linux/dynloader.c
View file @
2c9dbc57
...
@@ -10,12 +10,14 @@
...
@@ -10,12 +10,14 @@
*
*
*
*
* IDENTIFICATION
* IDENTIFICATION
* $Header: /cvsroot/pgsql/src/backend/port/linux/Attic/dynloader.c,v 1.
1.1.1 1996/07/09 06:21:44
scrappy Exp $
* $Header: /cvsroot/pgsql/src/backend/port/linux/Attic/dynloader.c,v 1.
2 1997/02/06 08:39:40
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
#include <stdio.h>
#include <stdio.h>
#ifdef HAVE_DLD_H
#include <dld.h>
#include <dld.h>
#endif
#include "postgres.h"
#include "postgres.h"
#include "port-protos.h"
#include "port-protos.h"
#include "utils/elog.h"
#include "utils/elog.h"
...
@@ -26,6 +28,10 @@ extern char pg_pathname[];
...
@@ -26,6 +28,10 @@ extern char pg_pathname[];
void
*
void
*
pg_dlopen
(
char
*
filename
)
pg_dlopen
(
char
*
filename
)
{
{
#ifndef HAVE_DLD_H
elog
(
WARN
,
"dynamic load not supported"
);
return
(
NULL
);
#else
static
int
dl_initialized
=
0
;
static
int
dl_initialized
=
0
;
/*
/*
...
@@ -84,10 +90,15 @@ pg_dlopen(char *filename)
...
@@ -84,10 +90,15 @@ pg_dlopen(char *filename)
}
}
return
(
void
*
)
strdup
(
filename
);
return
(
void
*
)
strdup
(
filename
);
#endif
}
}
char
*
char
*
pg_dlerror
()
pg_dlerror
()
{
{
#ifndef HAVE_DLD_H
return
(
"dynaloader unspported"
);
#else
return
dld_strerror
(
dld_errno
);
return
dld_strerror
(
dld_errno
);
#endif
}
}
src/backend/port/linux/port-protos.h
View file @
2c9dbc57
...
@@ -6,7 +6,7 @@
...
@@ -6,7 +6,7 @@
*
*
* Copyright (c) 1994, Regents of the University of California
* Copyright (c) 1994, Regents of the University of California
*
*
* $Id: port-protos.h,v 1.
1.1.1 1996/07/09 06:21:44
scrappy Exp $
* $Id: port-protos.h,v 1.
2 1997/02/06 08:39:53
scrappy Exp $
*
*
*-------------------------------------------------------------------------
*-------------------------------------------------------------------------
*/
*/
...
@@ -22,8 +22,13 @@
...
@@ -22,8 +22,13 @@
/* dynloader.c */
/* dynloader.c */
#ifndef LINUX_ELF
#ifndef LINUX_ELF
# ifndef HAVE_DLD_H
#define pg_dlsym(handle, funcname) (NULL)
# define pg_dlclose(handle) ({})
# else
#define pg_dlsym(handle, funcname) ((func_ptr) dld_get_func((funcname)))
#define pg_dlsym(handle, funcname) ((func_ptr) dld_get_func((funcname)))
#define pg_dlclose(handle) ({ dld_unlink_by_file(handle, 1); free(handle); })
# define pg_dlclose(handle) ({ dld_unlink_by_file(handle, 1); free(handle); })
# endif
#else
#else
/* #define pg_dlopen(f) dlopen(f, 1) */
/* #define pg_dlopen(f) dlopen(f, 1) */
#define pg_dlopen(f) dlopen(f, 2)
#define pg_dlopen(f) dlopen(f, 2)
...
...
src/configure
View file @
2c9dbc57
...
@@ -2255,7 +2255,7 @@ else
...
@@ -2255,7 +2255,7 @@ else
fi
fi
done
done
for
ac_hdr
in
readline.h history.h
for
ac_hdr
in
readline.h history.h
dld.h
do
do
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
ac_safe
=
`
echo
"
$ac_hdr
"
|
sed
'y%./+-%__p_%'
`
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
echo
$ac_n
"checking for
$ac_hdr
""...
$ac_c
"
1>&6
...
...
src/configure.in
View file @
2c9dbc57
...
@@ -120,7 +120,7 @@ dnl Checks for header files.
...
@@ -120,7 +120,7 @@ dnl Checks for header files.
AC_HEADER_STDC
AC_HEADER_STDC
AC_HEADER_SYS_WAIT
AC_HEADER_SYS_WAIT
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
AC_CHECK_HEADERS(limits.h unistd.h termios.h values.h sys/select.h)
AC_CHECK_HEADERS(readline.h history.h)
AC_CHECK_HEADERS(readline.h history.h
dld.h
)
dnl Checks for typedefs, structures, and compiler characteristics.
dnl Checks for typedefs, structures, and compiler characteristics.
AC_C_CONST
AC_C_CONST
...
...
src/include/config.h.in
View file @
2c9dbc57
...
@@ -32,6 +32,9 @@
...
@@ -32,6 +32,9 @@
/* Set to 1 if you have <history.h> */
/* Set to 1 if you have <history.h> */
#undef HAVE_HISTORY
#undef HAVE_HISTORY
/* Set to 1 if you have <dld.h> */
#undef HAVE_DLD_H
/* Set to 1 if you have isinf() */
/* Set to 1 if you have isinf() */
#undef HAVE_ISINF
#undef HAVE_ISINF
...
@@ -162,9 +165,11 @@
...
@@ -162,9 +165,11 @@
*/
*/
# define JMP_BUF
# define JMP_BUF
# define USE_POSIX_TIME
# define USE_POSIX_TIME
# define NEED_I386_TAS_ASM
# if !defined(PPC)
# define HAS_TEST_AND_SET
# define NEED_I386_TAS_ASM
typedef unsigned char slock_t;
# define HAS_TEST_AND_SET
typedef unsigned char slock_t;
# endif
#endif
#endif
#if defined(nextstep)
#if defined(nextstep)
...
...
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