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);
6 /* Replacement fcntl. */
7 int fcntl_with_lockcheck(int fd, int cmd, ... /* arg */ );
9 /* Discard locking info: returns number of locks outstanding. */
10 unsigned int forget_locking(void);
12 /* Number of errors in locking. */
13 extern int locking_errors;
14 #endif /* LOCK_TRACKING_H */