1 /* $NetBSD: lockd_lock.h,v 1.2 2000/06/09 14:00:54 fvdl Exp $ */ 2 /* $FreeBSD$ */ 3 4 /* Headers and function declarations for file-locking utilities */ 5 6 struct nlm4_holder * testlock __P((struct nlm4_lock *, int, int)); 7 8 enum nlm_stats getlock __P((nlm4_lockargs *, struct svc_req *, int)); 9 enum nlm_stats unlock __P((nlm4_lock *, int)); 10 void notify __P((char *, int)); 11 12 /* flags for testlock, getlock & unlock */ 13 #define LOCK_ASYNC 0x01 /* async version (getlock only) */ 14 #define LOCK_V4 0x02 /* v4 version */ 15 #define LOCK_MON 0x04 /* monitored lock (getlock only) */ 16 #define LOCK_CANCEL 0x08 /* cancel, not unlock request (unlock only) */ 17 18 /* callbacks from lock_proc.c */ 19 void transmit_result __P((int, nlm_res *, struct sockaddr *)); 20 void transmit4_result __P((int, nlm4_res *, struct sockaddr *)); 21 CLIENT *get_client __P((struct sockaddr *, rpcvers_t)); 22