1 #ifndef TDB1_LOCK_TRACKING_H
2 #define TDB1_LOCK_TRACKING_H
3 #include <ccan/tdb2/private.h>
6 /* Set this if you want a callback after fnctl unlock. */
7 extern void (*unlock_callback1)(int fd);
9 /* Replacement fcntl. */
10 int fcntl_with_lockcheck1(int fd, int cmd, ... /* arg */ );
12 /* Discard locking info: returns number of locks outstanding. */
13 unsigned int forget_locking1(void);
15 /* Number of errors in locking. */
16 extern int locking_errors1;
18 /* Suppress lock checking. */
19 extern bool suppress_lockcheck1;
21 /* Make all locks non-blocking. */
22 extern bool nonblocking_locks1;
24 /* Number of times we failed a lock because we made it non-blocking. */
25 extern int locking_would_block1;
26 #endif /* LOCK_TRACKING_H */