summaryrefslogtreecommitdiff
path: root/libstore/store.h
AgeCommit message (Collapse)Author
2012-03-25Fix extern inline useSamuel Thibault
* ext2fs/Makefile (SRCS): Add xinl.c * libtreefs/Makefile (OTHERSRCS): Likewise. * term/Makefile (SRCS): Likewise. * ufs/Makefile (SRCS): Likewise. * hostmux/hostmux-xinl.c: Define HOSTMUX_DEFINE_EI instead of HOSTMUX_EI. * libdiskfs/extern-inline.c: Define DISKFS_DEFINE_EXTERN_INLINE instead of DISKFS_EXTERN_INLINE. * libftpconn/xinl.c: Define FTP_CONN_DEFINE_EI instead of FTP_CONN_EI. * libpipe/pipe-funcs.c: Define PIPE_DEFINE_EI instead of PIPE_EI. * libpipe/pq-funcs.c: Define PQ_DEFINE_EI instead of PQ_EI. * libshouldbeinlibc/idvec-funcs.c: Define IDVEC_DEFINE_EI instead of IDVEC_EI. * libshouldbeinlibc/maptime-funcs.c: Define MAPTIME_DEFINE_EI instead of MAPTIME_EI. * libshouldbeinlibc/ugids-xinl.c: Define UGIDS_DEFINE_EI instead of UGIDS_EI. * libstore/xinl.c: Define STORE_DEFINE_EI instead of STORE_EI. * libthreads/rwlock.c: Define RWLOCK_DEFINE_EI instead of RWLOCK_EI. * ext2fs/xinl.c: New file, define EXT2FS_DEFINE_EI and include "ext2fs.h" * libtreefs/xinl.c: New file, define TREEFS_DEFINE_EI and include "treefs.h" and "mig-decls.h". * term/xinl.c: New file, define TERM_DEFINE_EI and include "term.h". * ufs/xinl.c: New file, define UFS_DEFINE_EI and include "ufs.h" * ext2fs/ext2fs.h: Include <features.h>, define EXT2FS_EI to __extern_inline instead of "extern inline", define it to empty when EXT2FS_DEFINE_EI is defined. Always declare extern inline prototypes, and define extern inlines content only if __USE_EXTERN_INLINES or EXT2FS_DEFINE_EI is defined. * libdiskfs/diskfs.h: Likewise with DISKFS_EXTERN_INLINE and DISKFS_DEFINE_EXTERN_INLINE. * libftpconn/ftpconn.h: Likewise with FTP_CONN_EI and FTP_CONN_DEFINE_EI. * libftpconn/priv.h: Likewise. * libpipe/pipe.h: Likewise with PIPE_EI and PIPE_DEFINE_EI. * libpipe/pq.h: Likewise with PQ_EI and PQ_DEFINE_EI. * libshouldbeinlibc/idvec.h: Likewise with IDVEC_EI and IDVEC_DEFINE_EI. * libshouldbeinlibc/maptime.h: Likewise with MAPTIME_EI and MAPTIME_DEFINE_EI. * libshouldbeinlibc/ugids.h: Likewise with UGIDS_EI and UGIDS_DEFINE_EI. * libstore/store.h: Likewise with STORE_EI and STORE_DEFINE_EI. * libthreads/rwlock.h: Likewise with RWLOCK_EI and RWLOCK_DEFINE_EI. * term/term.h: Likewise with TERM_EI and TERM_DEFINE_EI. * ufs/ufs.h: Likewise with UFS_EI and UFS_DEFINE_EI. * libtreefs/treefs.h: Include <features.h>, define TREE_FS_EI to __extern_inline, or to empty when TREEFS_DEFINE_EI is defined. Use TREEFS_EI instead of "extern inline". * libtreefs/mig-decls.h: Use TREEFS_EI instead of "extern inline".
2011-08-20fix common misspellingsJonathan Neuschäfer
* Fix spelling with codespell[1] and manually review it. [1] http://git.profusion.mobi/cgit.cgi/lucas/codespell/
2005-09-252005-09-24 Roland McGrath <roland@frob.com>Roland McGrath
* store.h (STORE_STD_CLASS): Use __attribute_used__ macro instead of `unused' attribute.
2004-09-072004-09-03 Alfred M. Szmidt <ams@kemisten.nu>Roland McGrath
* store.h (__start_store_std_classes, __stop_store_std_classes): Declare using __attribute__ ((weak)). * typed.c (store_find_class): Removed `#pragma weak' for `__stop_store_std_classes' and `__start_store_std_classes'.
2002-12-03doc/Marcus Brinkmann
2002-12-03 Marcus Brinkmann <marcus@gnu.org> * hurd.texi (Store I/O): Add store_set_size. libstore/ 2002-10-01 Ludovic Courtès <ludovic.courtes@utbm.fr> * store.h: New type store_set_size_meth_t: New type. New prototype store_set_size. (struct store_class): Added a set_size () method. * rdwr.c (store_set_size): New function. * file.c (file_store_set_size): New function. (store_file_class): Add file_store_set_size. * concat.c (concat_set_size): New function. (store_concat_class): concat_set_size. * copy.c (copy_set_size): New function. (store_copy_class): copy_set_size. * device.c (device_set_size): New function. (store_device_class): device_set_size. * memobj.c (memobj_set_size): New function. (store_memobj_class): memobj_set_size. * mvol.c (mvol_set_size): New function. (store_mvol_class): mvol_set_size. * nbd.c (nbd_set_size): New function. (store_nbd_class): nbd_set_size. * remap.c (remap_set_size): New function. (store_remap_class): remap_set_size. * stripe.c (stripe_set_size): New function. (store_stripe_class): stripe_set_size. * unknown.c (unknown_set_size): New function. (store_unknown_class): unknown_set_size. * zero.c (zero_set_size): New function. (store_zero_class): zero_set_size.
2002-06-112002-06-07 Roland McGrath <roland@frob.com>Roland McGrath
* store.h (struct store_enc): Use loff_t instead of off_t. (store_enc_init, store_enc_return, store_return): Likewise.
2002-03-142002-01-19 Roland McGrath <roland@frob.com>Roland McGrath
* url.c (url_decode): Renamed to store_url_decode, made public. (store_url_open_class): Changed use. * store.h: Declare store_url_decode. * decode.c (store_decode): Call store_url_decode for STORAGE_NETWORK as a special case. 2001-12-28 Roland McGrath <roland@frob.com> * module.c: New file. * store.h (store_module_open, store_module_find_class, store_module_decode): Declare them. * argp.c (parse_opt): Leave PARSED->classes null here instead of defaulting to store_std_classes. (find_class): Default null class-list parameter to store_std_classes here instead. If no matches when defaulted, try calling store_module_open_class too. * typed.c (store_typed_open): If no match when search list is store_std_classes, try calling store_module_open_class too. * url.c (find_url_class): Likewise. * decode.c (store_decode): If no match when search list is store_std_classes, try calling store_module_decode too. * store.h (store_concat_class_vectors): Remove decl of nonexistent fn.
2001-12-292001-12-26 Roland McGrath <roland@frob.com>Roland McGrath
* unknown.c: New file. * Makefile (SRCS): Add it. * store.h (store_unknown_class, store_unknown_decode): Declare them. * create.c (store_create): If store_decode fails with EINVAL, and we were called with the STORE_NO_FILEIO flag bit set, then use store_unknown_decode.
2001-12-232001-10-14 Roland McGrath <roland@frob.com>Roland McGrath
* url.c: New file. (store_url_open): New function. (store_url_open_class): New const variable. * store.h: Declare them. * std.c (store_std_classes): Add &store_url_open_class to the list, move &store_nbd_class after it.
2001-10-012001-09-30 Roland McGrath <roland@frob.com>Roland McGrath
* memobj.c: New file. * Makefile (SRCS): Add it. * store.h (store_memobj_class, store_memobj_create): Declare them.
2001-09-282001-09-27 Roland McGrath <roland@frob.com>Roland McGrath
* std.c (store_std_classes): Add store_nbd_class. * store.h: Declare it.
2001-09-282001-09-27 Roland McGrath <roland@frob.com>Roland McGrath
* nbd.c: New file. * Makefile (SRCS): Add it. * store.h (store_nbd_open, _store_nbd_create): Declare them.
2001-08-262001-08-25 Neal H Walfield <neal@cs.uml.edu>Roland McGrath
* part.c: New file. * std.c (store_std_classes): Add store_part_class. * store.h (store_part_create): New prototype. (store_part_open): Likewise.
2001-03-072001-03-07 Roland McGrath <roland@frob.com>Roland McGrath
* store.h (store_write, store_write_meth_t): Make buffer arg const*. * copy.c (copy_write): Likewise. * device.c (dev_write): Likewise. * file.c (file_write): Likewise. (file_byte_write): Likewise. * rdwr.c (store_write): Likewise. * remap.c (remap_write): Likewise. * stripe.c (stripe_write): Likewise. * task.c (task_write): Likewise. * zero.c (zero_write): Likewise.
2001-01-162001-01-16 Roland McGrath <roland@frob.com>Roland McGrath
* store.h (struct store_argp_params): Add member `store_optional'. * argp.c (parse_opt): If store_optional is set, don't make it an error when there are no store arguments and the type doesn't validate that.
2001-01-08doc/Marcus Brinkmann
2001-01-08 Marcus Brinkmann <marcus@gnu.org> * hurd.texi (Store Management): Replace off_t with store_offset_t. (Store I/O): Likewise. (Store Classes): Likewise. ext2fs/ 2001-01-08 Marcus Brinkmann <marcus@gnu.org> * ext2fs.c (main): Use %Ld instead %ld to print store->size. * hyper.c (get_hypermetadata): Likewise. libstore/ 2001-01-08 Marcus Brinkmann <marcus@gnu.org> * zero.c (zero_remap): Change type of variables length, old_length to store_offset_t. (zero_decode): Change type of variable size to store_offset_t. (zero_open): Likewise. Use strtoull instead strtoul to parse size argument from name. Use store_offset_t for max_offs and its calculation. (store_zero_create): Use store_offset_t type for size argument. * derive.c (_store_derive): Use store_offset_t as type for variable last_part_base. * stripe.c (addr_adj): Change types of addr argument and return value to store_offset_t. (store_ileave_create): Change type of interleave argument and variables min_end and end to store_offset_t, but type of variable block_size to size_t. (store_concat_create): Change type of variable block_size to size_t. * make.c (_store_create): Change end argument type to store_offset_t. * store.h: New type store_offset_t, define to off64_t. (struct store_run): Change type of start and length to store_offset_t. (struct store): Change type of end, wrap_src, wrap_dst, blocks, size to store_offset_t. Change type of addr arg in store_read_meth_t and store_write_meth_t to store_offset_t, as well as in declarations for store_read and store_write. Change type of argument end in _store_create declaration to store_offset_t. Change type of argument size in store_zero_create to store_offset_t. Change type of argument interleace in store_ileace_create to store_offset_t. * rdwr.c (store_find_first_run): Change type of return value, addr and *base arguments, and variables wrap_src and run_blocks to store_offset_t. (store_next_run): Change type of *base argument to store_offset_t. (store_write): Change type of addr argument and variable base to store_offset_t. (store_read): Likewise, also for addr argument of local function seg_read. Change type of len argument to size_t. * copy.c (copy_read): Change type of addr argument to store_offset_t. (copy_write): Likewise. * device.c (dev_read): Likewise. (dev_write): Likewise. * file.c (file_read): Likewise. (file_write): Likewise. (file_byte_read): Likewise. (file_byte_write): Likewise. * mvol.c (mvol_read): Likewise. (mvol_write): Likewise. * remap.c (remap_read): Likewise. (remap_write): Likewise. * stripe.c (stripe_read): Likewise. (stripe_write): Likewise. * task.c (task_read): Likewise. (task_write): Likewise. * zero.c (zero_read): Likewise. (zero_write): Likewise. * remap.c (store_remap_runs): Change type of addr and len arguments of local function add_run and of local variables addr, length, baddr, blen and len to store_offset_t. (remap_open): Cast -1 to store_offset_t, not off_t. * argp.c (struct store_parsed): Change type of interleave from off_t to store_offset_t. (store_parsed_append_args): Use %Ld instead %ld to print interleave value. (store_parsed_name): Likewise. ufs/ 2001-01-08 Marcus Brinkmann <marcus@gnu.org> * main.c (main): Use %Ld instead %ld to print store->size. * hyper.c (get_hypermetadata): Likewise. * inode.c (diskfs_S_file_get_storage_info): Change type of variables start and length from off_t to store_offset_t. utils/ 2001-01-08 Marcus Brinkmann <marcus@gnu.org> * storeread.c (main): Change type of addr to store_offset_t, also for first argument of local function dump. Add comment about store->size as len parameter for store_read. Use atoll instead atoi for addr argument. * storeinfo.c (print_store): Remove local function pint, add two similar functions psiz and poff, accepting and printing a size_t or store_offset_t respectively. Use psiz to print block_size, poff to print blocks and size of store. Use %Ld instead %ld to print runs. * storecat.c (main): Change type of addr and left to store_offset_t.
2000-12-212000-12-20 Roland McGrath <roland@frob.com>Roland McGrath
* store.h (struct store_class): Fix typo in comment.
1999-11-211999-11-20 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* store.h (struct store_class): Add const to type of `name' member.
1999-04-301998-09-06 OKUJI Yoshinori <okuji@kuicr.kyoto-u.ac.jp>Thomas Bushnell
* bunzip2.c: New file. * store.h (store_bunzip2_create): New declarations. (store_bunzip2_open): Likewise. (store_bunzip2_class): Likewise. * std.c (store_std_classes): Add store_bunzip2_class. * Makefile (SRCS): Add bunzip2.c. (UNZIP_OBJS): Add do-bunzip2.o.
1998-12-271998-12-27 Roland McGrath <roland@baalperazim.frob.com>Roland McGrath
* store.h: Remove defns of STORAGE_*, now in <hurd/hurd_types.h>.
1997-09-22(store_mvol_create):Miles Bader
New declaration. (store_mvol_class): New declaration.
1997-07-21(store_map_source):Miles Bader
Declaration removed.
1997-07-17(struct store_class):Miles Bader
Add map field. (store_map): New declaration.
1997-07-07Doc fix.Miles Bader
1997-06-20(_store_create):Miles Bader
Renamed from _make_store. Return an error_t code, and add an additional argument STORE to return the new store; all uses changed. (store_zero_create): SIZE is off_t, not size_t. (store_concat_open, store_children_name, store_open_children): New declarations. (store_copy_create, store_copy_open, store_buffer_create, store_gunzip_create, store_gunzip_open): New declarations. (struct store): BLOCKS & SIZE are off_t, not size_t. (store_copy_class, store_gunzip_class, store_typed_open_class): New declarations. Update FSF address.
1997-02-20(store_task_class):Miles Bader
New declaration. (store_task_create, _store_task_create, store_open): New declarations.
1996-10-24Mon Oct 21 22:03:19 1996 Thomas Bushnell, n/BSG <thomas@gnu.ai.mit.edu>Thomas Bushnell
* store.h: Add extern inline protection. * store.c: New file. * Makefile (SRCS): Add store.c.
1996-10-08(store_set_child_flags, store_clear_child_flags):Miles Bader
New decls.
1996-10-08(STORE_INNOCUOUS, STORE_INACTIVE):Miles Bader
New macros. (store_is_securely_returnable): New function. <fcntl.h>: New include.
1996-09-23(_make_store):Miles Bader
Make CLASS arg const. (_store_add_std_class): Declaration removed. (STORE_STD_CLASS): Macro removed. (struct store_argp_params): New type. (store_open): Make NAME const. (struct store_class): Add OPEN and PARSE fields. (struct store): Make CLASS field const. (store_parsed_open): Remove CLASSES argument. (struct store_class, struct store_argp_params, store_create, store_open, store_decode, store_decode_children): Change CLASSES args to be a pointer to a vector of class pointers.
1996-09-14(store_with_decoded_runs): New declaration.Miles Bader
(store_remap_create): New declaration. (struct store_class): Add remap field. (store_remap): New declaration. (store_enc_return, store_return): New declarations. (store_zero_create): Renamed from store_null_create. (STORAGE_REMAP, STORAGE_ZERO): New macros (temporary, to avoid touching hurd/hurd_types.h). (store_write_meth_t, store_read_meth_t, store_read, store_write): Make type of buffer void *, not char *.
1996-09-04(struct store): Make log2_* fields unsigned.Miles Bader
(STORE_NO_FILEIO): New macro. (STORE_HARD_READONLY, STORE_ENFORCED): Values changed. (STORE_GENERIC_FLAGS): Add STORE_NO_FILEIO. (struct store_argp_params): Type removed. (store_parsed_Free, store_parsed_open, store_parsed_append_args): New declarations. (struct store_parsed): New incomplete type. (store_open): New declaration.
1996-08-21(struct store_argp_params): Add return_args, args, & args_len fields.Miles Bader
1996-05-21(struct store): Remove CLASS field. METHS field renamed CLASS.Miles Bader
(STORE_IMMUTABLE_FLAGS, STORE_GENERIC_FLAGS, STORE_BACKEND_SPEC_BASE, STORE_BACKEND_FLAGS, STORE_READONLY, STORE_HARD_READONLY, STORE_ENFORCED): New macros. (struct store_class): Renamed from store_meths; all uses changed. Add ID, NAME, DECODE, SET_FLAGS, CLEAR_FLAGS, and NEXT fields. (store_std_leaf_decode): Renamed from store_default_leaf_decode. (store_std_leaf_create_t): New type. (_STORE_STD_CLASS): New macro. (struct store_argp_params): READONLY field deleted, FLAGS field added. (store_allocate_child_encodings, store_encode_children, store_decode_children, store_set_flags, store_clear_flags, store_file_open, store_device_open, store_null_create, store_std_classes, _store_add_std_class, store_allocate_child_encodings, store_encode_children, store_decode_children): New declarations (store_decode, store_create, store_device_create, _store_device_create, store_file_create, _store_file_create, store_ileave_create, store_concat_create, _make_store): Declarations updated.
1996-05-15(store_argp): New declaration.Miles Bader
(struct store_argp_params): New type.
1996-05-10(struct store_run): New type.Miles Bader
(struct store): RUNS is a vector of runs, not offsets. (_store_device_create, _store_file_create, _make_store, store_set_runs, store_default_leaf_decode): Update declaration. (store_set_children): New declaration.
1996-05-10(struct store):Miles Bader
Add CHILDREN & NUM_CHILDREN fields. Rename RUNS_LEN to NUM_RUNS (all uses changed).
1996-05-06Move big comment describing file_get_storage_info encoding toMiles Bader
<hurd/hurd_types.h>.
1996-04-02entered into RCSMiles Bader
1996-03-22Formerly store.h.~10~Miles Bader
1996-03-20Formerly store.h.~9~Miles Bader
1996-03-17Formerly store.h.~8~Roland McGrath
1996-03-16Formerly store.h.~7~Miles Bader
1996-01-17Formerly store.h.~6~Miles Bader
1996-01-16Formerly store.h.~5~Miles Bader
1995-11-13Formerly store.h.~4~Miles Bader
1995-10-15Formerly store.h.~3~Miles Bader
1995-10-14Formerly store.h.~2~Miles Bader
1995-10-14Initial revisionMiles Bader