]> git.ozlabs.org Git - ccan/commit
tdb2: Fix to always use 64-bit offset definition
authorRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:10:12 +0000 (10:40 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Wed, 31 Aug 2011 01:10:12 +0000 (10:40 +0930)
commitbaa17ee2d5e01a32030f19e566007417d72b4b6e
tree3ca8fb7b139d6789b47305645a2d1e6e9c0c6d89
parent0eb0295702246b0b1b273f019a3b7a3d0600dd22
tdb2: Fix to always use 64-bit offset definition

We use off_t in the tdb2 interface (for tdb_attribute_flock); we need
to make sure that all callers agree on the size.

This also causes a problem in the tests: it's not enough to include
config.h first, we need the _FILE_OFFSET_BITS define from private.h.
Otherwise, we can disagree about the definitions of F_SETLK, F_SETLKW
and off_t, causing strange problems.
ccan/tdb2/private.h
ccan/tdb2/tdb2.h
ccan/tdb2/test/lock-tracking.c
ccan/tdb2/test/run-56-open-during-transaction.c
ccan/tdb2/test/run-57-die-during-transaction.c
ccan/tdb2/test/run-lockall.c