summaryrefslogtreecommitdiff
path: root/src/backend/port/univel/port-protos.h
diff options
context:
space:
mode:
authorMarc G. Fournier <scrappy@hub.org>1997-03-25 07:54:53 +0000
committerMarc G. Fournier <scrappy@hub.org>1997-03-25 07:54:53 +0000
commitd2a386d6e35c1791ffcc8f09fe162b0591184f95 (patch)
treedbb15074e28110ac0be0cddfa32585145cd89738 /src/backend/port/univel/port-protos.h
parent52ab6525fb344b1a76c089d7edde0e29de751558 (diff)
MOre univel port patches/files from:
"Michael P. Snyder" <msnyder@hawkeye.huntersmoon.com>
Diffstat (limited to 'src/backend/port/univel/port-protos.h')
-rw-r--r--src/backend/port/univel/port-protos.h40
1 files changed, 40 insertions, 0 deletions
diff --git a/src/backend/port/univel/port-protos.h b/src/backend/port/univel/port-protos.h
new file mode 100644
index 00000000000..8c5cfb0f019
--- /dev/null
+++ b/src/backend/port/univel/port-protos.h
@@ -0,0 +1,40 @@
+/*-------------------------------------------------------------------------
+ *
+ * port-protos.h--
+ * port-specific prototypes for Intel x86/Intel SVR4
+ *
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ * port-protos.h,v 1.2 1995/03/17 06:40:18 andrew Exp
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef PORT_PROTOS_H
+#define PORT_PROTOS_H
+
+#include <dlfcn.h>
+#include "fmgr.h" /* for func_ptr */
+#include "utils/dynamic_loader.h"
+
+/* dynloader.c */
+/*
+ * Dynamic Loader on Intel x86/Intel SVR4.
+ *
+ * this dynamic loader uses the system dynamic loading interface for shared
+ * libraries (ie. dlopen/dlsym/dlclose). The user must specify a shared
+ * library as the file to be dynamically loaded.
+ *
+ */
+#define pg_dlopen(f) dlopen(f,RTLD_LAZY)
+#define pg_dlsym dlsym
+#define pg_dlclose dlclose
+#define pg_dlerror dlerror
+
+/* port.c */
+extern long random(void);
+extern void srandom(int seed);
+extern int strcasecmp(char *s1,char *s2);
+extern int gethostname(char *name,int namelen);
+
+#endif /* PORT_PROTOS_H */