kernel - Order ipfw3 module before other ipfw3_* modules
[dragonfly.git] / usr.sbin / rpc.lockd / lockd_lock.h
blob2e8bd58a66af7d8dfd319b30e19291770996747a
1 /* $NetBSD: lockd_lock.h,v 1.2 2000/06/09 14:00:54 fvdl Exp $ */
2 /* $FreeBSD: src/usr.sbin/rpc.lockd/lockd_lock.h,v 1.4 2002/03/21 22:52:45 alfred Exp $ */
4 /* Headers and function declarations for file-locking utilities */
6 struct nlm4_holder *testlock(struct nlm4_lock *, int);
7 enum nlm_stats getlock(nlm4_lockargs *, struct svc_req *, const int);
8 enum nlm_stats unlock(nlm4_lock *, const int);
9 int lock_answer(int, netobj *, int, int *, int);
11 void notify(const char *, const int);
13 /* flags for testlock, getlock & unlock */
14 #define LOCK_ASYNC 0x01 /* async version (getlock only) */
15 #define LOCK_V4 0x02 /* v4 version */
16 #define LOCK_MON 0x04 /* monitored lock (getlock only) */
17 #define LOCK_CANCEL 0x08 /* cancel, not unlock request (unlock only) */
19 /* callbacks from lock_proc.c */
20 void transmit_result(int, nlm_res *, struct sockaddr *);
21 void transmit4_result(int, nlm4_res *, struct sockaddr *);
22 CLIENT *get_client(struct sockaddr *, rpcvers_t);