From e55ef2526c963f88b0cfe1f39dab0131377a1ae4 Mon Sep 17 00:00:00 2001 From: Thomas Bushnell Date: Thu, 24 Oct 1996 19:29:04 +0000 Subject: Mon Oct 21 22:03:19 1996 Thomas Bushnell, n/BSG * store.h: Add extern inline protection. * store.c: New file. * Makefile (SRCS): Add store.c. --- libstore/ChangeLog | 6 ++++++ libstore/Makefile | 2 +- libstore/store.c | 2 ++ libstore/store.h | 7 ++++++- 4 files changed, 15 insertions(+), 2 deletions(-) create mode 100644 libstore/store.c diff --git a/libstore/ChangeLog b/libstore/ChangeLog index 79bbf746..35ff5fb5 100644 --- a/libstore/ChangeLog +++ b/libstore/ChangeLog @@ -1,3 +1,9 @@ +Mon Oct 21 22:03:19 1996 Thomas Bushnell, n/BSG + + * store.h: Add extern inline protection. + * store.c: New file. + * Makefile (SRCS): Add store.c. + Tue Oct 8 14:31:51 1996 Miles Bader * kids.c (store_set_child_flags, store_clear_child_flags): New funcs. diff --git a/libstore/Makefile b/libstore/Makefile index a7127ac7..a8ea3956 100644 --- a/libstore/Makefile +++ b/libstore/Makefile @@ -25,7 +25,7 @@ makemode := library libname = libstore SRCS = create.c derive.c make.c rdwr.c set.c device.c file.c stripe.c \ storeread.c storecat.c enc.c encode.c decode.c clone.c argp.c \ - std.c kids.c zero.c flags.c open.c remap.c + std.c kids.c zero.c flags.c open.c remap.c store.c LCLHDRS=store.h installhdrs=store.h diff --git a/libstore/store.c b/libstore/store.c new file mode 100644 index 00000000..a603d621 --- /dev/null +++ b/libstore/store.c @@ -0,0 +1,2 @@ +#define STORE_EI +#include "store.h" diff --git a/libstore/store.h b/libstore/store.h index 5be3862c..437f9c83 100644 --- a/libstore/store.h +++ b/libstore/store.h @@ -29,6 +29,11 @@ #include #include #include + +#ifndef STORE_EI +#define STORE_EI extern inline +#endif + /* A portion of a store. If START == -1, it's a hole. */ struct store_run @@ -247,7 +252,7 @@ error_t store_clear_child_flags (struct store *store, int flags); /* Returns true if STORE can safely be returned to a user who has accessed it via a node using OPEN_FLAGS, without compromising security. */ -extern inline int +STORE_EI int store_is_securely_returnable (struct store *store, int open_flags) { int flags = store->flags; -- cgit v1.2.3