]> git.ozlabs.org Git - ccan/blob - ccan/tdb/test/lock-tracking.h
tdb: new test, cleanup old tests by centralizing lock tracking.
[ccan] / ccan / tdb / test / lock-tracking.h
1 #ifndef LOCK_TRACKING_H
2 #define LOCK_TRACKING_H
3 /* Set this if you want a callback after fnctl unlock. */
4 extern void (*unlock_callback)(int fd);
5
6 /* Replacement fcntl. */
7 int fcntl_with_lockcheck(int fd, int cmd, ... /* arg */ );
8
9 /* Discard locking info: returns number of locks outstanding. */
10 unsigned int forget_locking(void);
11
12 /* Number of errors in locking. */
13 extern int locking_errors;
14 #endif /* LOCK_TRACKING_H */