summaryrefslogtreecommitdiff
path: root/libstore
diff options
context:
space:
mode:
authorRoland McGrath <roland@gnu.org>2002-03-14 21:09:54 +0000
committerRoland McGrath <roland@gnu.org>2002-03-14 21:09:54 +0000
commitd99574dbe8c7f0591c29d86bc63a624a4da7db62 (patch)
tree87eaeb9bf9c6f8ea1f1411231d8ed951c5652d07 /libstore
parent00079039055aa37c6e372a76e2872aaeca12adfc (diff)
2002-02-08 Roland McGrath <roland@frob.com>
* Makefile (store-types): New variable. (all): Depend on $(store-types:%=libstore_%.a). (libstore_%.so.$(hurd-version)): New pattern rule. ($(store-types:%=libstore_%.a): libstore_%.a): New static pattern rule to create `-lstore_TYPE' pseudo-objects (linker scripts) for each type. (libstore.so-LDLIBS): New variable, adds -ldl. (GUNZIP_OBJS, BUNZIP2_OBJS): New variables. (UNZIP_OBJS): Variable removed, replaced by those two. (OBJS): Update use. (libstore_gunzip.so.$(hurd-version)): Depend on PIC $(GUNZIP_OBJS). (libstore_bunzip2.so.$(hurd-version)): Depend on PIC $(BUNZIP2_OBJS). * unknown.c: Add STORE_STD_CLASS decl. * bunzip2.c: Likewise. * copy.c: Likewise. * device.c: Likewise. * file.c: Likewise. * gunzip.c: Likewise. * memobj.c: Likewise. * module.c: Likewise. * mvol.c: Likewise. * nbd.c: Likewise. * open.c: Likewise. * part.c: Likewise. * remap.c: Likewise. * stripe.c: Likewise. * stripe.c: Likewise. * task.c: Likewise. * typed.c: Likewise. * typed.c: Likewise. * unknown.c: Likewise. * url.c: Likewise. * zero.c: Likewise.
Diffstat (limited to 'libstore')
-rw-r--r--libstore/copy.c1
-rw-r--r--libstore/device.c3
-rw-r--r--libstore/file.c3
-rw-r--r--libstore/memobj.c3
-rw-r--r--libstore/mvol.c3
-rw-r--r--libstore/nbd.c3
-rw-r--r--libstore/open.c5
-rw-r--r--libstore/part.c3
-rw-r--r--libstore/remap.c3
-rw-r--r--libstore/stripe.c4
-rw-r--r--libstore/task.c3
-rw-r--r--libstore/unknown.c1
-rw-r--r--libstore/zero.c3
13 files changed, 26 insertions, 12 deletions
diff --git a/libstore/copy.c b/libstore/copy.c
index 4e1cf0d4..c5232cd3 100644
--- a/libstore/copy.c
+++ b/libstore/copy.c
@@ -163,6 +163,7 @@ store_copy_class =
copy_allocate_encoding, copy_encode, copy_decode,
copy_set_flags, copy_clear_flags, copy_cleanup, copy_clone, 0, copy_open
};
+STORE_STD_CLASS (copy);
/* Return a new store in STORE which contains a snapshot of the contents of
the store FROM; FROM is consumed. */
diff --git a/libstore/device.c b/libstore/device.c
index 014c815b..fa347bea 100644
--- a/libstore/device.c
+++ b/libstore/device.c
@@ -1,6 +1,6 @@
/* Mach device store backend
- Copyright (C) 1995,96,97,99,2001 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,99,2001,02 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -239,6 +239,7 @@ store_device_class =
store_std_leaf_allocate_encoding, store_std_leaf_encode, dev_decode,
dev_set_flags, dev_clear_flags, 0, 0, 0, dev_open, 0, dev_map
};
+STORE_STD_CLASS (device);
/* Return a new store in STORE referring to the mach device DEVICE. Consumes
the send right DEVICE. */
diff --git a/libstore/file.c b/libstore/file.c
index 1e2feb40..def0c4c0 100644
--- a/libstore/file.c
+++ b/libstore/file.c
@@ -1,6 +1,6 @@
/* File store backend
- Copyright (C) 1995,96,97,98,2001 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,98,2001, 2002 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -196,6 +196,7 @@ store_file_class =
store_std_leaf_allocate_encoding, store_std_leaf_encode, file_decode,
file_set_flags, file_clear_flags, 0, 0, 0, file_open, 0, file_map
};
+STORE_STD_CLASS (file);
static error_t
file_byte_read (struct store *store,
diff --git a/libstore/memobj.c b/libstore/memobj.c
index 2ee30f73..9bc75d5d 100644
--- a/libstore/memobj.c
+++ b/libstore/memobj.c
@@ -1,5 +1,5 @@
/* Store backend using a Mach memory object
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -187,3 +187,4 @@ store_memobj_class =
encode: store_std_leaf_encode,
decode: memobj_decode,
};
+STORE_STD_CLASS (memobj);
diff --git a/libstore/mvol.c b/libstore/mvol.c
index ed5e0e60..607dd41a 100644
--- a/libstore/mvol.c
+++ b/libstore/mvol.c
@@ -1,6 +1,6 @@
/* Multiple-volume store backend
- Copyright (C) 1996,97,2001 Free Software Foundation, Inc.
+ Copyright (C) 1996,97,2001, 2002 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -85,6 +85,7 @@ store_mvol_class =
0, 0, 0,
store_set_child_flags, store_clear_child_flags, 0, 0, mvol_remap
};
+STORE_STD_CLASS (mvol);
/* Return a new store in STORE that multiplexes multiple physical volumes
from PHYS as one larger virtual volume. SWAP_VOLS is a function that will
diff --git a/libstore/nbd.c b/libstore/nbd.c
index ccd910fa..2eb7ebc9 100644
--- a/libstore/nbd.c
+++ b/libstore/nbd.c
@@ -1,5 +1,5 @@
/* "Network Block Device" store backend compatible with Linux `nbd' driver
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002 Free Software Foundation, Inc.
This file is part of the GNU Hurd.
@@ -478,6 +478,7 @@ const struct store_class store_nbd_class =
decode: nbd_decode,
set_flags: nbd_set_flags, clear_flags: nbd_clear_flags,
};
+STORE_STD_CLASS (nbd);
/* Create a store from an existing socket to an nbd server.
The initial handshake has already been done. */
diff --git a/libstore/open.c b/libstore/open.c
index 286b00f4..5c00e107 100644
--- a/libstore/open.c
+++ b/libstore/open.c
@@ -1,7 +1,7 @@
/* Store creation from a file name
- Copyright (C) 1996, 97, 98 Free Software Foundation, Inc.
- Written by Miles Bader <miles@gnu.ai.mit.edu>
+ Copyright (C) 1996,97,98,2001, 2002 Free Software Foundation, Inc.
+ Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
The GNU Hurd is free software; you can redistribute it and/or
@@ -62,3 +62,4 @@ store_open (const char *name, int flags,
const struct store_class
store_query_class = { -1, "query", open: store_open };
+STORE_STD_CLASS (query);
diff --git a/libstore/part.c b/libstore/part.c
index de809fc0..a1ddc5c0 100644
--- a/libstore/part.c
+++ b/libstore/part.c
@@ -1,5 +1,5 @@
/* Partition store backend
- Copyright (C) 2001 Free Software Foundation, Inc.
+ Copyright (C) 2001, 2002 Free Software Foundation, Inc.
Written by Neal H Walfield <neal@cs.uml.edu>
This file is part of the GNU Hurd.
@@ -191,3 +191,4 @@ store_part_open (const char *name, int flags,
const struct store_class
store_part_class = { -1, "part", open: store_part_open };
+STORE_STD_CLASS (part);
diff --git a/libstore/remap.c b/libstore/remap.c
index 140d2635..1ac1351e 100644
--- a/libstore/remap.c
+++ b/libstore/remap.c
@@ -1,6 +1,6 @@
/* Block address translation
- Copyright (C) 1996,97,99,2001 Free Software Foundation, Inc.
+ Copyright (C) 1996,97,99,2001, 2002 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -206,6 +206,7 @@ store_remap_class =
NULL, NULL, NULL, /* cleanup, clone, remap */
remap_open, remap_validate_name
};
+STORE_STD_CLASS (remap);
/* Return a new store in STORE that reflects the blocks in RUNS & RUNS_LEN
from SOURCE; SOURCE is consumed, but RUNS is not. Unlike the
diff --git a/libstore/stripe.c b/libstore/stripe.c
index 24faeb80..eb9bda25 100644
--- a/libstore/stripe.c
+++ b/libstore/stripe.c
@@ -1,6 +1,6 @@
/* Striped store backend
- Copyright (C) 1996,97,99,2001 Free Software Foundation, Inc.
+ Copyright (C) 1996,97,99,2001, 2002 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -109,6 +109,7 @@ store_ileave_class =
ileave_allocate_encoding, ileave_encode, ileave_decode,
store_set_child_flags, store_clear_child_flags, 0, 0, stripe_remap
};
+STORE_STD_CLASS (ileave);
error_t
concat_allocate_encoding (const struct store *store, struct store_enc *enc)
@@ -153,6 +154,7 @@ store_concat_class =
store_set_child_flags, store_clear_child_flags, 0, 0, stripe_remap,
store_concat_open
};
+STORE_STD_CLASS (concat);
/* Return a new store in STORE that interleaves all the stores in STRIPES
(NUM_STRIPES of them) every INTERLEAVE bytes; INTERLEAVE must be an
diff --git a/libstore/task.c b/libstore/task.c
index da432778..770635a4 100644
--- a/libstore/task.c
+++ b/libstore/task.c
@@ -1,6 +1,6 @@
/* Mach task store backend
- Copyright (C) 1995,96,97,2001 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,2001, 2002 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -131,6 +131,7 @@ store_task_class =
store_std_leaf_allocate_encoding, store_std_leaf_encode, task_decode,
task_set_flags, task_clear_flags, 0, 0, 0, task_open
};
+STORE_STD_CLASS (task);
/* Return a new store in STORE referring to the mach task TASK. Consumes
the send right TASK. */
diff --git a/libstore/unknown.c b/libstore/unknown.c
index 48e486a9..f72a0667 100644
--- a/libstore/unknown.c
+++ b/libstore/unknown.c
@@ -221,3 +221,4 @@ const struct store_class store_unknown_class =
open: unknown_open,
validate_name: unknown_validate_name,
};
+STORE_STD_CLASS (unknown);
diff --git a/libstore/zero.c b/libstore/zero.c
index b58bac6f..13ebb21a 100644
--- a/libstore/zero.c
+++ b/libstore/zero.c
@@ -1,6 +1,6 @@
/* Zero store backend
- Copyright (C) 1995,96,97,99,2000,01 Free Software Foundation, Inc.
+ Copyright (C) 1995,96,97,99,2000,01, 02 Free Software Foundation, Inc.
Written by Miles Bader <miles@gnu.org>
This file is part of the GNU Hurd.
@@ -178,6 +178,7 @@ store_zero_class =
0, 0, 0, 0, zero_remap, zero_open, zero_validate_name,
zero_map
};
+STORE_STD_CLASS (zero);
/* Return a new zero store SIZE bytes long in STORE. */
error_t