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-mount.h"
39 zdr_fhandle3 (ZDR
*zdrs
, fhandle3
*objp
)
41 register int32_t *buf
;
44 if (!zdr_bytes (zdrs
, (char **)&objp
->fhandle3_val
, (u_int
*) &objp
->fhandle3_len
, FHSIZE3
))
50 zdr_dirpath (ZDR
*zdrs
, dirpath
*objp
)
52 register int32_t *buf
;
55 if (!zdr_string (zdrs
, objp
, MNTPATHLEN
))
61 zdr_name (ZDR
*zdrs
, name
*objp
)
63 register int32_t *buf
;
66 if (!zdr_string (zdrs
, objp
, MNTNAMLEN
))
72 zdr_mountstat3 (ZDR
*zdrs
, mountstat3
*objp
)
74 register int32_t *buf
;
77 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
83 zdr_mountlist (ZDR
*zdrs
, mountlist
*objp
)
85 register int32_t *buf
;
88 if (!zdr_pointer (zdrs
, (char **)objp
, sizeof (struct mountbody
), (zdrproc_t
) zdr_mountbody
))
94 zdr_mountbody (ZDR
*zdrs
, mountbody
*objp
)
96 register int32_t *buf
;
99 if (!zdr_name (zdrs
, &objp
->ml_hostname
))
101 if (!zdr_dirpath (zdrs
, &objp
->ml_directory
))
103 if (!zdr_mountlist (zdrs
, &objp
->ml_next
))
109 zdr_groups (ZDR
*zdrs
, groups
*objp
)
111 register int32_t *buf
;
114 if (!zdr_pointer (zdrs
, (char **)objp
, sizeof (struct groupnode
), (zdrproc_t
) zdr_groupnode
))
120 zdr_groupnode (ZDR
*zdrs
, groupnode
*objp
)
122 register int32_t *buf
;
125 if (!zdr_name (zdrs
, &objp
->gr_name
))
127 if (!zdr_groups (zdrs
, &objp
->gr_next
))
133 zdr_exports (ZDR
*zdrs
, exports
*objp
)
135 register int32_t *buf
;
138 if (!zdr_pointer (zdrs
, (char **)objp
, sizeof (struct exportnode
), (zdrproc_t
) zdr_exportnode
))
144 zdr_exportnode (ZDR
*zdrs
, exportnode
*objp
)
146 register int32_t *buf
;
149 if (!zdr_dirpath (zdrs
, &objp
->ex_dir
))
151 if (!zdr_groups (zdrs
, &objp
->ex_groups
))
153 if (!zdr_exports (zdrs
, &objp
->ex_next
))
159 zdr_mountres3_ok (ZDR
*zdrs
, mountres3_ok
*objp
)
161 register int32_t *buf
;
164 if (!zdr_fhandle3 (zdrs
, &objp
->fhandle
))
166 if (!zdr_array (zdrs
, (char **)&objp
->auth_flavors
.auth_flavors_val
, (u_int
*) &objp
->auth_flavors
.auth_flavors_len
, ~0,
167 sizeof (int), (zdrproc_t
) zdr_int
))
173 zdr_mountres3 (ZDR
*zdrs
, mountres3
*objp
)
175 register int32_t *buf
;
178 if (!zdr_mountstat3 (zdrs
, &objp
->fhs_status
))
180 switch (objp
->fhs_status
) {
182 if (!zdr_mountres3_ok (zdrs
, &objp
->mountres3_u
.mountinfo
))
192 zdr_mountstat1 (ZDR
*zdrs
, mountstat1
*objp
)
194 register int32_t *buf
;
197 if (!zdr_enum (zdrs
, (enum_t
*) objp
))
203 zdr_fhandle1 (ZDR
*zdrs
, fhandle1 objp
)
205 register int32_t *buf
;
208 if (!zdr_opaque (zdrs
, objp
, FHSIZE
))
214 zdr_mountres1_ok (ZDR
*zdrs
, mountres1_ok
*objp
)
216 register int32_t *buf
;
219 if (!zdr_fhandle1 (zdrs
, objp
->fhandle
))
225 zdr_mountres1 (ZDR
*zdrs
, mountres1
*objp
)
227 register int32_t *buf
;
230 if (!zdr_mountstat1 (zdrs
, &objp
->fhs_status
))
232 switch (objp
->fhs_status
) {
234 if (!zdr_mountres1_ok (zdrs
, &objp
->mountres1_u
.mountinfo
))