samba_upgradeprovision: Do not reset every DN when changing an SD
[Samba.git] / lib / tdb / test / lock-tracking.h
blobf2c9c44653ba47a1e36605b46e037b6bc87fc1bb
1 #ifndef LOCK_TRACKING_H
2 #define LOCK_TRACKING_H
3 #include <stdbool.h>
5 /* Set this if you want a callback after fnctl unlock. */
6 extern void (*unlock_callback)(int fd);
8 /* Replacement fcntl. */
9 int fcntl_with_lockcheck(int fd, int cmd, ... /* arg */ );
11 /* Discard locking info: returns number of locks outstanding. */
12 unsigned int forget_locking(void);
14 /* Number of errors in locking. */
15 extern int locking_errors;
17 /* Suppress lock checking. */
18 extern bool suppress_lockcheck;
20 /* Make all locks non-blocking. */
21 extern bool nonblocking_locks;
23 /* Number of times we failed a lock because we made it non-blocking. */
24 extern int locking_would_block;
25 #endif /* LOCK_TRACKING_H */