1204917Sdes/*
257429Smarkm * Please do not edit this file.
392555Sdes * It was generated using rpcgen.
457429Smarkm */
557429Smarkm
657429Smarkm#ifndef _NLM_PROT_H_RPCGEN
757429Smarkm#define	_NLM_PROT_H_RPCGEN
857429Smarkm
957429Smarkm#include <rpc/rpc.h>
1057429Smarkm
1157429Smarkm#ifdef __cplusplus
1257429Smarkmextern "C" {
1357429Smarkm#endif
1457429Smarkm
1557429Smarkm#define LM_MAXSTRLEN 1024
1657429Smarkm#define MAXNAMELEN LM_MAXSTRLEN+1
1757429Smarkm
1857429Smarkmenum nlm_stats {
1957429Smarkm	nlm_granted = 0,
2057429Smarkm	nlm_denied = 1,
2157429Smarkm	nlm_denied_nolocks = 2,
2257429Smarkm	nlm_blocked = 3,
2357429Smarkm	nlm_denied_grace_period = 4,
2457429Smarkm	nlm_deadlck = 5
2557429Smarkm};
2657429Smarkmtypedef enum nlm_stats nlm_stats;
2757429Smarkm
28162852Sdesstruct nlm_holder {
29162852Sdes	bool_t exclusive;
30162852Sdes	int svid;
31162852Sdes	netobj oh;
32162852Sdes	u_int l_offset;
33162852Sdes	u_int l_len;
34162852Sdes};
35181111Sdestypedef struct nlm_holder nlm_holder;
3676259Sgreen
3776259Sgreenstruct nlm_testrply {
3857429Smarkm	nlm_stats stat;
3957429Smarkm	union {
4057429Smarkm		struct nlm_holder holder;
4160573Skris	} nlm_testrply_u;
4276259Sgreen};
4357429Smarkmtypedef struct nlm_testrply nlm_testrply;
4492555Sdes
4592555Sdesstruct nlm_stat {
4692555Sdes	nlm_stats stat;
4792555Sdes};
4892555Sdestypedef struct nlm_stat nlm_stat;
4992555Sdes
5092555Sdesstruct nlm_res {
5192555Sdes	netobj cookie;
5292555Sdes	nlm_stat stat;
53137015Sdes};
54137015Sdestypedef struct nlm_res nlm_res;
5592555Sdes
5692555Sdesstruct nlm_testres {
57137015Sdes	netobj cookie;
58137015Sdes	nlm_testrply stat;
59137015Sdes};
60137015Sdestypedef struct nlm_testres nlm_testres;
61137015Sdes
6292555Sdesstruct nlm_lock {
6392555Sdes	char *caller_name;
6492555Sdes	netobj fh;
6592555Sdes	netobj oh;
6692555Sdes	int svid;
6792555Sdes	u_int l_offset;
6892555Sdes	u_int l_len;
6992555Sdes};
7060573Skristypedef struct nlm_lock nlm_lock;
7157429Smarkm
7257429Smarkmstruct nlm_lockargs {
7357429Smarkm	netobj cookie;
7460573Skris	bool_t block;
7560573Skris	bool_t exclusive;
7660573Skris	struct nlm_lock alock;
7792555Sdes	bool_t reclaim;
7892555Sdes	int state;
7992555Sdes};
8092555Sdestypedef struct nlm_lockargs nlm_lockargs;
81181111Sdes
8257429Smarkmstruct nlm_cancargs {
8360573Skris	netobj cookie;
8492555Sdes	bool_t block;
8592555Sdes	bool_t exclusive;
8660573Skris	struct nlm_lock alock;
8792555Sdes};
8892555Sdestypedef struct nlm_cancargs nlm_cancargs;
8992555Sdes
9092555Sdesstruct nlm_testargs {
9192555Sdes	netobj cookie;
9292555Sdes	bool_t exclusive;
9392555Sdes	struct nlm_lock alock;
9492555Sdes};
95124208Sdestypedef struct nlm_testargs nlm_testargs;
9692555Sdes
9792555Sdesstruct nlm_unlockargs {
9892555Sdes	netobj cookie;
9992555Sdes	struct nlm_lock alock;
10092555Sdes};
10192555Sdestypedef struct nlm_unlockargs nlm_unlockargs;
10292555Sdes/*
10392555Sdes * The following enums are actually bit encoded for efficient
104124208Sdes * boolean algebra.... DON'T change them.....
10592555Sdes */
10692555Sdes
10792555Sdesenum fsh_mode {
10892555Sdes	fsm_DN = 0,
10960573Skris	fsm_DR = 1,
11060573Skris	fsm_DW = 2,
11160573Skris	fsm_DRW = 3
11260573Skris};
11360573Skristypedef enum fsh_mode fsh_mode;
11460573Skris
11557429Smarkmenum fsh_access {
116124208Sdes	fsa_NONE = 0,
11757429Smarkm	fsa_R = 1,
11857429Smarkm	fsa_W = 2,
11992555Sdes	fsa_RW = 3
12057429Smarkm};
12157429Smarkmtypedef enum fsh_access fsh_access;
12257429Smarkm
12360573Skrisstruct nlm_share {
12492555Sdes	char *caller_name;
12557429Smarkm	netobj fh;
12657429Smarkm	netobj oh;
12757429Smarkm	fsh_mode mode;
12860573Skris	fsh_access access;
12992555Sdes};
13057429Smarkmtypedef struct nlm_share nlm_share;
13157429Smarkm
13292555Sdesstruct nlm_shareargs {
13360573Skris	netobj cookie;
13457429Smarkm	nlm_share share;
13557429Smarkm	bool_t reclaim;
13657429Smarkm};
13792555Sdestypedef struct nlm_shareargs nlm_shareargs;
13892555Sdes
13957429Smarkmstruct nlm_shareres {
140124208Sdes	netobj cookie;
14157429Smarkm	nlm_stats stat;
14257429Smarkm	int sequence;
14357429Smarkm};
14492555Sdestypedef struct nlm_shareres nlm_shareres;
14557429Smarkm
14657429Smarkmstruct nlm_notify {
14792555Sdes	char *name;
14860573Skris	long state;
14957429Smarkm};
15057429Smarkmtypedef struct nlm_notify nlm_notify;
15157429Smarkm/* definitions for NLM version 4 */
15292555Sdes
15392555Sdesenum nlm4_stats {
15457429Smarkm	nlm4_granted = 0,
155124208Sdes	nlm4_denied = 1,
15657429Smarkm	nlm4_denied_nolocks = 2,
15792555Sdes	nlm4_blocked = 3,
15860573Skris	nlm4_denied_grace_period = 4,
15957429Smarkm	nlm4_deadlck = 5,
16057429Smarkm	nlm4_rofs = 6,
16157429Smarkm	nlm4_stale_fh = 7,
16257429Smarkm	nlm4_fbig = 8,
16392555Sdes	nlm4_failed = 9
164204917Sdes};
16592555Sdestypedef enum nlm4_stats nlm4_stats;
16692555Sdes
16792555Sdesstruct nlm4_stat {
16892555Sdes	nlm4_stats stat;
16992555Sdes};
17092555Sdestypedef struct nlm4_stat nlm4_stat;
17157429Smarkm
17257429Smarkmstruct nlm4_holder {
17392555Sdes	bool_t exclusive;
17460573Skris	uint32_t svid;
17557429Smarkm	netobj oh;
17657429Smarkm	uint64_t l_offset;
17757429Smarkm	uint64_t l_len;
17860573Skris};
17960573Skristypedef struct nlm4_holder nlm4_holder;
18057429Smarkm
181124208Sdesstruct nlm4_lock {
18257429Smarkm	char *caller_name;
18357429Smarkm	netobj fh;
18492555Sdes	netobj oh;
18557429Smarkm	uint32_t svid;
18657429Smarkm	uint64_t l_offset;
18792555Sdes	uint64_t l_len;
18857429Smarkm};
18957429Smarkmtypedef struct nlm4_lock nlm4_lock;
19092555Sdes
19160573Skrisstruct nlm4_share {
19257429Smarkm	char *caller_name;
19357429Smarkm	netobj fh;
19457429Smarkm	netobj oh;
19560573Skris	fsh_mode mode;
19660573Skris	fsh_access access;
19757429Smarkm};
198124208Sdestypedef struct nlm4_share nlm4_share;
19957429Smarkm
20057429Smarkmstruct nlm4_testrply {
20192555Sdes	nlm4_stats stat;
20260573Skris	union {
20392555Sdes		struct nlm4_holder holder;
20457429Smarkm	} nlm4_testrply_u;
20557429Smarkm};
20692555Sdestypedef struct nlm4_testrply nlm4_testrply;
20760573Skris
20892555Sdesstruct nlm4_testres {
20957429Smarkm	netobj cookie;
21057429Smarkm	nlm4_testrply stat;
21192555Sdes};
21260573Skristypedef struct nlm4_testres nlm4_testres;
21357429Smarkm
21457429Smarkmstruct nlm4_testargs {
21557429Smarkm	netobj cookie;
21692555Sdes	bool_t exclusive;
21792555Sdes	struct nlm4_lock alock;
21857429Smarkm};
219124208Sdestypedef struct nlm4_testargs nlm4_testargs;
22057429Smarkm
22192555Sdesstruct nlm4_res {
22260573Skris	netobj cookie;
22357429Smarkm	nlm4_stat stat;
22457429Smarkm};
22557429Smarkmtypedef struct nlm4_res nlm4_res;
22657429Smarkm
22792555Sdesstruct nlm4_lockargs {
22892555Sdes	netobj cookie;
22992555Sdes	bool_t block;
23092555Sdes	bool_t exclusive;
23157429Smarkm	struct nlm4_lock alock;
23257429Smarkm	bool_t reclaim;
23392555Sdes	int state;
23460573Skris};
23557429Smarkmtypedef struct nlm4_lockargs nlm4_lockargs;
23657429Smarkm
23757429Smarkmstruct nlm4_cancargs {
23857429Smarkm	netobj cookie;
23960573Skris	bool_t block;
24057429Smarkm	bool_t exclusive;
241124208Sdes	struct nlm4_lock alock;
24257429Smarkm};
24357429Smarkmtypedef struct nlm4_cancargs nlm4_cancargs;
24457429Smarkm
24557429Smarkmstruct nlm4_unlockargs {
24657429Smarkm	netobj cookie;
24757429Smarkm	struct nlm4_lock alock;
24857429Smarkm};
24957429Smarkmtypedef struct nlm4_unlockargs nlm4_unlockargs;
25092555Sdes
25160573Skrisstruct nlm4_shareargs {
25257429Smarkm	netobj cookie;
25357429Smarkm	nlm4_share share;
25457429Smarkm	bool_t reclaim;
25557429Smarkm};
25660573Skristypedef struct nlm4_shareargs nlm4_shareargs;
25757429Smarkm
258124208Sdesstruct nlm4_shareres {
25957429Smarkm	netobj cookie;
26057429Smarkm	nlm4_stats stat;
26157429Smarkm	int sequence;
26292555Sdes};
26357429Smarkmtypedef struct nlm4_shareres nlm4_shareres;
26457429Smarkm
26557429Smarkmstruct nlm_sm_status {
26657429Smarkm	char *mon_name;
26757429Smarkm	int state;
26892555Sdes	char priv[16];
26992555Sdes};
27057429Smarkmtypedef struct nlm_sm_status nlm_sm_status;
27157429Smarkm
27257429Smarkmstruct nlm4_notify {
27357429Smarkm	char *name;
27460573Skris	int32_t state;
27560573Skris};
27660573Skristypedef struct nlm4_notify nlm4_notify;
27757429Smarkm
27892555Sdes#define	NLM_PROG ((unsigned long)(100021))
27957429Smarkm#define	NLM_SM ((unsigned long)(0))
280124208Sdes
281204917Sdes#define	NLM_SM_NOTIFY ((unsigned long)(1))
282204917Sdesextern  enum clnt_stat nlm_sm_notify_0(struct nlm_sm_status *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
283204917Sdesextern  bool_t nlm_sm_notify_0_svc(struct nlm_sm_status *, void *, struct svc_req *);
284204917Sdes#define	NLM_VERS ((unsigned long)(1))
285204917Sdes
286204917Sdes#define	NLM_TEST ((unsigned long)(1))
28760573Skrisextern  enum clnt_stat nlm_test_1(struct nlm_testargs *, nlm_testres *, CLIENT *, struct rpc_callextra *, struct timeval);
28860573Skrisextern  bool_t nlm_test_1_svc(struct nlm_testargs *, nlm_testres *, struct svc_req *);
28992555Sdes#define	NLM_LOCK ((unsigned long)(2))
29092555Sdesextern  enum clnt_stat nlm_lock_1(struct nlm_lockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
29160573Skrisextern  bool_t nlm_lock_1_svc(struct nlm_lockargs *, nlm_res *, struct svc_req *);
29260573Skris#define	NLM_CANCEL ((unsigned long)(3))
29360573Skrisextern  enum clnt_stat nlm_cancel_1(struct nlm_cancargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
29460573Skrisextern  bool_t nlm_cancel_1_svc(struct nlm_cancargs *, nlm_res *, struct svc_req *);
29592555Sdes#define	NLM_UNLOCK ((unsigned long)(4))
29692555Sdesextern  enum clnt_stat nlm_unlock_1(struct nlm_unlockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
29792555Sdesextern  bool_t nlm_unlock_1_svc(struct nlm_unlockargs *, nlm_res *, struct svc_req *);
29892555Sdes#define	NLM_GRANTED ((unsigned long)(5))
29992555Sdesextern  enum clnt_stat nlm_granted_1(struct nlm_testargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
30060573Skrisextern  bool_t nlm_granted_1_svc(struct nlm_testargs *, nlm_res *, struct svc_req *);
30160573Skris#define	NLM_TEST_MSG ((unsigned long)(6))
30260573Skrisextern  enum clnt_stat nlm_test_msg_1(struct nlm_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
30360573Skrisextern  bool_t nlm_test_msg_1_svc(struct nlm_testargs *, void *, struct svc_req *);
30460573Skris#define	NLM_LOCK_MSG ((unsigned long)(7))
30592555Sdesextern  enum clnt_stat nlm_lock_msg_1(struct nlm_lockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
30660573Skrisextern  bool_t nlm_lock_msg_1_svc(struct nlm_lockargs *, void *, struct svc_req *);
30760573Skris#define	NLM_CANCEL_MSG ((unsigned long)(8))
308204917Sdesextern  enum clnt_stat nlm_cancel_msg_1(struct nlm_cancargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
309204917Sdesextern  bool_t nlm_cancel_msg_1_svc(struct nlm_cancargs *, void *, struct svc_req *);
31092555Sdes#define	NLM_UNLOCK_MSG ((unsigned long)(9))
31160573Skrisextern  enum clnt_stat nlm_unlock_msg_1(struct nlm_unlockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
31260573Skrisextern  bool_t nlm_unlock_msg_1_svc(struct nlm_unlockargs *, void *, struct svc_req *);
31357429Smarkm#define	NLM_GRANTED_MSG ((unsigned long)(10))
314204917Sdesextern  enum clnt_stat nlm_granted_msg_1(struct nlm_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
315181111Sdesextern  bool_t nlm_granted_msg_1_svc(struct nlm_testargs *, void *, struct svc_req *);
316181111Sdes#define	NLM_TEST_RES ((unsigned long)(11))
317181111Sdesextern  enum clnt_stat nlm_test_res_1(nlm_testres *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
318181111Sdesextern  bool_t nlm_test_res_1_svc(nlm_testres *, void *, struct svc_req *);
319181111Sdes#define	NLM_LOCK_RES ((unsigned long)(12))
320181111Sdesextern  enum clnt_stat nlm_lock_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
321181111Sdesextern  bool_t nlm_lock_res_1_svc(nlm_res *, void *, struct svc_req *);
322181111Sdes#define	NLM_CANCEL_RES ((unsigned long)(13))
323181111Sdesextern  enum clnt_stat nlm_cancel_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
324181111Sdesextern  bool_t nlm_cancel_res_1_svc(nlm_res *, void *, struct svc_req *);
325181111Sdes#define	NLM_UNLOCK_RES ((unsigned long)(14))
32657429Smarkmextern  enum clnt_stat nlm_unlock_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
32792555Sdesextern  bool_t nlm_unlock_res_1_svc(nlm_res *, void *, struct svc_req *);
32857429Smarkm#define	NLM_GRANTED_RES ((unsigned long)(15))
329124208Sdesextern  enum clnt_stat nlm_granted_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
33098675Sdesextern  bool_t nlm_granted_res_1_svc(nlm_res *, void *, struct svc_req *);
33192555Sdesextern int nlm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
33292555Sdes#define	NLM_VERSX ((unsigned long)(3))
33360573Skris
33460573Skris#define	NLM_SHARE ((unsigned long)(20))
33560573Skrisextern  enum clnt_stat nlm_share_3(nlm_shareargs *, nlm_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
33660573Skrisextern  bool_t nlm_share_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *);
337124208Sdes#define	NLM_UNSHARE ((unsigned long)(21))
33860573Skrisextern  enum clnt_stat nlm_unshare_3(nlm_shareargs *, nlm_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
33960573Skrisextern  bool_t nlm_unshare_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *);
34060573Skris#define	NLM_NM_LOCK ((unsigned long)(22))
34160573Skrisextern  enum clnt_stat nlm_nm_lock_3(nlm_lockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
342181111Sdesextern  bool_t nlm_nm_lock_3_svc(nlm_lockargs *, nlm_res *, struct svc_req *);
343181111Sdes#define	NLM_FREE_ALL ((unsigned long)(23))
34492555Sdesextern  enum clnt_stat nlm_free_all_3(nlm_notify *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
34560573Skrisextern  bool_t nlm_free_all_3_svc(nlm_notify *, void *, struct svc_req *);
34660573Skrisextern int nlm_prog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
34792555Sdes#define	NLM_VERS4 ((unsigned long)(4))
34860573Skris
34960573Skris#define	NLM4_TEST ((unsigned long)(1))
35060573Skrisextern  enum clnt_stat nlm4_test_4(nlm4_testargs *, nlm4_testres *, CLIENT *, struct rpc_callextra *, struct timeval);
35160573Skrisextern  bool_t nlm4_test_4_svc(nlm4_testargs *, nlm4_testres *, struct svc_req *);
35260573Skris#define	NLM4_LOCK ((unsigned long)(2))
35360573Skrisextern  enum clnt_stat nlm4_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
35460573Skrisextern  bool_t nlm4_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *);
355124208Sdes#define	NLM4_CANCEL ((unsigned long)(3))
35660573Skrisextern  enum clnt_stat nlm4_cancel_4(nlm4_cancargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
35760573Skrisextern  bool_t nlm4_cancel_4_svc(nlm4_cancargs *, nlm4_res *, struct svc_req *);
35860573Skris#define	NLM4_UNLOCK ((unsigned long)(4))
35960573Skrisextern  enum clnt_stat nlm4_unlock_4(nlm4_unlockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
36060573Skrisextern  bool_t nlm4_unlock_4_svc(nlm4_unlockargs *, nlm4_res *, struct svc_req *);
36198675Sdes#define	NLM4_GRANTED ((unsigned long)(5))
36260573Skrisextern  enum clnt_stat nlm4_granted_4(nlm4_testargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
36360573Skrisextern  bool_t nlm4_granted_4_svc(nlm4_testargs *, nlm4_res *, struct svc_req *);
36492555Sdes#define	NLM4_TEST_MSG ((unsigned long)(6))
36560573Skrisextern  enum clnt_stat nlm4_test_msg_4(nlm4_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
36660573Skrisextern  bool_t nlm4_test_msg_4_svc(nlm4_testargs *, void *, struct svc_req *);
36760573Skris#define	NLM4_LOCK_MSG ((unsigned long)(7))
36860573Skrisextern  enum clnt_stat nlm4_lock_msg_4(nlm4_lockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
36960573Skrisextern  bool_t nlm4_lock_msg_4_svc(nlm4_lockargs *, void *, struct svc_req *);
37060573Skris#define	NLM4_CANCEL_MSG ((unsigned long)(8))
37160573Skrisextern  enum clnt_stat nlm4_cancel_msg_4(nlm4_cancargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
372124208Sdesextern  bool_t nlm4_cancel_msg_4_svc(nlm4_cancargs *, void *, struct svc_req *);
37360573Skris#define	NLM4_UNLOCK_MSG ((unsigned long)(9))
37460573Skrisextern  enum clnt_stat nlm4_unlock_msg_4(nlm4_unlockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
37592555Sdesextern  bool_t nlm4_unlock_msg_4_svc(nlm4_unlockargs *, void *, struct svc_req *);
37660573Skris#define	NLM4_GRANTED_MSG ((unsigned long)(10))
37760573Skrisextern  enum clnt_stat nlm4_granted_msg_4(nlm4_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
37892555Sdesextern  bool_t nlm4_granted_msg_4_svc(nlm4_testargs *, void *, struct svc_req *);
37960573Skris#define	NLM4_TEST_RES ((unsigned long)(11))
38060573Skrisextern  enum clnt_stat nlm4_test_res_4(nlm4_testres *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
38160573Skrisextern  bool_t nlm4_test_res_4_svc(nlm4_testres *, void *, struct svc_req *);
38260573Skris#define	NLM4_LOCK_RES ((unsigned long)(12))
38360573Skrisextern  enum clnt_stat nlm4_lock_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
38460573Skrisextern  bool_t nlm4_lock_res_4_svc(nlm4_res *, void *, struct svc_req *);
38560573Skris#define	NLM4_CANCEL_RES ((unsigned long)(13))
386181111Sdesextern  enum clnt_stat nlm4_cancel_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
387181111Sdesextern  bool_t nlm4_cancel_res_4_svc(nlm4_res *, void *, struct svc_req *);
388181111Sdes#define	NLM4_UNLOCK_RES ((unsigned long)(14))
389181111Sdesextern  enum clnt_stat nlm4_unlock_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
390181111Sdesextern  bool_t nlm4_unlock_res_4_svc(nlm4_res *, void *, struct svc_req *);
391181111Sdes#define	NLM4_GRANTED_RES ((unsigned long)(15))
392181111Sdesextern  enum clnt_stat nlm4_granted_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
393181111Sdesextern  bool_t nlm4_granted_res_4_svc(nlm4_res *, void *, struct svc_req *);
394181111Sdes#define	NLM4_SHARE ((unsigned long)(20))
395192595Sdesextern  enum clnt_stat nlm4_share_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
396192595Sdesextern  bool_t nlm4_share_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *);
397181111Sdes#define	NLM4_UNSHARE ((unsigned long)(21))
398181111Sdesextern  enum clnt_stat nlm4_unshare_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
399181111Sdesextern  bool_t nlm4_unshare_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *);
400181111Sdes#define	NLM4_NM_LOCK ((unsigned long)(22))
401181111Sdesextern  enum clnt_stat nlm4_nm_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
402181111Sdesextern  bool_t nlm4_nm_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *);
40376259Sgreen#define	NLM4_FREE_ALL ((unsigned long)(23))
40476259Sgreenextern  enum clnt_stat nlm4_free_all_4(nlm4_notify *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
40576259Sgreenextern  bool_t nlm4_free_all_4_svc(nlm4_notify *, void *, struct svc_req *);
40692555Sdesextern int nlm_prog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
40792555Sdes
40892555Sdes/* the xdr functions */
40992555Sdesextern  bool_t xdr_nlm_stats(XDR *, nlm_stats*);
41092555Sdesextern  bool_t xdr_nlm_holder(XDR *, nlm_holder*);
41192555Sdesextern  bool_t xdr_nlm_testrply(XDR *, nlm_testrply*);
41292555Sdesextern  bool_t xdr_nlm_stat(XDR *, nlm_stat*);
41392555Sdesextern  bool_t xdr_nlm_res(XDR *, nlm_res*);
41498675Sdesextern  bool_t xdr_nlm_testres(XDR *, nlm_testres*);
41598675Sdesextern  bool_t xdr_nlm_lock(XDR *, nlm_lock*);
41692555Sdesextern  bool_t xdr_nlm_lockargs(XDR *, nlm_lockargs*);
41792555Sdesextern  bool_t xdr_nlm_cancargs(XDR *, nlm_cancargs*);
41892555Sdesextern  bool_t xdr_nlm_testargs(XDR *, nlm_testargs*);
41992555Sdesextern  bool_t xdr_nlm_unlockargs(XDR *, nlm_unlockargs*);
42092555Sdesextern  bool_t xdr_fsh_mode(XDR *, fsh_mode*);
42192555Sdesextern  bool_t xdr_fsh_access(XDR *, fsh_access*);
42292555Sdesextern  bool_t xdr_nlm_share(XDR *, nlm_share*);
42392555Sdesextern  bool_t xdr_nlm_shareargs(XDR *, nlm_shareargs*);
42492555Sdesextern  bool_t xdr_nlm_shareres(XDR *, nlm_shareres*);
42592555Sdesextern  bool_t xdr_nlm_notify(XDR *, nlm_notify*);
42692555Sdesextern  bool_t xdr_nlm4_stats(XDR *, nlm4_stats*);
42792555Sdesextern  bool_t xdr_nlm4_stat(XDR *, nlm4_stat*);
42892555Sdesextern  bool_t xdr_nlm4_holder(XDR *, nlm4_holder*);
42992555Sdesextern  bool_t xdr_nlm4_lock(XDR *, nlm4_lock*);
43092555Sdesextern  bool_t xdr_nlm4_share(XDR *, nlm4_share*);
43192555Sdesextern  bool_t xdr_nlm4_testrply(XDR *, nlm4_testrply*);
43292555Sdesextern  bool_t xdr_nlm4_testres(XDR *, nlm4_testres*);
43392555Sdesextern  bool_t xdr_nlm4_testargs(XDR *, nlm4_testargs*);
43492555Sdesextern  bool_t xdr_nlm4_res(XDR *, nlm4_res*);
43592555Sdesextern  bool_t xdr_nlm4_lockargs(XDR *, nlm4_lockargs*);
43692555Sdesextern  bool_t xdr_nlm4_cancargs(XDR *, nlm4_cancargs*);
43792555Sdesextern  bool_t xdr_nlm4_unlockargs(XDR *, nlm4_unlockargs*);
43892555Sdesextern  bool_t xdr_nlm4_shareargs(XDR *, nlm4_shareargs*);
43992555Sdesextern  bool_t xdr_nlm4_shareres(XDR *, nlm4_shareres*);
44092555Sdesextern  bool_t xdr_nlm_sm_status(XDR *, nlm_sm_status*);
44176259Sgreenextern  bool_t xdr_nlm4_notify(XDR *, nlm4_notify*);
442137015Sdes
44360573Skris#ifdef __cplusplus
44492555Sdes}
445124208Sdes#endif
44692555Sdes
44792555Sdes#endif /* !_NLM_PROT_H_RPCGEN */
44876259Sgreen