summaryrefslogtreecommitdiff
path: root/src/port/dlopen.c
diff options
context:
space:
mode:
authorThomas Munro <tmunro@postgresql.org>2022-07-08 11:17:47 +1200
committerThomas Munro <tmunro@postgresql.org>2022-07-08 14:05:05 +1200
commit9db300ce6e38411144f1e36dba345a5f91bbdee4 (patch)
tree711b9ce24674f12515da778ca22a9891177f61da /src/port/dlopen.c
parent3c633f32b9c712cc0b4c8d946f0eeae04a3ff51a (diff)
Remove HP-UX port.
HP-UX hardware is no longer produced, build farm coverage recently ended, and there are no known active maintainers targeting this OS. Since there is a major rewrite of the build system in the pipeline for PostgreSQL 16, and that requires development, testing and maintainance for each OS and tool chain, it seems like a good time to drop support for: * HP-UX, the operating system. * HP aCC, the HP-UX native compiler. Reviewed-by: Tom Lane <tgl@sss.pgh.pa.us> Reviewed-by: Andres Freund <andres@anarazel.de> Reviewed-by: Peter Eisentraut <peter.eisentraut@enterprisedb.com> Discussion: https://postgr.es/m/1415825.1656893299%40sss.pgh.pa.us
Diffstat (limited to 'src/port/dlopen.c')
-rw-r--r--src/port/dlopen.c50
1 files changed, 1 insertions, 49 deletions
diff --git a/src/port/dlopen.c b/src/port/dlopen.c
index d441dc8196a..6ff9f4bf64f 100644
--- a/src/port/dlopen.c
+++ b/src/port/dlopen.c
@@ -15,55 +15,7 @@
#include "c.h"
-#if defined(__hpux)
-
-/* System includes */
-#include <a.out.h>
-#include <dl.h>
-
-void *
-dlopen(const char *file, int mode)
-{
- int flags = 0;
-
- if (mode & RTLD_NOW)
- flags |= BIND_IMMEDIATE;
-#ifdef NOT_USED
- if (mode & RTLD_LAZY)
- flags |= BIND_DEFERRED;
-#endif
-
- return shl_load(file, flags | BIND_VERBOSE, 0L);
-}
-
-void *
-dlsym(void *handle, const char *symbol)
-{
- void *value;
-
- if (shl_findsym((shl_t *) & handle, symbol, TYPE_PROCEDURE, &value) == -1)
- return NULL;
- return value;
-}
-
-int
-dlclose(void *handle)
-{
- return shl_unload((shl_t) handle);
-}
-
-char *
-dlerror(void)
-{
- static char errmsg[] = "shl_load failed";
-
- if (errno)
- return strerror(errno);
-
- return errmsg;
-}
-
-#elif defined(WIN32)
+#if defined(WIN32)
static char last_dyn_error[512];