Back to home page

EIC code displayed by LXR

 
 

    


File indexing completed on 2025-01-18 10:12:36

0001 /*
0002  * Please do not edit this file.
0003  * It was generated using rpcgen.
0004  */
0005 
0006 #ifndef _KLM_PROT_H_RPCGEN
0007 #define _KLM_PROT_H_RPCGEN
0008 
0009 #include <rpc/rpc.h>
0010 
0011 
0012 #ifdef __cplusplus
0013 extern "C" {
0014 #endif
0015 
0016 #define LM_MAXSTRLEN 1024
0017 
0018 enum klm_stats {
0019     klm_granted = 0,
0020     klm_denied = 1,
0021     klm_denied_nolocks = 2,
0022     klm_working = 3,
0023 };
0024 typedef enum klm_stats klm_stats;
0025 
0026 struct klm_lock {
0027     char *server_name;
0028     netobj fh;
0029     int pid;
0030     u_int l_offset;
0031     u_int l_len;
0032 };
0033 typedef struct klm_lock klm_lock;
0034 
0035 struct klm_holder {
0036     bool_t exclusive;
0037     int svid;
0038     u_int l_offset;
0039     u_int l_len;
0040 };
0041 typedef struct klm_holder klm_holder;
0042 
0043 struct klm_stat {
0044     klm_stats stat;
0045 };
0046 typedef struct klm_stat klm_stat;
0047 
0048 struct klm_testrply {
0049     klm_stats stat;
0050     union {
0051         struct klm_holder holder;
0052     } klm_testrply_u;
0053 };
0054 typedef struct klm_testrply klm_testrply;
0055 
0056 struct klm_lockargs {
0057     bool_t block;
0058     bool_t exclusive;
0059     struct klm_lock alock;
0060 };
0061 typedef struct klm_lockargs klm_lockargs;
0062 
0063 struct klm_testargs {
0064     bool_t exclusive;
0065     struct klm_lock alock;
0066 };
0067 typedef struct klm_testargs klm_testargs;
0068 
0069 struct klm_unlockargs {
0070     struct klm_lock alock;
0071 };
0072 typedef struct klm_unlockargs klm_unlockargs;
0073 
0074 #define KLM_PROG 100020
0075 #define KLM_VERS 1
0076 
0077 #if defined(__STDC__) || defined(__cplusplus)
0078 #define KLM_TEST 1
0079 extern  klm_testrply * klm_test_1(struct klm_testargs *, CLIENT *);
0080 extern  klm_testrply * klm_test_1_svc(struct klm_testargs *, struct svc_req *);
0081 #define KLM_LOCK 2
0082 extern  klm_stat * klm_lock_1(struct klm_lockargs *, CLIENT *);
0083 extern  klm_stat * klm_lock_1_svc(struct klm_lockargs *, struct svc_req *);
0084 #define KLM_CANCEL 3
0085 extern  klm_stat * klm_cancel_1(struct klm_lockargs *, CLIENT *);
0086 extern  klm_stat * klm_cancel_1_svc(struct klm_lockargs *, struct svc_req *);
0087 #define KLM_UNLOCK 4
0088 extern  klm_stat * klm_unlock_1(struct klm_unlockargs *, CLIENT *);
0089 extern  klm_stat * klm_unlock_1_svc(struct klm_unlockargs *, struct svc_req *);
0090 extern int klm_prog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
0091 
0092 #else /* K&R C */
0093 #define KLM_TEST 1
0094 extern  klm_testrply * klm_test_1();
0095 extern  klm_testrply * klm_test_1_svc();
0096 #define KLM_LOCK 2
0097 extern  klm_stat * klm_lock_1();
0098 extern  klm_stat * klm_lock_1_svc();
0099 #define KLM_CANCEL 3
0100 extern  klm_stat * klm_cancel_1();
0101 extern  klm_stat * klm_cancel_1_svc();
0102 #define KLM_UNLOCK 4
0103 extern  klm_stat * klm_unlock_1();
0104 extern  klm_stat * klm_unlock_1_svc();
0105 extern int klm_prog_1_freeresult ();
0106 #endif /* K&R C */
0107 
0108 /* the xdr functions */
0109 
0110 #if defined(__STDC__) || defined(__cplusplus)
0111 extern  bool_t xdr_klm_stats (XDR *, klm_stats*);
0112 extern  bool_t xdr_klm_lock (XDR *, klm_lock*);
0113 extern  bool_t xdr_klm_holder (XDR *, klm_holder*);
0114 extern  bool_t xdr_klm_stat (XDR *, klm_stat*);
0115 extern  bool_t xdr_klm_testrply (XDR *, klm_testrply*);
0116 extern  bool_t xdr_klm_lockargs (XDR *, klm_lockargs*);
0117 extern  bool_t xdr_klm_testargs (XDR *, klm_testargs*);
0118 extern  bool_t xdr_klm_unlockargs (XDR *, klm_unlockargs*);
0119 
0120 #else /* K&R C */
0121 extern bool_t xdr_klm_stats ();
0122 extern bool_t xdr_klm_lock ();
0123 extern bool_t xdr_klm_holder ();
0124 extern bool_t xdr_klm_stat ();
0125 extern bool_t xdr_klm_testrply ();
0126 extern bool_t xdr_klm_lockargs ();
0127 extern bool_t xdr_klm_testargs ();
0128 extern bool_t xdr_klm_unlockargs ();
0129 
0130 #endif /* K&R C */
0131 
0132 #ifdef __cplusplus
0133 }
0134 #endif
0135 
0136 #endif /* !_KLM_PROT_H_RPCGEN */