diff options
author | Florian Lohoff <flo@rfc822.org> | 2008-10-04 13:30:01 +0000 |
---|---|---|
committer | Guido Günther <agx@sigxcpu.org> | 2009-04-26 15:26:25 +0200 |
commit | 7ef5cc75cfd3cf93f7edaf2b1b02e557ae16bf7f (patch) | |
tree | 1e06945ff9a265fd75d27de5eb57e00d4b45fbf3 /arclib | |
parent | f67b21c9ea33de6070de851762fb84b002ae523b (diff) |
Remove arc references from common libc and add an prom abstraction
Diffstat (limited to 'arclib')
-rw-r--r-- | arclib/Makefile | 4 | ||||
-rw-r--r-- | arclib/prom.c | 13 |
2 files changed, 15 insertions, 2 deletions
diff --git a/arclib/Makefile b/arclib/Makefile index c519786..af16014 100644 --- a/arclib/Makefile +++ b/arclib/Makefile @@ -1,10 +1,10 @@ # # Copyright 1999 Silicon Graphics, Inc. # -CFLAGS += -O2 -Werror -Wall -mno-abicalls -G 0 -fno-pic +CFLAGS += -O2 -Werror -I../common -Wall -mno-abicalls -G 0 -fno-pic TARGETS = libarc.a -OBJECTS = arc.o +OBJECTS = arc.o prom.o all: $(TARGETS) 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); +} + |