2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #ifndef _NLM_PROT_H_RPCGEN
7 #define _NLM_PROT_H_RPCGEN
15 #define LM_MAXSTRLEN 1024
16 #define MAXNAMELEN LM_MAXSTRLEN+1
21 nlm_denied_nolocks = 2,
23 nlm_denied_grace_period = 4,
26 typedef enum nlm_stats nlm_stats;
35 typedef struct nlm_holder nlm_holder;
40 struct nlm_holder holder;
43 typedef struct nlm_testrply nlm_testrply;
48 typedef struct nlm_stat nlm_stat;
54 typedef struct nlm_res nlm_res;
60 typedef struct nlm_testres nlm_testres;
70 typedef struct nlm_lock nlm_lock;
76 struct nlm_lock alock;
80 typedef struct nlm_lockargs nlm_lockargs;
86 struct nlm_lock alock;
88 typedef struct nlm_cancargs nlm_cancargs;
93 struct nlm_lock alock;
95 typedef struct nlm_testargs nlm_testargs;
97 struct nlm_unlockargs {
99 struct nlm_lock alock;
101 typedef struct nlm_unlockargs nlm_unlockargs;
103 * The following enums are actually bit encoded for efficient
104 * boolean algebra.... DON'T change them.....
113 typedef enum fsh_mode fsh_mode;
121 typedef enum fsh_access fsh_access;
130 typedef struct nlm_share nlm_share;
132 struct nlm_shareargs {
137 typedef struct nlm_shareargs nlm_shareargs;
139 struct nlm_shareres {
144 typedef struct nlm_shareres nlm_shareres;
150 typedef struct nlm_notify nlm_notify;
151 /* definitions for NLM version 4 */
156 nlm4_denied_nolocks = 2,
158 nlm4_denied_grace_period = 4,
165 typedef enum nlm4_stats nlm4_stats;
170 typedef struct nlm4_stat nlm4_stat;
179 typedef struct nlm4_holder nlm4_holder;
189 typedef struct nlm4_lock nlm4_lock;
198 typedef struct nlm4_share nlm4_share;
200 struct nlm4_testrply {
203 struct nlm4_holder holder;
206 typedef struct nlm4_testrply nlm4_testrply;
208 struct nlm4_testres {
212 typedef struct nlm4_testres nlm4_testres;
214 struct nlm4_testargs {
217 struct nlm4_lock alock;
219 typedef struct nlm4_testargs nlm4_testargs;
225 typedef struct nlm4_res nlm4_res;
227 struct nlm4_lockargs {
231 struct nlm4_lock alock;
235 typedef struct nlm4_lockargs nlm4_lockargs;
237 struct nlm4_cancargs {
241 struct nlm4_lock alock;
243 typedef struct nlm4_cancargs nlm4_cancargs;
245 struct nlm4_unlockargs {
247 struct nlm4_lock alock;
249 typedef struct nlm4_unlockargs nlm4_unlockargs;
251 struct nlm4_shareargs {
256 typedef struct nlm4_shareargs nlm4_shareargs;
258 struct nlm4_shareres {
263 typedef struct nlm4_shareres nlm4_shareres;
265 struct nlm_sm_status {
270 typedef struct nlm_sm_status nlm_sm_status;
276 typedef struct nlm4_notify nlm4_notify;
278 #define NLM_PROG ((unsigned long)(100021))
279 #define NLM_SM ((unsigned long)(0))
281 #define NLM_SM_NOTIFY ((unsigned long)(1))
282 extern enum clnt_stat nlm_sm_notify_0(struct nlm_sm_status *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
283 extern bool_t nlm_sm_notify_0_svc(struct nlm_sm_status *, void *, struct svc_req *);
284 #define NLM_VERS ((unsigned long)(1))
286 #define NLM_TEST ((unsigned long)(1))
287 extern enum clnt_stat nlm_test_1(struct nlm_testargs *, nlm_testres *, CLIENT *, struct rpc_callextra *, struct timeval);
288 extern bool_t nlm_test_1_svc(struct nlm_testargs *, nlm_testres *, struct svc_req *);
289 #define NLM_LOCK ((unsigned long)(2))
290 extern enum clnt_stat nlm_lock_1(struct nlm_lockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
291 extern bool_t nlm_lock_1_svc(struct nlm_lockargs *, nlm_res *, struct svc_req *);
292 #define NLM_CANCEL ((unsigned long)(3))
293 extern enum clnt_stat nlm_cancel_1(struct nlm_cancargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
294 extern bool_t nlm_cancel_1_svc(struct nlm_cancargs *, nlm_res *, struct svc_req *);
295 #define NLM_UNLOCK ((unsigned long)(4))
296 extern enum clnt_stat nlm_unlock_1(struct nlm_unlockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
297 extern bool_t nlm_unlock_1_svc(struct nlm_unlockargs *, nlm_res *, struct svc_req *);
298 #define NLM_GRANTED ((unsigned long)(5))
299 extern enum clnt_stat nlm_granted_1(struct nlm_testargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
300 extern bool_t nlm_granted_1_svc(struct nlm_testargs *, nlm_res *, struct svc_req *);
301 #define NLM_TEST_MSG ((unsigned long)(6))
302 extern enum clnt_stat nlm_test_msg_1(struct nlm_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
303 extern bool_t nlm_test_msg_1_svc(struct nlm_testargs *, void *, struct svc_req *);
304 #define NLM_LOCK_MSG ((unsigned long)(7))
305 extern enum clnt_stat nlm_lock_msg_1(struct nlm_lockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
306 extern bool_t nlm_lock_msg_1_svc(struct nlm_lockargs *, void *, struct svc_req *);
307 #define NLM_CANCEL_MSG ((unsigned long)(8))
308 extern enum clnt_stat nlm_cancel_msg_1(struct nlm_cancargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
309 extern bool_t nlm_cancel_msg_1_svc(struct nlm_cancargs *, void *, struct svc_req *);
310 #define NLM_UNLOCK_MSG ((unsigned long)(9))
311 extern enum clnt_stat nlm_unlock_msg_1(struct nlm_unlockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
312 extern bool_t nlm_unlock_msg_1_svc(struct nlm_unlockargs *, void *, struct svc_req *);
313 #define NLM_GRANTED_MSG ((unsigned long)(10))
314 extern enum clnt_stat nlm_granted_msg_1(struct nlm_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
315 extern bool_t nlm_granted_msg_1_svc(struct nlm_testargs *, void *, struct svc_req *);
316 #define NLM_TEST_RES ((unsigned long)(11))
317 extern enum clnt_stat nlm_test_res_1(nlm_testres *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
318 extern bool_t nlm_test_res_1_svc(nlm_testres *, void *, struct svc_req *);
319 #define NLM_LOCK_RES ((unsigned long)(12))
320 extern enum clnt_stat nlm_lock_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
321 extern bool_t nlm_lock_res_1_svc(nlm_res *, void *, struct svc_req *);
322 #define NLM_CANCEL_RES ((unsigned long)(13))
323 extern enum clnt_stat nlm_cancel_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
324 extern bool_t nlm_cancel_res_1_svc(nlm_res *, void *, struct svc_req *);
325 #define NLM_UNLOCK_RES ((unsigned long)(14))
326 extern enum clnt_stat nlm_unlock_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
327 extern bool_t nlm_unlock_res_1_svc(nlm_res *, void *, struct svc_req *);
328 #define NLM_GRANTED_RES ((unsigned long)(15))
329 extern enum clnt_stat nlm_granted_res_1(nlm_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
330 extern bool_t nlm_granted_res_1_svc(nlm_res *, void *, struct svc_req *);
331 extern int nlm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
332 #define NLM_VERSX ((unsigned long)(3))
334 #define NLM_SHARE ((unsigned long)(20))
335 extern enum clnt_stat nlm_share_3(nlm_shareargs *, nlm_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
336 extern bool_t nlm_share_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *);
337 #define NLM_UNSHARE ((unsigned long)(21))
338 extern enum clnt_stat nlm_unshare_3(nlm_shareargs *, nlm_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
339 extern bool_t nlm_unshare_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *);
340 #define NLM_NM_LOCK ((unsigned long)(22))
341 extern enum clnt_stat nlm_nm_lock_3(nlm_lockargs *, nlm_res *, CLIENT *, struct rpc_callextra *, struct timeval);
342 extern bool_t nlm_nm_lock_3_svc(nlm_lockargs *, nlm_res *, struct svc_req *);
343 #define NLM_FREE_ALL ((unsigned long)(23))
344 extern enum clnt_stat nlm_free_all_3(nlm_notify *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
345 extern bool_t nlm_free_all_3_svc(nlm_notify *, void *, struct svc_req *);
346 extern int nlm_prog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
347 #define NLM_VERS4 ((unsigned long)(4))
349 #define NLM4_TEST ((unsigned long)(1))
350 extern enum clnt_stat nlm4_test_4(nlm4_testargs *, nlm4_testres *, CLIENT *, struct rpc_callextra *, struct timeval);
351 extern bool_t nlm4_test_4_svc(nlm4_testargs *, nlm4_testres *, struct svc_req *);
352 #define NLM4_LOCK ((unsigned long)(2))
353 extern enum clnt_stat nlm4_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
354 extern bool_t nlm4_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *);
355 #define NLM4_CANCEL ((unsigned long)(3))
356 extern enum clnt_stat nlm4_cancel_4(nlm4_cancargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
357 extern bool_t nlm4_cancel_4_svc(nlm4_cancargs *, nlm4_res *, struct svc_req *);
358 #define NLM4_UNLOCK ((unsigned long)(4))
359 extern enum clnt_stat nlm4_unlock_4(nlm4_unlockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
360 extern bool_t nlm4_unlock_4_svc(nlm4_unlockargs *, nlm4_res *, struct svc_req *);
361 #define NLM4_GRANTED ((unsigned long)(5))
362 extern enum clnt_stat nlm4_granted_4(nlm4_testargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
363 extern bool_t nlm4_granted_4_svc(nlm4_testargs *, nlm4_res *, struct svc_req *);
364 #define NLM4_TEST_MSG ((unsigned long)(6))
365 extern enum clnt_stat nlm4_test_msg_4(nlm4_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
366 extern bool_t nlm4_test_msg_4_svc(nlm4_testargs *, void *, struct svc_req *);
367 #define NLM4_LOCK_MSG ((unsigned long)(7))
368 extern enum clnt_stat nlm4_lock_msg_4(nlm4_lockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
369 extern bool_t nlm4_lock_msg_4_svc(nlm4_lockargs *, void *, struct svc_req *);
370 #define NLM4_CANCEL_MSG ((unsigned long)(8))
371 extern enum clnt_stat nlm4_cancel_msg_4(nlm4_cancargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
372 extern bool_t nlm4_cancel_msg_4_svc(nlm4_cancargs *, void *, struct svc_req *);
373 #define NLM4_UNLOCK_MSG ((unsigned long)(9))
374 extern enum clnt_stat nlm4_unlock_msg_4(nlm4_unlockargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
375 extern bool_t nlm4_unlock_msg_4_svc(nlm4_unlockargs *, void *, struct svc_req *);
376 #define NLM4_GRANTED_MSG ((unsigned long)(10))
377 extern enum clnt_stat nlm4_granted_msg_4(nlm4_testargs *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
378 extern bool_t nlm4_granted_msg_4_svc(nlm4_testargs *, void *, struct svc_req *);
379 #define NLM4_TEST_RES ((unsigned long)(11))
380 extern enum clnt_stat nlm4_test_res_4(nlm4_testres *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
381 extern bool_t nlm4_test_res_4_svc(nlm4_testres *, void *, struct svc_req *);
382 #define NLM4_LOCK_RES ((unsigned long)(12))
383 extern enum clnt_stat nlm4_lock_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
384 extern bool_t nlm4_lock_res_4_svc(nlm4_res *, void *, struct svc_req *);
385 #define NLM4_CANCEL_RES ((unsigned long)(13))
386 extern enum clnt_stat nlm4_cancel_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
387 extern bool_t nlm4_cancel_res_4_svc(nlm4_res *, void *, struct svc_req *);
388 #define NLM4_UNLOCK_RES ((unsigned long)(14))
389 extern enum clnt_stat nlm4_unlock_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
390 extern bool_t nlm4_unlock_res_4_svc(nlm4_res *, void *, struct svc_req *);
391 #define NLM4_GRANTED_RES ((unsigned long)(15))
392 extern enum clnt_stat nlm4_granted_res_4(nlm4_res *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
393 extern bool_t nlm4_granted_res_4_svc(nlm4_res *, void *, struct svc_req *);
394 #define NLM4_SHARE ((unsigned long)(20))
395 extern enum clnt_stat nlm4_share_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
396 extern bool_t nlm4_share_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *);
397 #define NLM4_UNSHARE ((unsigned long)(21))
398 extern enum clnt_stat nlm4_unshare_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *, struct rpc_callextra *, struct timeval);
399 extern bool_t nlm4_unshare_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *);
400 #define NLM4_NM_LOCK ((unsigned long)(22))
401 extern enum clnt_stat nlm4_nm_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *, struct rpc_callextra *, struct timeval);
402 extern bool_t nlm4_nm_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *);
403 #define NLM4_FREE_ALL ((unsigned long)(23))
404 extern enum clnt_stat nlm4_free_all_4(nlm4_notify *, void *, CLIENT *, struct rpc_callextra *, struct timeval);
405 extern bool_t nlm4_free_all_4_svc(nlm4_notify *, void *, struct svc_req *);
406 extern int nlm_prog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
408 /* the xdr functions */
409 extern bool_t xdr_nlm_stats(XDR *, nlm_stats*);
410 extern bool_t xdr_nlm_holder(XDR *, nlm_holder*);
411 extern bool_t xdr_nlm_testrply(XDR *, nlm_testrply*);
412 extern bool_t xdr_nlm_stat(XDR *, nlm_stat*);
413 extern bool_t xdr_nlm_res(XDR *, nlm_res*);
414 extern bool_t xdr_nlm_testres(XDR *, nlm_testres*);
415 extern bool_t xdr_nlm_lock(XDR *, nlm_lock*);
416 extern bool_t xdr_nlm_lockargs(XDR *, nlm_lockargs*);
417 extern bool_t xdr_nlm_cancargs(XDR *, nlm_cancargs*);
418 extern bool_t xdr_nlm_testargs(XDR *, nlm_testargs*);
419 extern bool_t xdr_nlm_unlockargs(XDR *, nlm_unlockargs*);
420 extern bool_t xdr_fsh_mode(XDR *, fsh_mode*);
421 extern bool_t xdr_fsh_access(XDR *, fsh_access*);
422 extern bool_t xdr_nlm_share(XDR *, nlm_share*);
423 extern bool_t xdr_nlm_shareargs(XDR *, nlm_shareargs*);
424 extern bool_t xdr_nlm_shareres(XDR *, nlm_shareres*);
425 extern bool_t xdr_nlm_notify(XDR *, nlm_notify*);
426 extern bool_t xdr_nlm4_stats(XDR *, nlm4_stats*);
427 extern bool_t xdr_nlm4_stat(XDR *, nlm4_stat*);
428 extern bool_t xdr_nlm4_holder(XDR *, nlm4_holder*);
429 extern bool_t xdr_nlm4_lock(XDR *, nlm4_lock*);
430 extern bool_t xdr_nlm4_share(XDR *, nlm4_share*);
431 extern bool_t xdr_nlm4_testrply(XDR *, nlm4_testrply*);
432 extern bool_t xdr_nlm4_testres(XDR *, nlm4_testres*);
433 extern bool_t xdr_nlm4_testargs(XDR *, nlm4_testargs*);
434 extern bool_t xdr_nlm4_res(XDR *, nlm4_res*);
435 extern bool_t xdr_nlm4_lockargs(XDR *, nlm4_lockargs*);
436 extern bool_t xdr_nlm4_cancargs(XDR *, nlm4_cancargs*);
437 extern bool_t xdr_nlm4_unlockargs(XDR *, nlm4_unlockargs*);
438 extern bool_t xdr_nlm4_shareargs(XDR *, nlm4_shareargs*);
439 extern bool_t xdr_nlm4_shareres(XDR *, nlm4_shareres*);
440 extern bool_t xdr_nlm_sm_status(XDR *, nlm_sm_status*);
441 extern bool_t xdr_nlm4_notify(XDR *, nlm4_notify*);
447 #endif /* !_NLM_PROT_H_RPCGEN */