mirror of
https://github.com/samba-team/samba.git
synced 2025-02-26 21:57:41 +03:00
This means changing headers, implementing a simple tap-like wrapper, and also splitting out the helpers into those which are linked with the api* tests (which can't use non-public tdb2 functions) and those linked with the run* tests (which can). Signed-off-by: Rusty Russell <rusty@rustcorp.com.au>
27 lines
719 B
C
27 lines
719 B
C
#ifndef TDB1_LOCK_TRACKING_H
|
|
#define TDB1_LOCK_TRACKING_H
|
|
#include "private.h"
|
|
#include <stdbool.h>
|
|
|
|
/* Set this if you want a callback after fnctl unlock. */
|
|
extern void (*unlock_callback1)(int fd);
|
|
|
|
/* Replacement fcntl. */
|
|
int fcntl_with_lockcheck1(int fd, int cmd, ... /* arg */ );
|
|
|
|
/* Discard locking info: returns number of locks outstanding. */
|
|
unsigned int forget_locking1(void);
|
|
|
|
/* Number of errors in locking. */
|
|
extern int locking_errors1;
|
|
|
|
/* Suppress lock checking. */
|
|
extern bool suppress_lockcheck1;
|
|
|
|
/* Make all locks non-blocking. */
|
|
extern bool nonblocking_locks1;
|
|
|
|
/* Number of times we failed a lock because we made it non-blocking. */
|
|
extern int locking_would_block1;
|
|
#endif /* LOCK_TRACKING_H */
|