File indexing completed on 2024-11-10 04:30:35
0001 /* 0002 * Please do not edit this file. 0003 * It was generated using rpcgen. 0004 */ 0005 0006 #include "rpc_nfs3_prot.h" 0007 #if defined(HAVE_XDR_U_INT64_T) 0008 #define xdr_uint64_t xdr_u_int64_t 0009 #elif !defined(HAVE_XDR_UINT64_T) 0010 #if defined(HAVE_XDR_U_HYPER) 0011 #define xdr_uint64_t xdr_u_hyper 0012 #define xdr_int64_t xdr_hyper 0013 #elif defined(HAVE_XDR_U_LONGLONG_T) 0014 #define xdr_uint64_t xdr_u_longlong_t 0015 #define xdr_int64_t xdr_longlong_t 0016 #endif 0017 #endif 0018 0019 bool_t 0020 xdr_uint64 (XDR *xdrs, uint64 *objp) 0021 { 0022 register int32_t *buf; 0023 0024 if (!xdr_uint64_t (xdrs, objp)) 0025 return FALSE; 0026 return TRUE; 0027 } 0028 0029 bool_t 0030 xdr_int64 (XDR *xdrs, int64 *objp) 0031 { 0032 register int32_t *buf; 0033 0034 if (!xdr_int64_t (xdrs, objp)) 0035 return FALSE; 0036 return TRUE; 0037 } 0038 0039 bool_t 0040 xdr_uint32 (XDR *xdrs, uint32 *objp) 0041 { 0042 register int32_t *buf; 0043 0044 if (!xdr_u_long (xdrs, objp)) 0045 return FALSE; 0046 return TRUE; 0047 } 0048 0049 bool_t 0050 xdr_int32 (XDR *xdrs, int32 *objp) 0051 { 0052 register int32_t *buf; 0053 0054 if (!xdr_long (xdrs, objp)) 0055 return FALSE; 0056 return TRUE; 0057 } 0058 0059 bool_t 0060 xdr_filename3 (XDR *xdrs, filename3 *objp) 0061 { 0062 register int32_t *buf; 0063 0064 if (!xdr_string (xdrs, objp, ~0)) 0065 return FALSE; 0066 return TRUE; 0067 } 0068 0069 bool_t 0070 xdr_nfspath3 (XDR *xdrs, nfspath3 *objp) 0071 { 0072 register int32_t *buf; 0073 0074 if (!xdr_string (xdrs, objp, ~0)) 0075 return FALSE; 0076 return TRUE; 0077 } 0078 0079 bool_t 0080 xdr_fileid3 (XDR *xdrs, fileid3 *objp) 0081 { 0082 register int32_t *buf; 0083 0084 if (!xdr_uint64 (xdrs, objp)) 0085 return FALSE; 0086 return TRUE; 0087 } 0088 0089 bool_t 0090 xdr_cookie3 (XDR *xdrs, cookie3 *objp) 0091 { 0092 register int32_t *buf; 0093 0094 if (!xdr_uint64 (xdrs, objp)) 0095 return FALSE; 0096 return TRUE; 0097 } 0098 0099 bool_t 0100 xdr_cookieverf3 (XDR *xdrs, cookieverf3 objp) 0101 { 0102 register int32_t *buf; 0103 0104 if (!xdr_opaque (xdrs, objp, NFS3_COOKIEVERFSIZE)) 0105 return FALSE; 0106 return TRUE; 0107 } 0108 0109 bool_t 0110 xdr_createverf3 (XDR *xdrs, createverf3 objp) 0111 { 0112 register int32_t *buf; 0113 0114 if (!xdr_opaque (xdrs, objp, NFS3_CREATEVERFSIZE)) 0115 return FALSE; 0116 return TRUE; 0117 } 0118 0119 bool_t 0120 xdr_writeverf3 (XDR *xdrs, writeverf3 objp) 0121 { 0122 register int32_t *buf; 0123 0124 if (!xdr_opaque (xdrs, objp, NFS3_WRITEVERFSIZE)) 0125 return FALSE; 0126 return TRUE; 0127 } 0128 0129 bool_t 0130 xdr_uid3 (XDR *xdrs, uid3 *objp) 0131 { 0132 register int32_t *buf; 0133 0134 if (!xdr_uint32 (xdrs, objp)) 0135 return FALSE; 0136 return TRUE; 0137 } 0138 0139 bool_t 0140 xdr_gid3 (XDR *xdrs, gid3 *objp) 0141 { 0142 register int32_t *buf; 0143 0144 if (!xdr_uint32 (xdrs, objp)) 0145 return FALSE; 0146 return TRUE; 0147 } 0148 0149 bool_t 0150 xdr_size3 (XDR *xdrs, size3 *objp) 0151 { 0152 register int32_t *buf; 0153 0154 if (!xdr_uint64 (xdrs, objp)) 0155 return FALSE; 0156 return TRUE; 0157 } 0158 0159 bool_t 0160 xdr_offset3 (XDR *xdrs, offset3 *objp) 0161 { 0162 register int32_t *buf; 0163 0164 if (!xdr_uint64 (xdrs, objp)) 0165 return FALSE; 0166 return TRUE; 0167 } 0168 0169 bool_t 0170 xdr_mode3 (XDR *xdrs, mode3 *objp) 0171 { 0172 register int32_t *buf; 0173 0174 if (!xdr_uint32 (xdrs, objp)) 0175 return FALSE; 0176 return TRUE; 0177 } 0178 0179 bool_t 0180 xdr_count3 (XDR *xdrs, count3 *objp) 0181 { 0182 register int32_t *buf; 0183 0184 if (!xdr_uint32 (xdrs, objp)) 0185 return FALSE; 0186 return TRUE; 0187 } 0188 0189 bool_t 0190 xdr_nfsstat3 (XDR *xdrs, nfsstat3 *objp) 0191 { 0192 register int32_t *buf; 0193 0194 if (!xdr_enum (xdrs, (enum_t *) objp)) 0195 return FALSE; 0196 return TRUE; 0197 } 0198 0199 bool_t 0200 xdr_ftype3 (XDR *xdrs, ftype3 *objp) 0201 { 0202 register int32_t *buf; 0203 0204 if (!xdr_enum (xdrs, (enum_t *) objp)) 0205 return FALSE; 0206 return TRUE; 0207 } 0208 0209 bool_t 0210 xdr_specdata3 (XDR *xdrs, specdata3 *objp) 0211 { 0212 register int32_t *buf; 0213 0214 if (!xdr_uint32 (xdrs, &objp->specdata1)) 0215 return FALSE; 0216 if (!xdr_uint32 (xdrs, &objp->specdata2)) 0217 return FALSE; 0218 return TRUE; 0219 } 0220 0221 bool_t 0222 xdr_nfs_fh3 (XDR *xdrs, nfs_fh3 *objp) 0223 { 0224 register int32_t *buf; 0225 0226 if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, NFS3_FHSIZE)) 0227 return FALSE; 0228 return TRUE; 0229 } 0230 0231 bool_t 0232 xdr_nfstime3 (XDR *xdrs, nfstime3 *objp) 0233 { 0234 register int32_t *buf; 0235 0236 if (!xdr_uint32 (xdrs, &objp->seconds)) 0237 return FALSE; 0238 if (!xdr_uint32 (xdrs, &objp->nseconds)) 0239 return FALSE; 0240 return TRUE; 0241 } 0242 0243 bool_t 0244 xdr_fattr3 (XDR *xdrs, fattr3 *objp) 0245 { 0246 register int32_t *buf; 0247 0248 if (!xdr_ftype3 (xdrs, &objp->type)) 0249 return FALSE; 0250 if (!xdr_mode3 (xdrs, &objp->mode)) 0251 return FALSE; 0252 if (!xdr_uint32 (xdrs, &objp->nlink)) 0253 return FALSE; 0254 if (!xdr_uid3 (xdrs, &objp->uid)) 0255 return FALSE; 0256 if (!xdr_gid3 (xdrs, &objp->gid)) 0257 return FALSE; 0258 if (!xdr_size3 (xdrs, &objp->size)) 0259 return FALSE; 0260 if (!xdr_size3 (xdrs, &objp->used)) 0261 return FALSE; 0262 if (!xdr_specdata3 (xdrs, &objp->rdev)) 0263 return FALSE; 0264 if (!xdr_uint64 (xdrs, &objp->fsid)) 0265 return FALSE; 0266 if (!xdr_fileid3 (xdrs, &objp->fileid)) 0267 return FALSE; 0268 if (!xdr_nfstime3 (xdrs, &objp->atime)) 0269 return FALSE; 0270 if (!xdr_nfstime3 (xdrs, &objp->mtime)) 0271 return FALSE; 0272 if (!xdr_nfstime3 (xdrs, &objp->ctime)) 0273 return FALSE; 0274 return TRUE; 0275 } 0276 0277 bool_t 0278 xdr_post_op_attr (XDR *xdrs, post_op_attr *objp) 0279 { 0280 register int32_t *buf; 0281 0282 if (!xdr_bool (xdrs, &objp->attributes_follow)) 0283 return FALSE; 0284 switch (objp->attributes_follow) { 0285 case TRUE: 0286 if (!xdr_fattr3 (xdrs, &objp->post_op_attr_u.attributes)) 0287 return FALSE; 0288 break; 0289 case FALSE: 0290 break; 0291 default: 0292 return FALSE; 0293 } 0294 return TRUE; 0295 } 0296 0297 bool_t 0298 xdr_wcc_attr (XDR *xdrs, wcc_attr *objp) 0299 { 0300 register int32_t *buf; 0301 0302 if (!xdr_size3 (xdrs, &objp->size)) 0303 return FALSE; 0304 if (!xdr_nfstime3 (xdrs, &objp->mtime)) 0305 return FALSE; 0306 if (!xdr_nfstime3 (xdrs, &objp->ctime)) 0307 return FALSE; 0308 return TRUE; 0309 } 0310 0311 bool_t 0312 xdr_pre_op_attr (XDR *xdrs, pre_op_attr *objp) 0313 { 0314 register int32_t *buf; 0315 0316 if (!xdr_bool (xdrs, &objp->attributes_follow)) 0317 return FALSE; 0318 switch (objp->attributes_follow) { 0319 case TRUE: 0320 if (!xdr_wcc_attr (xdrs, &objp->pre_op_attr_u.attributes)) 0321 return FALSE; 0322 break; 0323 case FALSE: 0324 break; 0325 default: 0326 return FALSE; 0327 } 0328 return TRUE; 0329 } 0330 0331 bool_t 0332 xdr_wcc_data (XDR *xdrs, wcc_data *objp) 0333 { 0334 register int32_t *buf; 0335 0336 if (!xdr_pre_op_attr (xdrs, &objp->before)) 0337 return FALSE; 0338 if (!xdr_post_op_attr (xdrs, &objp->after)) 0339 return FALSE; 0340 return TRUE; 0341 } 0342 0343 bool_t 0344 xdr_post_op_fh3 (XDR *xdrs, post_op_fh3 *objp) 0345 { 0346 register int32_t *buf; 0347 0348 if (!xdr_bool (xdrs, &objp->handle_follows)) 0349 return FALSE; 0350 switch (objp->handle_follows) { 0351 case TRUE: 0352 if (!xdr_nfs_fh3 (xdrs, &objp->post_op_fh3_u.handle)) 0353 return FALSE; 0354 break; 0355 case FALSE: 0356 break; 0357 default: 0358 return FALSE; 0359 } 0360 return TRUE; 0361 } 0362 0363 bool_t 0364 xdr_time_how (XDR *xdrs, time_how *objp) 0365 { 0366 register int32_t *buf; 0367 0368 if (!xdr_enum (xdrs, (enum_t *) objp)) 0369 return FALSE; 0370 return TRUE; 0371 } 0372 0373 bool_t 0374 xdr_set_mode3 (XDR *xdrs, set_mode3 *objp) 0375 { 0376 register int32_t *buf; 0377 0378 if (!xdr_bool (xdrs, &objp->set_it)) 0379 return FALSE; 0380 switch (objp->set_it) { 0381 case TRUE: 0382 if (!xdr_mode3 (xdrs, &objp->set_mode3_u.mode)) 0383 return FALSE; 0384 break; 0385 default: 0386 break; 0387 } 0388 return TRUE; 0389 } 0390 0391 bool_t 0392 xdr_set_uid3 (XDR *xdrs, set_uid3 *objp) 0393 { 0394 register int32_t *buf; 0395 0396 if (!xdr_bool (xdrs, &objp->set_it)) 0397 return FALSE; 0398 switch (objp->set_it) { 0399 case TRUE: 0400 if (!xdr_uid3 (xdrs, &objp->set_uid3_u.uid)) 0401 return FALSE; 0402 break; 0403 default: 0404 break; 0405 } 0406 return TRUE; 0407 } 0408 0409 bool_t 0410 xdr_set_gid3 (XDR *xdrs, set_gid3 *objp) 0411 { 0412 register int32_t *buf; 0413 0414 if (!xdr_bool (xdrs, &objp->set_it)) 0415 return FALSE; 0416 switch (objp->set_it) { 0417 case TRUE: 0418 if (!xdr_gid3 (xdrs, &objp->set_gid3_u.gid)) 0419 return FALSE; 0420 break; 0421 default: 0422 break; 0423 } 0424 return TRUE; 0425 } 0426 0427 bool_t 0428 xdr_set_size3 (XDR *xdrs, set_size3 *objp) 0429 { 0430 register int32_t *buf; 0431 0432 if (!xdr_bool (xdrs, &objp->set_it)) 0433 return FALSE; 0434 switch (objp->set_it) { 0435 case TRUE: 0436 if (!xdr_size3 (xdrs, &objp->set_size3_u.size)) 0437 return FALSE; 0438 break; 0439 default: 0440 break; 0441 } 0442 return TRUE; 0443 } 0444 0445 bool_t 0446 xdr_set_atime (XDR *xdrs, set_atime *objp) 0447 { 0448 register int32_t *buf; 0449 0450 if (!xdr_time_how (xdrs, &objp->set_it)) 0451 return FALSE; 0452 switch (objp->set_it) { 0453 case SET_TO_CLIENT_TIME: 0454 if (!xdr_nfstime3 (xdrs, &objp->set_atime_u.atime)) 0455 return FALSE; 0456 break; 0457 default: 0458 break; 0459 } 0460 return TRUE; 0461 } 0462 0463 bool_t 0464 xdr_set_mtime (XDR *xdrs, set_mtime *objp) 0465 { 0466 register int32_t *buf; 0467 0468 if (!xdr_time_how (xdrs, &objp->set_it)) 0469 return FALSE; 0470 switch (objp->set_it) { 0471 case SET_TO_CLIENT_TIME: 0472 if (!xdr_nfstime3 (xdrs, &objp->set_mtime_u.mtime)) 0473 return FALSE; 0474 break; 0475 default: 0476 break; 0477 } 0478 return TRUE; 0479 } 0480 0481 bool_t 0482 xdr_sattr3 (XDR *xdrs, sattr3 *objp) 0483 { 0484 register int32_t *buf; 0485 0486 if (!xdr_set_mode3 (xdrs, &objp->mode)) 0487 return FALSE; 0488 if (!xdr_set_uid3 (xdrs, &objp->uid)) 0489 return FALSE; 0490 if (!xdr_set_gid3 (xdrs, &objp->gid)) 0491 return FALSE; 0492 if (!xdr_set_size3 (xdrs, &objp->size)) 0493 return FALSE; 0494 if (!xdr_set_atime (xdrs, &objp->atime)) 0495 return FALSE; 0496 if (!xdr_set_mtime (xdrs, &objp->mtime)) 0497 return FALSE; 0498 return TRUE; 0499 } 0500 0501 bool_t 0502 xdr_diropargs3 (XDR *xdrs, diropargs3 *objp) 0503 { 0504 register int32_t *buf; 0505 0506 if (!xdr_nfs_fh3 (xdrs, &objp->dir)) 0507 return FALSE; 0508 if (!xdr_filename3 (xdrs, &objp->name)) 0509 return FALSE; 0510 return TRUE; 0511 } 0512 0513 bool_t 0514 xdr_GETATTR3args (XDR *xdrs, GETATTR3args *objp) 0515 { 0516 register int32_t *buf; 0517 0518 if (!xdr_nfs_fh3 (xdrs, &objp->object)) 0519 return FALSE; 0520 return TRUE; 0521 } 0522 0523 bool_t 0524 xdr_GETATTR3resok (XDR *xdrs, GETATTR3resok *objp) 0525 { 0526 register int32_t *buf; 0527 0528 if (!xdr_fattr3 (xdrs, &objp->obj_attributes)) 0529 return FALSE; 0530 return TRUE; 0531 } 0532 0533 bool_t 0534 xdr_GETATTR3res (XDR *xdrs, GETATTR3res *objp) 0535 { 0536 register int32_t *buf; 0537 0538 if (!xdr_nfsstat3 (xdrs, &objp->status)) 0539 return FALSE; 0540 switch (objp->status) { 0541 case NFS3_OK: 0542 if (!xdr_GETATTR3resok (xdrs, &objp->GETATTR3res_u.resok)) 0543 return FALSE; 0544 break; 0545 default: 0546 break; 0547 } 0548 return TRUE; 0549 } 0550 0551 bool_t 0552 xdr_sattrguard3 (XDR *xdrs, sattrguard3 *objp) 0553 { 0554 register int32_t *buf; 0555 0556 if (!xdr_bool (xdrs, &objp->check)) 0557 return FALSE; 0558 switch (objp->check) { 0559 case TRUE: 0560 if (!xdr_nfstime3 (xdrs, &objp->sattrguard3_u.obj_ctime)) 0561 return FALSE; 0562 break; 0563 case FALSE: 0564 break; 0565 default: 0566 return FALSE; 0567 } 0568 return TRUE; 0569 } 0570 0571 bool_t 0572 xdr_SETATTR3args (XDR *xdrs, SETATTR3args *objp) 0573 { 0574 register int32_t *buf; 0575 0576 if (!xdr_nfs_fh3 (xdrs, &objp->object)) 0577 return FALSE; 0578 if (!xdr_sattr3 (xdrs, &objp->new_attributes)) 0579 return FALSE; 0580 if (!xdr_sattrguard3 (xdrs, &objp->guard)) 0581 return FALSE; 0582 return TRUE; 0583 } 0584 0585 bool_t 0586 xdr_SETATTR3resok (XDR *xdrs, SETATTR3resok *objp) 0587 { 0588 register int32_t *buf; 0589 0590 if (!xdr_wcc_data (xdrs, &objp->obj_wcc)) 0591 return FALSE; 0592 return TRUE; 0593 } 0594 0595 bool_t 0596 xdr_SETATTR3resfail (XDR *xdrs, SETATTR3resfail *objp) 0597 { 0598 register int32_t *buf; 0599 0600 if (!xdr_wcc_data (xdrs, &objp->obj_wcc)) 0601 return FALSE; 0602 return TRUE; 0603 } 0604 0605 bool_t 0606 xdr_SETATTR3res (XDR *xdrs, SETATTR3res *objp) 0607 { 0608 register int32_t *buf; 0609 0610 if (!xdr_nfsstat3 (xdrs, &objp->status)) 0611 return FALSE; 0612 switch (objp->status) { 0613 case NFS3_OK: 0614 if (!xdr_SETATTR3resok (xdrs, &objp->SETATTR3res_u.resok)) 0615 return FALSE; 0616 break; 0617 default: 0618 if (!xdr_SETATTR3resfail (xdrs, &objp->SETATTR3res_u.resfail)) 0619 return FALSE; 0620 break; 0621 } 0622 return TRUE; 0623 } 0624 0625 bool_t 0626 xdr_LOOKUP3args (XDR *xdrs, LOOKUP3args *objp) 0627 { 0628 register int32_t *buf; 0629 0630 if (!xdr_diropargs3 (xdrs, &objp->what)) 0631 return FALSE; 0632 return TRUE; 0633 } 0634 0635 bool_t 0636 xdr_LOOKUP3resok (XDR *xdrs, LOOKUP3resok *objp) 0637 { 0638 register int32_t *buf; 0639 0640 if (!xdr_nfs_fh3 (xdrs, &objp->object)) 0641 return FALSE; 0642 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 0643 return FALSE; 0644 if (!xdr_post_op_attr (xdrs, &objp->dir_attributes)) 0645 return FALSE; 0646 return TRUE; 0647 } 0648 0649 bool_t 0650 xdr_LOOKUP3resfail (XDR *xdrs, LOOKUP3resfail *objp) 0651 { 0652 register int32_t *buf; 0653 0654 if (!xdr_post_op_attr (xdrs, &objp->dir_attributes)) 0655 return FALSE; 0656 return TRUE; 0657 } 0658 0659 bool_t 0660 xdr_LOOKUP3res (XDR *xdrs, LOOKUP3res *objp) 0661 { 0662 register int32_t *buf; 0663 0664 if (!xdr_nfsstat3 (xdrs, &objp->status)) 0665 return FALSE; 0666 switch (objp->status) { 0667 case NFS3_OK: 0668 if (!xdr_LOOKUP3resok (xdrs, &objp->LOOKUP3res_u.resok)) 0669 return FALSE; 0670 break; 0671 default: 0672 if (!xdr_LOOKUP3resfail (xdrs, &objp->LOOKUP3res_u.resfail)) 0673 return FALSE; 0674 break; 0675 } 0676 return TRUE; 0677 } 0678 0679 bool_t 0680 xdr_ACCESS3args (XDR *xdrs, ACCESS3args *objp) 0681 { 0682 register int32_t *buf; 0683 0684 if (!xdr_nfs_fh3 (xdrs, &objp->object)) 0685 return FALSE; 0686 if (!xdr_uint32 (xdrs, &objp->access)) 0687 return FALSE; 0688 return TRUE; 0689 } 0690 0691 bool_t 0692 xdr_ACCESS3resok (XDR *xdrs, ACCESS3resok *objp) 0693 { 0694 register int32_t *buf; 0695 0696 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 0697 return FALSE; 0698 if (!xdr_uint32 (xdrs, &objp->access)) 0699 return FALSE; 0700 return TRUE; 0701 } 0702 0703 bool_t 0704 xdr_ACCESS3resfail (XDR *xdrs, ACCESS3resfail *objp) 0705 { 0706 register int32_t *buf; 0707 0708 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 0709 return FALSE; 0710 return TRUE; 0711 } 0712 0713 bool_t 0714 xdr_ACCESS3res (XDR *xdrs, ACCESS3res *objp) 0715 { 0716 register int32_t *buf; 0717 0718 if (!xdr_nfsstat3 (xdrs, &objp->status)) 0719 return FALSE; 0720 switch (objp->status) { 0721 case NFS3_OK: 0722 if (!xdr_ACCESS3resok (xdrs, &objp->ACCESS3res_u.resok)) 0723 return FALSE; 0724 break; 0725 default: 0726 if (!xdr_ACCESS3resfail (xdrs, &objp->ACCESS3res_u.resfail)) 0727 return FALSE; 0728 break; 0729 } 0730 return TRUE; 0731 } 0732 0733 bool_t 0734 xdr_READLINK3args (XDR *xdrs, READLINK3args *objp) 0735 { 0736 register int32_t *buf; 0737 0738 if (!xdr_nfs_fh3 (xdrs, &objp->symlink)) 0739 return FALSE; 0740 return TRUE; 0741 } 0742 0743 bool_t 0744 xdr_READLINK3resok (XDR *xdrs, READLINK3resok *objp) 0745 { 0746 register int32_t *buf; 0747 0748 if (!xdr_post_op_attr (xdrs, &objp->symlink_attributes)) 0749 return FALSE; 0750 if (!xdr_nfspath3 (xdrs, &objp->data)) 0751 return FALSE; 0752 return TRUE; 0753 } 0754 0755 bool_t 0756 xdr_READLINK3resfail (XDR *xdrs, READLINK3resfail *objp) 0757 { 0758 register int32_t *buf; 0759 0760 if (!xdr_post_op_attr (xdrs, &objp->symlink_attributes)) 0761 return FALSE; 0762 return TRUE; 0763 } 0764 0765 bool_t 0766 xdr_READLINK3res (XDR *xdrs, READLINK3res *objp) 0767 { 0768 register int32_t *buf; 0769 0770 if (!xdr_nfsstat3 (xdrs, &objp->status)) 0771 return FALSE; 0772 switch (objp->status) { 0773 case NFS3_OK: 0774 if (!xdr_READLINK3resok (xdrs, &objp->READLINK3res_u.resok)) 0775 return FALSE; 0776 break; 0777 default: 0778 if (!xdr_READLINK3resfail (xdrs, &objp->READLINK3res_u.resfail)) 0779 return FALSE; 0780 break; 0781 } 0782 return TRUE; 0783 } 0784 0785 bool_t 0786 xdr_READ3args (XDR *xdrs, READ3args *objp) 0787 { 0788 register int32_t *buf; 0789 0790 if (!xdr_nfs_fh3 (xdrs, &objp->file)) 0791 return FALSE; 0792 if (!xdr_offset3 (xdrs, &objp->offset)) 0793 return FALSE; 0794 if (!xdr_count3 (xdrs, &objp->count)) 0795 return FALSE; 0796 return TRUE; 0797 } 0798 0799 bool_t 0800 xdr_READ3resok (XDR *xdrs, READ3resok *objp) 0801 { 0802 register int32_t *buf; 0803 0804 if (!xdr_post_op_attr (xdrs, &objp->file_attributes)) 0805 return FALSE; 0806 if (!xdr_count3 (xdrs, &objp->count)) 0807 return FALSE; 0808 if (!xdr_bool (xdrs, &objp->eof)) 0809 return FALSE; 0810 if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0)) 0811 return FALSE; 0812 return TRUE; 0813 } 0814 0815 bool_t 0816 xdr_READ3resfail (XDR *xdrs, READ3resfail *objp) 0817 { 0818 register int32_t *buf; 0819 0820 if (!xdr_post_op_attr (xdrs, &objp->file_attributes)) 0821 return FALSE; 0822 return TRUE; 0823 } 0824 0825 bool_t 0826 xdr_READ3res (XDR *xdrs, READ3res *objp) 0827 { 0828 register int32_t *buf; 0829 0830 if (!xdr_nfsstat3 (xdrs, &objp->status)) 0831 return FALSE; 0832 switch (objp->status) { 0833 case NFS3_OK: 0834 if (!xdr_READ3resok (xdrs, &objp->READ3res_u.resok)) 0835 return FALSE; 0836 break; 0837 default: 0838 if (!xdr_READ3resfail (xdrs, &objp->READ3res_u.resfail)) 0839 return FALSE; 0840 break; 0841 } 0842 return TRUE; 0843 } 0844 0845 bool_t 0846 xdr_stable_how (XDR *xdrs, stable_how *objp) 0847 { 0848 register int32_t *buf; 0849 0850 if (!xdr_enum (xdrs, (enum_t *) objp)) 0851 return FALSE; 0852 return TRUE; 0853 } 0854 0855 bool_t 0856 xdr_WRITE3args (XDR *xdrs, WRITE3args *objp) 0857 { 0858 register int32_t *buf; 0859 0860 if (!xdr_nfs_fh3 (xdrs, &objp->file)) 0861 return FALSE; 0862 if (!xdr_offset3 (xdrs, &objp->offset)) 0863 return FALSE; 0864 if (!xdr_count3 (xdrs, &objp->count)) 0865 return FALSE; 0866 if (!xdr_stable_how (xdrs, &objp->stable)) 0867 return FALSE; 0868 if (!xdr_bytes (xdrs, (char **)&objp->data.data_val, (u_int *) &objp->data.data_len, ~0)) 0869 return FALSE; 0870 return TRUE; 0871 } 0872 0873 bool_t 0874 xdr_WRITE3resok (XDR *xdrs, WRITE3resok *objp) 0875 { 0876 register int32_t *buf; 0877 0878 if (!xdr_wcc_data (xdrs, &objp->file_wcc)) 0879 return FALSE; 0880 if (!xdr_count3 (xdrs, &objp->count)) 0881 return FALSE; 0882 if (!xdr_stable_how (xdrs, &objp->committed)) 0883 return FALSE; 0884 if (!xdr_writeverf3 (xdrs, objp->verf)) 0885 return FALSE; 0886 return TRUE; 0887 } 0888 0889 bool_t 0890 xdr_WRITE3resfail (XDR *xdrs, WRITE3resfail *objp) 0891 { 0892 register int32_t *buf; 0893 0894 if (!xdr_wcc_data (xdrs, &objp->file_wcc)) 0895 return FALSE; 0896 return TRUE; 0897 } 0898 0899 bool_t 0900 xdr_WRITE3res (XDR *xdrs, WRITE3res *objp) 0901 { 0902 register int32_t *buf; 0903 0904 if (!xdr_nfsstat3 (xdrs, &objp->status)) 0905 return FALSE; 0906 switch (objp->status) { 0907 case NFS3_OK: 0908 if (!xdr_WRITE3resok (xdrs, &objp->WRITE3res_u.resok)) 0909 return FALSE; 0910 break; 0911 default: 0912 if (!xdr_WRITE3resfail (xdrs, &objp->WRITE3res_u.resfail)) 0913 return FALSE; 0914 break; 0915 } 0916 return TRUE; 0917 } 0918 0919 bool_t 0920 xdr_createmode3 (XDR *xdrs, createmode3 *objp) 0921 { 0922 register int32_t *buf; 0923 0924 if (!xdr_enum (xdrs, (enum_t *) objp)) 0925 return FALSE; 0926 return TRUE; 0927 } 0928 0929 bool_t 0930 xdr_createhow3 (XDR *xdrs, createhow3 *objp) 0931 { 0932 register int32_t *buf; 0933 0934 if (!xdr_createmode3 (xdrs, &objp->mode)) 0935 return FALSE; 0936 switch (objp->mode) { 0937 case UNCHECKED: 0938 case GUARDED: 0939 if (!xdr_sattr3 (xdrs, &objp->createhow3_u.obj_attributes)) 0940 return FALSE; 0941 break; 0942 case EXCLUSIVE: 0943 if (!xdr_createverf3 (xdrs, objp->createhow3_u.verf)) 0944 return FALSE; 0945 break; 0946 default: 0947 return FALSE; 0948 } 0949 return TRUE; 0950 } 0951 0952 bool_t 0953 xdr_CREATE3args (XDR *xdrs, CREATE3args *objp) 0954 { 0955 register int32_t *buf; 0956 0957 if (!xdr_diropargs3 (xdrs, &objp->where)) 0958 return FALSE; 0959 if (!xdr_createhow3 (xdrs, &objp->how)) 0960 return FALSE; 0961 return TRUE; 0962 } 0963 0964 bool_t 0965 xdr_CREATE3resok (XDR *xdrs, CREATE3resok *objp) 0966 { 0967 register int32_t *buf; 0968 0969 if (!xdr_post_op_fh3 (xdrs, &objp->obj)) 0970 return FALSE; 0971 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 0972 return FALSE; 0973 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 0974 return FALSE; 0975 return TRUE; 0976 } 0977 0978 bool_t 0979 xdr_CREATE3resfail (XDR *xdrs, CREATE3resfail *objp) 0980 { 0981 register int32_t *buf; 0982 0983 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 0984 return FALSE; 0985 return TRUE; 0986 } 0987 0988 bool_t 0989 xdr_CREATE3res (XDR *xdrs, CREATE3res *objp) 0990 { 0991 register int32_t *buf; 0992 0993 if (!xdr_nfsstat3 (xdrs, &objp->status)) 0994 return FALSE; 0995 switch (objp->status) { 0996 case NFS3_OK: 0997 if (!xdr_CREATE3resok (xdrs, &objp->CREATE3res_u.resok)) 0998 return FALSE; 0999 break; 1000 default: 1001 if (!xdr_CREATE3resfail (xdrs, &objp->CREATE3res_u.resfail)) 1002 return FALSE; 1003 break; 1004 } 1005 return TRUE; 1006 } 1007 1008 bool_t 1009 xdr_MKDIR3args (XDR *xdrs, MKDIR3args *objp) 1010 { 1011 register int32_t *buf; 1012 1013 if (!xdr_diropargs3 (xdrs, &objp->where)) 1014 return FALSE; 1015 if (!xdr_sattr3 (xdrs, &objp->attributes)) 1016 return FALSE; 1017 return TRUE; 1018 } 1019 1020 bool_t 1021 xdr_MKDIR3resok (XDR *xdrs, MKDIR3resok *objp) 1022 { 1023 register int32_t *buf; 1024 1025 if (!xdr_post_op_fh3 (xdrs, &objp->obj)) 1026 return FALSE; 1027 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1028 return FALSE; 1029 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1030 return FALSE; 1031 return TRUE; 1032 } 1033 1034 bool_t 1035 xdr_MKDIR3resfail (XDR *xdrs, MKDIR3resfail *objp) 1036 { 1037 register int32_t *buf; 1038 1039 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1040 return FALSE; 1041 return TRUE; 1042 } 1043 1044 bool_t 1045 xdr_MKDIR3res (XDR *xdrs, MKDIR3res *objp) 1046 { 1047 register int32_t *buf; 1048 1049 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1050 return FALSE; 1051 switch (objp->status) { 1052 case NFS3_OK: 1053 if (!xdr_MKDIR3resok (xdrs, &objp->MKDIR3res_u.resok)) 1054 return FALSE; 1055 break; 1056 default: 1057 if (!xdr_MKDIR3resfail (xdrs, &objp->MKDIR3res_u.resfail)) 1058 return FALSE; 1059 break; 1060 } 1061 return TRUE; 1062 } 1063 1064 bool_t 1065 xdr_symlinkdata3 (XDR *xdrs, symlinkdata3 *objp) 1066 { 1067 register int32_t *buf; 1068 1069 if (!xdr_sattr3 (xdrs, &objp->symlink_attributes)) 1070 return FALSE; 1071 if (!xdr_nfspath3 (xdrs, &objp->symlink_data)) 1072 return FALSE; 1073 return TRUE; 1074 } 1075 1076 bool_t 1077 xdr_SYMLINK3args (XDR *xdrs, SYMLINK3args *objp) 1078 { 1079 register int32_t *buf; 1080 1081 if (!xdr_diropargs3 (xdrs, &objp->where)) 1082 return FALSE; 1083 if (!xdr_symlinkdata3 (xdrs, &objp->symlink)) 1084 return FALSE; 1085 return TRUE; 1086 } 1087 1088 bool_t 1089 xdr_SYMLINK3resok (XDR *xdrs, SYMLINK3resok *objp) 1090 { 1091 register int32_t *buf; 1092 1093 if (!xdr_post_op_fh3 (xdrs, &objp->obj)) 1094 return FALSE; 1095 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1096 return FALSE; 1097 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1098 return FALSE; 1099 return TRUE; 1100 } 1101 1102 bool_t 1103 xdr_SYMLINK3resfail (XDR *xdrs, SYMLINK3resfail *objp) 1104 { 1105 register int32_t *buf; 1106 1107 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1108 return FALSE; 1109 return TRUE; 1110 } 1111 1112 bool_t 1113 xdr_SYMLINK3res (XDR *xdrs, SYMLINK3res *objp) 1114 { 1115 register int32_t *buf; 1116 1117 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1118 return FALSE; 1119 switch (objp->status) { 1120 case NFS3_OK: 1121 if (!xdr_SYMLINK3resok (xdrs, &objp->SYMLINK3res_u.resok)) 1122 return FALSE; 1123 break; 1124 default: 1125 if (!xdr_SYMLINK3resfail (xdrs, &objp->SYMLINK3res_u.resfail)) 1126 return FALSE; 1127 break; 1128 } 1129 return TRUE; 1130 } 1131 1132 bool_t 1133 xdr_devicedata3 (XDR *xdrs, devicedata3 *objp) 1134 { 1135 register int32_t *buf; 1136 1137 if (!xdr_sattr3 (xdrs, &objp->dev_attributes)) 1138 return FALSE; 1139 if (!xdr_specdata3 (xdrs, &objp->spec)) 1140 return FALSE; 1141 return TRUE; 1142 } 1143 1144 bool_t 1145 xdr_mknoddata3 (XDR *xdrs, mknoddata3 *objp) 1146 { 1147 register int32_t *buf; 1148 1149 if (!xdr_ftype3 (xdrs, &objp->type)) 1150 return FALSE; 1151 switch (objp->type) { 1152 case NF3CHR: 1153 case NF3BLK: 1154 if (!xdr_devicedata3 (xdrs, &objp->mknoddata3_u.device)) 1155 return FALSE; 1156 break; 1157 case NF3SOCK: 1158 case NF3FIFO: 1159 if (!xdr_sattr3 (xdrs, &objp->mknoddata3_u.pipe_attributes)) 1160 return FALSE; 1161 break; 1162 default: 1163 break; 1164 } 1165 return TRUE; 1166 } 1167 1168 bool_t 1169 xdr_MKNOD3args (XDR *xdrs, MKNOD3args *objp) 1170 { 1171 register int32_t *buf; 1172 1173 if (!xdr_diropargs3 (xdrs, &objp->where)) 1174 return FALSE; 1175 if (!xdr_mknoddata3 (xdrs, &objp->what)) 1176 return FALSE; 1177 return TRUE; 1178 } 1179 1180 bool_t 1181 xdr_MKNOD3resok (XDR *xdrs, MKNOD3resok *objp) 1182 { 1183 register int32_t *buf; 1184 1185 if (!xdr_post_op_fh3 (xdrs, &objp->obj)) 1186 return FALSE; 1187 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1188 return FALSE; 1189 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1190 return FALSE; 1191 return TRUE; 1192 } 1193 1194 bool_t 1195 xdr_MKNOD3resfail (XDR *xdrs, MKNOD3resfail *objp) 1196 { 1197 register int32_t *buf; 1198 1199 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1200 return FALSE; 1201 return TRUE; 1202 } 1203 1204 bool_t 1205 xdr_MKNOD3res (XDR *xdrs, MKNOD3res *objp) 1206 { 1207 register int32_t *buf; 1208 1209 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1210 return FALSE; 1211 switch (objp->status) { 1212 case NFS3_OK: 1213 if (!xdr_MKNOD3resok (xdrs, &objp->MKNOD3res_u.resok)) 1214 return FALSE; 1215 break; 1216 default: 1217 if (!xdr_MKNOD3resfail (xdrs, &objp->MKNOD3res_u.resfail)) 1218 return FALSE; 1219 break; 1220 } 1221 return TRUE; 1222 } 1223 1224 bool_t 1225 xdr_REMOVE3args (XDR *xdrs, REMOVE3args *objp) 1226 { 1227 register int32_t *buf; 1228 1229 if (!xdr_diropargs3 (xdrs, &objp->object)) 1230 return FALSE; 1231 return TRUE; 1232 } 1233 1234 bool_t 1235 xdr_REMOVE3resok (XDR *xdrs, REMOVE3resok *objp) 1236 { 1237 register int32_t *buf; 1238 1239 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1240 return FALSE; 1241 return TRUE; 1242 } 1243 1244 bool_t 1245 xdr_REMOVE3resfail (XDR *xdrs, REMOVE3resfail *objp) 1246 { 1247 register int32_t *buf; 1248 1249 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1250 return FALSE; 1251 return TRUE; 1252 } 1253 1254 bool_t 1255 xdr_REMOVE3res (XDR *xdrs, REMOVE3res *objp) 1256 { 1257 register int32_t *buf; 1258 1259 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1260 return FALSE; 1261 switch (objp->status) { 1262 case NFS3_OK: 1263 if (!xdr_REMOVE3resok (xdrs, &objp->REMOVE3res_u.resok)) 1264 return FALSE; 1265 break; 1266 default: 1267 if (!xdr_REMOVE3resfail (xdrs, &objp->REMOVE3res_u.resfail)) 1268 return FALSE; 1269 break; 1270 } 1271 return TRUE; 1272 } 1273 1274 bool_t 1275 xdr_RMDIR3args (XDR *xdrs, RMDIR3args *objp) 1276 { 1277 register int32_t *buf; 1278 1279 if (!xdr_diropargs3 (xdrs, &objp->object)) 1280 return FALSE; 1281 return TRUE; 1282 } 1283 1284 bool_t 1285 xdr_RMDIR3resok (XDR *xdrs, RMDIR3resok *objp) 1286 { 1287 register int32_t *buf; 1288 1289 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1290 return FALSE; 1291 return TRUE; 1292 } 1293 1294 bool_t 1295 xdr_RMDIR3resfail (XDR *xdrs, RMDIR3resfail *objp) 1296 { 1297 register int32_t *buf; 1298 1299 if (!xdr_wcc_data (xdrs, &objp->dir_wcc)) 1300 return FALSE; 1301 return TRUE; 1302 } 1303 1304 bool_t 1305 xdr_RMDIR3res (XDR *xdrs, RMDIR3res *objp) 1306 { 1307 register int32_t *buf; 1308 1309 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1310 return FALSE; 1311 switch (objp->status) { 1312 case NFS3_OK: 1313 if (!xdr_RMDIR3resok (xdrs, &objp->RMDIR3res_u.resok)) 1314 return FALSE; 1315 break; 1316 default: 1317 if (!xdr_RMDIR3resfail (xdrs, &objp->RMDIR3res_u.resfail)) 1318 return FALSE; 1319 break; 1320 } 1321 return TRUE; 1322 } 1323 1324 bool_t 1325 xdr_RENAME3args (XDR *xdrs, RENAME3args *objp) 1326 { 1327 register int32_t *buf; 1328 1329 if (!xdr_diropargs3 (xdrs, &objp->from)) 1330 return FALSE; 1331 if (!xdr_diropargs3 (xdrs, &objp->to)) 1332 return FALSE; 1333 return TRUE; 1334 } 1335 1336 bool_t 1337 xdr_RENAME3resok (XDR *xdrs, RENAME3resok *objp) 1338 { 1339 register int32_t *buf; 1340 1341 if (!xdr_wcc_data (xdrs, &objp->fromdir_wcc)) 1342 return FALSE; 1343 if (!xdr_wcc_data (xdrs, &objp->todir_wcc)) 1344 return FALSE; 1345 return TRUE; 1346 } 1347 1348 bool_t 1349 xdr_RENAME3resfail (XDR *xdrs, RENAME3resfail *objp) 1350 { 1351 register int32_t *buf; 1352 1353 if (!xdr_wcc_data (xdrs, &objp->fromdir_wcc)) 1354 return FALSE; 1355 if (!xdr_wcc_data (xdrs, &objp->todir_wcc)) 1356 return FALSE; 1357 return TRUE; 1358 } 1359 1360 bool_t 1361 xdr_RENAME3res (XDR *xdrs, RENAME3res *objp) 1362 { 1363 register int32_t *buf; 1364 1365 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1366 return FALSE; 1367 switch (objp->status) { 1368 case NFS3_OK: 1369 if (!xdr_RENAME3resok (xdrs, &objp->RENAME3res_u.resok)) 1370 return FALSE; 1371 break; 1372 default: 1373 if (!xdr_RENAME3resfail (xdrs, &objp->RENAME3res_u.resfail)) 1374 return FALSE; 1375 break; 1376 } 1377 return TRUE; 1378 } 1379 1380 bool_t 1381 xdr_LINK3args (XDR *xdrs, LINK3args *objp) 1382 { 1383 register int32_t *buf; 1384 1385 if (!xdr_nfs_fh3 (xdrs, &objp->file)) 1386 return FALSE; 1387 if (!xdr_diropargs3 (xdrs, &objp->link)) 1388 return FALSE; 1389 return TRUE; 1390 } 1391 1392 bool_t 1393 xdr_LINK3resok (XDR *xdrs, LINK3resok *objp) 1394 { 1395 register int32_t *buf; 1396 1397 if (!xdr_post_op_attr (xdrs, &objp->file_attributes)) 1398 return FALSE; 1399 if (!xdr_wcc_data (xdrs, &objp->linkdir_wcc)) 1400 return FALSE; 1401 return TRUE; 1402 } 1403 1404 bool_t 1405 xdr_LINK3resfail (XDR *xdrs, LINK3resfail *objp) 1406 { 1407 register int32_t *buf; 1408 1409 if (!xdr_post_op_attr (xdrs, &objp->file_attributes)) 1410 return FALSE; 1411 if (!xdr_wcc_data (xdrs, &objp->linkdir_wcc)) 1412 return FALSE; 1413 return TRUE; 1414 } 1415 1416 bool_t 1417 xdr_LINK3res (XDR *xdrs, LINK3res *objp) 1418 { 1419 register int32_t *buf; 1420 1421 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1422 return FALSE; 1423 switch (objp->status) { 1424 case NFS3_OK: 1425 if (!xdr_LINK3resok (xdrs, &objp->LINK3res_u.resok)) 1426 return FALSE; 1427 break; 1428 default: 1429 if (!xdr_LINK3resfail (xdrs, &objp->LINK3res_u.resfail)) 1430 return FALSE; 1431 break; 1432 } 1433 return TRUE; 1434 } 1435 1436 bool_t 1437 xdr_READDIR3args (XDR *xdrs, READDIR3args *objp) 1438 { 1439 register int32_t *buf; 1440 1441 if (!xdr_nfs_fh3 (xdrs, &objp->dir)) 1442 return FALSE; 1443 if (!xdr_cookie3 (xdrs, &objp->cookie)) 1444 return FALSE; 1445 if (!xdr_cookieverf3 (xdrs, objp->cookieverf)) 1446 return FALSE; 1447 if (!xdr_count3 (xdrs, &objp->count)) 1448 return FALSE; 1449 return TRUE; 1450 } 1451 1452 bool_t 1453 xdr_entry3 (XDR *xdrs, entry3 *objp) 1454 { 1455 register int32_t *buf; 1456 1457 if (!xdr_fileid3 (xdrs, &objp->fileid)) 1458 return FALSE; 1459 if (!xdr_filename3 (xdrs, &objp->name)) 1460 return FALSE; 1461 if (!xdr_cookie3 (xdrs, &objp->cookie)) 1462 return FALSE; 1463 if (!xdr_pointer (xdrs, (char **)&objp->nextentry, sizeof (entry3), (xdrproc_t) xdr_entry3)) 1464 return FALSE; 1465 return TRUE; 1466 } 1467 1468 bool_t 1469 xdr_dirlist3 (XDR *xdrs, dirlist3 *objp) 1470 { 1471 register int32_t *buf; 1472 1473 if (!xdr_pointer (xdrs, (char **)&objp->entries, sizeof (entry3), (xdrproc_t) xdr_entry3)) 1474 return FALSE; 1475 if (!xdr_bool (xdrs, &objp->eof)) 1476 return FALSE; 1477 return TRUE; 1478 } 1479 1480 bool_t 1481 xdr_READDIR3resok (XDR *xdrs, READDIR3resok *objp) 1482 { 1483 register int32_t *buf; 1484 1485 if (!xdr_post_op_attr (xdrs, &objp->dir_attributes)) 1486 return FALSE; 1487 if (!xdr_cookieverf3 (xdrs, objp->cookieverf)) 1488 return FALSE; 1489 if (!xdr_dirlist3 (xdrs, &objp->reply)) 1490 return FALSE; 1491 return TRUE; 1492 } 1493 1494 bool_t 1495 xdr_READDIR3resfail (XDR *xdrs, READDIR3resfail *objp) 1496 { 1497 register int32_t *buf; 1498 1499 if (!xdr_post_op_attr (xdrs, &objp->dir_attributes)) 1500 return FALSE; 1501 return TRUE; 1502 } 1503 1504 bool_t 1505 xdr_READDIR3res (XDR *xdrs, READDIR3res *objp) 1506 { 1507 register int32_t *buf; 1508 1509 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1510 return FALSE; 1511 switch (objp->status) { 1512 case NFS3_OK: 1513 if (!xdr_READDIR3resok (xdrs, &objp->READDIR3res_u.resok)) 1514 return FALSE; 1515 break; 1516 default: 1517 if (!xdr_READDIR3resfail (xdrs, &objp->READDIR3res_u.resfail)) 1518 return FALSE; 1519 break; 1520 } 1521 return TRUE; 1522 } 1523 1524 bool_t 1525 xdr_READDIRPLUS3args (XDR *xdrs, READDIRPLUS3args *objp) 1526 { 1527 register int32_t *buf; 1528 1529 if (!xdr_nfs_fh3 (xdrs, &objp->dir)) 1530 return FALSE; 1531 if (!xdr_cookie3 (xdrs, &objp->cookie)) 1532 return FALSE; 1533 if (!xdr_cookieverf3 (xdrs, objp->cookieverf)) 1534 return FALSE; 1535 if (!xdr_count3 (xdrs, &objp->dircount)) 1536 return FALSE; 1537 if (!xdr_count3 (xdrs, &objp->maxcount)) 1538 return FALSE; 1539 return TRUE; 1540 } 1541 1542 bool_t 1543 xdr_entryplus3 (XDR *xdrs, entryplus3 *objp) 1544 { 1545 register int32_t *buf; 1546 1547 if (!xdr_fileid3 (xdrs, &objp->fileid)) 1548 return FALSE; 1549 if (!xdr_filename3 (xdrs, &objp->name)) 1550 return FALSE; 1551 if (!xdr_cookie3 (xdrs, &objp->cookie)) 1552 return FALSE; 1553 if (!xdr_post_op_attr (xdrs, &objp->name_attributes)) 1554 return FALSE; 1555 if (!xdr_post_op_fh3 (xdrs, &objp->name_handle)) 1556 return FALSE; 1557 if (!xdr_pointer (xdrs, (char **)&objp->nextentry, sizeof (entryplus3), (xdrproc_t) xdr_entryplus3)) 1558 return FALSE; 1559 return TRUE; 1560 } 1561 1562 bool_t 1563 xdr_dirlistplus3 (XDR *xdrs, dirlistplus3 *objp) 1564 { 1565 register int32_t *buf; 1566 1567 if (!xdr_pointer (xdrs, (char **)&objp->entries, sizeof (entryplus3), (xdrproc_t) xdr_entryplus3)) 1568 return FALSE; 1569 if (!xdr_bool (xdrs, &objp->eof)) 1570 return FALSE; 1571 return TRUE; 1572 } 1573 1574 bool_t 1575 xdr_READDIRPLUS3resok (XDR *xdrs, READDIRPLUS3resok *objp) 1576 { 1577 register int32_t *buf; 1578 1579 if (!xdr_post_op_attr (xdrs, &objp->dir_attributes)) 1580 return FALSE; 1581 if (!xdr_cookieverf3 (xdrs, objp->cookieverf)) 1582 return FALSE; 1583 if (!xdr_dirlistplus3 (xdrs, &objp->reply)) 1584 return FALSE; 1585 return TRUE; 1586 } 1587 1588 bool_t 1589 xdr_READDIRPLUS3resfail (XDR *xdrs, READDIRPLUS3resfail *objp) 1590 { 1591 register int32_t *buf; 1592 1593 if (!xdr_post_op_attr (xdrs, &objp->dir_attributes)) 1594 return FALSE; 1595 return TRUE; 1596 } 1597 1598 bool_t 1599 xdr_READDIRPLUS3res (XDR *xdrs, READDIRPLUS3res *objp) 1600 { 1601 register int32_t *buf; 1602 1603 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1604 return FALSE; 1605 switch (objp->status) { 1606 case NFS3_OK: 1607 if (!xdr_READDIRPLUS3resok (xdrs, &objp->READDIRPLUS3res_u.resok)) 1608 return FALSE; 1609 break; 1610 default: 1611 if (!xdr_READDIRPLUS3resfail (xdrs, &objp->READDIRPLUS3res_u.resfail)) 1612 return FALSE; 1613 break; 1614 } 1615 return TRUE; 1616 } 1617 1618 bool_t 1619 xdr_FSSTAT3args (XDR *xdrs, FSSTAT3args *objp) 1620 { 1621 register int32_t *buf; 1622 1623 if (!xdr_nfs_fh3 (xdrs, &objp->fsroot)) 1624 return FALSE; 1625 return TRUE; 1626 } 1627 1628 bool_t 1629 xdr_FSSTAT3resok (XDR *xdrs, FSSTAT3resok *objp) 1630 { 1631 register int32_t *buf; 1632 1633 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1634 return FALSE; 1635 if (!xdr_size3 (xdrs, &objp->tbytes)) 1636 return FALSE; 1637 if (!xdr_size3 (xdrs, &objp->fbytes)) 1638 return FALSE; 1639 if (!xdr_size3 (xdrs, &objp->abytes)) 1640 return FALSE; 1641 if (!xdr_size3 (xdrs, &objp->tfiles)) 1642 return FALSE; 1643 if (!xdr_size3 (xdrs, &objp->ffiles)) 1644 return FALSE; 1645 if (!xdr_size3 (xdrs, &objp->afiles)) 1646 return FALSE; 1647 if (!xdr_uint32 (xdrs, &objp->invarsec)) 1648 return FALSE; 1649 return TRUE; 1650 } 1651 1652 bool_t 1653 xdr_FSSTAT3resfail (XDR *xdrs, FSSTAT3resfail *objp) 1654 { 1655 register int32_t *buf; 1656 1657 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1658 return FALSE; 1659 return TRUE; 1660 } 1661 1662 bool_t 1663 xdr_FSSTAT3res (XDR *xdrs, FSSTAT3res *objp) 1664 { 1665 register int32_t *buf; 1666 1667 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1668 return FALSE; 1669 switch (objp->status) { 1670 case NFS3_OK: 1671 if (!xdr_FSSTAT3resok (xdrs, &objp->FSSTAT3res_u.resok)) 1672 return FALSE; 1673 break; 1674 default: 1675 if (!xdr_FSSTAT3resfail (xdrs, &objp->FSSTAT3res_u.resfail)) 1676 return FALSE; 1677 break; 1678 } 1679 return TRUE; 1680 } 1681 1682 bool_t 1683 xdr_FSINFO3args (XDR *xdrs, FSINFO3args *objp) 1684 { 1685 register int32_t *buf; 1686 1687 if (!xdr_nfs_fh3 (xdrs, &objp->fsroot)) 1688 return FALSE; 1689 return TRUE; 1690 } 1691 1692 bool_t 1693 xdr_FSINFO3resok (XDR *xdrs, FSINFO3resok *objp) 1694 { 1695 register int32_t *buf; 1696 1697 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1698 return FALSE; 1699 if (!xdr_uint32 (xdrs, &objp->rtmax)) 1700 return FALSE; 1701 if (!xdr_uint32 (xdrs, &objp->rtpref)) 1702 return FALSE; 1703 if (!xdr_uint32 (xdrs, &objp->rtmult)) 1704 return FALSE; 1705 if (!xdr_uint32 (xdrs, &objp->wtmax)) 1706 return FALSE; 1707 if (!xdr_uint32 (xdrs, &objp->wtpref)) 1708 return FALSE; 1709 if (!xdr_uint32 (xdrs, &objp->wtmult)) 1710 return FALSE; 1711 if (!xdr_uint32 (xdrs, &objp->dtpref)) 1712 return FALSE; 1713 if (!xdr_size3 (xdrs, &objp->maxfilesize)) 1714 return FALSE; 1715 if (!xdr_nfstime3 (xdrs, &objp->time_delta)) 1716 return FALSE; 1717 if (!xdr_uint32 (xdrs, &objp->properties)) 1718 return FALSE; 1719 return TRUE; 1720 } 1721 1722 bool_t 1723 xdr_FSINFO3resfail (XDR *xdrs, FSINFO3resfail *objp) 1724 { 1725 register int32_t *buf; 1726 1727 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1728 return FALSE; 1729 return TRUE; 1730 } 1731 1732 bool_t 1733 xdr_FSINFO3res (XDR *xdrs, FSINFO3res *objp) 1734 { 1735 register int32_t *buf; 1736 1737 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1738 return FALSE; 1739 switch (objp->status) { 1740 case NFS3_OK: 1741 if (!xdr_FSINFO3resok (xdrs, &objp->FSINFO3res_u.resok)) 1742 return FALSE; 1743 break; 1744 default: 1745 if (!xdr_FSINFO3resfail (xdrs, &objp->FSINFO3res_u.resfail)) 1746 return FALSE; 1747 break; 1748 } 1749 return TRUE; 1750 } 1751 1752 bool_t 1753 xdr_PATHCONF3args (XDR *xdrs, PATHCONF3args *objp) 1754 { 1755 register int32_t *buf; 1756 1757 if (!xdr_nfs_fh3 (xdrs, &objp->object)) 1758 return FALSE; 1759 return TRUE; 1760 } 1761 1762 bool_t 1763 xdr_PATHCONF3resok (XDR *xdrs, PATHCONF3resok *objp) 1764 { 1765 register int32_t *buf; 1766 1767 1768 if (xdrs->x_op == XDR_ENCODE) { 1769 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1770 return FALSE; 1771 if (!xdr_uint32 (xdrs, &objp->linkmax)) 1772 return FALSE; 1773 if (!xdr_uint32 (xdrs, &objp->name_max)) 1774 return FALSE; 1775 buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT); 1776 if (buf == NULL) { 1777 if (!xdr_bool (xdrs, &objp->no_trunc)) 1778 return FALSE; 1779 if (!xdr_bool (xdrs, &objp->chown_restricted)) 1780 return FALSE; 1781 if (!xdr_bool (xdrs, &objp->case_insensitive)) 1782 return FALSE; 1783 if (!xdr_bool (xdrs, &objp->case_preserving)) 1784 return FALSE; 1785 } else { 1786 IXDR_PUT_BOOL(buf, objp->no_trunc); 1787 IXDR_PUT_BOOL(buf, objp->chown_restricted); 1788 IXDR_PUT_BOOL(buf, objp->case_insensitive); 1789 IXDR_PUT_BOOL(buf, objp->case_preserving); 1790 } 1791 return TRUE; 1792 } else if (xdrs->x_op == XDR_DECODE) { 1793 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1794 return FALSE; 1795 if (!xdr_uint32 (xdrs, &objp->linkmax)) 1796 return FALSE; 1797 if (!xdr_uint32 (xdrs, &objp->name_max)) 1798 return FALSE; 1799 buf = XDR_INLINE (xdrs, 4 * BYTES_PER_XDR_UNIT); 1800 if (buf == NULL) { 1801 if (!xdr_bool (xdrs, &objp->no_trunc)) 1802 return FALSE; 1803 if (!xdr_bool (xdrs, &objp->chown_restricted)) 1804 return FALSE; 1805 if (!xdr_bool (xdrs, &objp->case_insensitive)) 1806 return FALSE; 1807 if (!xdr_bool (xdrs, &objp->case_preserving)) 1808 return FALSE; 1809 } else { 1810 objp->no_trunc = IXDR_GET_BOOL(buf); 1811 objp->chown_restricted = IXDR_GET_BOOL(buf); 1812 objp->case_insensitive = IXDR_GET_BOOL(buf); 1813 objp->case_preserving = IXDR_GET_BOOL(buf); 1814 } 1815 return TRUE; 1816 } 1817 1818 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1819 return FALSE; 1820 if (!xdr_uint32 (xdrs, &objp->linkmax)) 1821 return FALSE; 1822 if (!xdr_uint32 (xdrs, &objp->name_max)) 1823 return FALSE; 1824 if (!xdr_bool (xdrs, &objp->no_trunc)) 1825 return FALSE; 1826 if (!xdr_bool (xdrs, &objp->chown_restricted)) 1827 return FALSE; 1828 if (!xdr_bool (xdrs, &objp->case_insensitive)) 1829 return FALSE; 1830 if (!xdr_bool (xdrs, &objp->case_preserving)) 1831 return FALSE; 1832 return TRUE; 1833 } 1834 1835 bool_t 1836 xdr_PATHCONF3resfail (XDR *xdrs, PATHCONF3resfail *objp) 1837 { 1838 register int32_t *buf; 1839 1840 if (!xdr_post_op_attr (xdrs, &objp->obj_attributes)) 1841 return FALSE; 1842 return TRUE; 1843 } 1844 1845 bool_t 1846 xdr_PATHCONF3res (XDR *xdrs, PATHCONF3res *objp) 1847 { 1848 register int32_t *buf; 1849 1850 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1851 return FALSE; 1852 switch (objp->status) { 1853 case NFS3_OK: 1854 if (!xdr_PATHCONF3resok (xdrs, &objp->PATHCONF3res_u.resok)) 1855 return FALSE; 1856 break; 1857 default: 1858 if (!xdr_PATHCONF3resfail (xdrs, &objp->PATHCONF3res_u.resfail)) 1859 return FALSE; 1860 break; 1861 } 1862 return TRUE; 1863 } 1864 1865 bool_t 1866 xdr_COMMIT3args (XDR *xdrs, COMMIT3args *objp) 1867 { 1868 register int32_t *buf; 1869 1870 if (!xdr_nfs_fh3 (xdrs, &objp->file)) 1871 return FALSE; 1872 if (!xdr_offset3 (xdrs, &objp->offset)) 1873 return FALSE; 1874 if (!xdr_count3 (xdrs, &objp->count)) 1875 return FALSE; 1876 return TRUE; 1877 } 1878 1879 bool_t 1880 xdr_COMMIT3resok (XDR *xdrs, COMMIT3resok *objp) 1881 { 1882 register int32_t *buf; 1883 1884 if (!xdr_wcc_data (xdrs, &objp->file_wcc)) 1885 return FALSE; 1886 if (!xdr_writeverf3 (xdrs, objp->verf)) 1887 return FALSE; 1888 return TRUE; 1889 } 1890 1891 bool_t 1892 xdr_COMMIT3resfail (XDR *xdrs, COMMIT3resfail *objp) 1893 { 1894 register int32_t *buf; 1895 1896 if (!xdr_wcc_data (xdrs, &objp->file_wcc)) 1897 return FALSE; 1898 return TRUE; 1899 } 1900 1901 bool_t 1902 xdr_COMMIT3res (XDR *xdrs, COMMIT3res *objp) 1903 { 1904 register int32_t *buf; 1905 1906 if (!xdr_nfsstat3 (xdrs, &objp->status)) 1907 return FALSE; 1908 switch (objp->status) { 1909 case NFS3_OK: 1910 if (!xdr_COMMIT3resok (xdrs, &objp->COMMIT3res_u.resok)) 1911 return FALSE; 1912 break; 1913 default: 1914 if (!xdr_COMMIT3resfail (xdrs, &objp->COMMIT3res_u.resfail)) 1915 return FALSE; 1916 break; 1917 } 1918 return TRUE; 1919 } 1920 1921 bool_t 1922 xdr_fhandle3 (XDR *xdrs, fhandle3 *objp) 1923 { 1924 register int32_t *buf; 1925 1926 if (!xdr_bytes (xdrs, (char **)&objp->fhandle3_val, (u_int *) &objp->fhandle3_len, FHSIZE3)) 1927 return FALSE; 1928 return TRUE; 1929 } 1930 1931 bool_t 1932 xdr_dirpath3 (XDR *xdrs, dirpath3 *objp) 1933 { 1934 register int32_t *buf; 1935 1936 if (!xdr_string (xdrs, objp, MNTPATHLEN3)) 1937 return FALSE; 1938 return TRUE; 1939 } 1940 1941 bool_t 1942 xdr_name3 (XDR *xdrs, name3 *objp) 1943 { 1944 register int32_t *buf; 1945 1946 if (!xdr_string (xdrs, objp, MNTNAMLEN3)) 1947 return FALSE; 1948 return TRUE; 1949 } 1950 1951 bool_t 1952 xdr_mountstat3 (XDR *xdrs, mountstat3 *objp) 1953 { 1954 register int32_t *buf; 1955 1956 if (!xdr_enum (xdrs, (enum_t *) objp)) 1957 return FALSE; 1958 return TRUE; 1959 } 1960 1961 bool_t 1962 xdr_mountres3_ok (XDR *xdrs, mountres3_ok *objp) 1963 { 1964 register int32_t *buf; 1965 1966 if (!xdr_fhandle3 (xdrs, &objp->fhandle)) 1967 return FALSE; 1968 if (!xdr_array (xdrs, (char **)&objp->auth_flavors.auth_flavors_val, (u_int *) &objp->auth_flavors.auth_flavors_len, ~0, 1969 sizeof (int), (xdrproc_t) xdr_int)) 1970 return FALSE; 1971 return TRUE; 1972 } 1973 1974 bool_t 1975 xdr_mountres3 (XDR *xdrs, mountres3 *objp) 1976 { 1977 register int32_t *buf; 1978 1979 if (!xdr_mountstat3 (xdrs, &objp->fhs_status)) 1980 return FALSE; 1981 switch (objp->fhs_status) { 1982 case MNT3_OK: 1983 if (!xdr_mountres3_ok (xdrs, &objp->mountres3_u.mountinfo)) 1984 return FALSE; 1985 break; 1986 default: 1987 break; 1988 } 1989 return TRUE; 1990 } 1991 1992 bool_t 1993 xdr_mountlist3 (XDR *xdrs, mountlist3 *objp) 1994 { 1995 register int32_t *buf; 1996 1997 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct mountbody3), (xdrproc_t) xdr_mountbody3)) 1998 return FALSE; 1999 return TRUE; 2000 } 2001 2002 bool_t 2003 xdr_mountbody3 (XDR *xdrs, mountbody3 *objp) 2004 { 2005 register int32_t *buf; 2006 2007 if (!xdr_name3 (xdrs, &objp->ml_hostname)) 2008 return FALSE; 2009 if (!xdr_dirpath3 (xdrs, &objp->ml_directory)) 2010 return FALSE; 2011 if (!xdr_mountlist3 (xdrs, &objp->ml_next)) 2012 return FALSE; 2013 return TRUE; 2014 } 2015 2016 bool_t 2017 xdr_groups3 (XDR *xdrs, groups3 *objp) 2018 { 2019 register int32_t *buf; 2020 2021 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct groupnode3), (xdrproc_t) xdr_groupnode3)) 2022 return FALSE; 2023 return TRUE; 2024 } 2025 2026 bool_t 2027 xdr_groupnode3 (XDR *xdrs, groupnode3 *objp) 2028 { 2029 register int32_t *buf; 2030 2031 if (!xdr_name3 (xdrs, &objp->gr_name)) 2032 return FALSE; 2033 if (!xdr_groups3 (xdrs, &objp->gr_next)) 2034 return FALSE; 2035 return TRUE; 2036 } 2037 2038 bool_t 2039 xdr_exports3 (XDR *xdrs, exports3 *objp) 2040 { 2041 register int32_t *buf; 2042 2043 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct exportnode3), (xdrproc_t) xdr_exportnode3)) 2044 return FALSE; 2045 return TRUE; 2046 } 2047 2048 bool_t 2049 xdr_exportnode3 (XDR *xdrs, exportnode3 *objp) 2050 { 2051 register int32_t *buf; 2052 2053 if (!xdr_dirpath3 (xdrs, &objp->ex_dir)) 2054 return FALSE; 2055 if (!xdr_groups3 (xdrs, &objp->ex_groups)) 2056 return FALSE; 2057 if (!xdr_exports3 (xdrs, &objp->ex_next)) 2058 return FALSE; 2059 return TRUE; 2060 }