nfs-ganesha 1.4
|
00001 /* 00002 * Please do not edit this file. 00003 * It was generated using rpcgen. 00004 */ 00005 00006 #ifndef _NLM4_H_RPCGEN 00007 #define _NLM4_H_RPCGEN 00008 00009 #ifdef __cplusplus 00010 extern "C" 00011 { 00012 #endif 00013 00014 #define LM_MAXSTRLEN 1024 00015 #define LM_MAXNAMELEN 1025 00016 #define MAXNETOBJ_SZ 1024 00017 #define SM_MAXSTRLEN 1024 00018 #define SM_PRIV_SZ 16 00019 00020 typedef int int32_t; 00021 00022 typedef u_int uint32_t; 00023 00024 typedef quad_t int64_t; 00025 00026 typedef u_quad_t uint64_t; 00027 00028 enum nlm4_stats 00029 { 00030 NLM4_GRANTED = 0, 00031 NLM4_DENIED = 1, 00032 NLM4_DENIED_NOLOCKS = 2, 00033 NLM4_BLOCKED = 3, 00034 NLM4_DENIED_GRACE_PERIOD = 4, 00035 NLM4_DEADLCK = 5, 00036 NLM4_ROFS = 6, 00037 NLM4_STALE_FH = 7, 00038 NLM4_FBIG = 8, 00039 NLM4_FAILED = 9, 00040 }; 00041 typedef enum nlm4_stats nlm4_stats; 00042 00043 struct nlm4_stat 00044 { 00045 nlm4_stats stat; 00046 }; 00047 typedef struct nlm4_stat nlm4_stat; 00048 00049 struct nlm4_res 00050 { 00051 netobj cookie; 00052 nlm4_stat stat; 00053 }; 00054 typedef struct nlm4_res nlm4_res; 00055 00056 struct nlm4_holder 00057 { 00058 bool_t exclusive; 00059 int32_t svid; 00060 netobj oh; 00061 uint64_t l_offset; 00062 uint64_t l_len; 00063 }; 00064 typedef struct nlm4_holder nlm4_holder; 00065 00066 struct nlm4_testrply 00067 { 00068 nlm4_stats stat; 00069 union 00070 { 00071 struct nlm4_holder holder; 00072 } nlm4_testrply_u; 00073 }; 00074 typedef struct nlm4_testrply nlm4_testrply; 00075 00076 struct nlm4_testres 00077 { 00078 netobj cookie; 00079 nlm4_testrply test_stat; 00080 }; 00081 typedef struct nlm4_testres nlm4_testres; 00082 00083 struct nlm4_lock 00084 { 00085 char *caller_name; 00086 netobj fh; 00087 netobj oh; 00088 int32_t svid; 00089 uint64_t l_offset; 00090 uint64_t l_len; 00091 }; 00092 typedef struct nlm4_lock nlm4_lock; 00093 00094 struct nlm4_lockargs 00095 { 00096 netobj cookie; 00097 bool_t block; 00098 bool_t exclusive; 00099 struct nlm4_lock alock; 00100 bool_t reclaim; 00101 int32_t state; 00102 }; 00103 typedef struct nlm4_lockargs nlm4_lockargs; 00104 00105 struct nlm4_cancargs 00106 { 00107 netobj cookie; 00108 bool_t block; 00109 bool_t exclusive; 00110 struct nlm4_lock alock; 00111 }; 00112 typedef struct nlm4_cancargs nlm4_cancargs; 00113 00114 struct nlm4_testargs 00115 { 00116 netobj cookie; 00117 bool_t exclusive; 00118 struct nlm4_lock alock; 00119 }; 00120 typedef struct nlm4_testargs nlm4_testargs; 00121 00122 struct nlm4_unlockargs 00123 { 00124 netobj cookie; 00125 struct nlm4_lock alock; 00126 }; 00127 typedef struct nlm4_unlockargs nlm4_unlockargs; 00128 00129 enum fsh4_mode 00130 { 00131 fsm_DN = 0, 00132 fsm_DR = 1, 00133 fsm_DW = 2, 00134 fsm_DRW = 3, 00135 }; 00136 typedef enum fsh4_mode fsh4_mode; 00137 00138 enum fsh4_access 00139 { 00140 fsa_NONE = 0, 00141 fsa_R = 1, 00142 fsa_W = 2, 00143 fsa_RW = 3, 00144 }; 00145 typedef enum fsh4_access fsh4_access; 00146 00147 struct nlm4_share 00148 { 00149 char *caller_name; 00150 netobj fh; 00151 netobj oh; 00152 fsh4_mode mode; 00153 fsh4_access access; 00154 }; 00155 typedef struct nlm4_share nlm4_share; 00156 00157 struct nlm4_shareargs 00158 { 00159 netobj cookie; 00160 nlm4_share share; 00161 bool_t reclaim; 00162 }; 00163 typedef struct nlm4_shareargs nlm4_shareargs; 00164 00165 struct nlm4_shareres 00166 { 00167 netobj cookie; 00168 nlm4_stats stat; 00169 int32_t sequence; 00170 }; 00171 typedef struct nlm4_shareres nlm4_shareres; 00172 00173 struct nlm4_free_allargs 00174 { 00175 char *name; 00176 uint32_t state; 00177 }; 00178 typedef struct nlm4_free_allargs nlm4_free_allargs; 00179 00180 struct nlm4_sm_notifyargs 00181 { 00182 char *name; 00183 int32_t state; 00184 char priv[SM_PRIV_SZ]; 00185 }; 00186 typedef struct nlm4_sm_notifyargs nlm4_sm_notifyargs; 00187 extern void nlm_init(void); 00188 00189 #define NLMPROG 100021 00190 #define NLM4_VERS 4 00191 00192 #if defined(__STDC__) || defined(__cplusplus) 00193 #define NLMPROC4_NULL 0 00194 extern void *nlmproc4_null_4(void *, CLIENT *); 00195 extern void *nlmproc4_null_4_svc(void *, struct svc_req *); 00196 #define NLMPROC4_TEST 1 00197 extern nlm4_testres *nlmproc4_test_4(nlm4_testargs *, CLIENT *); 00198 extern nlm4_testres *nlmproc4_test_4_svc(nlm4_testargs *, struct svc_req *); 00199 #define NLMPROC4_LOCK 2 00200 extern nlm4_res *nlmproc4_lock_4(nlm4_lockargs *, CLIENT *); 00201 extern nlm4_res *nlmproc4_lock_4_svc(nlm4_lockargs *, struct svc_req *); 00202 #define NLMPROC4_CANCEL 3 00203 extern nlm4_res *nlmproc4_cancel_4(nlm4_cancargs *, CLIENT *); 00204 extern nlm4_res *nlmproc4_cancel_4_svc(nlm4_cancargs *, struct svc_req *); 00205 #define NLMPROC4_UNLOCK 4 00206 extern nlm4_res *nlmproc4_unlock_4(nlm4_unlockargs *, CLIENT *); 00207 extern nlm4_res *nlmproc4_unlock_4_svc(nlm4_unlockargs *, struct svc_req *); 00208 #define NLMPROC4_GRANTED 5 00209 extern nlm4_res *nlmproc4_granted_4(nlm4_testargs *, CLIENT *); 00210 extern nlm4_res *nlmproc4_granted_4_svc(nlm4_testargs *, struct svc_req *); 00211 #define NLMPROC4_TEST_MSG 6 00212 extern void *nlmproc4_test_msg_4(nlm4_testargs *, CLIENT *); 00213 extern void *nlmproc4_test_msg_4_svc(nlm4_testargs *, struct svc_req *); 00214 #define NLMPROC4_LOCK_MSG 7 00215 extern void *nlmproc4_lock_msg_4(nlm4_lockargs *, CLIENT *); 00216 extern void *nlmproc4_lock_msg_4_svc(nlm4_lockargs *, struct svc_req *); 00217 #define NLMPROC4_CANCEL_MSG 8 00218 extern void *nlmproc4_cancel_msg_4(nlm4_cancargs *, CLIENT *); 00219 extern void *nlmproc4_cancel_msg_4_svc(nlm4_cancargs *, struct svc_req *); 00220 #define NLMPROC4_UNLOCK_MSG 9 00221 extern void *nlmproc4_unlock_msg_4(nlm4_unlockargs *, CLIENT *); 00222 extern void *nlmproc4_unlock_msg_4_svc(nlm4_unlockargs *, struct svc_req *); 00223 #define NLMPROC4_GRANTED_MSG 10 00224 extern void *nlmproc4_granted_msg_4(nlm4_testargs *, CLIENT *); 00225 extern void *nlmproc4_granted_msg_4_svc(nlm4_testargs *, struct svc_req *); 00226 #define NLMPROC4_TEST_RES 11 00227 extern void *nlmproc4_test_res_4(nlm4_testres *, CLIENT *); 00228 extern void *nlmproc4_test_res_4_svc(nlm4_testres *, struct svc_req *); 00229 #define NLMPROC4_LOCK_RES 12 00230 extern void *nlmproc4_lock_res_4(nlm4_res *, CLIENT *); 00231 extern void *nlmproc4_lock_res_4_svc(nlm4_res *, struct svc_req *); 00232 #define NLMPROC4_CANCEL_RES 13 00233 extern void *nlmproc4_cancel_res_4(nlm4_res *, CLIENT *); 00234 extern void *nlmproc4_cancel_res_4_svc(nlm4_res *, struct svc_req *); 00235 #define NLMPROC4_UNLOCK_RES 14 00236 extern void *nlmproc4_unlock_res_4(nlm4_res *, CLIENT *); 00237 extern void *nlmproc4_unlock_res_4_svc(nlm4_res *, struct svc_req *); 00238 #define NLMPROC4_GRANTED_RES 15 00239 extern void *nlmproc4_granted_res_4(nlm4_res *, CLIENT *); 00240 extern void *nlmproc4_granted_res_4_svc(nlm4_res *, struct svc_req *); 00241 #define NLMPROC4_SM_NOTIFY 16 00242 extern void *nlmproc4_sm_notify_4(nlm4_sm_notifyargs *, CLIENT *); 00243 extern void *nlmproc4_sm_notify_4_svc(nlm4_sm_notifyargs *, struct svc_req *); 00244 #define NLMPROC4_SHARE 20 00245 extern nlm4_shareres *nlmproc4_share_4(nlm4_shareargs *, CLIENT *); 00246 extern nlm4_shareres *nlmproc4_share_4_svc(nlm4_shareargs *, struct svc_req *); 00247 #define NLMPROC4_UNSHARE 21 00248 extern nlm4_shareres *nlmproc4_unshare_4(nlm4_shareargs *, CLIENT *); 00249 extern nlm4_shareres *nlmproc4_unshare_4_svc(nlm4_shareargs *, struct svc_req *); 00250 #define NLMPROC4_NM_LOCK 22 00251 extern nlm4_res *nlmproc4_nm_lock_4(nlm4_lockargs *, CLIENT *); 00252 extern nlm4_res *nlmproc4_nm_lock_4_svc(nlm4_lockargs *, struct svc_req *); 00253 #define NLMPROC4_FREE_ALL 23 00254 extern void *nlmproc4_free_all_4(nlm4_free_allargs *, CLIENT *); 00255 extern void *nlmproc4_free_all_4_svc(nlm4_free_allargs *, struct svc_req *); 00256 extern int nlmprog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 00257 00258 #else /* K&R C */ 00259 #define NLMPROC4_NULL 0 00260 extern void *nlmproc4_null_4(); 00261 extern void *nlmproc4_null_4_svc(); 00262 #define NLMPROC4_TEST 1 00263 extern nlm4_testres *nlmproc4_test_4(); 00264 extern nlm4_testres *nlmproc4_test_4_svc(); 00265 #define NLMPROC4_LOCK 2 00266 extern nlm4_res *nlmproc4_lock_4(); 00267 extern nlm4_res *nlmproc4_lock_4_svc(); 00268 #define NLMPROC4_CANCEL 3 00269 extern nlm4_res *nlmproc4_cancel_4(); 00270 extern nlm4_res *nlmproc4_cancel_4_svc(); 00271 #define NLMPROC4_UNLOCK 4 00272 extern nlm4_res *nlmproc4_unlock_4(); 00273 extern nlm4_res *nlmproc4_unlock_4_svc(); 00274 #define NLMPROC4_GRANTED 5 00275 extern nlm4_res *nlmproc4_granted_4(); 00276 extern nlm4_res *nlmproc4_granted_4_svc(); 00277 #define NLMPROC4_TEST_MSG 6 00278 extern void *nlmproc4_test_msg_4(); 00279 extern void *nlmproc4_test_msg_4_svc(); 00280 #define NLMPROC4_LOCK_MSG 7 00281 extern void *nlmproc4_lock_msg_4(); 00282 extern void *nlmproc4_lock_msg_4_svc(); 00283 #define NLMPROC4_CANCEL_MSG 8 00284 extern void *nlmproc4_cancel_msg_4(); 00285 extern void *nlmproc4_cancel_msg_4_svc(); 00286 #define NLMPROC4_UNLOCK_MSG 9 00287 extern void *nlmproc4_unlock_msg_4(); 00288 extern void *nlmproc4_unlock_msg_4_svc(); 00289 #define NLMPROC4_GRANTED_MSG 10 00290 extern void *nlmproc4_granted_msg_4(); 00291 extern void *nlmproc4_granted_msg_4_svc(); 00292 #define NLMPROC4_TEST_RES 11 00293 extern void *nlmproc4_test_res_4(); 00294 extern void *nlmproc4_test_res_4_svc(); 00295 #define NLMPROC4_LOCK_RES 12 00296 extern void *nlmproc4_lock_res_4(); 00297 extern void *nlmproc4_lock_res_4_svc(); 00298 #define NLMPROC4_CANCEL_RES 13 00299 extern void *nlmproc4_cancel_res_4(); 00300 extern void *nlmproc4_cancel_res_4_svc(); 00301 #define NLMPROC4_UNLOCK_RES 14 00302 extern void *nlmproc4_unlock_res_4(); 00303 extern void *nlmproc4_unlock_res_4_svc(); 00304 #define NLMPROC4_GRANTED_RES 15 00305 extern void *nlmproc4_granted_res_4(); 00306 extern void *nlmproc4_granted_res_4_svc(); 00307 #define NLMPROC4_SM_NOTIFY 16 00308 extern void *nlmproc4_sm_notify_4(); 00309 extern void *nlmproc4_sm_notify_4_svc(); 00310 #define NLMPROC4_SHARE 20 00311 extern nlm4_shareres *nlmproc4_share_4(); 00312 extern nlm4_shareres *nlmproc4_share_4_svc(); 00313 #define NLMPROC4_UNSHARE 21 00314 extern nlm4_shareres *nlmproc4_unshare_4(); 00315 extern nlm4_shareres *nlmproc4_unshare_4_svc(); 00316 #define NLMPROC4_NM_LOCK 22 00317 extern nlm4_res *nlmproc4_nm_lock_4(); 00318 extern nlm4_res *nlmproc4_nm_lock_4_svc(); 00319 #define NLMPROC4_FREE_ALL 23 00320 extern void *nlmproc4_free_all_4(); 00321 extern void *nlmproc4_free_all_4_svc(); 00322 extern int nlmprog_4_freeresult(); 00323 #endif /* K&R C */ 00324 00325 /* the xdr functions */ 00326 00327 #if defined(__STDC__) || defined(__cplusplus) 00328 extern bool_t xdr_int32_t(XDR *, int32_t *); 00329 extern bool_t xdr_uint32_t(XDR *, uint32_t *); 00330 extern bool_t xdr_int64_t(XDR *, int64_t *); 00331 extern bool_t xdr_uint64_t(XDR *, uint64_t *); 00332 extern bool_t xdr_nlm4_stats(XDR *, nlm4_stats *); 00333 extern bool_t xdr_nlm4_stat(XDR *, nlm4_stat *); 00334 extern bool_t xdr_nlm4_res(XDR *, nlm4_res *); 00335 extern bool_t xdr_nlm4_holder(XDR *, nlm4_holder *); 00336 extern bool_t xdr_nlm4_testrply(XDR *, nlm4_testrply *); 00337 extern bool_t xdr_nlm4_testres(XDR *, nlm4_testres *); 00338 extern bool_t xdr_nlm4_lock(XDR *, nlm4_lock *); 00339 extern bool_t xdr_nlm4_lockargs(XDR *, nlm4_lockargs *); 00340 extern bool_t xdr_nlm4_cancargs(XDR *, nlm4_cancargs *); 00341 extern bool_t xdr_nlm4_testargs(XDR *, nlm4_testargs *); 00342 extern bool_t xdr_nlm4_unlockargs(XDR *, nlm4_unlockargs *); 00343 extern bool_t xdr_fsh4_mode(XDR *, fsh4_mode *); 00344 extern bool_t xdr_fsh4_access(XDR *, fsh4_access *); 00345 extern bool_t xdr_nlm4_share(XDR *, nlm4_share *); 00346 extern bool_t xdr_nlm4_shareargs(XDR *, nlm4_shareargs *); 00347 extern bool_t xdr_nlm4_shareres(XDR *, nlm4_shareres *); 00348 extern bool_t xdr_nlm4_free_allargs(XDR *, nlm4_free_allargs *); 00349 extern bool_t xdr_nlm4_sm_notifyargs(XDR *, nlm4_sm_notifyargs *); 00350 00351 #else /* K&R C */ 00352 extern bool_t xdr_int32_t(); 00353 extern bool_t xdr_uint32_t(); 00354 extern bool_t xdr_int64_t(); 00355 extern bool_t xdr_uint64_t(); 00356 extern bool_t xdr_nlm4_stats(); 00357 extern bool_t xdr_nlm4_stat(); 00358 extern bool_t xdr_nlm4_res(); 00359 extern bool_t xdr_nlm4_holder(); 00360 extern bool_t xdr_nlm4_testrply(); 00361 extern bool_t xdr_nlm4_testres(); 00362 extern bool_t xdr_nlm4_lock(); 00363 extern bool_t xdr_nlm4_lockargs(); 00364 extern bool_t xdr_nlm4_cancargs(); 00365 extern bool_t xdr_nlm4_testargs(); 00366 extern bool_t xdr_nlm4_unlockargs(); 00367 extern bool_t xdr_fsh4_mode(); 00368 extern bool_t xdr_fsh4_access(); 00369 extern bool_t xdr_nlm4_share(); 00370 extern bool_t xdr_nlm4_shareargs(); 00371 extern bool_t xdr_nlm4_shareres(); 00372 extern bool_t xdr_nlm4_free_allargs(); 00373 extern bool_t xdr_nlm4_sm_notifyargs(); 00374 00375 #endif /* K&R C */ 00376 00377 #ifdef __cplusplus 00378 } 00379 #endif 00380 00381 #endif /* !_NLM4_H_RPCGEN */