/* * Please do not edit this file. * It was generated using rpcgen. */ #ifndef __INCxdrnlmh #define __INCxdrnlmh #include "xdr_nfs3.h" #include #ifdef __cplusplus extern "C" { #endif #ifndef _WRS_CONFIG_DOSFS_NAME_LENGTH_COMPAT #define LM_MAXSTRLEN 1024 #else #define USE_FILE_PATHLENGTH #ifdef USE_FILE_PATHLENGTH #define LM_MAXSTRLEN 1036 #else #define LM_MAXSTRLEN 1024 #endif #endif /* _WRS_CONFIG_DOSFS_NAME_LENGTH_COMPAT */ #define MAXNAMELEN LM_MAXSTRLEN+1 enum nlm4_stats { NLM4_GRANTED = 0, NLM4_DENIED = 1, NLM4_DENIED_NOLOCKS = 2, NLM4_BLOCKED = 3, NLM4_DENIED_GRACE_PERIOD = 4, NLM4_DEADLCK = 5, NLM4_ROFS = 6, NLM4_STALE_FH = 7, NLM4_FBIG = 8, NLM4_FAILED = 9 }; typedef enum nlm4_stats nlm4_stats; struct nlm4_holder { bool_t exclusive; int32 svid; netobj oh; uint64 l_offset; uint64 l_len; }; typedef struct nlm4_holder nlm4_holder; struct nlm4_testrply { nlm4_stats stat; union { struct nlm4_holder holder; } nlm4_testrply_u; }; typedef struct nlm4_testrply nlm4_testrply; struct nlm4_stat { nlm4_stats stat; }; typedef struct nlm4_stat nlm4_stat; struct nlm4_res { netobj cookie; nlm4_stat stat; }; typedef struct nlm4_res nlm4_res; struct nlm4_testres { netobj cookie; nlm4_testrply stat; }; typedef struct nlm4_testres nlm4_testres; struct nlm4_lock { char *caller_name; netobj fh; netobj oh; int32 svid; uint64 l_offset; uint64 l_len; }; typedef struct nlm4_lock nlm4_lock; struct nlm4_lockargs { netobj cookie; bool_t block; bool_t exclusive; struct nlm4_lock alock; bool_t reclaim; int state; }; typedef struct nlm4_lockargs nlm4_lockargs; struct nlm4_cancargs { netobj cookie; bool_t block; bool_t exclusive; struct nlm4_lock alock; }; typedef struct nlm4_cancargs nlm4_cancargs; struct nlm4_testargs { netobj cookie; bool_t exclusive; struct nlm4_lock alock; }; typedef struct nlm4_testargs nlm4_testargs; struct nlm4_unlockargs { netobj cookie; struct nlm4_lock alock; }; typedef struct nlm4_unlockargs nlm4_unlockargs; /* * The following enums are actually bit encoded for efficient * boolean algebra.... DON'T change them..... */ enum fsh4_mode { fsm_DN = 0, fsm_DR = 1, fsm_DW = 2, fsm_DRW = 3 }; typedef enum fsh4_mode fsh4_mode; enum fsh4_access { fsa_NONE = 0, fsa_R = 1, fsa_W = 2, fsa_RW = 3 }; typedef enum fsh4_access fsh4_access; struct nlm4_share { char *caller_name; netobj fh; netobj oh; fsh4_mode mode; fsh4_access access; }; typedef struct nlm4_share nlm4_share; struct nlm4_shareargs { netobj cookie; nlm4_share share; bool_t reclaim; }; typedef struct nlm4_shareargs nlm4_shareargs; struct nlm4_shareres { netobj cookie; nlm4_stats stat; int sequence; }; typedef struct nlm4_shareres nlm4_shareres; struct nlm4_notify { char *name; int state; }; typedef struct nlm4_notify nlm4_notify; #define NLM_PROG ((u_long)100021) #define NLM4_VERS ((u_long)4) #define NLMPROC4_NULL 0 #define NLMPROC4_TEST 1 #define NLMPROC4_LOCK 2 #define NLMPROC4_CANCEL 3 #define NLMPROC4_UNLOCK 4 #define NLMPROC4_GRANTED 5 #define NLMPROC4_TEST_MSG 6 #define NLMPROC4_LOCK_MSG 7 #define NLMPROC4_CANCEL_MSG 8 #define NLMPROC4_UNLOCK_MSG 9 #define NLMPROC4_GRANTED_MSG 10 #define NLMPROC4_TEST_RES 11 #define NLMPROC4_LOCK_RES 12 #define NLMPROC4_CANCEL_RES 13 #define NLMPROC4_UNLOCK_RES 14 #define NLMPROC4_GRANTED_RES 15 #define NLMPROC4_SHARE 20 #define NLMPROC4_UNSHARE 21 #define NLMPROC4_NM_LOCK 22 #define NLMPROC4_FREE_ALL 23 #if defined(__STDC__) || defined(__cplusplus) extern void * nlmproc4_null_4(void); extern nlm4_testres * nlmproc4_test_4(nlm4_testargs *, struct svc_req *); extern nlm4_res * nlmproc4_lock_4(nlm4_lockargs *, struct svc_req *); extern nlm4_res * nlmproc4_cancel_4(nlm4_cancargs *, struct svc_req *); extern nlm4_res * nlmproc4_unlock_4(nlm4_unlockargs *, struct svc_req *); extern void * nlmproc4_test_msg_4(nlm4_testargs *, struct svc_req *); extern void * nlmproc4_lock_msg_4(nlm4_lockargs *, struct svc_req *); extern void * nlmproc4_cancel_msg_4(nlm4_cancargs *, struct svc_req *); extern void * nlmproc4_unlock_msg_4(nlm4_unlockargs *, struct svc_req *); extern nlm4_shareres * nlmproc4_share_4(nlm4_shareargs *, struct svc_req *); extern nlm4_shareres * nlmproc4_unshare_4(nlm4_shareargs *, struct svc_req *); extern nlm4_res * nlmproc4_nm_lock_4(nlm4_lockargs *, struct svc_req *); extern void * nlmproc4_free_all_4(nlm4_lockargs *, struct svc_req *); extern int nlm_prog_4_freeresult (SVCXPRT *, xdrproc_t, caddr_t); #else /* __STDC__ */ extern void * nlmproc4_null_4(); extern nlm4_testres * nlmproc4_test_4(); extern nlm4_res * nlmproc4_lock_4(); extern nlm4_res * nlmproc4_cancel_4(); extern nlm4_res * nlmproc4_unlock_4(); extern nlm4_res * nlmproc4_granted_4(); extern void * nlmproc4_test_msg_4(); extern void * nlmproc4_lock_msg_4(); extern void * nlmproc4_cancel_msg_4(); extern void * nlmproc4_unlock_msg_4(); extern void * nlmproc4_granted_msg_4(); extern void * nlmproc4_test_res_4(); extern void * nlmproc4_lock_res_4(); extern void * nlmproc4_cancel_res_4(); extern void * nlmproc4_unlock_res_4(); extern void * nlmproc4_granted_res_4(); extern nlm4_shareres * nlmproc4_share_4(); extern nlm4_shareres * nlmproc4_unshare_4(); extern nlm4_res * nlmproc4_nm_lock_4(); extern void * nlmproc4_free_all_4(); extern int nlm_prog_4_freeresult(); #endif /* __STDC__ */ /* the xdr functions */ #if defined(__STDC__) || defined(__cplusplus) extern bool_t xdr_nlm4_stats (XDR *, nlm4_stats*); extern bool_t xdr_nlm4_holder (XDR *, nlm4_holder*); extern bool_t xdr_nlm4_testrply (XDR *, nlm4_testrply*); extern bool_t xdr_nlm4_stat (XDR *, nlm4_stat*); extern bool_t xdr_nlm4_res (XDR *, nlm4_res*); extern bool_t xdr_nlm4_testres (XDR *, nlm4_testres*); extern bool_t xdr_nlm4_lock (XDR *, nlm4_lock*); extern bool_t xdr_nlm4_lockargs (XDR *, nlm4_lockargs*); extern bool_t xdr_nlm4_cancargs (XDR *, nlm4_cancargs*); extern bool_t xdr_nlm4_testargs (XDR *, nlm4_testargs*); extern bool_t xdr_nlm4_unlockargs (XDR *, nlm4_unlockargs*); extern bool_t xdr_fsh4_mode (XDR *, fsh4_mode*); extern bool_t xdr_fsh4_access (XDR *, fsh4_access*); extern bool_t xdr_nlm4_share (XDR *, nlm4_share*); extern bool_t xdr_nlm4_shareargs (XDR *, nlm4_shareargs*); extern bool_t xdr_nlm4_shareres (XDR *, nlm4_shareres*); extern bool_t xdr_nlm4_notify (XDR *, nlm4_notify*); #else /* __STDC__ */ extern bool_t xdr_nlm4_stats(); extern bool_t xdr_nlm4_holder(); extern bool_t xdr_nlm4_testrply(); extern bool_t xdr_nlm4_stat(); extern bool_t xdr_nlm4_res(); extern bool_t xdr_nlm4_testres(); extern bool_t xdr_nlm4_lock(); extern bool_t xdr_nlm4_lockargs(); extern bool_t xdr_nlm4_cancargs(); extern bool_t xdr_nlm4_testargs(); extern bool_t xdr_nlm4_unlockargs(); extern bool_t xdr_fsh4_mode(); extern bool_t xdr_fsh4_access(); extern bool_t xdr_nlm4_share(); extern bool_t xdr_nlm4_shareargs(); extern bool_t xdr_nlm4_shareres(); extern bool_t xdr_nlm4_notify(); #endif /* __STDC__ */ #ifdef __cplusplus } #endif #endif /* __INCxdrnlmh */