summaryrefslogtreecommitdiff
path: root/emu/port/cache.c
diff options
context:
space:
mode:
authorCharles.Forsyth <devnull@localhost>2009-03-25 15:55:14 +0000
committerCharles.Forsyth <devnull@localhost>2009-03-25 15:55:14 +0000
commitdfd1934d5e1ddbeb326f77fc0e52307c801a1a3e (patch)
treef1e8b23278caae95e01d88b00421d6c3642357ef /emu/port/cache.c
parent78dfdcbd59dc8f36975e7695933e3f753957474c (diff)
x20090325-1554
Diffstat (limited to 'emu/port/cache.c')
-rw-r--r--emu/port/cache.c45
1 files changed, 45 insertions, 0 deletions
diff --git a/emu/port/cache.c b/emu/port/cache.c
new file mode 100644
index 00000000..fff1c4e1
--- /dev/null
+++ b/emu/port/cache.c
@@ -0,0 +1,45 @@
+#include "dat.h"
+#include "fns.h"
+
+/*
+ * no cache in hosted mode
+ */
+void
+cinit(void)
+{
+}
+
+void
+copen(Chan *c)
+{
+ c->flag &= ~CCACHE;
+}
+
+int
+cread(Chan *c, uchar *b, int n, vlong off)
+{
+ USED(c);
+ USED(b);
+ USED(n);
+ USED(off);
+ return 0;
+}
+
+void
+cwrite(Chan *c, uchar *buf, int n, vlong off)
+{
+ USED(c);
+ USED(buf);
+ USED(n);
+ USED(off);
+}
+
+void
+cupdate(Chan *c, uchar *buf, int n, vlong off)
+{
+ USED(c);
+ USED(buf);
+ USED(n);
+ USED(off);
+}
+