No empty .Rs/.Re
[netbsd-mini2440.git] / usr.sbin / rpc.lockd / lockd_lock.h
blob918e2966e98d4ccedc98587b5dab8e0b4c2d874e
1 /* $NetBSD: lockd_lock.h,v 1.2 2000/06/09 14:00:54 fvdl Exp $ */
3 /* Headers and function declarations for file-locking utilities */
5 struct nlm4_holder *testlock(struct nlm4_lock *, int);
7 enum nlm_stats getlock(nlm4_lockargs *, struct svc_req *, int);
8 enum nlm_stats unlock(nlm4_lock *, int);
9 void notify(const char *, int);
11 /* flags for testlock, getlock & unlock */
12 #define LOCK_ASYNC 0x01 /* async version (getlock only) */
13 #define LOCK_V4 0x02 /* v4 version */
14 #define LOCK_MON 0x04 /* monitored lock (getlock only) */
15 #define LOCK_CANCEL 0x08 /* cancel, not unlock request (unlock only) */
17 /* callbacks from lock_proc.c */
18 void transmit_result(int, nlm_res *, struct sockaddr *);
19 void transmit4_result(int, nlm4_res *, struct sockaddr *);
20 CLIENT *get_client(struct sockaddr *, rpcvers_t);