delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / kioslave / nfs / nfs_prot_xdr.c
blobcd1354668d40616a0a0864bc6b3d68ccc5ef3e4f
1 /*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
6 #include <rpc/types.h>
7 #include <rpc/xdr.h>
8 #include <arpa/inet.h>
10 #include "nfs_prot.h"
12 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
13 * unrestricted use provided that this legend is included on all tape
14 * media and as a part of the software program in whole or part. Users
15 * may copy or modify Sun RPC without charge, but are not authorized
16 * to license or distribute it to anyone else except as part of a product or
17 * program developed by the user or with the express written consent of
18 * Sun Microsystems, Inc.
20 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
21 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
24 * Sun RPC is provided with no support and without any obligation on the
25 * part of Sun Microsystems, Inc. to assist in its use, correction,
26 * modification or enhancement.
28 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
29 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
30 * OR ANY PART THEREOF.
32 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
33 * or profits or other special, indirect and consequential damages, even if
34 * Sun has been advised of the possibility of such damages.
36 * Sun Microsystems, Inc.
37 * 2550 Garcia Avenue
38 * Mountain View, California 94043
41 * Copyright (c) 1987, 1990 by Sun Microsystems, Inc.
44 /* from @(#)nfs_prot.x 1.3 91/03/11 TIRPC 1.0 */
46 bool_t
47 xdr_nfsstat(XDR *xdrs, nfsstat *objp)
50 register int32_t *buf=buf;
52 if (!xdr_enum(xdrs, (enum_t *)objp)) {
53 return (FALSE);
55 return (TRUE);
58 bool_t
59 xdr_ftype(XDR *xdrs, ftype *objp)
62 register int32_t *buf=buf;
64 if (!xdr_enum(xdrs, (enum_t *)objp)) {
65 return (FALSE);
67 return (TRUE);
70 bool_t
71 xdr_nfs_fh(XDR *xdrs, nfs_fh *objp)
74 register int32_t *buf=buf;
76 int i=i;
77 if (!xdr_opaque(xdrs, objp->data, NFS_FHSIZE)) {
78 return (FALSE);
80 return (TRUE);
83 bool_t
84 xdr_nfstime(XDR *xdrs, nfstime *objp)
87 register int32_t *buf=buf;
89 if (!xdr_u_int(xdrs, &objp->seconds)) {
90 return (FALSE);
92 if (!xdr_u_int(xdrs, &objp->useconds)) {
93 return (FALSE);
95 return (TRUE);
98 bool_t
99 xdr_fattr(XDR *xdrs, fattr *objp)
102 register int32_t *buf=buf;
105 if (xdrs->x_op == XDR_ENCODE) {
106 if (!xdr_ftype(xdrs, &objp->type)) {
107 return (FALSE);
109 buf = XDR_INLINE(xdrs,10 * BYTES_PER_XDR_UNIT);
110 if (buf == NULL) {
111 if (!xdr_u_int(xdrs, &objp->mode)) {
112 return (FALSE);
114 if (!xdr_u_int(xdrs, &objp->nlink)) {
115 return (FALSE);
117 if (!xdr_u_int(xdrs, &objp->uid)) {
118 return (FALSE);
120 if (!xdr_u_int(xdrs, &objp->gid)) {
121 return (FALSE);
123 if (!xdr_u_int(xdrs, &objp->size)) {
124 return (FALSE);
126 if (!xdr_u_int(xdrs, &objp->blocksize)) {
127 return (FALSE);
129 if (!xdr_u_int(xdrs, &objp->rdev)) {
130 return (FALSE);
132 if (!xdr_u_int(xdrs, &objp->blocks)) {
133 return (FALSE);
135 if (!xdr_u_int(xdrs, &objp->fsid)) {
136 return (FALSE);
138 if (!xdr_u_int(xdrs, &objp->fileid)) {
139 return (FALSE);
143 else {
144 IXDR_PUT_U_LONG(buf,objp->mode);
145 IXDR_PUT_U_LONG(buf,objp->nlink);
146 IXDR_PUT_U_LONG(buf,objp->uid);
147 IXDR_PUT_U_LONG(buf,objp->gid);
148 IXDR_PUT_U_LONG(buf,objp->size);
149 IXDR_PUT_U_LONG(buf,objp->blocksize);
150 IXDR_PUT_U_LONG(buf,objp->rdev);
151 IXDR_PUT_U_LONG(buf,objp->blocks);
152 IXDR_PUT_U_LONG(buf,objp->fsid);
153 IXDR_PUT_U_LONG(buf,objp->fileid);
155 if (!xdr_nfstime(xdrs, &objp->atime)) {
156 return (FALSE);
158 if (!xdr_nfstime(xdrs, &objp->mtime)) {
159 return (FALSE);
161 if (!xdr_nfstime(xdrs, &objp->ctime)) {
162 return (FALSE);
165 return (TRUE);
166 } else if (xdrs->x_op == XDR_DECODE) {
167 if (!xdr_ftype(xdrs, &objp->type)) {
168 return (FALSE);
170 buf = XDR_INLINE(xdrs,10 * BYTES_PER_XDR_UNIT);
171 if (buf == NULL) {
172 if (!xdr_u_int(xdrs, &objp->mode)) {
173 return (FALSE);
175 if (!xdr_u_int(xdrs, &objp->nlink)) {
176 return (FALSE);
178 if (!xdr_u_int(xdrs, &objp->uid)) {
179 return (FALSE);
181 if (!xdr_u_int(xdrs, &objp->gid)) {
182 return (FALSE);
184 if (!xdr_u_int(xdrs, &objp->size)) {
185 return (FALSE);
187 if (!xdr_u_int(xdrs, &objp->blocksize)) {
188 return (FALSE);
190 if (!xdr_u_int(xdrs, &objp->rdev)) {
191 return (FALSE);
193 if (!xdr_u_int(xdrs, &objp->blocks)) {
194 return (FALSE);
196 if (!xdr_u_int(xdrs, &objp->fsid)) {
197 return (FALSE);
199 if (!xdr_u_int(xdrs, &objp->fileid)) {
200 return (FALSE);
204 else {
205 objp->mode = IXDR_GET_U_LONG(buf);
206 objp->nlink = IXDR_GET_U_LONG(buf);
207 objp->uid = IXDR_GET_U_LONG(buf);
208 objp->gid = IXDR_GET_U_LONG(buf);
209 objp->size = IXDR_GET_U_LONG(buf);
210 objp->blocksize = IXDR_GET_U_LONG(buf);
211 objp->rdev = IXDR_GET_U_LONG(buf);
212 objp->blocks = IXDR_GET_U_LONG(buf);
213 objp->fsid = IXDR_GET_U_LONG(buf);
214 objp->fileid = IXDR_GET_U_LONG(buf);
216 if (!xdr_nfstime(xdrs, &objp->atime)) {
217 return (FALSE);
219 if (!xdr_nfstime(xdrs, &objp->mtime)) {
220 return (FALSE);
222 if (!xdr_nfstime(xdrs, &objp->ctime)) {
223 return (FALSE);
225 return(TRUE);
228 if (!xdr_ftype(xdrs, &objp->type)) {
229 return (FALSE);
231 if (!xdr_u_int(xdrs, &objp->mode)) {
232 return (FALSE);
234 if (!xdr_u_int(xdrs, &objp->nlink)) {
235 return (FALSE);
237 if (!xdr_u_int(xdrs, &objp->uid)) {
238 return (FALSE);
240 if (!xdr_u_int(xdrs, &objp->gid)) {
241 return (FALSE);
243 if (!xdr_u_int(xdrs, &objp->size)) {
244 return (FALSE);
246 if (!xdr_u_int(xdrs, &objp->blocksize)) {
247 return (FALSE);
249 if (!xdr_u_int(xdrs, &objp->rdev)) {
250 return (FALSE);
252 if (!xdr_u_int(xdrs, &objp->blocks)) {
253 return (FALSE);
255 if (!xdr_u_int(xdrs, &objp->fsid)) {
256 return (FALSE);
258 if (!xdr_u_int(xdrs, &objp->fileid)) {
259 return (FALSE);
261 if (!xdr_nfstime(xdrs, &objp->atime)) {
262 return (FALSE);
264 if (!xdr_nfstime(xdrs, &objp->mtime)) {
265 return (FALSE);
267 if (!xdr_nfstime(xdrs, &objp->ctime)) {
268 return (FALSE);
270 return (TRUE);
273 bool_t
274 xdr_sattr(XDR *xdrs, sattr *objp)
277 register int32_t *buf=buf;
280 if (xdrs->x_op == XDR_ENCODE) {
281 buf = XDR_INLINE(xdrs,4 * BYTES_PER_XDR_UNIT);
282 if (buf == NULL) {
283 if (!xdr_u_int(xdrs, &objp->mode)) {
284 return (FALSE);
286 if (!xdr_u_int(xdrs, &objp->uid)) {
287 return (FALSE);
289 if (!xdr_u_int(xdrs, &objp->gid)) {
290 return (FALSE);
292 if (!xdr_u_int(xdrs, &objp->size)) {
293 return (FALSE);
297 else {
298 IXDR_PUT_U_LONG(buf,objp->mode);
299 IXDR_PUT_U_LONG(buf,objp->uid);
300 IXDR_PUT_U_LONG(buf,objp->gid);
301 IXDR_PUT_U_LONG(buf,objp->size);
303 if (!xdr_nfstime(xdrs, &objp->atime)) {
304 return (FALSE);
306 if (!xdr_nfstime(xdrs, &objp->mtime)) {
307 return (FALSE);
310 return (TRUE);
311 } else if (xdrs->x_op == XDR_DECODE) {
312 buf = XDR_INLINE(xdrs,4 * BYTES_PER_XDR_UNIT);
313 if (buf == NULL) {
314 if (!xdr_u_int(xdrs, &objp->mode)) {
315 return (FALSE);
317 if (!xdr_u_int(xdrs, &objp->uid)) {
318 return (FALSE);
320 if (!xdr_u_int(xdrs, &objp->gid)) {
321 return (FALSE);
323 if (!xdr_u_int(xdrs, &objp->size)) {
324 return (FALSE);
328 else {
329 objp->mode = IXDR_GET_U_LONG(buf);
330 objp->uid = IXDR_GET_U_LONG(buf);
331 objp->gid = IXDR_GET_U_LONG(buf);
332 objp->size = IXDR_GET_U_LONG(buf);
334 if (!xdr_nfstime(xdrs, &objp->atime)) {
335 return (FALSE);
337 if (!xdr_nfstime(xdrs, &objp->mtime)) {
338 return (FALSE);
340 return(TRUE);
343 if (!xdr_u_int(xdrs, &objp->mode)) {
344 return (FALSE);
346 if (!xdr_u_int(xdrs, &objp->uid)) {
347 return (FALSE);
349 if (!xdr_u_int(xdrs, &objp->gid)) {
350 return (FALSE);
352 if (!xdr_u_int(xdrs, &objp->size)) {
353 return (FALSE);
355 if (!xdr_nfstime(xdrs, &objp->atime)) {
356 return (FALSE);
358 if (!xdr_nfstime(xdrs, &objp->mtime)) {
359 return (FALSE);
361 return (TRUE);
364 bool_t
365 xdr_filename(XDR *xdrs, filename *objp)
368 register int32_t *buf=buf;
370 if (!xdr_string(xdrs, objp, NFS_MAXNAMLEN)) {
371 return (FALSE);
373 return (TRUE);
376 bool_t
377 xdr_nfspath(XDR *xdrs, nfspath *objp)
380 register int32_t *buf=buf;
382 if (!xdr_string(xdrs, objp, NFS_MAXPATHLEN)) {
383 return (FALSE);
385 return (TRUE);
388 bool_t
389 xdr_attrstat(XDR *xdrs, attrstat *objp)
392 register int32_t *buf=buf;
394 if (!xdr_nfsstat(xdrs, &objp->status)) {
395 return (FALSE);
397 switch (objp->status) {
398 case NFS_OK:
399 if (!xdr_fattr(xdrs, &objp->attrstat_u.attributes)) {
400 return (FALSE);
402 break;
403 default:
404 break;
406 return (TRUE);
409 bool_t
410 xdr_sattrargs(XDR *xdrs, sattrargs *objp)
413 register int32_t *buf=buf;
415 if (!xdr_nfs_fh(xdrs, &objp->file)) {
416 return (FALSE);
418 if (!xdr_sattr(xdrs, &objp->attributes)) {
419 return (FALSE);
421 return (TRUE);
424 bool_t
425 xdr_diropargs(XDR *xdrs, diropargs *objp)
428 register int32_t *buf=buf;
430 if (!xdr_nfs_fh(xdrs, &objp->dir)) {
431 return (FALSE);
433 if (!xdr_filename(xdrs, &objp->name)) {
434 return (FALSE);
436 return (TRUE);
439 bool_t
440 xdr_diropokres(XDR *xdrs, diropokres *objp)
443 register int32_t *buf=buf;
445 if (!xdr_nfs_fh(xdrs, &objp->file)) {
446 return (FALSE);
448 if (!xdr_fattr(xdrs, &objp->attributes)) {
449 return (FALSE);
451 return (TRUE);
454 bool_t
455 xdr_diropres(XDR *xdrs, diropres *objp)
458 register int32_t *buf=buf;
460 if (!xdr_nfsstat(xdrs, &objp->status)) {
461 return (FALSE);
463 switch (objp->status) {
464 case NFS_OK:
465 if (!xdr_diropokres(xdrs, &objp->diropres_u.diropres)) {
466 return (FALSE);
468 break;
469 default:
470 break;
472 return (TRUE);
475 bool_t
476 xdr_readlinkres(XDR *xdrs, readlinkres *objp)
479 register int32_t *buf=buf;
481 if (!xdr_nfsstat(xdrs, &objp->status)) {
482 return (FALSE);
484 switch (objp->status) {
485 case NFS_OK:
486 if (!xdr_nfspath(xdrs, &objp->readlinkres_u.data)) {
487 return (FALSE);
489 break;
490 default:
491 break;
493 return (TRUE);
496 bool_t
497 xdr_readargs(XDR *xdrs, readargs *objp)
500 register int32_t *buf=buf;
502 if (!xdr_nfs_fh(xdrs, &objp->file)) {
503 return (FALSE);
505 if (!xdr_u_int(xdrs, &objp->offset)) {
506 return (FALSE);
508 if (!xdr_u_int(xdrs, &objp->count)) {
509 return (FALSE);
511 if (!xdr_u_int(xdrs, &objp->totalcount)) {
512 return (FALSE);
514 return (TRUE);
517 bool_t
518 xdr_readokres(XDR *xdrs, readokres *objp)
521 register int32_t *buf=buf;
523 if (!xdr_fattr(xdrs, &objp->attributes)) {
524 return (FALSE);
526 if (!xdr_bytes(xdrs, (char **)&objp->data.data_val, (u_int *)&objp->data.data_len, NFS_MAXDATA)) {
527 return (FALSE);
529 return (TRUE);
532 bool_t
533 xdr_readres(XDR *xdrs, readres *objp)
536 register int32_t *buf=buf;
538 if (!xdr_nfsstat(xdrs, &objp->status)) {
539 return (FALSE);
541 switch (objp->status) {
542 case NFS_OK:
543 if (!xdr_readokres(xdrs, &objp->readres_u.reply)) {
544 return (FALSE);
546 break;
547 default:
548 break;
550 return (TRUE);
553 bool_t
554 xdr_writeargs(XDR *xdrs, writeargs *objp)
557 register int32_t *buf=buf;
560 if (xdrs->x_op == XDR_ENCODE) {
561 if (!xdr_nfs_fh(xdrs, &objp->file)) {
562 return (FALSE);
564 buf = XDR_INLINE(xdrs,3 * BYTES_PER_XDR_UNIT);
565 if (buf == NULL) {
566 if (!xdr_u_int(xdrs, &objp->beginoffset)) {
567 return (FALSE);
569 if (!xdr_u_int(xdrs, &objp->offset)) {
570 return (FALSE);
572 if (!xdr_u_int(xdrs, &objp->totalcount)) {
573 return (FALSE);
577 else {
578 IXDR_PUT_U_LONG(buf,objp->beginoffset);
579 IXDR_PUT_U_LONG(buf,objp->offset);
580 IXDR_PUT_U_LONG(buf,objp->totalcount);
582 if (!xdr_bytes(xdrs, (char **)&objp->data.data_val, (u_int *)&objp->data.data_len, NFS_MAXDATA)) {
583 return (FALSE);
586 return (TRUE);
587 } else if (xdrs->x_op == XDR_DECODE) {
588 if (!xdr_nfs_fh(xdrs, &objp->file)) {
589 return (FALSE);
591 buf = XDR_INLINE(xdrs,3 * BYTES_PER_XDR_UNIT);
592 if (buf == NULL) {
593 if (!xdr_u_int(xdrs, &objp->beginoffset)) {
594 return (FALSE);
596 if (!xdr_u_int(xdrs, &objp->offset)) {
597 return (FALSE);
599 if (!xdr_u_int(xdrs, &objp->totalcount)) {
600 return (FALSE);
604 else {
605 objp->beginoffset = IXDR_GET_U_LONG(buf);
606 objp->offset = IXDR_GET_U_LONG(buf);
607 objp->totalcount = IXDR_GET_U_LONG(buf);
609 if (!xdr_bytes(xdrs, (char **)&objp->data.data_val, (u_int *)&objp->data.data_len, NFS_MAXDATA)) {
610 return (FALSE);
612 return(TRUE);
615 if (!xdr_nfs_fh(xdrs, &objp->file)) {
616 return (FALSE);
618 if (!xdr_u_int(xdrs, &objp->beginoffset)) {
619 return (FALSE);
621 if (!xdr_u_int(xdrs, &objp->offset)) {
622 return (FALSE);
624 if (!xdr_u_int(xdrs, &objp->totalcount)) {
625 return (FALSE);
627 if (!xdr_bytes(xdrs, (char **)&objp->data.data_val, (u_int *)&objp->data.data_len, NFS_MAXDATA)) {
628 return (FALSE);
630 return (TRUE);
633 bool_t
634 xdr_createargs(XDR *xdrs, createargs *objp)
637 register int32_t *buf=buf;
639 if (!xdr_diropargs(xdrs, &objp->where)) {
640 return (FALSE);
642 if (!xdr_sattr(xdrs, &objp->attributes)) {
643 return (FALSE);
645 return (TRUE);
648 bool_t
649 xdr_renameargs(XDR *xdrs, renameargs *objp)
652 register int32_t *buf=buf;
654 if (!xdr_diropargs(xdrs, &objp->from)) {
655 return (FALSE);
657 if (!xdr_diropargs(xdrs, &objp->to)) {
658 return (FALSE);
660 return (TRUE);
663 bool_t
664 xdr_linkargs(XDR *xdrs, linkargs *objp)
667 register int32_t *buf=buf;
669 if (!xdr_nfs_fh(xdrs, &objp->from)) {
670 return (FALSE);
672 if (!xdr_diropargs(xdrs, &objp->to)) {
673 return (FALSE);
675 return (TRUE);
678 bool_t
679 xdr_symlinkargs(XDR *xdrs, symlinkargs *objp)
682 register int32_t *buf=buf;
684 if (!xdr_diropargs(xdrs, &objp->from)) {
685 return (FALSE);
687 if (!xdr_nfspath(xdrs, &objp->to)) {
688 return (FALSE);
690 if (!xdr_sattr(xdrs, &objp->attributes)) {
691 return (FALSE);
693 return (TRUE);
696 bool_t
697 xdr_nfscookie(XDR *xdrs, nfscookie objp)
700 register int32_t *buf=buf;
702 if (!xdr_opaque(xdrs, objp, NFS_COOKIESIZE)) {
703 return (FALSE);
705 return (TRUE);
708 bool_t
709 xdr_readdirargs(XDR *xdrs, readdirargs *objp)
712 register int32_t *buf=buf;
714 if (!xdr_nfs_fh(xdrs, &objp->dir)) {
715 return (FALSE);
717 if (!xdr_nfscookie(xdrs, objp->cookie)) {
718 return (FALSE);
720 if (!xdr_u_int(xdrs, &objp->count)) {
721 return (FALSE);
723 return (TRUE);
726 bool_t
727 xdr_entry(XDR *xdrs, entry *objp)
730 register int32_t *buf=buf;
732 if (!xdr_u_int(xdrs, &objp->fileid)) {
733 return (FALSE);
735 if (!xdr_filename(xdrs, &objp->name)) {
736 return (FALSE);
738 if (!xdr_nfscookie(xdrs, objp->cookie)) {
739 return (FALSE);
741 if (!xdr_pointer(xdrs, (char **)&objp->nextentry, sizeof(entry), (xdrproc_t)xdr_entry)) {
742 return (FALSE);
744 return (TRUE);
747 bool_t
748 xdr_dirlist(XDR *xdrs, dirlist *objp)
751 register int32_t *buf=buf;
753 if (!xdr_pointer(xdrs, (char **)&objp->entries, sizeof(entry), (xdrproc_t)xdr_entry)) {
754 return (FALSE);
756 if (!xdr_bool(xdrs, &objp->eof)) {
757 return (FALSE);
759 return (TRUE);
762 bool_t
763 xdr_readdirres(XDR *xdrs, readdirres *objp)
766 register int32_t *buf=buf;
768 if (!xdr_nfsstat(xdrs, &objp->status)) {
769 return (FALSE);
771 switch (objp->status) {
772 case NFS_OK:
773 if (!xdr_dirlist(xdrs, &objp->readdirres_u.reply)) {
774 return (FALSE);
776 break;
777 default:
778 break;
780 return (TRUE);
783 bool_t
784 xdr_statfsokres(XDR *xdrs, statfsokres *objp)
787 register int32_t *buf=buf;
790 if (xdrs->x_op == XDR_ENCODE) {
791 buf = XDR_INLINE(xdrs,5 * BYTES_PER_XDR_UNIT);
792 if (buf == NULL) {
793 if (!xdr_u_int(xdrs, &objp->tsize)) {
794 return (FALSE);
796 if (!xdr_u_int(xdrs, &objp->bsize)) {
797 return (FALSE);
799 if (!xdr_u_int(xdrs, &objp->blocks)) {
800 return (FALSE);
802 if (!xdr_u_int(xdrs, &objp->bfree)) {
803 return (FALSE);
805 if (!xdr_u_int(xdrs, &objp->bavail)) {
806 return (FALSE);
810 else {
811 IXDR_PUT_U_LONG(buf,objp->tsize);
812 IXDR_PUT_U_LONG(buf,objp->bsize);
813 IXDR_PUT_U_LONG(buf,objp->blocks);
814 IXDR_PUT_U_LONG(buf,objp->bfree);
815 IXDR_PUT_U_LONG(buf,objp->bavail);
818 return (TRUE);
819 } else if (xdrs->x_op == XDR_DECODE) {
820 buf = XDR_INLINE(xdrs,5 * BYTES_PER_XDR_UNIT);
821 if (buf == NULL) {
822 if (!xdr_u_int(xdrs, &objp->tsize)) {
823 return (FALSE);
825 if (!xdr_u_int(xdrs, &objp->bsize)) {
826 return (FALSE);
828 if (!xdr_u_int(xdrs, &objp->blocks)) {
829 return (FALSE);
831 if (!xdr_u_int(xdrs, &objp->bfree)) {
832 return (FALSE);
834 if (!xdr_u_int(xdrs, &objp->bavail)) {
835 return (FALSE);
839 else {
840 objp->tsize = IXDR_GET_U_LONG(buf);
841 objp->bsize = IXDR_GET_U_LONG(buf);
842 objp->blocks = IXDR_GET_U_LONG(buf);
843 objp->bfree = IXDR_GET_U_LONG(buf);
844 objp->bavail = IXDR_GET_U_LONG(buf);
846 return(TRUE);
849 if (!xdr_u_int(xdrs, &objp->tsize)) {
850 return (FALSE);
852 if (!xdr_u_int(xdrs, &objp->bsize)) {
853 return (FALSE);
855 if (!xdr_u_int(xdrs, &objp->blocks)) {
856 return (FALSE);
858 if (!xdr_u_int(xdrs, &objp->bfree)) {
859 return (FALSE);
861 if (!xdr_u_int(xdrs, &objp->bavail)) {
862 return (FALSE);
864 return (TRUE);
867 bool_t
868 xdr_statfsres(XDR *xdrs, statfsres *objp)
871 register int32_t *buf=buf;
873 if (!xdr_nfsstat(xdrs, &objp->status)) {
874 return (FALSE);
876 switch (objp->status) {
877 case NFS_OK:
878 if (!xdr_statfsokres(xdrs, &objp->statfsres_u.reply)) {
879 return (FALSE);
881 break;
882 default:
883 break;
885 return (TRUE);