aboutsummaryrefslogtreecommitdiff
path: root/arclib/prom.c
diff options
context:
space:
mode:
authorFlorian Lohoff <flo@rfc822.org>2008-10-04 13:30:01 +0000
committerGuido Günther <agx@sigxcpu.org>2009-04-26 15:26:25 +0200
commit7ef5cc75cfd3cf93f7edaf2b1b02e557ae16bf7f (patch)
tree1e06945ff9a265fd75d27de5eb57e00d4b45fbf3 /arclib/prom.c
parentf67b21c9ea33de6070de851762fb84b002ae523b (diff)
Remove arc references from common libc and add an prom abstraction
Diffstat (limited to 'arclib/prom.c')
-rw-r--r--arclib/prom.c13
1 files changed, 13 insertions, 0 deletions
diff --git a/arclib/prom.c b/arclib/prom.c
new file mode 100644
index 0000000..7048e11
--- /dev/null
+++ b/arclib/prom.c
@@ -0,0 +1,13 @@
+
+#include <stdio.h>
+#include "arc.h"
+#include "prom.h"
+
+int prom_write(FILE stream, char *string, unsigned long len, unsigned long *rlen) {
+ return ArcWrite(stream, string, len, rlen);
+}
+
+int prom_read(FILE stream, char *string, unsigned long len, unsigned long *rlen) {
+ return ArcRead(stream, string, len, rlen);
+}
+