X-Git-Url: https://git.ozlabs.org/?a=blobdiff_plain;f=ccan%2Ftdb%2Ftdb_private.h;h=16f5d925c0954e2105ed63eeb969a45a374ad9cb;hb=550246bb457561fb8bffe909c54467090a11011a;hp=1195c3b557ac65ede35e30caf417516f5c2a3c0e;hpb=729fc5b931c8eb26f192399d8aa7064f9af058df;p=ccan diff --git a/ccan/tdb/tdb_private.h b/ccan/tdb/tdb_private.h index 1195c3b5..16f5d925 100644 --- a/ccan/tdb/tdb_private.h +++ b/ccan/tdb/tdb_private.h @@ -64,7 +64,7 @@ #define __location__ __FILE__ ":" __STRINGSTRING(__LINE__) #endif -#if HAVE_GETPAGESIZE +#if !HAVE_GETPAGESIZE #define getpagesize() 0x2000 #endif @@ -176,7 +176,7 @@ struct tdb_header { char magic_food[32]; /* for /etc/magic */ uint32_t version; /* version of the code */ uint32_t hash_size; /* number of hash entries */ - tdb_off_t rwlocks; /* obsolete - kept to detect old formats */ + tdb_off_t hashcheck; /* 0 for default hash. */ tdb_off_t recovery_start; /* offset of transaction recovery region */ tdb_off_t sequence_number; /* used when TDB_SEQNUM is set */ tdb_off_t reserved[29]; @@ -248,6 +248,7 @@ struct tdb_context { /* internal prototypes */ +uint32_t hashcheck(struct tdb_context *tdb); int tdb_munmap(struct tdb_context *tdb); void tdb_mmap(struct tdb_context *tdb); int tdb_lock(struct tdb_context *tdb, int list, int ltype);