2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #include "libnfs-zdr.h"
7 #include "libnfs-raw-mount.h"
10 zdr_fhandle3 (ZDR
*zdrs
, fhandle3
*objp
)
12 register int32_t *buf
;
15 if (!zdr_bytes (zdrs
, (char **)&objp
->fhandle3_val
, (u_int
*) &objp
->fhandle3_len
, FHSIZE3
))
21 zdr_dirpath (ZDR
*zdrs
, dirpath
*objp
)
23 register int32_t *buf
;
26 if (!zdr_string (zdrs
, objp
, MNTPATHLEN
))
32 zdr_name (ZDR
*zdrs
, name
*objp
)
34 register int32_t *buf
;
37 if (!zdr_string (zdrs
, objp
, MNTNAMLEN
))
43 zdr_mountstat3 (ZDR
*zdrs
, mountstat3
*objp
)
45 register int32_t *buf
;
48 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
54 zdr_mountlist (ZDR
*zdrs
, mountlist
*objp
)
56 register int32_t *buf
;
59 if (!zdr_pointer (zdrs
, (char **)objp
, sizeof (struct mountbody
), (zdrproc_t
) zdr_mountbody
))
65 zdr_mountbody (ZDR
*zdrs
, mountbody
*objp
)
67 register int32_t *buf
;
70 if (!zdr_name (zdrs
, &objp
->ml_hostname
))
72 if (!zdr_dirpath (zdrs
, &objp
->ml_directory
))
74 if (!zdr_mountlist (zdrs
, &objp
->ml_next
))
80 zdr_groups (ZDR
*zdrs
, groups
*objp
)
82 register int32_t *buf
;
85 if (!zdr_pointer (zdrs
, (char **)objp
, sizeof (struct groupnode
), (zdrproc_t
) zdr_groupnode
))
91 zdr_groupnode (ZDR
*zdrs
, groupnode
*objp
)
93 register int32_t *buf
;
96 if (!zdr_name (zdrs
, &objp
->gr_name
))
98 if (!zdr_groups (zdrs
, &objp
->gr_next
))
104 zdr_exports (ZDR
*zdrs
, exports
*objp
)
106 register int32_t *buf
;
109 if (!zdr_pointer (zdrs
, (char **)objp
, sizeof (struct exportnode
), (zdrproc_t
) zdr_exportnode
))
115 zdr_exportnode (ZDR
*zdrs
, exportnode
*objp
)
117 register int32_t *buf
;
120 if (!zdr_dirpath (zdrs
, &objp
->ex_dir
))
122 if (!zdr_groups (zdrs
, &objp
->ex_groups
))
124 if (!zdr_exports (zdrs
, &objp
->ex_next
))
130 zdr_mountres3_ok (ZDR
*zdrs
, mountres3_ok
*objp
)
132 register int32_t *buf
;
135 if (!zdr_fhandle3 (zdrs
, &objp
->fhandle
))
137 if (!zdr_array (zdrs
, (char **)&objp
->auth_flavors
.auth_flavors_val
, (u_int
*) &objp
->auth_flavors
.auth_flavors_len
, ~0,
138 sizeof (int), (zdrproc_t
) zdr_int
))
144 zdr_mountres3 (ZDR
*zdrs
, mountres3
*objp
)
146 register int32_t *buf
;
149 if (!zdr_mountstat3 (zdrs
, &objp
->fhs_status
))
151 switch (objp
->fhs_status
) {
153 if (!zdr_mountres3_ok (zdrs
, &objp
->mountres3_u
.mountinfo
))
163 zdr_mountstat1 (ZDR
*zdrs
, mountstat1
*objp
)
165 register int32_t *buf
;
168 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
174 zdr_fhandle1 (ZDR
*zdrs
, fhandle1 objp
)
176 register int32_t *buf
;
179 if (!zdr_opaque (zdrs
, objp
, FHSIZE
))
185 zdr_mountres1_ok (ZDR
*zdrs
, mountres1_ok
*objp
)
187 register int32_t *buf
;
190 if (!zdr_fhandle1 (zdrs
, objp
->fhandle
))
196 zdr_mountres1 (ZDR
*zdrs
, mountres1
*objp
)
198 register int32_t *buf
;
201 if (!zdr_mountstat1 (zdrs
, &objp
->fhs_status
))
203 switch (objp
->fhs_status
) {
205 if (!zdr_mountres1_ok (zdrs
, &objp
->mountres1_u
.mountinfo
))