1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #include "../../uts/common/rpcsvc/nlm_prot.h" 7 8 #ifndef _KERNEL 9 #include <stdlib.h> 10 #endif /* !_KERNEL */ 11 12 13 bool_t 14 xdr_nlm_stats(xdrs, objp) 15 XDR *xdrs; 16 nlm_stats *objp; 17 { 18 19 rpc_inline_t *buf; 20 21 if (!xdr_enum(xdrs, (enum_t *)objp)) 22 return (FALSE); 23 return (TRUE); 24 } 25 26 bool_t 27 xdr_nlm_holder(xdrs, objp) 28 XDR *xdrs; 29 nlm_holder *objp; 30 { 31 32 rpc_inline_t *buf; 33 34 if (!xdr_bool(xdrs, &objp->exclusive)) 35 return (FALSE); 36 if (!xdr_int(xdrs, &objp->svid)) 37 return (FALSE); 38 if (!xdr_netobj(xdrs, &objp->oh)) 39 return (FALSE); 40 if (!xdr_u_int(xdrs, &objp->l_offset)) 41 return (FALSE); 42 if (!xdr_u_int(xdrs, &objp->l_len)) 43 return (FALSE); 44 return (TRUE); 45 } 46 47 bool_t 48 xdr_nlm_testrply(xdrs, objp) 49 XDR *xdrs; 50 nlm_testrply *objp; 51 { 52 53 rpc_inline_t *buf; 54 55 if (!xdr_nlm_stats(xdrs, &objp->stat)) 56 return (FALSE); 57 switch (objp->stat) { 58 case nlm_denied: 59 if (!xdr_nlm_holder(xdrs, &objp->nlm_testrply_u.holder)) 60 return (FALSE); 61 break; 62 } 63 return (TRUE); 64 } 65 66 bool_t 67 xdr_nlm_stat(xdrs, objp) 68 XDR *xdrs; 69 nlm_stat *objp; 70 { 71 72 rpc_inline_t *buf; 73 74 if (!xdr_nlm_stats(xdrs, &objp->stat)) 75 return (FALSE); 76 return (TRUE); 77 } 78 79 bool_t 80 xdr_nlm_res(xdrs, objp) 81 XDR *xdrs; 82 nlm_res *objp; 83 { 84 85 rpc_inline_t *buf; 86 87 if (!xdr_netobj(xdrs, &objp->cookie)) 88 return (FALSE); 89 if (!xdr_nlm_stat(xdrs, &objp->stat)) 90 return (FALSE); 91 return (TRUE); 92 } 93 94 bool_t 95 xdr_nlm_testres(xdrs, objp) 96 XDR *xdrs; 97 nlm_testres *objp; 98 { 99 100 rpc_inline_t *buf; 101 102 if (!xdr_netobj(xdrs, &objp->cookie)) 103 return (FALSE); 104 if (!xdr_nlm_testrply(xdrs, &objp->stat)) 105 return (FALSE); 106 return (TRUE); 107 } 108 109 bool_t 110 xdr_nlm_lock(xdrs, objp) 111 XDR *xdrs; 112 nlm_lock *objp; 113 { 114 115 rpc_inline_t *buf; 116 117 if (!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN)) 118 return (FALSE); 119 if (!xdr_netobj(xdrs, &objp->fh)) 120 return (FALSE); 121 if (!xdr_netobj(xdrs, &objp->oh)) 122 return (FALSE); 123 if (!xdr_int(xdrs, &objp->svid)) 124 return (FALSE); 125 if (!xdr_u_int(xdrs, &objp->l_offset)) 126 return (FALSE); 127 if (!xdr_u_int(xdrs, &objp->l_len)) 128 return (FALSE); 129 return (TRUE); 130 } 131 132 bool_t 133 xdr_nlm_lockargs(xdrs, objp) 134 XDR *xdrs; 135 nlm_lockargs *objp; 136 { 137 138 rpc_inline_t *buf; 139 140 if (!xdr_netobj(xdrs, &objp->cookie)) 141 return (FALSE); 142 if (!xdr_bool(xdrs, &objp->block)) 143 return (FALSE); 144 if (!xdr_bool(xdrs, &objp->exclusive)) 145 return (FALSE); 146 if (!xdr_nlm_lock(xdrs, &objp->alock)) 147 return (FALSE); 148 if (!xdr_bool(xdrs, &objp->reclaim)) 149 return (FALSE); 150 if (!xdr_int(xdrs, &objp->state)) 151 return (FALSE); 152 return (TRUE); 153 } 154 155 bool_t 156 xdr_nlm_cancargs(xdrs, objp) 157 XDR *xdrs; 158 nlm_cancargs *objp; 159 { 160 161 rpc_inline_t *buf; 162 163 if (!xdr_netobj(xdrs, &objp->cookie)) 164 return (FALSE); 165 if (!xdr_bool(xdrs, &objp->block)) 166 return (FALSE); 167 if (!xdr_bool(xdrs, &objp->exclusive)) 168 return (FALSE); 169 if (!xdr_nlm_lock(xdrs, &objp->alock)) 170 return (FALSE); 171 return (TRUE); 172 } 173 174 bool_t 175 xdr_nlm_testargs(xdrs, objp) 176 XDR *xdrs; 177 nlm_testargs *objp; 178 { 179 180 rpc_inline_t *buf; 181 182 if (!xdr_netobj(xdrs, &objp->cookie)) 183 return (FALSE); 184 if (!xdr_bool(xdrs, &objp->exclusive)) 185 return (FALSE); 186 if (!xdr_nlm_lock(xdrs, &objp->alock)) 187 return (FALSE); 188 return (TRUE); 189 } 190 191 bool_t 192 xdr_nlm_unlockargs(xdrs, objp) 193 XDR *xdrs; 194 nlm_unlockargs *objp; 195 { 196 197 rpc_inline_t *buf; 198 199 if (!xdr_netobj(xdrs, &objp->cookie)) 200 return (FALSE); 201 if (!xdr_nlm_lock(xdrs, &objp->alock)) 202 return (FALSE); 203 return (TRUE); 204 } 205 206 bool_t 207 xdr_fsh_mode(xdrs, objp) 208 XDR *xdrs; 209 fsh_mode *objp; 210 { 211 212 rpc_inline_t *buf; 213 214 if (!xdr_enum(xdrs, (enum_t *)objp)) 215 return (FALSE); 216 return (TRUE); 217 } 218 219 bool_t 220 xdr_fsh_access(xdrs, objp) 221 XDR *xdrs; 222 fsh_access *objp; 223 { 224 225 rpc_inline_t *buf; 226 227 if (!xdr_enum(xdrs, (enum_t *)objp)) 228 return (FALSE); 229 return (TRUE); 230 } 231 232 bool_t 233 xdr_nlm_share(xdrs, objp) 234 XDR *xdrs; 235 nlm_share *objp; 236 { 237 238 rpc_inline_t *buf; 239 240 if (!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN)) 241 return (FALSE); 242 if (!xdr_netobj(xdrs, &objp->fh)) 243 return (FALSE); 244 if (!xdr_netobj(xdrs, &objp->oh)) 245 return (FALSE); 246 if (!xdr_fsh_mode(xdrs, &objp->mode)) 247 return (FALSE); 248 if (!xdr_fsh_access(xdrs, &objp->access)) 249 return (FALSE); 250 return (TRUE); 251 } 252 253 bool_t 254 xdr_nlm_shareargs(xdrs, objp) 255 XDR *xdrs; 256 nlm_shareargs *objp; 257 { 258 259 rpc_inline_t *buf; 260 261 if (!xdr_netobj(xdrs, &objp->cookie)) 262 return (FALSE); 263 if (!xdr_nlm_share(xdrs, &objp->share)) 264 return (FALSE); 265 if (!xdr_bool(xdrs, &objp->reclaim)) 266 return (FALSE); 267 return (TRUE); 268 } 269 270 bool_t 271 xdr_nlm_shareres(xdrs, objp) 272 XDR *xdrs; 273 nlm_shareres *objp; 274 { 275 276 rpc_inline_t *buf; 277 278 if (!xdr_netobj(xdrs, &objp->cookie)) 279 return (FALSE); 280 if (!xdr_nlm_stats(xdrs, &objp->stat)) 281 return (FALSE); 282 if (!xdr_int(xdrs, &objp->sequence)) 283 return (FALSE); 284 return (TRUE); 285 } 286 287 bool_t 288 xdr_nlm_notify(xdrs, objp) 289 XDR *xdrs; 290 nlm_notify *objp; 291 { 292 293 rpc_inline_t *buf; 294 295 if (!xdr_string(xdrs, &objp->name, LM_MAXNAMELEN)) 296 return (FALSE); 297 if (!xdr_int(xdrs, &objp->state)) 298 return (FALSE); 299 return (TRUE); 300 } 301 302 bool_t 303 xdr_nlm4_stats(xdrs, objp) 304 XDR *xdrs; 305 nlm4_stats *objp; 306 { 307 308 rpc_inline_t *buf; 309 310 if (!xdr_enum(xdrs, (enum_t *)objp)) 311 return (FALSE); 312 return (TRUE); 313 } 314 315 bool_t 316 xdr_nlm4_holder(xdrs, objp) 317 XDR *xdrs; 318 nlm4_holder *objp; 319 { 320 321 rpc_inline_t *buf; 322 323 if (!xdr_bool(xdrs, &objp->exclusive)) 324 return (FALSE); 325 if (!xdr_int32(xdrs, &objp->svid)) 326 return (FALSE); 327 if (!xdr_netobj(xdrs, &objp->oh)) 328 return (FALSE); 329 if (!xdr_uint64(xdrs, &objp->l_offset)) 330 return (FALSE); 331 if (!xdr_uint64(xdrs, &objp->l_len)) 332 return (FALSE); 333 return (TRUE); 334 } 335 336 bool_t 337 xdr_nlm4_testrply(xdrs, objp) 338 XDR *xdrs; 339 nlm4_testrply *objp; 340 { 341 342 rpc_inline_t *buf; 343 344 if (!xdr_nlm4_stats(xdrs, &objp->stat)) 345 return (FALSE); 346 switch (objp->stat) { 347 case nlm4_denied: 348 if (!xdr_nlm4_holder(xdrs, &objp->nlm4_testrply_u.holder)) 349 return (FALSE); 350 break; 351 } 352 return (TRUE); 353 } 354 355 bool_t 356 xdr_nlm4_stat(xdrs, objp) 357 XDR *xdrs; 358 nlm4_stat *objp; 359 { 360 361 rpc_inline_t *buf; 362 363 if (!xdr_nlm4_stats(xdrs, &objp->stat)) 364 return (FALSE); 365 return (TRUE); 366 } 367 368 bool_t 369 xdr_nlm4_res(xdrs, objp) 370 XDR *xdrs; 371 nlm4_res *objp; 372 { 373 374 rpc_inline_t *buf; 375 376 if (!xdr_netobj(xdrs, &objp->cookie)) 377 return (FALSE); 378 if (!xdr_nlm4_stat(xdrs, &objp->stat)) 379 return (FALSE); 380 return (TRUE); 381 } 382 383 bool_t 384 xdr_nlm4_testres(xdrs, objp) 385 XDR *xdrs; 386 nlm4_testres *objp; 387 { 388 389 rpc_inline_t *buf; 390 391 if (!xdr_netobj(xdrs, &objp->cookie)) 392 return (FALSE); 393 if (!xdr_nlm4_testrply(xdrs, &objp->stat)) 394 return (FALSE); 395 return (TRUE); 396 } 397 398 bool_t 399 xdr_nlm4_lock(xdrs, objp) 400 XDR *xdrs; 401 nlm4_lock *objp; 402 { 403 404 rpc_inline_t *buf; 405 406 if (!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN)) 407 return (FALSE); 408 if (!xdr_netobj(xdrs, &objp->fh)) 409 return (FALSE); 410 if (!xdr_netobj(xdrs, &objp->oh)) 411 return (FALSE); 412 if (!xdr_int32(xdrs, &objp->svid)) 413 return (FALSE); 414 if (!xdr_uint64(xdrs, &objp->l_offset)) 415 return (FALSE); 416 if (!xdr_uint64(xdrs, &objp->l_len)) 417 return (FALSE); 418 return (TRUE); 419 } 420 421 bool_t 422 xdr_nlm4_lockargs(xdrs, objp) 423 XDR *xdrs; 424 nlm4_lockargs *objp; 425 { 426 427 rpc_inline_t *buf; 428 429 if (!xdr_netobj(xdrs, &objp->cookie)) 430 return (FALSE); 431 if (!xdr_bool(xdrs, &objp->block)) 432 return (FALSE); 433 if (!xdr_bool(xdrs, &objp->exclusive)) 434 return (FALSE); 435 if (!xdr_nlm4_lock(xdrs, &objp->alock)) 436 return (FALSE); 437 if (!xdr_bool(xdrs, &objp->reclaim)) 438 return (FALSE); 439 if (!xdr_int32(xdrs, &objp->state)) 440 return (FALSE); 441 return (TRUE); 442 } 443 444 bool_t 445 xdr_nlm4_cancargs(xdrs, objp) 446 XDR *xdrs; 447 nlm4_cancargs *objp; 448 { 449 450 rpc_inline_t *buf; 451 452 if (!xdr_netobj(xdrs, &objp->cookie)) 453 return (FALSE); 454 if (!xdr_bool(xdrs, &objp->block)) 455 return (FALSE); 456 if (!xdr_bool(xdrs, &objp->exclusive)) 457 return (FALSE); 458 if (!xdr_nlm4_lock(xdrs, &objp->alock)) 459 return (FALSE); 460 return (TRUE); 461 } 462 463 bool_t 464 xdr_nlm4_testargs(xdrs, objp) 465 XDR *xdrs; 466 nlm4_testargs *objp; 467 { 468 469 rpc_inline_t *buf; 470 471 if (!xdr_netobj(xdrs, &objp->cookie)) 472 return (FALSE); 473 if (!xdr_bool(xdrs, &objp->exclusive)) 474 return (FALSE); 475 if (!xdr_nlm4_lock(xdrs, &objp->alock)) 476 return (FALSE); 477 return (TRUE); 478 } 479 480 bool_t 481 xdr_nlm4_unlockargs(xdrs, objp) 482 XDR *xdrs; 483 nlm4_unlockargs *objp; 484 { 485 486 rpc_inline_t *buf; 487 488 if (!xdr_netobj(xdrs, &objp->cookie)) 489 return (FALSE); 490 if (!xdr_nlm4_lock(xdrs, &objp->alock)) 491 return (FALSE); 492 return (TRUE); 493 } 494 495 bool_t 496 xdr_nlm4_share(xdrs, objp) 497 XDR *xdrs; 498 nlm4_share *objp; 499 { 500 501 rpc_inline_t *buf; 502 503 if (!xdr_string(xdrs, &objp->caller_name, LM_MAXSTRLEN)) 504 return (FALSE); 505 if (!xdr_netobj(xdrs, &objp->fh)) 506 return (FALSE); 507 if (!xdr_netobj(xdrs, &objp->oh)) 508 return (FALSE); 509 if (!xdr_fsh_mode(xdrs, &objp->mode)) 510 return (FALSE); 511 if (!xdr_fsh_access(xdrs, &objp->access)) 512 return (FALSE); 513 return (TRUE); 514 } 515 516 bool_t 517 xdr_nlm4_shareargs(xdrs, objp) 518 XDR *xdrs; 519 nlm4_shareargs *objp; 520 { 521 522 rpc_inline_t *buf; 523 524 if (!xdr_netobj(xdrs, &objp->cookie)) 525 return (FALSE); 526 if (!xdr_nlm4_share(xdrs, &objp->share)) 527 return (FALSE); 528 if (!xdr_bool(xdrs, &objp->reclaim)) 529 return (FALSE); 530 return (TRUE); 531 } 532 533 bool_t 534 xdr_nlm4_shareres(xdrs, objp) 535 XDR *xdrs; 536 nlm4_shareres *objp; 537 { 538 539 rpc_inline_t *buf; 540 541 if (!xdr_netobj(xdrs, &objp->cookie)) 542 return (FALSE); 543 if (!xdr_nlm4_stats(xdrs, &objp->stat)) 544 return (FALSE); 545 if (!xdr_int32(xdrs, &objp->sequence)) 546 return (FALSE); 547 return (TRUE); 548 } 549 550 bool_t 551 xdr_nlm4_notify(xdrs, objp) 552 XDR *xdrs; 553 nlm4_notify *objp; 554 { 555 556 rpc_inline_t *buf; 557 558 if (!xdr_string(xdrs, &objp->name, LM_MAXNAMELEN)) 559 return (FALSE); 560 if (!xdr_int32(xdrs, &objp->state)) 561 return (FALSE); 562 return (TRUE); 563 } 564 565 bool_t 566 xdr_nlm_sm_status(xdrs, objp) 567 XDR *xdrs; 568 nlm_sm_status *objp; 569 { 570 571 rpc_inline_t *buf; 572 573 if (!xdr_string(xdrs, &objp->mon_name, LM_MAXSTRLEN)) 574 return (FALSE); 575 if (!xdr_int32(xdrs, &objp->state)) 576 return (FALSE); 577 if (!xdr_opaque(xdrs, objp->priv, 16)) 578 return (FALSE); 579 return (TRUE); 580 } 581