1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef _NLM_PROT_H_RPCGEN 7 #define _NLM_PROT_H_RPCGEN 8 9 #include <rpc/rpc.h> 10 #ifndef _KERNEL 11 #include <synch.h> 12 #include <thread.h> 13 #endif /* !_KERNEL */ 14 15 #ifdef __cplusplus 16 extern "C" { 17 #endif 18 19 20 #include <rpc/rpc_sztypes.h> 21 22 #define LM_MAXSTRLEN 1024 23 #define LM_MAXNAMELEN (LM_MAXSTRLEN + 1) 24 25 enum nlm_stats { 26 nlm_granted = 0, 27 nlm_denied = 1, 28 nlm_denied_nolocks = 2, 29 nlm_blocked = 3, 30 nlm_denied_grace_period = 4, 31 nlm_deadlck = 5 32 }; 33 typedef enum nlm_stats nlm_stats; 34 35 struct nlm_holder { 36 bool_t exclusive; 37 int svid; 38 netobj oh; 39 u_int l_offset; 40 u_int l_len; 41 }; 42 typedef struct nlm_holder nlm_holder; 43 44 struct nlm_testrply { 45 nlm_stats stat; 46 union { 47 struct nlm_holder holder; 48 } nlm_testrply_u; 49 }; 50 typedef struct nlm_testrply nlm_testrply; 51 52 struct nlm_stat { 53 nlm_stats stat; 54 }; 55 typedef struct nlm_stat nlm_stat; 56 57 struct nlm_res { 58 netobj cookie; 59 nlm_stat stat; 60 }; 61 typedef struct nlm_res nlm_res; 62 63 struct nlm_testres { 64 netobj cookie; 65 nlm_testrply stat; 66 }; 67 typedef struct nlm_testres nlm_testres; 68 69 struct nlm_lock { 70 char *caller_name; 71 netobj fh; 72 netobj oh; 73 int svid; 74 u_int l_offset; 75 u_int l_len; 76 }; 77 typedef struct nlm_lock nlm_lock; 78 79 struct nlm_lockargs { 80 netobj cookie; 81 bool_t block; 82 bool_t exclusive; 83 struct nlm_lock alock; 84 bool_t reclaim; 85 int state; 86 }; 87 typedef struct nlm_lockargs nlm_lockargs; 88 89 struct nlm_cancargs { 90 netobj cookie; 91 bool_t block; 92 bool_t exclusive; 93 struct nlm_lock alock; 94 }; 95 typedef struct nlm_cancargs nlm_cancargs; 96 97 struct nlm_testargs { 98 netobj cookie; 99 bool_t exclusive; 100 struct nlm_lock alock; 101 }; 102 typedef struct nlm_testargs nlm_testargs; 103 104 struct nlm_unlockargs { 105 netobj cookie; 106 struct nlm_lock alock; 107 }; 108 typedef struct nlm_unlockargs nlm_unlockargs; 109 /* 110 * The following enums are actually bit encoded for efficient 111 * boolean algebra.... DON'T change them..... 112 * The mixed-case enums violate the present style guide, but we're 113 * stuck with 'em. 114 */ 115 116 enum fsh_mode { 117 fsm_DN = 0, 118 fsm_DR = 1, 119 fsm_DW = 2, 120 fsm_DRW = 3 121 }; 122 typedef enum fsh_mode fsh_mode; 123 124 enum fsh_access { 125 fsa_NONE = 0, 126 fsa_R = 1, 127 fsa_W = 2, 128 fsa_RW = 3 129 }; 130 typedef enum fsh_access fsh_access; 131 132 struct nlm_share { 133 char *caller_name; 134 netobj fh; 135 netobj oh; 136 fsh_mode mode; 137 fsh_access access; 138 }; 139 typedef struct nlm_share nlm_share; 140 141 struct nlm_shareargs { 142 netobj cookie; 143 nlm_share share; 144 bool_t reclaim; 145 }; 146 typedef struct nlm_shareargs nlm_shareargs; 147 148 struct nlm_shareres { 149 netobj cookie; 150 nlm_stats stat; 151 int sequence; 152 }; 153 typedef struct nlm_shareres nlm_shareres; 154 155 struct nlm_notify { 156 char *name; 157 int state; 158 }; 159 typedef struct nlm_notify nlm_notify; 160 161 enum nlm4_stats { 162 nlm4_granted = 0, 163 nlm4_denied = 1, 164 nlm4_denied_nolocks = 2, 165 nlm4_blocked = 3, 166 nlm4_denied_grace_period = 4, 167 nlm4_deadlck = 5, 168 nlm4_rofs = 6, 169 nlm4_stale_fh = 7, 170 nlm4_fbig = 8, 171 nlm4_failed = 9 172 }; 173 typedef enum nlm4_stats nlm4_stats; 174 175 struct nlm4_holder { 176 bool_t exclusive; 177 int32 svid; 178 netobj oh; 179 uint64 l_offset; 180 uint64 l_len; 181 }; 182 typedef struct nlm4_holder nlm4_holder; 183 184 struct nlm4_testrply { 185 nlm4_stats stat; 186 union { 187 struct nlm4_holder holder; 188 } nlm4_testrply_u; 189 }; 190 typedef struct nlm4_testrply nlm4_testrply; 191 192 struct nlm4_stat { 193 nlm4_stats stat; 194 }; 195 typedef struct nlm4_stat nlm4_stat; 196 197 struct nlm4_res { 198 netobj cookie; 199 nlm4_stat stat; 200 }; 201 typedef struct nlm4_res nlm4_res; 202 203 struct nlm4_testres { 204 netobj cookie; 205 nlm4_testrply stat; 206 }; 207 typedef struct nlm4_testres nlm4_testres; 208 209 struct nlm4_lock { 210 char *caller_name; 211 netobj fh; 212 netobj oh; 213 int32 svid; 214 uint64 l_offset; 215 uint64 l_len; 216 }; 217 typedef struct nlm4_lock nlm4_lock; 218 219 struct nlm4_lockargs { 220 netobj cookie; 221 bool_t block; 222 bool_t exclusive; 223 struct nlm4_lock alock; 224 bool_t reclaim; 225 int32 state; 226 }; 227 typedef struct nlm4_lockargs nlm4_lockargs; 228 229 struct nlm4_cancargs { 230 netobj cookie; 231 bool_t block; 232 bool_t exclusive; 233 struct nlm4_lock alock; 234 }; 235 typedef struct nlm4_cancargs nlm4_cancargs; 236 237 struct nlm4_testargs { 238 netobj cookie; 239 bool_t exclusive; 240 struct nlm4_lock alock; 241 }; 242 typedef struct nlm4_testargs nlm4_testargs; 243 244 struct nlm4_unlockargs { 245 netobj cookie; 246 struct nlm4_lock alock; 247 }; 248 typedef struct nlm4_unlockargs nlm4_unlockargs; 249 250 struct nlm4_share { 251 char *caller_name; 252 netobj fh; 253 netobj oh; 254 fsh_mode mode; 255 fsh_access access; 256 }; 257 typedef struct nlm4_share nlm4_share; 258 259 struct nlm4_shareargs { 260 netobj cookie; 261 nlm4_share share; 262 bool_t reclaim; 263 }; 264 typedef struct nlm4_shareargs nlm4_shareargs; 265 266 struct nlm4_shareres { 267 netobj cookie; 268 nlm4_stats stat; 269 int32 sequence; 270 }; 271 typedef struct nlm4_shareres nlm4_shareres; 272 273 struct nlm4_notify { 274 char *name; 275 int32 state; 276 }; 277 typedef struct nlm4_notify nlm4_notify; 278 279 struct nlm_sm_status { 280 char *mon_name; 281 int32 state; 282 char priv[16]; 283 }; 284 typedef struct nlm_sm_status nlm_sm_status; 285 286 #define NLM_PROG 100021 287 #define NLM_VERS 1 288 289 #if defined(__STDC__) || defined(__cplusplus) 290 #define NLM_NULL 0 291 extern enum clnt_stat nlm_null_1(void *, void *, CLIENT *); 292 extern bool_t nlm_null_1_svc(void *, void *, struct svc_req *); 293 #define NLM_TEST 1 294 extern enum clnt_stat nlm_test_1(nlm_testargs *, nlm_testres *, CLIENT *); 295 extern bool_t nlm_test_1_svc(nlm_testargs *, nlm_testres *, struct svc_req *); 296 #define NLM_LOCK 2 297 extern enum clnt_stat nlm_lock_1(nlm_lockargs *, nlm_res *, CLIENT *); 298 extern bool_t nlm_lock_1_svc(nlm_lockargs *, nlm_res *, struct svc_req *); 299 #define NLM_CANCEL 3 300 extern enum clnt_stat nlm_cancel_1(nlm_cancargs *, nlm_res *, CLIENT *); 301 extern bool_t nlm_cancel_1_svc(nlm_cancargs *, nlm_res *, struct svc_req *); 302 #define NLM_UNLOCK 4 303 extern enum clnt_stat nlm_unlock_1(nlm_unlockargs *, nlm_res *, CLIENT *); 304 extern bool_t nlm_unlock_1_svc(nlm_unlockargs *, nlm_res *, struct svc_req *); 305 #define NLM_GRANTED 5 306 extern enum clnt_stat nlm_granted_1(nlm_testargs *, nlm_res *, CLIENT *); 307 extern bool_t nlm_granted_1_svc(nlm_testargs *, nlm_res *, struct svc_req *); 308 #define NLM_TEST_MSG 6 309 extern enum clnt_stat nlm_test_msg_1(nlm_testargs *, void *, CLIENT *); 310 extern bool_t nlm_test_msg_1_svc(nlm_testargs *, void *, struct svc_req *); 311 #define NLM_LOCK_MSG 7 312 extern enum clnt_stat nlm_lock_msg_1(nlm_lockargs *, void *, CLIENT *); 313 extern bool_t nlm_lock_msg_1_svc(nlm_lockargs *, void *, struct svc_req *); 314 #define NLM_CANCEL_MSG 8 315 extern enum clnt_stat nlm_cancel_msg_1(nlm_cancargs *, void *, CLIENT *); 316 extern bool_t nlm_cancel_msg_1_svc(nlm_cancargs *, void *, struct svc_req *); 317 #define NLM_UNLOCK_MSG 9 318 extern enum clnt_stat nlm_unlock_msg_1(nlm_unlockargs *, void *, CLIENT *); 319 extern bool_t nlm_unlock_msg_1_svc(nlm_unlockargs *, void *, struct svc_req *); 320 #define NLM_GRANTED_MSG 10 321 extern enum clnt_stat nlm_granted_msg_1(nlm_testargs *, void *, CLIENT *); 322 extern bool_t nlm_granted_msg_1_svc(nlm_testargs *, void *, struct svc_req *); 323 #define NLM_TEST_RES 11 324 extern enum clnt_stat nlm_test_res_1(nlm_testres *, void *, CLIENT *); 325 extern bool_t nlm_test_res_1_svc(nlm_testres *, void *, struct svc_req *); 326 #define NLM_LOCK_RES 12 327 extern enum clnt_stat nlm_lock_res_1(nlm_res *, void *, CLIENT *); 328 extern bool_t nlm_lock_res_1_svc(nlm_res *, void *, struct svc_req *); 329 #define NLM_CANCEL_RES 13 330 extern enum clnt_stat nlm_cancel_res_1(nlm_res *, void *, CLIENT *); 331 extern bool_t nlm_cancel_res_1_svc(nlm_res *, void *, struct svc_req *); 332 #define NLM_UNLOCK_RES 14 333 extern enum clnt_stat nlm_unlock_res_1(nlm_res *, void *, CLIENT *); 334 extern bool_t nlm_unlock_res_1_svc(nlm_res *, void *, struct svc_req *); 335 #define NLM_GRANTED_RES 15 336 extern enum clnt_stat nlm_granted_res_1(nlm_res *, void *, CLIENT *); 337 extern bool_t nlm_granted_res_1_svc(nlm_res *, void *, struct svc_req *); 338 extern int nlm_prog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 339 340 #else /* K&R C */ 341 #define NLM_NULL 0 342 extern enum clnt_stat nlm_null_1(); 343 extern bool_t nlm_null_1_svc(); 344 #define NLM_TEST 1 345 extern enum clnt_stat nlm_test_1(); 346 extern bool_t nlm_test_1_svc(); 347 #define NLM_LOCK 2 348 extern enum clnt_stat nlm_lock_1(); 349 extern bool_t nlm_lock_1_svc(); 350 #define NLM_CANCEL 3 351 extern enum clnt_stat nlm_cancel_1(); 352 extern bool_t nlm_cancel_1_svc(); 353 #define NLM_UNLOCK 4 354 extern enum clnt_stat nlm_unlock_1(); 355 extern bool_t nlm_unlock_1_svc(); 356 #define NLM_GRANTED 5 357 extern enum clnt_stat nlm_granted_1(); 358 extern bool_t nlm_granted_1_svc(); 359 #define NLM_TEST_MSG 6 360 extern enum clnt_stat nlm_test_msg_1(); 361 extern bool_t nlm_test_msg_1_svc(); 362 #define NLM_LOCK_MSG 7 363 extern enum clnt_stat nlm_lock_msg_1(); 364 extern bool_t nlm_lock_msg_1_svc(); 365 #define NLM_CANCEL_MSG 8 366 extern enum clnt_stat nlm_cancel_msg_1(); 367 extern bool_t nlm_cancel_msg_1_svc(); 368 #define NLM_UNLOCK_MSG 9 369 extern enum clnt_stat nlm_unlock_msg_1(); 370 extern bool_t nlm_unlock_msg_1_svc(); 371 #define NLM_GRANTED_MSG 10 372 extern enum clnt_stat nlm_granted_msg_1(); 373 extern bool_t nlm_granted_msg_1_svc(); 374 #define NLM_TEST_RES 11 375 extern enum clnt_stat nlm_test_res_1(); 376 extern bool_t nlm_test_res_1_svc(); 377 #define NLM_LOCK_RES 12 378 extern enum clnt_stat nlm_lock_res_1(); 379 extern bool_t nlm_lock_res_1_svc(); 380 #define NLM_CANCEL_RES 13 381 extern enum clnt_stat nlm_cancel_res_1(); 382 extern bool_t nlm_cancel_res_1_svc(); 383 #define NLM_UNLOCK_RES 14 384 extern enum clnt_stat nlm_unlock_res_1(); 385 extern bool_t nlm_unlock_res_1_svc(); 386 #define NLM_GRANTED_RES 15 387 extern enum clnt_stat nlm_granted_res_1(); 388 extern bool_t nlm_granted_res_1_svc(); 389 extern int nlm_prog_1_freeresult(); 390 #endif /* K&R C */ 391 #define NLM_SM 2 392 393 #if defined(__STDC__) || defined(__cplusplus) 394 #define NLM_SM_NOTIFY1 17 395 extern enum clnt_stat nlm_sm_notify1_2(struct nlm_sm_status *, void *, CLIENT *); 396 extern bool_t nlm_sm_notify1_2_svc(struct nlm_sm_status *, void *, struct svc_req *); 397 #define NLM_SM_NOTIFY2 18 398 extern enum clnt_stat nlm_sm_notify2_2(struct nlm_sm_status *, void *, CLIENT *); 399 extern bool_t nlm_sm_notify2_2_svc(struct nlm_sm_status *, void *, struct svc_req *); 400 extern int nlm_prog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 401 402 #else /* K&R C */ 403 #define NLM_SM_NOTIFY1 17 404 extern enum clnt_stat nlm_sm_notify1_2(); 405 extern bool_t nlm_sm_notify1_2_svc(); 406 #define NLM_SM_NOTIFY2 18 407 extern enum clnt_stat nlm_sm_notify2_2(); 408 extern bool_t nlm_sm_notify2_2_svc(); 409 extern int nlm_prog_2_freeresult(); 410 #endif /* K&R C */ 411 #define NLM_VERSX 3 412 413 #if defined(__STDC__) || defined(__cplusplus) 414 #define NLM_SHARE 20 415 extern enum clnt_stat nlm_share_3(nlm_shareargs *, nlm_shareres *, CLIENT *); 416 extern bool_t nlm_share_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *); 417 #define NLM_UNSHARE 21 418 extern enum clnt_stat nlm_unshare_3(nlm_shareargs *, nlm_shareres *, CLIENT *); 419 extern bool_t nlm_unshare_3_svc(nlm_shareargs *, nlm_shareres *, struct svc_req *); 420 #define NLM_NM_LOCK 22 421 extern enum clnt_stat nlm_nm_lock_3(nlm_lockargs *, nlm_res *, CLIENT *); 422 extern bool_t nlm_nm_lock_3_svc(nlm_lockargs *, nlm_res *, struct svc_req *); 423 #define NLM_FREE_ALL 23 424 extern enum clnt_stat nlm_free_all_3(nlm_notify *, void *, CLIENT *); 425 extern bool_t nlm_free_all_3_svc(nlm_notify *, void *, struct svc_req *); 426 extern int nlm_prog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 427 428 #else /* K&R C */ 429 #define NLM_SHARE 20 430 extern enum clnt_stat nlm_share_3(); 431 extern bool_t nlm_share_3_svc(); 432 #define NLM_UNSHARE 21 433 extern enum clnt_stat nlm_unshare_3(); 434 extern bool_t nlm_unshare_3_svc(); 435 #define NLM_NM_LOCK 22 436 extern enum clnt_stat nlm_nm_lock_3(); 437 extern bool_t nlm_nm_lock_3_svc(); 438 #define NLM_FREE_ALL 23 439 extern enum clnt_stat nlm_free_all_3(); 440 extern bool_t nlm_free_all_3_svc(); 441 extern int nlm_prog_3_freeresult(); 442 #endif /* K&R C */ 443 #define NLM4_VERS 4 444 445 #if defined(__STDC__) || defined(__cplusplus) 446 #define NLM4_NULL 0 447 extern enum clnt_stat nlm4_null_4(void *, void *, CLIENT *); 448 extern bool_t nlm4_null_4_svc(void *, void *, struct svc_req *); 449 #define NLM4_TEST 1 450 extern enum clnt_stat nlm4_test_4(nlm4_testargs *, nlm4_testres *, CLIENT *); 451 extern bool_t nlm4_test_4_svc(nlm4_testargs *, nlm4_testres *, struct svc_req *); 452 #define NLM4_LOCK 2 453 extern enum clnt_stat nlm4_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *); 454 extern bool_t nlm4_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *); 455 #define NLM4_CANCEL 3 456 extern enum clnt_stat nlm4_cancel_4(nlm4_cancargs *, nlm4_res *, CLIENT *); 457 extern bool_t nlm4_cancel_4_svc(nlm4_cancargs *, nlm4_res *, struct svc_req *); 458 #define NLM4_UNLOCK 4 459 extern enum clnt_stat nlm4_unlock_4(nlm4_unlockargs *, nlm4_res *, CLIENT *); 460 extern bool_t nlm4_unlock_4_svc(nlm4_unlockargs *, nlm4_res *, struct svc_req *); 461 #define NLM4_GRANTED 5 462 extern enum clnt_stat nlm4_granted_4(nlm4_testargs *, nlm4_res *, CLIENT *); 463 extern bool_t nlm4_granted_4_svc(nlm4_testargs *, nlm4_res *, struct svc_req *); 464 #define NLM4_TEST_MSG 6 465 extern enum clnt_stat nlm4_test_msg_4(nlm4_testargs *, void *, CLIENT *); 466 extern bool_t nlm4_test_msg_4_svc(nlm4_testargs *, void *, struct svc_req *); 467 #define NLM4_LOCK_MSG 7 468 extern enum clnt_stat nlm4_lock_msg_4(nlm4_lockargs *, void *, CLIENT *); 469 extern bool_t nlm4_lock_msg_4_svc(nlm4_lockargs *, void *, struct svc_req *); 470 #define NLM4_CANCEL_MSG 8 471 extern enum clnt_stat nlm4_cancel_msg_4(nlm4_cancargs *, void *, CLIENT *); 472 extern bool_t nlm4_cancel_msg_4_svc(nlm4_cancargs *, void *, struct svc_req *); 473 #define NLM4_UNLOCK_MSG 9 474 extern enum clnt_stat nlm4_unlock_msg_4(nlm4_unlockargs *, void *, CLIENT *); 475 extern bool_t nlm4_unlock_msg_4_svc(nlm4_unlockargs *, void *, struct svc_req *); 476 #define NLM4_GRANTED_MSG 10 477 extern enum clnt_stat nlm4_granted_msg_4(nlm4_testargs *, void *, CLIENT *); 478 extern bool_t nlm4_granted_msg_4_svc(nlm4_testargs *, void *, struct svc_req *); 479 #define NLM4_TEST_RES 11 480 extern enum clnt_stat nlm4_test_res_4(nlm4_testres *, void *, CLIENT *); 481 extern bool_t nlm4_test_res_4_svc(nlm4_testres *, void *, struct svc_req *); 482 #define NLM4_LOCK_RES 12 483 extern enum clnt_stat nlm4_lock_res_4(nlm4_res *, void *, CLIENT *); 484 extern bool_t nlm4_lock_res_4_svc(nlm4_res *, void *, struct svc_req *); 485 #define NLM4_CANCEL_RES 13 486 extern enum clnt_stat nlm4_cancel_res_4(nlm4_res *, void *, CLIENT *); 487 extern bool_t nlm4_cancel_res_4_svc(nlm4_res *, void *, struct svc_req *); 488 #define NLM4_UNLOCK_RES 14 489 extern enum clnt_stat nlm4_unlock_res_4(nlm4_res *, void *, CLIENT *); 490 extern bool_t nlm4_unlock_res_4_svc(nlm4_res *, void *, struct svc_req *); 491 #define NLM4_GRANTED_RES 15 492 extern enum clnt_stat nlm4_granted_res_4(nlm4_res *, void *, CLIENT *); 493 extern bool_t nlm4_granted_res_4_svc(nlm4_res *, void *, struct svc_req *); 494 #define NLM4_SHARE 20 495 extern enum clnt_stat nlm4_share_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *); 496 extern bool_t nlm4_share_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *); 497 #define NLM4_UNSHARE 21 498 extern enum clnt_stat nlm4_unshare_4(nlm4_shareargs *, nlm4_shareres *, CLIENT *); 499 extern bool_t nlm4_unshare_4_svc(nlm4_shareargs *, nlm4_shareres *, struct svc_req *); 500 #define NLM4_NM_LOCK 22 501 extern enum clnt_stat nlm4_nm_lock_4(nlm4_lockargs *, nlm4_res *, CLIENT *); 502 extern bool_t nlm4_nm_lock_4_svc(nlm4_lockargs *, nlm4_res *, struct svc_req *); 503 #define NLM4_FREE_ALL 23 504 extern enum clnt_stat nlm4_free_all_4(nlm4_notify *, void *, CLIENT *); 505 extern bool_t nlm4_free_all_4_svc(nlm4_notify *, void *, struct svc_req *); 506 extern int nlm_prog_4_freeresult(SVCXPRT *, xdrproc_t, caddr_t); 507 508 #else /* K&R C */ 509 #define NLM4_NULL 0 510 extern enum clnt_stat nlm4_null_4(); 511 extern bool_t nlm4_null_4_svc(); 512 #define NLM4_TEST 1 513 extern enum clnt_stat nlm4_test_4(); 514 extern bool_t nlm4_test_4_svc(); 515 #define NLM4_LOCK 2 516 extern enum clnt_stat nlm4_lock_4(); 517 extern bool_t nlm4_lock_4_svc(); 518 #define NLM4_CANCEL 3 519 extern enum clnt_stat nlm4_cancel_4(); 520 extern bool_t nlm4_cancel_4_svc(); 521 #define NLM4_UNLOCK 4 522 extern enum clnt_stat nlm4_unlock_4(); 523 extern bool_t nlm4_unlock_4_svc(); 524 #define NLM4_GRANTED 5 525 extern enum clnt_stat nlm4_granted_4(); 526 extern bool_t nlm4_granted_4_svc(); 527 #define NLM4_TEST_MSG 6 528 extern enum clnt_stat nlm4_test_msg_4(); 529 extern bool_t nlm4_test_msg_4_svc(); 530 #define NLM4_LOCK_MSG 7 531 extern enum clnt_stat nlm4_lock_msg_4(); 532 extern bool_t nlm4_lock_msg_4_svc(); 533 #define NLM4_CANCEL_MSG 8 534 extern enum clnt_stat nlm4_cancel_msg_4(); 535 extern bool_t nlm4_cancel_msg_4_svc(); 536 #define NLM4_UNLOCK_MSG 9 537 extern enum clnt_stat nlm4_unlock_msg_4(); 538 extern bool_t nlm4_unlock_msg_4_svc(); 539 #define NLM4_GRANTED_MSG 10 540 extern enum clnt_stat nlm4_granted_msg_4(); 541 extern bool_t nlm4_granted_msg_4_svc(); 542 #define NLM4_TEST_RES 11 543 extern enum clnt_stat nlm4_test_res_4(); 544 extern bool_t nlm4_test_res_4_svc(); 545 #define NLM4_LOCK_RES 12 546 extern enum clnt_stat nlm4_lock_res_4(); 547 extern bool_t nlm4_lock_res_4_svc(); 548 #define NLM4_CANCEL_RES 13 549 extern enum clnt_stat nlm4_cancel_res_4(); 550 extern bool_t nlm4_cancel_res_4_svc(); 551 #define NLM4_UNLOCK_RES 14 552 extern enum clnt_stat nlm4_unlock_res_4(); 553 extern bool_t nlm4_unlock_res_4_svc(); 554 #define NLM4_GRANTED_RES 15 555 extern enum clnt_stat nlm4_granted_res_4(); 556 extern bool_t nlm4_granted_res_4_svc(); 557 #define NLM4_SHARE 20 558 extern enum clnt_stat nlm4_share_4(); 559 extern bool_t nlm4_share_4_svc(); 560 #define NLM4_UNSHARE 21 561 extern enum clnt_stat nlm4_unshare_4(); 562 extern bool_t nlm4_unshare_4_svc(); 563 #define NLM4_NM_LOCK 22 564 extern enum clnt_stat nlm4_nm_lock_4(); 565 extern bool_t nlm4_nm_lock_4_svc(); 566 #define NLM4_FREE_ALL 23 567 extern enum clnt_stat nlm4_free_all_4(); 568 extern bool_t nlm4_free_all_4_svc(); 569 extern int nlm_prog_4_freeresult(); 570 #endif /* K&R C */ 571 572 /* the xdr functions */ 573 574 #if defined(__STDC__) || defined(__cplusplus) 575 extern bool_t xdr_nlm_stats(XDR *, nlm_stats*); 576 extern bool_t xdr_nlm_holder(XDR *, nlm_holder*); 577 extern bool_t xdr_nlm_testrply(XDR *, nlm_testrply*); 578 extern bool_t xdr_nlm_stat(XDR *, nlm_stat*); 579 extern bool_t xdr_nlm_res(XDR *, nlm_res*); 580 extern bool_t xdr_nlm_testres(XDR *, nlm_testres*); 581 extern bool_t xdr_nlm_lock(XDR *, nlm_lock*); 582 extern bool_t xdr_nlm_lockargs(XDR *, nlm_lockargs*); 583 extern bool_t xdr_nlm_cancargs(XDR *, nlm_cancargs*); 584 extern bool_t xdr_nlm_testargs(XDR *, nlm_testargs*); 585 extern bool_t xdr_nlm_unlockargs(XDR *, nlm_unlockargs*); 586 extern bool_t xdr_fsh_mode(XDR *, fsh_mode*); 587 extern bool_t xdr_fsh_access(XDR *, fsh_access*); 588 extern bool_t xdr_nlm_share(XDR *, nlm_share*); 589 extern bool_t xdr_nlm_shareargs(XDR *, nlm_shareargs*); 590 extern bool_t xdr_nlm_shareres(XDR *, nlm_shareres*); 591 extern bool_t xdr_nlm_notify(XDR *, nlm_notify*); 592 extern bool_t xdr_nlm4_stats(XDR *, nlm4_stats*); 593 extern bool_t xdr_nlm4_holder(XDR *, nlm4_holder*); 594 extern bool_t xdr_nlm4_testrply(XDR *, nlm4_testrply*); 595 extern bool_t xdr_nlm4_stat(XDR *, nlm4_stat*); 596 extern bool_t xdr_nlm4_res(XDR *, nlm4_res*); 597 extern bool_t xdr_nlm4_testres(XDR *, nlm4_testres*); 598 extern bool_t xdr_nlm4_lock(XDR *, nlm4_lock*); 599 extern bool_t xdr_nlm4_lockargs(XDR *, nlm4_lockargs*); 600 extern bool_t xdr_nlm4_cancargs(XDR *, nlm4_cancargs*); 601 extern bool_t xdr_nlm4_testargs(XDR *, nlm4_testargs*); 602 extern bool_t xdr_nlm4_unlockargs(XDR *, nlm4_unlockargs*); 603 extern bool_t xdr_nlm4_share(XDR *, nlm4_share*); 604 extern bool_t xdr_nlm4_shareargs(XDR *, nlm4_shareargs*); 605 extern bool_t xdr_nlm4_shareres(XDR *, nlm4_shareres*); 606 extern bool_t xdr_nlm4_notify(XDR *, nlm4_notify*); 607 extern bool_t xdr_nlm_sm_status(XDR *, nlm_sm_status*); 608 609 #else /* K&R C */ 610 extern bool_t xdr_nlm_stats(); 611 extern bool_t xdr_nlm_holder(); 612 extern bool_t xdr_nlm_testrply(); 613 extern bool_t xdr_nlm_stat(); 614 extern bool_t xdr_nlm_res(); 615 extern bool_t xdr_nlm_testres(); 616 extern bool_t xdr_nlm_lock(); 617 extern bool_t xdr_nlm_lockargs(); 618 extern bool_t xdr_nlm_cancargs(); 619 extern bool_t xdr_nlm_testargs(); 620 extern bool_t xdr_nlm_unlockargs(); 621 extern bool_t xdr_fsh_mode(); 622 extern bool_t xdr_fsh_access(); 623 extern bool_t xdr_nlm_share(); 624 extern bool_t xdr_nlm_shareargs(); 625 extern bool_t xdr_nlm_shareres(); 626 extern bool_t xdr_nlm_notify(); 627 extern bool_t xdr_nlm4_stats(); 628 extern bool_t xdr_nlm4_holder(); 629 extern bool_t xdr_nlm4_testrply(); 630 extern bool_t xdr_nlm4_stat(); 631 extern bool_t xdr_nlm4_res(); 632 extern bool_t xdr_nlm4_testres(); 633 extern bool_t xdr_nlm4_lock(); 634 extern bool_t xdr_nlm4_lockargs(); 635 extern bool_t xdr_nlm4_cancargs(); 636 extern bool_t xdr_nlm4_testargs(); 637 extern bool_t xdr_nlm4_unlockargs(); 638 extern bool_t xdr_nlm4_share(); 639 extern bool_t xdr_nlm4_shareargs(); 640 extern bool_t xdr_nlm4_shareres(); 641 extern bool_t xdr_nlm4_notify(); 642 extern bool_t xdr_nlm_sm_status(); 643 644 #endif /* K&R C */ 645 646 #ifdef __cplusplus 647 } 648 #endif 649 650 #endif /* !_NLM_PROT_H_RPCGEN */ 651