summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMiles Bader <miles@gnu.org>1997-07-17 20:10:53 +0000
committerMiles Bader <miles@gnu.org>1997-07-17 20:10:53 +0000
commit3e9e6a2d2f56f2d80d655773a8f7de834bec936c (patch)
treea3351ae3ed5aeb9c37085c5c4536c2dff6e54c2e
parent04301b2623ccdf8e43b2ee860a49457c7eb40105 (diff)
(store_zero_class):
Use zero_map. (zero_map): New function.
-rw-r--r--libstore/zero.c10
1 files changed, 9 insertions, 1 deletions
diff --git a/libstore/zero.c b/libstore/zero.c
index 84e381bc..d94cbdcf 100644
--- a/libstore/zero.c
+++ b/libstore/zero.c
@@ -142,12 +142,20 @@ zero_validate_name (const char *name, const struct store_class *const *classes)
return 0; /* `maximum size' */
}
+static error_t
+zero_map (const struct store *store, vm_prot_t prot, mach_port_t *memobj)
+{
+ *memobj = MACH_PORT_NULL;
+ return 0;
+}
+
struct store_class
store_zero_class =
{
STORAGE_ZERO, "zero", zero_read, zero_write,
zero_allocate_encoding, zero_encode, zero_decode,
- 0, 0, 0, 0, zero_remap, zero_open, zero_validate_name
+ 0, 0, 0, 0, zero_remap, zero_open, zero_validate_name,
+ zero_map
};
/* Return a new zero store SIZE bytes long in STORE. */