From f749fe49346578793625f1324e90798656b3acfd Mon Sep 17 00:00:00 2001
From: "Marc G. Fournier" <scrappy@hub.org>
Date: Fri, 14 Mar 1997 06:01:40 +0000
Subject: [PATCH] Last of Dan's hidden tar balls :)

---
 src/backend/port/linuxalpha/Makefile      | 34 +++++++++++++++++++++++
 src/backend/port/linuxalpha/machine.h     | 18 ++++++++++++
 src/backend/port/linuxalpha/port-protos.h | 25 +++++++++++++++++
 src/backend/port/linuxalpha/port.c        | 13 +++++++++
 4 files changed, 90 insertions(+)
 create mode 100644 src/backend/port/linuxalpha/Makefile
 create mode 100644 src/backend/port/linuxalpha/machine.h
 create mode 100644 src/backend/port/linuxalpha/port-protos.h
 create mode 100644 src/backend/port/linuxalpha/port.c

diff --git a/src/backend/port/linuxalpha/Makefile b/src/backend/port/linuxalpha/Makefile
new file mode 100644
index 00000000000..c3853ef7bd2
--- /dev/null
+++ b/src/backend/port/linuxalpha/Makefile
@@ -0,0 +1,34 @@
+#-------------------------------------------------------------------------
+#
+# Makefile--
+#    Makefile for port/linux
+#
+# IDENTIFICATION
+#    $Header: /cvsroot/pgsql/src/backend/port/linuxalpha/Attic/Makefile,v 1.1 1997/03/14 06:01:11 scrappy Exp $
+#
+#-------------------------------------------------------------------------
+
+SRCDIR = ../../..
+include ../../../Makefile.global
+
+INCLUDE_OPT = -I../.. \
+              -I../../../include
+
+CFLAGS+=$(INCLUDE_OPT)
+
+OBJS = port.o
+
+all: SUBSYS.o
+
+SUBSYS.o: $(OBJS)
+	$(LD) -r -o SUBSYS.o $(OBJS)
+
+depend dep:
+	$(CC) -MM $(INCLUDE_OPT) *.c >depend
+
+clean: 
+	rm -f SUBSYS.o $(OBJS)
+
+ifeq (depend,$(wildcard depend))
+include depend
+endif
diff --git a/src/backend/port/linuxalpha/machine.h b/src/backend/port/linuxalpha/machine.h
new file mode 100644
index 00000000000..78d45d41ba9
--- /dev/null
+++ b/src/backend/port/linuxalpha/machine.h
@@ -0,0 +1,18 @@
+/*-------------------------------------------------------------------------
+ *
+ * machine.h--
+ *    
+ *
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ * $Id: machine.h,v 1.1 1997/03/14 06:01:21 scrappy Exp $
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef MACHINE_H
+#define MACHINE_H
+
+#define BLCKSZ	8192
+
+#endif
diff --git a/src/backend/port/linuxalpha/port-protos.h b/src/backend/port/linuxalpha/port-protos.h
new file mode 100644
index 00000000000..7bcbaf020d1
--- /dev/null
+++ b/src/backend/port/linuxalpha/port-protos.h
@@ -0,0 +1,25 @@
+/*-------------------------------------------------------------------------
+ *
+ * port-protos.h--
+ *    port-specific prototypes for SunOS 4
+ *
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ * $Id: port-protos.h,v 1.1 1997/03/14 06:01:33 scrappy Exp $
+ *
+ *-------------------------------------------------------------------------
+ */
+#ifndef PORT_PROTOS_H
+#define PORT_PROTOS_H
+
+#include "fmgr.h"			/* for func_ptr */
+#include "utils/dynamic_loader.h"
+#include "dlfcn.h"
+
+#define pg_dlopen(f)    dlopen(f, 2)
+#define pg_dlsym        dlsym
+#define pg_dlclose      dlclose
+#define pg_dlerror      dlerror
+
+#endif /* PORT_PROTOS_H */
diff --git a/src/backend/port/linuxalpha/port.c b/src/backend/port/linuxalpha/port.c
new file mode 100644
index 00000000000..a9886814449
--- /dev/null
+++ b/src/backend/port/linuxalpha/port.c
@@ -0,0 +1,13 @@
+/*-------------------------------------------------------------------------
+ *
+ * port.c--
+ *    Linux-specific routines
+ *
+ * Copyright (c) 1994, Regents of the University of California
+ *
+ *
+ * IDENTIFICATION
+ *    $Header: /cvsroot/pgsql/src/backend/port/linuxalpha/Attic/port.c,v 1.1 1997/03/14 06:01:40 scrappy Exp $
+ *
+ *-------------------------------------------------------------------------
+ */
-- 
GitLab