]> git.ozlabs.org Git - ccan/commit
tdb2: TDB_ATTRIBUTE_FLOCK support
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Apr 2011 07:18:43 +0000 (16:48 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 7 Apr 2011 07:18:43 +0000 (16:48 +0930)
commit7fe3218488f1bd25a4e50c27964752a18a64fb5f
tree372eee83c8be5e8e418e3de1989154da5f727c6e
parent0693529224e36235fc615fa323e57d5b07879e3f
tdb2: TDB_ATTRIBUTE_FLOCK support

This allows overriding of low-level locking functions.  This allows
special effects such as non-blocking operations, and lock proxying.

We rename some local lock vars to l to avoid -Wshadow warnings.
ccan/tdb2/lock.c
ccan/tdb2/open.c
ccan/tdb2/private.h
ccan/tdb2/tdb2.h
ccan/tdb2/test/run-82-lockattr.c [new file with mode: 0644]