TDB2: make SAMBA use tdb1 again for the moment.
[ddiss/samba.git] / lib / tdb2 / test / tdb1-lock-tracking.h
1 #ifndef TDB1_LOCK_TRACKING_H
2 #define TDB1_LOCK_TRACKING_H
3 #include "private.h"
4 #include <stdbool.h>
5
6 /* Set this if you want a callback after fnctl unlock. */
7 extern void (*unlock_callback1)(int fd);
8
9 /* Replacement fcntl. */
10 int fcntl_with_lockcheck1(int fd, int cmd, ... /* arg */ );
11
12 /* Discard locking info: returns number of locks outstanding. */
13 unsigned int forget_locking1(void);
14
15 /* Number of errors in locking. */
16 extern int locking_errors1;
17
18 /* Suppress lock checking. */
19 extern bool suppress_lockcheck1;
20
21 /* Make all locks non-blocking. */
22 extern bool nonblocking_locks1;
23
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 */