2 Copyright (c) 2014, Ronnie Sahlberg
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
8 1. Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution.
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 The views and conclusions contained in the software and documentation are those
26 of the authors and should not be interpreted as representing official policies,
27 either expressed or implied, of the FreeBSD Project.
31 * Please do not edit this file.
32 * It was generated using rpcgen.
35 #include "libnfs-zdr.h"
36 #include "libnfs-raw-nfs.h"
39 zdr_cookieverf3 (ZDR
*zdrs
, cookieverf3 objp
)
41 register int32_t *buf
;
44 if (!zdr_opaque (zdrs
, objp
, NFS3_COOKIEVERFSIZE
))
50 zdr_cookie3 (ZDR
*zdrs
, cookie3
*objp
)
52 register int32_t *buf
;
55 if (!zdr_u_quad_t (zdrs
, objp
))
61 zdr_nfs_fh3 (ZDR
*zdrs
, nfs_fh3
*objp
)
63 register int32_t *buf
;
66 if (!zdr_bytes (zdrs
, (char **)&objp
->data
.data_val
, (u_int
*) &objp
->data
.data_len
, NFS3_FHSIZE
))
72 zdr_filename3 (ZDR
*zdrs
, filename3
*objp
)
74 register int32_t *buf
;
77 if (!zdr_string (zdrs
, objp
, ~0))
83 zdr_diropargs3 (ZDR
*zdrs
, diropargs3
*objp
)
85 register int32_t *buf
;
88 if (!zdr_nfs_fh3 (zdrs
, &objp
->dir
))
90 if (!zdr_filename3 (zdrs
, &objp
->name
))
96 zdr_ftype3 (ZDR
*zdrs
, ftype3
*objp
)
98 register int32_t *buf
;
101 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
107 zdr_mode3 (ZDR
*zdrs
, mode3
*objp
)
109 register int32_t *buf
;
112 if (!zdr_u_int (zdrs
, objp
))
118 zdr_uid3 (ZDR
*zdrs
, uid3
*objp
)
120 register int32_t *buf
;
123 if (!zdr_u_int (zdrs
, objp
))
129 zdr_gid3 (ZDR
*zdrs
, gid3
*objp
)
131 register int32_t *buf
;
134 if (!zdr_u_int (zdrs
, objp
))
140 zdr_size3 (ZDR
*zdrs
, size3
*objp
)
142 register int32_t *buf
;
145 if (!zdr_u_quad_t (zdrs
, objp
))
151 zdr_fileid3 (ZDR
*zdrs
, fileid3
*objp
)
153 register int32_t *buf
;
156 if (!zdr_u_quad_t (zdrs
, objp
))
162 zdr_specdata3 (ZDR
*zdrs
, specdata3
*objp
)
164 register int32_t *buf
;
167 if (!zdr_u_int (zdrs
, &objp
->specdata1
))
169 if (!zdr_u_int (zdrs
, &objp
->specdata2
))
175 zdr_nfstime3 (ZDR
*zdrs
, nfstime3
*objp
)
177 register int32_t *buf
;
180 if (!zdr_u_int (zdrs
, &objp
->seconds
))
182 if (!zdr_u_int (zdrs
, &objp
->nseconds
))
188 zdr_fattr3 (ZDR
*zdrs
, fattr3
*objp
)
190 register int32_t *buf
;
193 if (!zdr_ftype3 (zdrs
, &objp
->type
))
195 if (!zdr_mode3 (zdrs
, &objp
->mode
))
197 if (!zdr_u_int (zdrs
, &objp
->nlink
))
199 if (!zdr_uid3 (zdrs
, &objp
->uid
))
201 if (!zdr_gid3 (zdrs
, &objp
->gid
))
203 if (!zdr_size3 (zdrs
, &objp
->size
))
205 if (!zdr_size3 (zdrs
, &objp
->used
))
207 if (!zdr_specdata3 (zdrs
, &objp
->rdev
))
209 if (!zdr_u_quad_t (zdrs
, &objp
->fsid
))
211 if (!zdr_fileid3 (zdrs
, &objp
->fileid
))
213 if (!zdr_nfstime3 (zdrs
, &objp
->atime
))
215 if (!zdr_nfstime3 (zdrs
, &objp
->mtime
))
217 if (!zdr_nfstime3 (zdrs
, &objp
->ctime
))
223 zdr_post_op_attr (ZDR
*zdrs
, post_op_attr
*objp
)
225 register int32_t *buf
;
228 if (!zdr_bool (zdrs
, &objp
->attributes_follow
))
230 switch (objp
->attributes_follow
) {
232 if (!zdr_fattr3 (zdrs
, &objp
->post_op_attr_u
.attributes
))
244 zdr_nfsstat3 (ZDR
*zdrs
, nfsstat3
*objp
)
246 register int32_t *buf
;
249 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
255 zdr_stable_how (ZDR
*zdrs
, stable_how
*objp
)
257 register int32_t *buf
;
260 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
266 zdr_offset3 (ZDR
*zdrs
, offset3
*objp
)
268 register int32_t *buf
;
271 if (!zdr_u_quad_t (zdrs
, objp
))
277 zdr_count3 (ZDR
*zdrs
, count3
*objp
)
279 register int32_t *buf
;
282 if (!zdr_u_int (zdrs
, objp
))
288 zdr_wcc_attr (ZDR
*zdrs
, wcc_attr
*objp
)
290 register int32_t *buf
;
293 if (!zdr_size3 (zdrs
, &objp
->size
))
295 if (!zdr_nfstime3 (zdrs
, &objp
->mtime
))
297 if (!zdr_nfstime3 (zdrs
, &objp
->ctime
))
303 zdr_pre_op_attr (ZDR
*zdrs
, pre_op_attr
*objp
)
305 register int32_t *buf
;
308 if (!zdr_bool (zdrs
, &objp
->attributes_follow
))
310 switch (objp
->attributes_follow
) {
312 if (!zdr_wcc_attr (zdrs
, &objp
->pre_op_attr_u
.attributes
))
324 zdr_wcc_data (ZDR
*zdrs
, wcc_data
*objp
)
326 register int32_t *buf
;
329 if (!zdr_pre_op_attr (zdrs
, &objp
->before
))
331 if (!zdr_post_op_attr (zdrs
, &objp
->after
))
337 zdr_WRITE3args (ZDR
*zdrs
, WRITE3args
*objp
)
339 register int32_t *buf
;
342 if (!zdr_nfs_fh3 (zdrs
, &objp
->file
))
344 if (!zdr_offset3 (zdrs
, &objp
->offset
))
346 if (!zdr_count3 (zdrs
, &objp
->count
))
348 if (!zdr_stable_how (zdrs
, &objp
->stable
))
350 if (!zdr_bytes (zdrs
, (char **)&objp
->data
.data_val
, (u_int
*) &objp
->data
.data_len
, ~0))
356 zdr_writeverf3 (ZDR
*zdrs
, writeverf3 objp
)
358 register int32_t *buf
;
361 if (!zdr_opaque (zdrs
, objp
, NFS3_WRITEVERFSIZE
))
367 zdr_WRITE3resok (ZDR
*zdrs
, WRITE3resok
*objp
)
369 register int32_t *buf
;
372 if (!zdr_wcc_data (zdrs
, &objp
->file_wcc
))
374 if (!zdr_count3 (zdrs
, &objp
->count
))
376 if (!zdr_stable_how (zdrs
, &objp
->committed
))
378 if (!zdr_writeverf3 (zdrs
, objp
->verf
))
384 zdr_WRITE3resfail (ZDR
*zdrs
, WRITE3resfail
*objp
)
386 register int32_t *buf
;
389 if (!zdr_wcc_data (zdrs
, &objp
->file_wcc
))
395 zdr_WRITE3res (ZDR
*zdrs
, WRITE3res
*objp
)
397 register int32_t *buf
;
400 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
402 switch (objp
->status
) {
404 if (!zdr_WRITE3resok (zdrs
, &objp
->WRITE3res_u
.resok
))
408 if (!zdr_WRITE3resfail (zdrs
, &objp
->WRITE3res_u
.resfail
))
416 zdr_LOOKUP3args (ZDR
*zdrs
, LOOKUP3args
*objp
)
418 register int32_t *buf
;
421 if (!zdr_diropargs3 (zdrs
, &objp
->what
))
427 zdr_LOOKUP3resok (ZDR
*zdrs
, LOOKUP3resok
*objp
)
429 register int32_t *buf
;
432 if (!zdr_nfs_fh3 (zdrs
, &objp
->object
))
434 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
436 if (!zdr_post_op_attr (zdrs
, &objp
->dir_attributes
))
442 zdr_LOOKUP3resfail (ZDR
*zdrs
, LOOKUP3resfail
*objp
)
444 register int32_t *buf
;
447 if (!zdr_post_op_attr (zdrs
, &objp
->dir_attributes
))
453 zdr_LOOKUP3res (ZDR
*zdrs
, LOOKUP3res
*objp
)
455 register int32_t *buf
;
458 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
460 switch (objp
->status
) {
462 if (!zdr_LOOKUP3resok (zdrs
, &objp
->LOOKUP3res_u
.resok
))
466 if (!zdr_LOOKUP3resfail (zdrs
, &objp
->LOOKUP3res_u
.resfail
))
474 zdr_COMMIT3args (ZDR
*zdrs
, COMMIT3args
*objp
)
476 register int32_t *buf
;
479 if (!zdr_nfs_fh3 (zdrs
, &objp
->file
))
481 if (!zdr_offset3 (zdrs
, &objp
->offset
))
483 if (!zdr_count3 (zdrs
, &objp
->count
))
489 zdr_COMMIT3resok (ZDR
*zdrs
, COMMIT3resok
*objp
)
491 register int32_t *buf
;
494 if (!zdr_wcc_data (zdrs
, &objp
->file_wcc
))
496 if (!zdr_writeverf3 (zdrs
, objp
->verf
))
502 zdr_COMMIT3resfail (ZDR
*zdrs
, COMMIT3resfail
*objp
)
504 register int32_t *buf
;
507 if (!zdr_wcc_data (zdrs
, &objp
->file_wcc
))
513 zdr_COMMIT3res (ZDR
*zdrs
, COMMIT3res
*objp
)
515 register int32_t *buf
;
518 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
520 switch (objp
->status
) {
522 if (!zdr_COMMIT3resok (zdrs
, &objp
->COMMIT3res_u
.resok
))
526 if (!zdr_COMMIT3resfail (zdrs
, &objp
->COMMIT3res_u
.resfail
))
534 zdr_ACCESS3args (ZDR
*zdrs
, ACCESS3args
*objp
)
536 register int32_t *buf
;
539 if (!zdr_nfs_fh3 (zdrs
, &objp
->object
))
541 if (!zdr_u_int (zdrs
, &objp
->access
))
547 zdr_ACCESS3resok (ZDR
*zdrs
, ACCESS3resok
*objp
)
549 register int32_t *buf
;
552 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
554 if (!zdr_u_int (zdrs
, &objp
->access
))
560 zdr_ACCESS3resfail (ZDR
*zdrs
, ACCESS3resfail
*objp
)
562 register int32_t *buf
;
565 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
571 zdr_ACCESS3res (ZDR
*zdrs
, ACCESS3res
*objp
)
573 register int32_t *buf
;
576 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
578 switch (objp
->status
) {
580 if (!zdr_ACCESS3resok (zdrs
, &objp
->ACCESS3res_u
.resok
))
584 if (!zdr_ACCESS3resfail (zdrs
, &objp
->ACCESS3res_u
.resfail
))
592 zdr_GETATTR3args (ZDR
*zdrs
, GETATTR3args
*objp
)
594 register int32_t *buf
;
597 if (!zdr_nfs_fh3 (zdrs
, &objp
->object
))
603 zdr_GETATTR3resok (ZDR
*zdrs
, GETATTR3resok
*objp
)
605 register int32_t *buf
;
608 if (!zdr_fattr3 (zdrs
, &objp
->obj_attributes
))
614 zdr_GETATTR3res (ZDR
*zdrs
, GETATTR3res
*objp
)
616 register int32_t *buf
;
619 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
621 switch (objp
->status
) {
623 if (!zdr_GETATTR3resok (zdrs
, &objp
->GETATTR3res_u
.resok
))
633 zdr_time_how (ZDR
*zdrs
, time_how
*objp
)
635 register int32_t *buf
;
638 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
644 zdr_set_mode3 (ZDR
*zdrs
, set_mode3
*objp
)
646 register int32_t *buf
;
649 if (!zdr_bool (zdrs
, &objp
->set_it
))
651 switch (objp
->set_it
) {
653 if (!zdr_mode3 (zdrs
, &objp
->set_mode3_u
.mode
))
663 zdr_set_uid3 (ZDR
*zdrs
, set_uid3
*objp
)
665 register int32_t *buf
;
668 if (!zdr_bool (zdrs
, &objp
->set_it
))
670 switch (objp
->set_it
) {
672 if (!zdr_uid3 (zdrs
, &objp
->set_uid3_u
.uid
))
682 zdr_set_gid3 (ZDR
*zdrs
, set_gid3
*objp
)
684 register int32_t *buf
;
687 if (!zdr_bool (zdrs
, &objp
->set_it
))
689 switch (objp
->set_it
) {
691 if (!zdr_gid3 (zdrs
, &objp
->set_gid3_u
.gid
))
701 zdr_set_size3 (ZDR
*zdrs
, set_size3
*objp
)
703 register int32_t *buf
;
706 if (!zdr_bool (zdrs
, &objp
->set_it
))
708 switch (objp
->set_it
) {
710 if (!zdr_size3 (zdrs
, &objp
->set_size3_u
.size
))
720 zdr_set_atime (ZDR
*zdrs
, set_atime
*objp
)
722 register int32_t *buf
;
725 if (!zdr_time_how (zdrs
, &objp
->set_it
))
727 switch (objp
->set_it
) {
728 case SET_TO_CLIENT_TIME
:
729 if (!zdr_nfstime3 (zdrs
, &objp
->set_atime_u
.atime
))
739 zdr_set_mtime (ZDR
*zdrs
, set_mtime
*objp
)
741 register int32_t *buf
;
744 if (!zdr_time_how (zdrs
, &objp
->set_it
))
746 switch (objp
->set_it
) {
747 case SET_TO_CLIENT_TIME
:
748 if (!zdr_nfstime3 (zdrs
, &objp
->set_mtime_u
.mtime
))
758 zdr_sattr3 (ZDR
*zdrs
, sattr3
*objp
)
760 register int32_t *buf
;
763 if (!zdr_set_mode3 (zdrs
, &objp
->mode
))
765 if (!zdr_set_uid3 (zdrs
, &objp
->uid
))
767 if (!zdr_set_gid3 (zdrs
, &objp
->gid
))
769 if (!zdr_set_size3 (zdrs
, &objp
->size
))
771 if (!zdr_set_atime (zdrs
, &objp
->atime
))
773 if (!zdr_set_mtime (zdrs
, &objp
->mtime
))
779 zdr_createmode3 (ZDR
*zdrs
, createmode3
*objp
)
781 register int32_t *buf
;
784 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
790 zdr_createverf3 (ZDR
*zdrs
, createverf3 objp
)
792 register int32_t *buf
;
795 if (!zdr_opaque (zdrs
, objp
, NFS3_CREATEVERFSIZE
))
801 zdr_createhow3 (ZDR
*zdrs
, createhow3
*objp
)
803 register int32_t *buf
;
806 if (!zdr_createmode3 (zdrs
, &objp
->mode
))
808 switch (objp
->mode
) {
810 if (!zdr_sattr3 (zdrs
, &objp
->createhow3_u
.obj_attributes
))
814 if (!zdr_sattr3 (zdrs
, &objp
->createhow3_u
.g_obj_attributes
))
818 if (!zdr_createverf3 (zdrs
, objp
->createhow3_u
.verf
))
828 zdr_CREATE3args (ZDR
*zdrs
, CREATE3args
*objp
)
830 register int32_t *buf
;
833 if (!zdr_diropargs3 (zdrs
, &objp
->where
))
835 if (!zdr_createhow3 (zdrs
, &objp
->how
))
841 zdr_post_op_fh3 (ZDR
*zdrs
, post_op_fh3
*objp
)
843 register int32_t *buf
;
846 if (!zdr_bool (zdrs
, &objp
->handle_follows
))
848 switch (objp
->handle_follows
) {
850 if (!zdr_nfs_fh3 (zdrs
, &objp
->post_op_fh3_u
.handle
))
862 zdr_CREATE3resok (ZDR
*zdrs
, CREATE3resok
*objp
)
864 register int32_t *buf
;
867 if (!zdr_post_op_fh3 (zdrs
, &objp
->obj
))
869 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
871 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
877 zdr_CREATE3resfail (ZDR
*zdrs
, CREATE3resfail
*objp
)
879 register int32_t *buf
;
882 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
888 zdr_CREATE3res (ZDR
*zdrs
, CREATE3res
*objp
)
890 register int32_t *buf
;
893 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
895 switch (objp
->status
) {
897 if (!zdr_CREATE3resok (zdrs
, &objp
->CREATE3res_u
.resok
))
901 if (!zdr_CREATE3resfail (zdrs
, &objp
->CREATE3res_u
.resfail
))
909 zdr_REMOVE3args (ZDR
*zdrs
, REMOVE3args
*objp
)
911 register int32_t *buf
;
914 if (!zdr_diropargs3 (zdrs
, &objp
->object
))
920 zdr_REMOVE3resok (ZDR
*zdrs
, REMOVE3resok
*objp
)
922 register int32_t *buf
;
925 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
931 zdr_REMOVE3resfail (ZDR
*zdrs
, REMOVE3resfail
*objp
)
933 register int32_t *buf
;
936 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
942 zdr_REMOVE3res (ZDR
*zdrs
, REMOVE3res
*objp
)
944 register int32_t *buf
;
947 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
949 switch (objp
->status
) {
951 if (!zdr_REMOVE3resok (zdrs
, &objp
->REMOVE3res_u
.resok
))
955 if (!zdr_REMOVE3resfail (zdrs
, &objp
->REMOVE3res_u
.resfail
))
963 zdr_READ3args (ZDR
*zdrs
, READ3args
*objp
)
965 register int32_t *buf
;
968 if (!zdr_nfs_fh3 (zdrs
, &objp
->file
))
970 if (!zdr_offset3 (zdrs
, &objp
->offset
))
972 if (!zdr_count3 (zdrs
, &objp
->count
))
978 zdr_READ3resok (ZDR
*zdrs
, READ3resok
*objp
)
980 register int32_t *buf
;
983 if (!zdr_post_op_attr (zdrs
, &objp
->file_attributes
))
985 if (!zdr_count3 (zdrs
, &objp
->count
))
987 if (!zdr_bool (zdrs
, &objp
->eof
))
989 if (!zdr_bytes (zdrs
, (char **)&objp
->data
.data_val
, (u_int
*) &objp
->data
.data_len
, ~0))
995 zdr_READ3resfail (ZDR
*zdrs
, READ3resfail
*objp
)
997 register int32_t *buf
;
1000 if (!zdr_post_op_attr (zdrs
, &objp
->file_attributes
))
1006 zdr_READ3res (ZDR
*zdrs
, READ3res
*objp
)
1008 register int32_t *buf
;
1011 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1013 switch (objp
->status
) {
1015 if (!zdr_READ3resok (zdrs
, &objp
->READ3res_u
.resok
))
1019 if (!zdr_READ3resfail (zdrs
, &objp
->READ3res_u
.resfail
))
1027 zdr_FSINFO3args (ZDR
*zdrs
, FSINFO3args
*objp
)
1029 register int32_t *buf
;
1032 if (!zdr_nfs_fh3 (zdrs
, &objp
->fsroot
))
1038 zdr_FSINFO3resok (ZDR
*zdrs
, FSINFO3resok
*objp
)
1040 register int32_t *buf
;
1044 if (zdrs
->x_op
== ZDR_ENCODE
) {
1045 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1047 buf
= ZDR_INLINE (zdrs
, 7 * BYTES_PER_ZDR_UNIT
);
1049 if (!zdr_u_int (zdrs
, &objp
->rtmax
))
1051 if (!zdr_u_int (zdrs
, &objp
->rtpref
))
1053 if (!zdr_u_int (zdrs
, &objp
->rtmult
))
1055 if (!zdr_u_int (zdrs
, &objp
->wtmax
))
1057 if (!zdr_u_int (zdrs
, &objp
->wtpref
))
1059 if (!zdr_u_int (zdrs
, &objp
->wtmult
))
1061 if (!zdr_u_int (zdrs
, &objp
->dtpref
))
1065 IZDR_PUT_U_LONG(buf
, objp
->rtmax
);
1066 IZDR_PUT_U_LONG(buf
, objp
->rtpref
);
1067 IZDR_PUT_U_LONG(buf
, objp
->rtmult
);
1068 IZDR_PUT_U_LONG(buf
, objp
->wtmax
);
1069 IZDR_PUT_U_LONG(buf
, objp
->wtpref
);
1070 IZDR_PUT_U_LONG(buf
, objp
->wtmult
);
1071 IZDR_PUT_U_LONG(buf
, objp
->dtpref
);
1073 if (!zdr_size3 (zdrs
, &objp
->maxfilesize
))
1075 if (!zdr_nfstime3 (zdrs
, &objp
->time_delta
))
1077 if (!zdr_u_int (zdrs
, &objp
->properties
))
1080 } else if (zdrs
->x_op
== ZDR_DECODE
) {
1081 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1083 buf
= ZDR_INLINE (zdrs
, 7 * BYTES_PER_ZDR_UNIT
);
1085 if (!zdr_u_int (zdrs
, &objp
->rtmax
))
1087 if (!zdr_u_int (zdrs
, &objp
->rtpref
))
1089 if (!zdr_u_int (zdrs
, &objp
->rtmult
))
1091 if (!zdr_u_int (zdrs
, &objp
->wtmax
))
1093 if (!zdr_u_int (zdrs
, &objp
->wtpref
))
1095 if (!zdr_u_int (zdrs
, &objp
->wtmult
))
1097 if (!zdr_u_int (zdrs
, &objp
->dtpref
))
1101 objp
->rtmax
= IZDR_GET_U_LONG(buf
);
1102 objp
->rtpref
= IZDR_GET_U_LONG(buf
);
1103 objp
->rtmult
= IZDR_GET_U_LONG(buf
);
1104 objp
->wtmax
= IZDR_GET_U_LONG(buf
);
1105 objp
->wtpref
= IZDR_GET_U_LONG(buf
);
1106 objp
->wtmult
= IZDR_GET_U_LONG(buf
);
1107 objp
->dtpref
= IZDR_GET_U_LONG(buf
);
1109 if (!zdr_size3 (zdrs
, &objp
->maxfilesize
))
1111 if (!zdr_nfstime3 (zdrs
, &objp
->time_delta
))
1113 if (!zdr_u_int (zdrs
, &objp
->properties
))
1118 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1120 if (!zdr_u_int (zdrs
, &objp
->rtmax
))
1122 if (!zdr_u_int (zdrs
, &objp
->rtpref
))
1124 if (!zdr_u_int (zdrs
, &objp
->rtmult
))
1126 if (!zdr_u_int (zdrs
, &objp
->wtmax
))
1128 if (!zdr_u_int (zdrs
, &objp
->wtpref
))
1130 if (!zdr_u_int (zdrs
, &objp
->wtmult
))
1132 if (!zdr_u_int (zdrs
, &objp
->dtpref
))
1134 if (!zdr_size3 (zdrs
, &objp
->maxfilesize
))
1136 if (!zdr_nfstime3 (zdrs
, &objp
->time_delta
))
1138 if (!zdr_u_int (zdrs
, &objp
->properties
))
1144 zdr_FSINFO3resfail (ZDR
*zdrs
, FSINFO3resfail
*objp
)
1146 register int32_t *buf
;
1149 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1155 zdr_FSINFO3res (ZDR
*zdrs
, FSINFO3res
*objp
)
1157 register int32_t *buf
;
1160 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1162 switch (objp
->status
) {
1164 if (!zdr_FSINFO3resok (zdrs
, &objp
->FSINFO3res_u
.resok
))
1168 if (!zdr_FSINFO3resfail (zdrs
, &objp
->FSINFO3res_u
.resfail
))
1176 zdr_FSSTAT3args (ZDR
*zdrs
, FSSTAT3args
*objp
)
1178 register int32_t *buf
;
1181 if (!zdr_nfs_fh3 (zdrs
, &objp
->fsroot
))
1187 zdr_FSSTAT3resok (ZDR
*zdrs
, FSSTAT3resok
*objp
)
1189 register int32_t *buf
;
1192 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1194 if (!zdr_size3 (zdrs
, &objp
->tbytes
))
1196 if (!zdr_size3 (zdrs
, &objp
->fbytes
))
1198 if (!zdr_size3 (zdrs
, &objp
->abytes
))
1200 if (!zdr_size3 (zdrs
, &objp
->tfiles
))
1202 if (!zdr_size3 (zdrs
, &objp
->ffiles
))
1204 if (!zdr_size3 (zdrs
, &objp
->afiles
))
1206 if (!zdr_u_int (zdrs
, &objp
->invarsec
))
1212 zdr_FSSTAT3resfail (ZDR
*zdrs
, FSSTAT3resfail
*objp
)
1214 register int32_t *buf
;
1217 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1223 zdr_FSSTAT3res (ZDR
*zdrs
, FSSTAT3res
*objp
)
1225 register int32_t *buf
;
1228 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1230 switch (objp
->status
) {
1232 if (!zdr_FSSTAT3resok (zdrs
, &objp
->FSSTAT3res_u
.resok
))
1236 if (!zdr_FSSTAT3resfail (zdrs
, &objp
->FSSTAT3res_u
.resfail
))
1244 zdr_PATHCONF3args (ZDR
*zdrs
, PATHCONF3args
*objp
)
1246 register int32_t *buf
;
1249 if (!zdr_nfs_fh3 (zdrs
, &objp
->object
))
1255 zdr_PATHCONF3resok (ZDR
*zdrs
, PATHCONF3resok
*objp
)
1257 register int32_t *buf
;
1261 if (zdrs
->x_op
== ZDR_ENCODE
) {
1262 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1264 buf
= ZDR_INLINE (zdrs
, 6 * BYTES_PER_ZDR_UNIT
);
1266 if (!zdr_u_int (zdrs
, &objp
->linkmax
))
1268 if (!zdr_u_int (zdrs
, &objp
->name_max
))
1270 if (!zdr_bool (zdrs
, &objp
->no_trunc
))
1272 if (!zdr_bool (zdrs
, &objp
->chown_restricted
))
1274 if (!zdr_bool (zdrs
, &objp
->case_insensitive
))
1276 if (!zdr_bool (zdrs
, &objp
->case_preserving
))
1279 IZDR_PUT_U_LONG(buf
, objp
->linkmax
);
1280 IZDR_PUT_U_LONG(buf
, objp
->name_max
);
1281 IZDR_PUT_BOOL(buf
, objp
->no_trunc
);
1282 IZDR_PUT_BOOL(buf
, objp
->chown_restricted
);
1283 IZDR_PUT_BOOL(buf
, objp
->case_insensitive
);
1284 IZDR_PUT_BOOL(buf
, objp
->case_preserving
);
1287 } else if (zdrs
->x_op
== ZDR_DECODE
) {
1288 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1290 buf
= ZDR_INLINE (zdrs
, 6 * BYTES_PER_ZDR_UNIT
);
1292 if (!zdr_u_int (zdrs
, &objp
->linkmax
))
1294 if (!zdr_u_int (zdrs
, &objp
->name_max
))
1296 if (!zdr_bool (zdrs
, &objp
->no_trunc
))
1298 if (!zdr_bool (zdrs
, &objp
->chown_restricted
))
1300 if (!zdr_bool (zdrs
, &objp
->case_insensitive
))
1302 if (!zdr_bool (zdrs
, &objp
->case_preserving
))
1305 objp
->linkmax
= IZDR_GET_U_LONG(buf
);
1306 objp
->name_max
= IZDR_GET_U_LONG(buf
);
1307 objp
->no_trunc
= IZDR_GET_BOOL(buf
);
1308 objp
->chown_restricted
= IZDR_GET_BOOL(buf
);
1309 objp
->case_insensitive
= IZDR_GET_BOOL(buf
);
1310 objp
->case_preserving
= IZDR_GET_BOOL(buf
);
1315 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1317 if (!zdr_u_int (zdrs
, &objp
->linkmax
))
1319 if (!zdr_u_int (zdrs
, &objp
->name_max
))
1321 if (!zdr_bool (zdrs
, &objp
->no_trunc
))
1323 if (!zdr_bool (zdrs
, &objp
->chown_restricted
))
1325 if (!zdr_bool (zdrs
, &objp
->case_insensitive
))
1327 if (!zdr_bool (zdrs
, &objp
->case_preserving
))
1333 zdr_PATHCONF3resfail (ZDR
*zdrs
, PATHCONF3resfail
*objp
)
1335 register int32_t *buf
;
1338 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1344 zdr_PATHCONF3res (ZDR
*zdrs
, PATHCONF3res
*objp
)
1346 register int32_t *buf
;
1349 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1351 switch (objp
->status
) {
1353 if (!zdr_PATHCONF3resok (zdrs
, &objp
->PATHCONF3res_u
.resok
))
1357 if (!zdr_PATHCONF3resfail (zdrs
, &objp
->PATHCONF3res_u
.resfail
))
1365 zdr_nfspath3 (ZDR
*zdrs
, nfspath3
*objp
)
1367 register int32_t *buf
;
1370 if (!zdr_string (zdrs
, objp
, ~0))
1376 zdr_symlinkdata3 (ZDR
*zdrs
, symlinkdata3
*objp
)
1378 register int32_t *buf
;
1381 if (!zdr_sattr3 (zdrs
, &objp
->symlink_attributes
))
1383 if (!zdr_nfspath3 (zdrs
, &objp
->symlink_data
))
1389 zdr_SYMLINK3args (ZDR
*zdrs
, SYMLINK3args
*objp
)
1391 register int32_t *buf
;
1394 if (!zdr_diropargs3 (zdrs
, &objp
->where
))
1396 if (!zdr_symlinkdata3 (zdrs
, &objp
->symlink
))
1402 zdr_SYMLINK3resok (ZDR
*zdrs
, SYMLINK3resok
*objp
)
1404 register int32_t *buf
;
1407 if (!zdr_post_op_fh3 (zdrs
, &objp
->obj
))
1409 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1411 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
1417 zdr_SYMLINK3resfail (ZDR
*zdrs
, SYMLINK3resfail
*objp
)
1419 register int32_t *buf
;
1422 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
1428 zdr_SYMLINK3res (ZDR
*zdrs
, SYMLINK3res
*objp
)
1430 register int32_t *buf
;
1433 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1435 switch (objp
->status
) {
1437 if (!zdr_SYMLINK3resok (zdrs
, &objp
->SYMLINK3res_u
.resok
))
1441 if (!zdr_SYMLINK3resfail (zdrs
, &objp
->SYMLINK3res_u
.resfail
))
1449 zdr_READLINK3args (ZDR
*zdrs
, READLINK3args
*objp
)
1451 register int32_t *buf
;
1454 if (!zdr_nfs_fh3 (zdrs
, &objp
->symlink
))
1460 zdr_READLINK3resok (ZDR
*zdrs
, READLINK3resok
*objp
)
1462 register int32_t *buf
;
1465 if (!zdr_post_op_attr (zdrs
, &objp
->symlink_attributes
))
1467 if (!zdr_nfspath3 (zdrs
, &objp
->data
))
1473 zdr_READLINK3resfail (ZDR
*zdrs
, READLINK3resfail
*objp
)
1475 register int32_t *buf
;
1478 if (!zdr_post_op_attr (zdrs
, &objp
->symlink_attributes
))
1484 zdr_READLINK3res (ZDR
*zdrs
, READLINK3res
*objp
)
1486 register int32_t *buf
;
1489 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1491 switch (objp
->status
) {
1493 if (!zdr_READLINK3resok (zdrs
, &objp
->READLINK3res_u
.resok
))
1497 if (!zdr_READLINK3resfail (zdrs
, &objp
->READLINK3res_u
.resfail
))
1505 zdr_devicedata3 (ZDR
*zdrs
, devicedata3
*objp
)
1507 register int32_t *buf
;
1510 if (!zdr_sattr3 (zdrs
, &objp
->dev_attributes
))
1512 if (!zdr_specdata3 (zdrs
, &objp
->spec
))
1518 zdr_mknoddata3 (ZDR
*zdrs
, mknoddata3
*objp
)
1520 register int32_t *buf
;
1523 if (!zdr_ftype3 (zdrs
, &objp
->type
))
1525 switch (objp
->type
) {
1527 if (!zdr_devicedata3 (zdrs
, &objp
->mknoddata3_u
.chr_device
))
1531 if (!zdr_devicedata3 (zdrs
, &objp
->mknoddata3_u
.blk_device
))
1535 if (!zdr_sattr3 (zdrs
, &objp
->mknoddata3_u
.sock_attributes
))
1539 if (!zdr_sattr3 (zdrs
, &objp
->mknoddata3_u
.pipe_attributes
))
1549 zdr_MKNOD3args (ZDR
*zdrs
, MKNOD3args
*objp
)
1551 register int32_t *buf
;
1554 if (!zdr_diropargs3 (zdrs
, &objp
->where
))
1556 if (!zdr_mknoddata3 (zdrs
, &objp
->what
))
1562 zdr_MKNOD3resok (ZDR
*zdrs
, MKNOD3resok
*objp
)
1564 register int32_t *buf
;
1567 if (!zdr_post_op_fh3 (zdrs
, &objp
->obj
))
1569 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1571 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
1577 zdr_MKNOD3resfail (ZDR
*zdrs
, MKNOD3resfail
*objp
)
1579 register int32_t *buf
;
1582 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
1588 zdr_MKNOD3res (ZDR
*zdrs
, MKNOD3res
*objp
)
1590 register int32_t *buf
;
1593 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1595 switch (objp
->status
) {
1597 if (!zdr_MKNOD3resok (zdrs
, &objp
->MKNOD3res_u
.resok
))
1601 if (!zdr_MKNOD3resfail (zdrs
, &objp
->MKNOD3res_u
.resfail
))
1609 zdr_MKDIR3args (ZDR
*zdrs
, MKDIR3args
*objp
)
1611 register int32_t *buf
;
1614 if (!zdr_diropargs3 (zdrs
, &objp
->where
))
1616 if (!zdr_sattr3 (zdrs
, &objp
->attributes
))
1622 zdr_MKDIR3resok (ZDR
*zdrs
, MKDIR3resok
*objp
)
1624 register int32_t *buf
;
1627 if (!zdr_post_op_fh3 (zdrs
, &objp
->obj
))
1629 if (!zdr_post_op_attr (zdrs
, &objp
->obj_attributes
))
1631 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
1637 zdr_MKDIR3resfail (ZDR
*zdrs
, MKDIR3resfail
*objp
)
1639 register int32_t *buf
;
1642 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
1648 zdr_MKDIR3res (ZDR
*zdrs
, MKDIR3res
*objp
)
1650 register int32_t *buf
;
1653 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1655 switch (objp
->status
) {
1657 if (!zdr_MKDIR3resok (zdrs
, &objp
->MKDIR3res_u
.resok
))
1661 if (!zdr_MKDIR3resfail (zdrs
, &objp
->MKDIR3res_u
.resfail
))
1669 zdr_RMDIR3args (ZDR
*zdrs
, RMDIR3args
*objp
)
1671 register int32_t *buf
;
1674 if (!zdr_diropargs3 (zdrs
, &objp
->object
))
1680 zdr_RMDIR3resok (ZDR
*zdrs
, RMDIR3resok
*objp
)
1682 register int32_t *buf
;
1685 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
1691 zdr_RMDIR3resfail (ZDR
*zdrs
, RMDIR3resfail
*objp
)
1693 register int32_t *buf
;
1696 if (!zdr_wcc_data (zdrs
, &objp
->dir_wcc
))
1702 zdr_RMDIR3res (ZDR
*zdrs
, RMDIR3res
*objp
)
1704 register int32_t *buf
;
1707 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1709 switch (objp
->status
) {
1711 if (!zdr_RMDIR3resok (zdrs
, &objp
->RMDIR3res_u
.resok
))
1715 if (!zdr_RMDIR3resfail (zdrs
, &objp
->RMDIR3res_u
.resfail
))
1723 zdr_RENAME3args (ZDR
*zdrs
, RENAME3args
*objp
)
1725 register int32_t *buf
;
1728 if (!zdr_diropargs3 (zdrs
, &objp
->from
))
1730 if (!zdr_diropargs3 (zdrs
, &objp
->to
))
1736 zdr_RENAME3resok (ZDR
*zdrs
, RENAME3resok
*objp
)
1738 register int32_t *buf
;
1741 if (!zdr_wcc_data (zdrs
, &objp
->fromdir_wcc
))
1743 if (!zdr_wcc_data (zdrs
, &objp
->todir_wcc
))
1749 zdr_RENAME3resfail (ZDR
*zdrs
, RENAME3resfail
*objp
)
1751 register int32_t *buf
;
1754 if (!zdr_wcc_data (zdrs
, &objp
->fromdir_wcc
))
1756 if (!zdr_wcc_data (zdrs
, &objp
->todir_wcc
))
1762 zdr_RENAME3res (ZDR
*zdrs
, RENAME3res
*objp
)
1764 register int32_t *buf
;
1767 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1769 switch (objp
->status
) {
1771 if (!zdr_RENAME3resok (zdrs
, &objp
->RENAME3res_u
.resok
))
1775 if (!zdr_RENAME3resfail (zdrs
, &objp
->RENAME3res_u
.resfail
))
1783 zdr_READDIRPLUS3args (ZDR
*zdrs
, READDIRPLUS3args
*objp
)
1785 register int32_t *buf
;
1788 if (!zdr_nfs_fh3 (zdrs
, &objp
->dir
))
1790 if (!zdr_cookie3 (zdrs
, &objp
->cookie
))
1792 if (!zdr_cookieverf3 (zdrs
, objp
->cookieverf
))
1794 if (!zdr_count3 (zdrs
, &objp
->dircount
))
1796 if (!zdr_count3 (zdrs
, &objp
->maxcount
))
1802 zdr_entryplus3 (ZDR
*zdrs
, entryplus3
*objp
)
1804 register int32_t *buf
;
1807 if (!zdr_fileid3 (zdrs
, &objp
->fileid
))
1809 if (!zdr_filename3 (zdrs
, &objp
->name
))
1811 if (!zdr_cookie3 (zdrs
, &objp
->cookie
))
1813 if (!zdr_post_op_attr (zdrs
, &objp
->name_attributes
))
1815 if (!zdr_post_op_fh3 (zdrs
, &objp
->name_handle
))
1817 if (!zdr_pointer (zdrs
, (char **)&objp
->nextentry
, sizeof (entryplus3
), (zdrproc_t
) zdr_entryplus3
))
1823 zdr_dirlistplus3 (ZDR
*zdrs
, dirlistplus3
*objp
)
1825 register int32_t *buf
;
1828 if (!zdr_pointer (zdrs
, (char **)&objp
->entries
, sizeof (entryplus3
), (zdrproc_t
) zdr_entryplus3
))
1830 if (!zdr_bool (zdrs
, &objp
->eof
))
1836 zdr_READDIRPLUS3resok (ZDR
*zdrs
, READDIRPLUS3resok
*objp
)
1838 register int32_t *buf
;
1841 if (!zdr_post_op_attr (zdrs
, &objp
->dir_attributes
))
1843 if (!zdr_cookieverf3 (zdrs
, objp
->cookieverf
))
1845 if (!zdr_dirlistplus3 (zdrs
, &objp
->reply
))
1851 zdr_READDIRPLUS3resfail (ZDR
*zdrs
, READDIRPLUS3resfail
*objp
)
1853 register int32_t *buf
;
1856 if (!zdr_post_op_attr (zdrs
, &objp
->dir_attributes
))
1862 zdr_READDIRPLUS3res (ZDR
*zdrs
, READDIRPLUS3res
*objp
)
1864 register int32_t *buf
;
1867 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1869 switch (objp
->status
) {
1871 if (!zdr_READDIRPLUS3resok (zdrs
, &objp
->READDIRPLUS3res_u
.resok
))
1875 if (!zdr_READDIRPLUS3resfail (zdrs
, &objp
->READDIRPLUS3res_u
.resfail
))
1883 zdr_READDIR3args (ZDR
*zdrs
, READDIR3args
*objp
)
1885 register int32_t *buf
;
1888 if (!zdr_nfs_fh3 (zdrs
, &objp
->dir
))
1890 if (!zdr_cookie3 (zdrs
, &objp
->cookie
))
1892 if (!zdr_cookieverf3 (zdrs
, objp
->cookieverf
))
1894 if (!zdr_count3 (zdrs
, &objp
->count
))
1900 zdr_entry3 (ZDR
*zdrs
, entry3
*objp
)
1902 register int32_t *buf
;
1905 if (!zdr_fileid3 (zdrs
, &objp
->fileid
))
1907 if (!zdr_filename3 (zdrs
, &objp
->name
))
1909 if (!zdr_cookie3 (zdrs
, &objp
->cookie
))
1911 if (!zdr_pointer (zdrs
, (char **)&objp
->nextentry
, sizeof (entry3
), (zdrproc_t
) zdr_entry3
))
1917 zdr_dirlist3 (ZDR
*zdrs
, dirlist3
*objp
)
1919 register int32_t *buf
;
1922 if (!zdr_pointer (zdrs
, (char **)&objp
->entries
, sizeof (entry3
), (zdrproc_t
) zdr_entry3
))
1924 if (!zdr_bool (zdrs
, &objp
->eof
))
1930 zdr_READDIR3resok (ZDR
*zdrs
, READDIR3resok
*objp
)
1932 register int32_t *buf
;
1935 if (!zdr_post_op_attr (zdrs
, &objp
->dir_attributes
))
1937 if (!zdr_cookieverf3 (zdrs
, objp
->cookieverf
))
1939 if (!zdr_dirlist3 (zdrs
, &objp
->reply
))
1945 zdr_READDIR3resfail (ZDR
*zdrs
, READDIR3resfail
*objp
)
1947 register int32_t *buf
;
1950 if (!zdr_post_op_attr (zdrs
, &objp
->dir_attributes
))
1956 zdr_READDIR3res (ZDR
*zdrs
, READDIR3res
*objp
)
1958 register int32_t *buf
;
1961 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
1963 switch (objp
->status
) {
1965 if (!zdr_READDIR3resok (zdrs
, &objp
->READDIR3res_u
.resok
))
1969 if (!zdr_READDIR3resfail (zdrs
, &objp
->READDIR3res_u
.resfail
))
1977 zdr_LINK3args (ZDR
*zdrs
, LINK3args
*objp
)
1979 register int32_t *buf
;
1982 if (!zdr_nfs_fh3 (zdrs
, &objp
->file
))
1984 if (!zdr_diropargs3 (zdrs
, &objp
->link
))
1990 zdr_LINK3resok (ZDR
*zdrs
, LINK3resok
*objp
)
1992 register int32_t *buf
;
1995 if (!zdr_post_op_attr (zdrs
, &objp
->file_attributes
))
1997 if (!zdr_wcc_data (zdrs
, &objp
->linkdir_wcc
))
2003 zdr_LINK3resfail (ZDR
*zdrs
, LINK3resfail
*objp
)
2005 register int32_t *buf
;
2008 if (!zdr_post_op_attr (zdrs
, &objp
->file_attributes
))
2010 if (!zdr_wcc_data (zdrs
, &objp
->linkdir_wcc
))
2016 zdr_LINK3res (ZDR
*zdrs
, LINK3res
*objp
)
2018 register int32_t *buf
;
2021 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2023 switch (objp
->status
) {
2025 if (!zdr_LINK3resok (zdrs
, &objp
->LINK3res_u
.resok
))
2029 if (!zdr_LINK3resfail (zdrs
, &objp
->LINK3res_u
.resfail
))
2037 zdr_sattrguard3 (ZDR
*zdrs
, sattrguard3
*objp
)
2039 register int32_t *buf
;
2042 if (!zdr_bool (zdrs
, &objp
->check
))
2044 switch (objp
->check
) {
2046 if (!zdr_nfstime3 (zdrs
, &objp
->sattrguard3_u
.obj_ctime
))
2058 zdr_SETATTR3args (ZDR
*zdrs
, SETATTR3args
*objp
)
2060 register int32_t *buf
;
2063 if (!zdr_nfs_fh3 (zdrs
, &objp
->object
))
2065 if (!zdr_sattr3 (zdrs
, &objp
->new_attributes
))
2067 if (!zdr_sattrguard3 (zdrs
, &objp
->guard
))
2073 zdr_SETATTR3resok (ZDR
*zdrs
, SETATTR3resok
*objp
)
2075 register int32_t *buf
;
2078 if (!zdr_wcc_data (zdrs
, &objp
->obj_wcc
))
2084 zdr_SETATTR3resfail (ZDR
*zdrs
, SETATTR3resfail
*objp
)
2086 register int32_t *buf
;
2089 if (!zdr_wcc_data (zdrs
, &objp
->obj_wcc
))
2095 zdr_SETATTR3res (ZDR
*zdrs
, SETATTR3res
*objp
)
2097 register int32_t *buf
;
2100 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2102 switch (objp
->status
) {
2104 if (!zdr_SETATTR3resok (zdrs
, &objp
->SETATTR3res_u
.resok
))
2108 if (!zdr_SETATTR3resfail (zdrs
, &objp
->SETATTR3res_u
.resfail
))
2116 zdr_fhandle2 (ZDR
*zdrs
, fhandle2 objp
)
2118 register int32_t *buf
;
2121 if (!zdr_opaque (zdrs
, objp
, FHSIZE2
))
2127 zdr_ftype2 (ZDR
*zdrs
, ftype2
*objp
)
2129 register int32_t *buf
;
2132 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
2138 zdr_fattr2 (ZDR
*zdrs
, fattr2
*objp
)
2140 register int32_t *buf
;
2144 if (zdrs
->x_op
== ZDR_ENCODE
) {
2145 if (!zdr_ftype2 (zdrs
, &objp
->type
))
2147 buf
= ZDR_INLINE (zdrs
, 10 * BYTES_PER_ZDR_UNIT
);
2149 if (!zdr_u_int (zdrs
, &objp
->mode
))
2151 if (!zdr_u_int (zdrs
, &objp
->nlink
))
2153 if (!zdr_u_int (zdrs
, &objp
->uid
))
2155 if (!zdr_u_int (zdrs
, &objp
->gid
))
2157 if (!zdr_u_int (zdrs
, &objp
->size
))
2159 if (!zdr_u_int (zdrs
, &objp
->blocksize
))
2161 if (!zdr_u_int (zdrs
, &objp
->rdev
))
2163 if (!zdr_u_int (zdrs
, &objp
->blocks
))
2165 if (!zdr_u_int (zdrs
, &objp
->fsid
))
2167 if (!zdr_u_int (zdrs
, &objp
->fileid
))
2171 IZDR_PUT_U_LONG(buf
, objp
->mode
);
2172 IZDR_PUT_U_LONG(buf
, objp
->nlink
);
2173 IZDR_PUT_U_LONG(buf
, objp
->uid
);
2174 IZDR_PUT_U_LONG(buf
, objp
->gid
);
2175 IZDR_PUT_U_LONG(buf
, objp
->size
);
2176 IZDR_PUT_U_LONG(buf
, objp
->blocksize
);
2177 IZDR_PUT_U_LONG(buf
, objp
->rdev
);
2178 IZDR_PUT_U_LONG(buf
, objp
->blocks
);
2179 IZDR_PUT_U_LONG(buf
, objp
->fsid
);
2180 IZDR_PUT_U_LONG(buf
, objp
->fileid
);
2182 if (!zdr_nfstime3 (zdrs
, &objp
->atime
))
2184 if (!zdr_nfstime3 (zdrs
, &objp
->mtime
))
2186 if (!zdr_nfstime3 (zdrs
, &objp
->ctime
))
2189 } else if (zdrs
->x_op
== ZDR_DECODE
) {
2190 if (!zdr_ftype2 (zdrs
, &objp
->type
))
2192 buf
= ZDR_INLINE (zdrs
, 10 * BYTES_PER_ZDR_UNIT
);
2194 if (!zdr_u_int (zdrs
, &objp
->mode
))
2196 if (!zdr_u_int (zdrs
, &objp
->nlink
))
2198 if (!zdr_u_int (zdrs
, &objp
->uid
))
2200 if (!zdr_u_int (zdrs
, &objp
->gid
))
2202 if (!zdr_u_int (zdrs
, &objp
->size
))
2204 if (!zdr_u_int (zdrs
, &objp
->blocksize
))
2206 if (!zdr_u_int (zdrs
, &objp
->rdev
))
2208 if (!zdr_u_int (zdrs
, &objp
->blocks
))
2210 if (!zdr_u_int (zdrs
, &objp
->fsid
))
2212 if (!zdr_u_int (zdrs
, &objp
->fileid
))
2216 objp
->mode
= IZDR_GET_U_LONG(buf
);
2217 objp
->nlink
= IZDR_GET_U_LONG(buf
);
2218 objp
->uid
= IZDR_GET_U_LONG(buf
);
2219 objp
->gid
= IZDR_GET_U_LONG(buf
);
2220 objp
->size
= IZDR_GET_U_LONG(buf
);
2221 objp
->blocksize
= IZDR_GET_U_LONG(buf
);
2222 objp
->rdev
= IZDR_GET_U_LONG(buf
);
2223 objp
->blocks
= IZDR_GET_U_LONG(buf
);
2224 objp
->fsid
= IZDR_GET_U_LONG(buf
);
2225 objp
->fileid
= IZDR_GET_U_LONG(buf
);
2227 if (!zdr_nfstime3 (zdrs
, &objp
->atime
))
2229 if (!zdr_nfstime3 (zdrs
, &objp
->mtime
))
2231 if (!zdr_nfstime3 (zdrs
, &objp
->ctime
))
2236 if (!zdr_ftype2 (zdrs
, &objp
->type
))
2238 if (!zdr_u_int (zdrs
, &objp
->mode
))
2240 if (!zdr_u_int (zdrs
, &objp
->nlink
))
2242 if (!zdr_u_int (zdrs
, &objp
->uid
))
2244 if (!zdr_u_int (zdrs
, &objp
->gid
))
2246 if (!zdr_u_int (zdrs
, &objp
->size
))
2248 if (!zdr_u_int (zdrs
, &objp
->blocksize
))
2250 if (!zdr_u_int (zdrs
, &objp
->rdev
))
2252 if (!zdr_u_int (zdrs
, &objp
->blocks
))
2254 if (!zdr_u_int (zdrs
, &objp
->fsid
))
2256 if (!zdr_u_int (zdrs
, &objp
->fileid
))
2258 if (!zdr_nfstime3 (zdrs
, &objp
->atime
))
2260 if (!zdr_nfstime3 (zdrs
, &objp
->mtime
))
2262 if (!zdr_nfstime3 (zdrs
, &objp
->ctime
))
2268 zdr_sattr2 (ZDR
*zdrs
, sattr2
*objp
)
2270 register int32_t *buf
;
2274 if (zdrs
->x_op
== ZDR_ENCODE
) {
2275 buf
= ZDR_INLINE (zdrs
, 4 * BYTES_PER_ZDR_UNIT
);
2277 if (!zdr_u_int (zdrs
, &objp
->mode
))
2279 if (!zdr_u_int (zdrs
, &objp
->uid
))
2281 if (!zdr_u_int (zdrs
, &objp
->gid
))
2283 if (!zdr_u_int (zdrs
, &objp
->size
))
2287 IZDR_PUT_U_LONG(buf
, objp
->mode
);
2288 IZDR_PUT_U_LONG(buf
, objp
->uid
);
2289 IZDR_PUT_U_LONG(buf
, objp
->gid
);
2290 IZDR_PUT_U_LONG(buf
, objp
->size
);
2292 if (!zdr_nfstime3 (zdrs
, &objp
->atime
))
2294 if (!zdr_nfstime3 (zdrs
, &objp
->mtime
))
2297 } else if (zdrs
->x_op
== ZDR_DECODE
) {
2298 buf
= ZDR_INLINE (zdrs
, 4 * BYTES_PER_ZDR_UNIT
);
2300 if (!zdr_u_int (zdrs
, &objp
->mode
))
2302 if (!zdr_u_int (zdrs
, &objp
->uid
))
2304 if (!zdr_u_int (zdrs
, &objp
->gid
))
2306 if (!zdr_u_int (zdrs
, &objp
->size
))
2310 objp
->mode
= IZDR_GET_U_LONG(buf
);
2311 objp
->uid
= IZDR_GET_U_LONG(buf
);
2312 objp
->gid
= IZDR_GET_U_LONG(buf
);
2313 objp
->size
= IZDR_GET_U_LONG(buf
);
2315 if (!zdr_nfstime3 (zdrs
, &objp
->atime
))
2317 if (!zdr_nfstime3 (zdrs
, &objp
->mtime
))
2322 if (!zdr_u_int (zdrs
, &objp
->mode
))
2324 if (!zdr_u_int (zdrs
, &objp
->uid
))
2326 if (!zdr_u_int (zdrs
, &objp
->gid
))
2328 if (!zdr_u_int (zdrs
, &objp
->size
))
2330 if (!zdr_nfstime3 (zdrs
, &objp
->atime
))
2332 if (!zdr_nfstime3 (zdrs
, &objp
->mtime
))
2338 zdr_filename2 (ZDR
*zdrs
, filename2
*objp
)
2340 register int32_t *buf
;
2343 if (!zdr_string (zdrs
, objp
, MAXNAMLEN2
))
2349 zdr_path2 (ZDR
*zdrs
, path2
*objp
)
2351 register int32_t *buf
;
2354 if (!zdr_string (zdrs
, objp
, MAXPATHLEN2
))
2360 zdr_nfsdata2 (ZDR
*zdrs
, nfsdata2
*objp
)
2362 register int32_t *buf
;
2365 if (!zdr_bytes (zdrs
, (char **)&objp
->nfsdata2_val
, (u_int
*) &objp
->nfsdata2_len
, NFSMAXDATA2
))
2371 zdr_nfscookie2 (ZDR
*zdrs
, nfscookie2 objp
)
2373 register int32_t *buf
;
2376 if (!zdr_opaque (zdrs
, objp
, NFSCOOKIESIZE2
))
2382 zdr_entry2 (ZDR
*zdrs
, entry2
*objp
)
2384 register int32_t *buf
;
2387 if (!zdr_u_int (zdrs
, &objp
->fileid
))
2389 if (!zdr_filename2 (zdrs
, &objp
->name
))
2391 if (!zdr_nfscookie2 (zdrs
, objp
->cookie
))
2393 if (!zdr_pointer (zdrs
, (char **)&objp
->nextentry
, sizeof (entry2
), (zdrproc_t
) zdr_entry2
))
2399 zdr_diropargs2 (ZDR
*zdrs
, diropargs2
*objp
)
2401 register int32_t *buf
;
2404 if (!zdr_fhandle2 (zdrs
, objp
->dir
))
2406 if (!zdr_filename2 (zdrs
, &objp
->name
))
2412 zdr_GETATTR2args (ZDR
*zdrs
, GETATTR2args
*objp
)
2414 register int32_t *buf
;
2417 if (!zdr_fhandle2 (zdrs
, objp
->fhandle
))
2423 zdr_GETATTR2resok (ZDR
*zdrs
, GETATTR2resok
*objp
)
2425 register int32_t *buf
;
2428 if (!zdr_fattr2 (zdrs
, &objp
->attributes
))
2434 zdr_GETATTR2res (ZDR
*zdrs
, GETATTR2res
*objp
)
2436 register int32_t *buf
;
2439 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2441 switch (objp
->status
) {
2443 if (!zdr_GETATTR2resok (zdrs
, &objp
->GETATTR2res_u
.resok
))
2453 zdr_SETATTR2args (ZDR
*zdrs
, SETATTR2args
*objp
)
2455 register int32_t *buf
;
2458 if (!zdr_fhandle2 (zdrs
, objp
->fhandle
))
2460 if (!zdr_sattr2 (zdrs
, &objp
->attributes
))
2466 zdr_SETATTR2resok (ZDR
*zdrs
, SETATTR2resok
*objp
)
2468 register int32_t *buf
;
2471 if (!zdr_fattr2 (zdrs
, &objp
->attributes
))
2477 zdr_SETATTR2res (ZDR
*zdrs
, SETATTR2res
*objp
)
2479 register int32_t *buf
;
2482 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2484 switch (objp
->status
) {
2486 if (!zdr_SETATTR2resok (zdrs
, &objp
->SETATTR2res_u
.resok
))
2496 zdr_LOOKUP2args (ZDR
*zdrs
, LOOKUP2args
*objp
)
2498 register int32_t *buf
;
2501 if (!zdr_diropargs2 (zdrs
, &objp
->what
))
2507 zdr_LOOKUP2resok (ZDR
*zdrs
, LOOKUP2resok
*objp
)
2509 register int32_t *buf
;
2512 if (!zdr_fhandle2 (zdrs
, objp
->file
))
2514 if (!zdr_fattr2 (zdrs
, &objp
->attributes
))
2520 zdr_LOOKUP2res (ZDR
*zdrs
, LOOKUP2res
*objp
)
2522 register int32_t *buf
;
2525 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2527 switch (objp
->status
) {
2529 if (!zdr_LOOKUP2resok (zdrs
, &objp
->LOOKUP2res_u
.resok
))
2539 zdr_READLINK2args (ZDR
*zdrs
, READLINK2args
*objp
)
2541 register int32_t *buf
;
2544 if (!zdr_fhandle2 (zdrs
, objp
->file
))
2550 zdr_READLINK2resok (ZDR
*zdrs
, READLINK2resok
*objp
)
2552 register int32_t *buf
;
2555 if (!zdr_path2 (zdrs
, &objp
->data
))
2561 zdr_READLINK2res (ZDR
*zdrs
, READLINK2res
*objp
)
2563 register int32_t *buf
;
2566 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2568 switch (objp
->status
) {
2570 if (!zdr_READLINK2resok (zdrs
, &objp
->READLINK2res_u
.resok
))
2580 zdr_READ2args (ZDR
*zdrs
, READ2args
*objp
)
2582 register int32_t *buf
;
2585 if (!zdr_fhandle2 (zdrs
, objp
->file
))
2587 if (!zdr_u_int (zdrs
, &objp
->offset
))
2589 if (!zdr_u_int (zdrs
, &objp
->count
))
2591 if (!zdr_u_int (zdrs
, &objp
->totalcount
))
2597 zdr_READ2resok (ZDR
*zdrs
, READ2resok
*objp
)
2599 register int32_t *buf
;
2602 if (!zdr_fattr2 (zdrs
, &objp
->attributes
))
2604 if (!zdr_nfsdata2 (zdrs
, &objp
->data
))
2610 zdr_READ2res (ZDR
*zdrs
, READ2res
*objp
)
2612 register int32_t *buf
;
2615 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2617 switch (objp
->status
) {
2619 if (!zdr_READ2resok (zdrs
, &objp
->READ2res_u
.resok
))
2629 zdr_WRITE2args (ZDR
*zdrs
, WRITE2args
*objp
)
2631 register int32_t *buf
;
2635 if (zdrs
->x_op
== ZDR_ENCODE
) {
2636 if (!zdr_fhandle2 (zdrs
, objp
->file
))
2638 buf
= ZDR_INLINE (zdrs
, 3 * BYTES_PER_ZDR_UNIT
);
2640 if (!zdr_u_int (zdrs
, &objp
->beginoffset
))
2642 if (!zdr_u_int (zdrs
, &objp
->offset
))
2644 if (!zdr_u_int (zdrs
, &objp
->totalcount
))
2648 IZDR_PUT_U_LONG(buf
, objp
->beginoffset
);
2649 IZDR_PUT_U_LONG(buf
, objp
->offset
);
2650 IZDR_PUT_U_LONG(buf
, objp
->totalcount
);
2652 if (!zdr_nfsdata2 (zdrs
, &objp
->data
))
2655 } else if (zdrs
->x_op
== ZDR_DECODE
) {
2656 if (!zdr_fhandle2 (zdrs
, objp
->file
))
2658 buf
= ZDR_INLINE (zdrs
, 3 * BYTES_PER_ZDR_UNIT
);
2660 if (!zdr_u_int (zdrs
, &objp
->beginoffset
))
2662 if (!zdr_u_int (zdrs
, &objp
->offset
))
2664 if (!zdr_u_int (zdrs
, &objp
->totalcount
))
2668 objp
->beginoffset
= IZDR_GET_U_LONG(buf
);
2669 objp
->offset
= IZDR_GET_U_LONG(buf
);
2670 objp
->totalcount
= IZDR_GET_U_LONG(buf
);
2672 if (!zdr_nfsdata2 (zdrs
, &objp
->data
))
2677 if (!zdr_fhandle2 (zdrs
, objp
->file
))
2679 if (!zdr_u_int (zdrs
, &objp
->beginoffset
))
2681 if (!zdr_u_int (zdrs
, &objp
->offset
))
2683 if (!zdr_u_int (zdrs
, &objp
->totalcount
))
2685 if (!zdr_nfsdata2 (zdrs
, &objp
->data
))
2691 zdr_WRITE2resok (ZDR
*zdrs
, WRITE2resok
*objp
)
2693 register int32_t *buf
;
2696 if (!zdr_fattr2 (zdrs
, &objp
->attributes
))
2702 zdr_WRITE2res (ZDR
*zdrs
, WRITE2res
*objp
)
2704 register int32_t *buf
;
2707 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2709 switch (objp
->status
) {
2711 if (!zdr_WRITE2resok (zdrs
, &objp
->WRITE2res_u
.resok
))
2721 zdr_CREATE2args (ZDR
*zdrs
, CREATE2args
*objp
)
2723 register int32_t *buf
;
2726 if (!zdr_diropargs2 (zdrs
, &objp
->where
))
2728 if (!zdr_sattr2 (zdrs
, &objp
->attributes
))
2734 zdr_CREATE2resok (ZDR
*zdrs
, CREATE2resok
*objp
)
2736 register int32_t *buf
;
2739 if (!zdr_fhandle2 (zdrs
, objp
->file
))
2741 if (!zdr_fattr2 (zdrs
, &objp
->attributes
))
2747 zdr_CREATE2res (ZDR
*zdrs
, CREATE2res
*objp
)
2749 register int32_t *buf
;
2752 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2754 switch (objp
->status
) {
2756 if (!zdr_CREATE2resok (zdrs
, &objp
->CREATE2res_u
.resok
))
2766 zdr_REMOVE2args (ZDR
*zdrs
, REMOVE2args
*objp
)
2768 register int32_t *buf
;
2771 if (!zdr_diropargs2 (zdrs
, &objp
->what
))
2777 zdr_REMOVE2res (ZDR
*zdrs
, REMOVE2res
*objp
)
2779 register int32_t *buf
;
2782 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2788 zdr_RENAME2args (ZDR
*zdrs
, RENAME2args
*objp
)
2790 register int32_t *buf
;
2793 if (!zdr_diropargs2 (zdrs
, &objp
->from
))
2795 if (!zdr_diropargs2 (zdrs
, &objp
->to
))
2801 zdr_RENAME2res (ZDR
*zdrs
, RENAME2res
*objp
)
2803 register int32_t *buf
;
2806 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2812 zdr_LINK2args (ZDR
*zdrs
, LINK2args
*objp
)
2814 register int32_t *buf
;
2817 if (!zdr_fhandle2 (zdrs
, objp
->from
))
2819 if (!zdr_diropargs2 (zdrs
, &objp
->to
))
2825 zdr_LINK2res (ZDR
*zdrs
, LINK2res
*objp
)
2827 register int32_t *buf
;
2830 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2836 zdr_SYMLINK2args (ZDR
*zdrs
, SYMLINK2args
*objp
)
2838 register int32_t *buf
;
2841 if (!zdr_diropargs2 (zdrs
, &objp
->from
))
2843 if (!zdr_path2 (zdrs
, &objp
->to
))
2845 if (!zdr_sattr2 (zdrs
, &objp
->attributes
))
2851 zdr_SYMLINK2res (ZDR
*zdrs
, SYMLINK2res
*objp
)
2853 register int32_t *buf
;
2856 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2862 zdr_MKDIR2args (ZDR
*zdrs
, MKDIR2args
*objp
)
2864 register int32_t *buf
;
2867 if (!zdr_diropargs2 (zdrs
, &objp
->where
))
2869 if (!zdr_sattr2 (zdrs
, &objp
->attributes
))
2875 zdr_MKDIR2resok (ZDR
*zdrs
, MKDIR2resok
*objp
)
2877 register int32_t *buf
;
2880 if (!zdr_fhandle2 (zdrs
, objp
->file
))
2882 if (!zdr_fattr2 (zdrs
, &objp
->attributes
))
2888 zdr_MKDIR2res (ZDR
*zdrs
, MKDIR2res
*objp
)
2890 register int32_t *buf
;
2893 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2895 switch (objp
->status
) {
2897 if (!zdr_MKDIR2resok (zdrs
, &objp
->MKDIR2res_u
.resok
))
2907 zdr_RMDIR2args (ZDR
*zdrs
, RMDIR2args
*objp
)
2909 register int32_t *buf
;
2912 if (!zdr_diropargs2 (zdrs
, &objp
->what
))
2918 zdr_RMDIR2res (ZDR
*zdrs
, RMDIR2res
*objp
)
2920 register int32_t *buf
;
2923 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2929 zdr_READDIR2args (ZDR
*zdrs
, READDIR2args
*objp
)
2931 register int32_t *buf
;
2934 if (!zdr_fhandle2 (zdrs
, objp
->dir
))
2936 if (!zdr_nfscookie2 (zdrs
, objp
->cookie
))
2938 if (!zdr_u_int (zdrs
, &objp
->count
))
2944 zdr_READDIR2resok (ZDR
*zdrs
, READDIR2resok
*objp
)
2946 register int32_t *buf
;
2949 if (!zdr_pointer (zdrs
, (char **)&objp
->entries
, sizeof (entry2
), (zdrproc_t
) zdr_entry2
))
2951 if (!zdr_bool (zdrs
, &objp
->eof
))
2957 zdr_READDIR2res (ZDR
*zdrs
, READDIR2res
*objp
)
2959 register int32_t *buf
;
2962 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
2964 switch (objp
->status
) {
2966 if (!zdr_READDIR2resok (zdrs
, &objp
->READDIR2res_u
.resok
))
2976 zdr_STATFS2args (ZDR
*zdrs
, STATFS2args
*objp
)
2978 register int32_t *buf
;
2981 if (!zdr_fhandle2 (zdrs
, objp
->dir
))
2987 zdr_STATFS2resok (ZDR
*zdrs
, STATFS2resok
*objp
)
2989 register int32_t *buf
;
2993 if (zdrs
->x_op
== ZDR_ENCODE
) {
2994 buf
= ZDR_INLINE (zdrs
, 5 * BYTES_PER_ZDR_UNIT
);
2996 if (!zdr_u_int (zdrs
, &objp
->tsize
))
2998 if (!zdr_u_int (zdrs
, &objp
->bsize
))
3000 if (!zdr_u_int (zdrs
, &objp
->blocks
))
3002 if (!zdr_u_int (zdrs
, &objp
->bfree
))
3004 if (!zdr_u_int (zdrs
, &objp
->bavail
))
3007 IZDR_PUT_U_LONG(buf
, objp
->tsize
);
3008 IZDR_PUT_U_LONG(buf
, objp
->bsize
);
3009 IZDR_PUT_U_LONG(buf
, objp
->blocks
);
3010 IZDR_PUT_U_LONG(buf
, objp
->bfree
);
3011 IZDR_PUT_U_LONG(buf
, objp
->bavail
);
3014 } else if (zdrs
->x_op
== ZDR_DECODE
) {
3015 buf
= ZDR_INLINE (zdrs
, 5 * BYTES_PER_ZDR_UNIT
);
3017 if (!zdr_u_int (zdrs
, &objp
->tsize
))
3019 if (!zdr_u_int (zdrs
, &objp
->bsize
))
3021 if (!zdr_u_int (zdrs
, &objp
->blocks
))
3023 if (!zdr_u_int (zdrs
, &objp
->bfree
))
3025 if (!zdr_u_int (zdrs
, &objp
->bavail
))
3028 objp
->tsize
= IZDR_GET_U_LONG(buf
);
3029 objp
->bsize
= IZDR_GET_U_LONG(buf
);
3030 objp
->blocks
= IZDR_GET_U_LONG(buf
);
3031 objp
->bfree
= IZDR_GET_U_LONG(buf
);
3032 objp
->bavail
= IZDR_GET_U_LONG(buf
);
3037 if (!zdr_u_int (zdrs
, &objp
->tsize
))
3039 if (!zdr_u_int (zdrs
, &objp
->bsize
))
3041 if (!zdr_u_int (zdrs
, &objp
->blocks
))
3043 if (!zdr_u_int (zdrs
, &objp
->bfree
))
3045 if (!zdr_u_int (zdrs
, &objp
->bavail
))
3051 zdr_STATFS2res (ZDR
*zdrs
, STATFS2res
*objp
)
3053 register int32_t *buf
;
3056 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
3058 switch (objp
->status
) {
3060 if (!zdr_STATFS2resok (zdrs
, &objp
->STATFS2res_u
.resok
))
3070 zdr_nfsacl_type (ZDR
*zdrs
, nfsacl_type
*objp
)
3072 register int32_t *buf
;
3075 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
3081 zdr_nfsacl_ace (ZDR
*zdrs
, nfsacl_ace
*objp
)
3083 register int32_t *buf
;
3086 if (!zdr_nfsacl_type (zdrs
, &objp
->type
))
3088 if (!zdr_u_int (zdrs
, &objp
->id
))
3090 if (!zdr_u_int (zdrs
, &objp
->perm
))
3096 zdr_GETACL3args (ZDR
*zdrs
, GETACL3args
*objp
)
3098 register int32_t *buf
;
3101 if (!zdr_nfs_fh3 (zdrs
, &objp
->dir
))
3103 if (!zdr_u_int (zdrs
, &objp
->mask
))
3109 zdr_GETACL3resok (ZDR
*zdrs
, GETACL3resok
*objp
)
3111 register int32_t *buf
;
3114 if (!zdr_post_op_attr (zdrs
, &objp
->attr
))
3116 if (!zdr_u_int (zdrs
, &objp
->mask
))
3118 if (!zdr_u_int (zdrs
, &objp
->ace_count
))
3120 if (!zdr_array (zdrs
, (char **)&objp
->ace
.ace_val
, (u_int
*) &objp
->ace
.ace_len
, ~0,
3121 sizeof (nfsacl_ace
), (zdrproc_t
) zdr_nfsacl_ace
))
3123 if (!zdr_u_int (zdrs
, &objp
->default_ace_count
))
3125 if (!zdr_array (zdrs
, (char **)&objp
->default_ace
.default_ace_val
, (u_int
*) &objp
->default_ace
.default_ace_len
, ~0,
3126 sizeof (nfsacl_ace
), (zdrproc_t
) zdr_nfsacl_ace
))
3132 zdr_GETACL3res (ZDR
*zdrs
, GETACL3res
*objp
)
3134 register int32_t *buf
;
3137 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
3139 switch (objp
->status
) {
3141 if (!zdr_GETACL3resok (zdrs
, &objp
->GETACL3res_u
.resok
))
3151 zdr_SETACL3args (ZDR
*zdrs
, SETACL3args
*objp
)
3153 register int32_t *buf
;
3156 if (!zdr_nfs_fh3 (zdrs
, &objp
->dir
))
3158 if (!zdr_u_int (zdrs
, &objp
->mask
))
3160 if (!zdr_u_int (zdrs
, &objp
->ace_count
))
3162 if (!zdr_array (zdrs
, (char **)&objp
->ace
.ace_val
, (u_int
*) &objp
->ace
.ace_len
, ~0,
3163 sizeof (nfsacl_ace
), (zdrproc_t
) zdr_nfsacl_ace
))
3165 if (!zdr_u_int (zdrs
, &objp
->default_ace_count
))
3167 if (!zdr_array (zdrs
, (char **)&objp
->default_ace
.default_ace_val
, (u_int
*) &objp
->default_ace
.default_ace_len
, ~0,
3168 sizeof (nfsacl_ace
), (zdrproc_t
) zdr_nfsacl_ace
))
3174 zdr_SETACL3resok (ZDR
*zdrs
, SETACL3resok
*objp
)
3176 register int32_t *buf
;
3179 if (!zdr_post_op_attr (zdrs
, &objp
->attr
))
3185 zdr_SETACL3res (ZDR
*zdrs
, SETACL3res
*objp
)
3187 register int32_t *buf
;
3190 if (!zdr_nfsstat3 (zdrs
, &objp
->status
))
3192 switch (objp
->status
) {
3194 if (!zdr_SETACL3resok (zdrs
, &objp
->SETACL3res_u
.resok
))