2 * Please do not edit this file.
3 * It was generated using rpcgen.
8 * Copyright (c) 2009, Sun Microsystems, Inc.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions are met:
13 * - Redistributions of source code must retain the above copyright notice,
14 * this list of conditions and the following disclaimer.
15 * - Redistributions in binary form must reproduce the above copyright notice,
16 * this list of conditions and the following disclaimer in the documentation
17 * and/or other materials provided with the distribution.
18 * - Neither the name of Sun Microsystems, Inc. nor the names of its
19 * contributors may be used to endorse or promote products derived
20 * from this software without specific prior written permission.
22 * THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
23 * AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
24 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
25 * ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE
26 * LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
27 * CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
28 * SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
29 * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
30 * CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
31 * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
32 * POSSIBILITY OF SUCH DAMAGE.
35 * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
38 /* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */
41 xdr_fhandle (XDR *xdrs, fhandle objp)
43 register int32_t *buf;
45 if (!xdr_opaque (xdrs, objp, FHSIZE))
51 xdr_fhstatus (XDR *xdrs, fhstatus *objp)
53 register int32_t *buf;
55 if (!xdr_u_int (xdrs, &objp->fhs_status))
57 switch (objp->fhs_status) {
59 if (!xdr_fhandle (xdrs, objp->fhstatus_u.fhs_fhandle))
69 xdr_dirpath (XDR *xdrs, dirpath *objp)
71 register int32_t *buf;
73 if (!xdr_string (xdrs, objp, MNTPATHLEN))
79 xdr_name (XDR *xdrs, name *objp)
81 register int32_t *buf;
83 if (!xdr_string (xdrs, objp, MNTNAMLEN))
89 xdr_mountlist (XDR *xdrs, mountlist *objp)
91 register int32_t *buf;
93 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct mountbody), (xdrproc_t) xdr_mountbody))
99 xdr_mountbody (XDR *xdrs, mountbody *objp)
101 register int32_t *buf;
103 if (!xdr_name (xdrs, &objp->ml_hostname))
105 if (!xdr_dirpath (xdrs, &objp->ml_directory))
107 if (!xdr_mountlist (xdrs, &objp->ml_next))
113 xdr_groups (XDR *xdrs, groups *objp)
115 register int32_t *buf;
117 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct groupnode), (xdrproc_t) xdr_groupnode))
123 xdr_groupnode (XDR *xdrs, groupnode *objp)
125 register int32_t *buf;
127 if (!xdr_name (xdrs, &objp->gr_name))
129 if (!xdr_groups (xdrs, &objp->gr_next))
135 xdr_exports (XDR *xdrs, exports *objp)
137 register int32_t *buf;
139 if (!xdr_pointer (xdrs, (char **)objp, sizeof (struct exportnode), (xdrproc_t) xdr_exportnode))
145 xdr_exportnode (XDR *xdrs, exportnode *objp)
147 register int32_t *buf;
149 if (!xdr_dirpath (xdrs, &objp->ex_dir))
151 if (!xdr_groups (xdrs, &objp->ex_groups))
153 if (!xdr_exports (xdrs, &objp->ex_next))
159 xdr_ppathcnf (XDR *xdrs, ppathcnf *objp)
161 register int32_t *buf;
165 if (xdrs->x_op == XDR_ENCODE) {
166 buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
168 if (!xdr_int (xdrs, &objp->pc_link_max))
170 if (!xdr_short (xdrs, &objp->pc_max_canon))
172 if (!xdr_short (xdrs, &objp->pc_max_input))
174 if (!xdr_short (xdrs, &objp->pc_name_max))
176 if (!xdr_short (xdrs, &objp->pc_path_max))
178 if (!xdr_short (xdrs, &objp->pc_pipe_buf))
182 IXDR_PUT_LONG(buf, objp->pc_link_max);
183 IXDR_PUT_SHORT(buf, objp->pc_max_canon);
184 IXDR_PUT_SHORT(buf, objp->pc_max_input);
185 IXDR_PUT_SHORT(buf, objp->pc_name_max);
186 IXDR_PUT_SHORT(buf, objp->pc_path_max);
187 IXDR_PUT_SHORT(buf, objp->pc_pipe_buf);
189 if (!xdr_u_char (xdrs, &objp->pc_vdisable))
191 if (!xdr_char (xdrs, &objp->pc_xxx))
193 buf = XDR_INLINE (xdrs, ( 2 ) * BYTES_PER_XDR_UNIT);
195 if (!xdr_vector (xdrs, (char *)objp->pc_mask, 2,
196 sizeof (short), (xdrproc_t) xdr_short))
200 register short *genp;
202 for (i = 0, genp = objp->pc_mask;
204 IXDR_PUT_SHORT(buf, *genp++);
209 } else if (xdrs->x_op == XDR_DECODE) {
210 buf = XDR_INLINE (xdrs, 6 * BYTES_PER_XDR_UNIT);
212 if (!xdr_int (xdrs, &objp->pc_link_max))
214 if (!xdr_short (xdrs, &objp->pc_max_canon))
216 if (!xdr_short (xdrs, &objp->pc_max_input))
218 if (!xdr_short (xdrs, &objp->pc_name_max))
220 if (!xdr_short (xdrs, &objp->pc_path_max))
222 if (!xdr_short (xdrs, &objp->pc_pipe_buf))
226 objp->pc_link_max = IXDR_GET_LONG(buf);
227 objp->pc_max_canon = IXDR_GET_SHORT(buf);
228 objp->pc_max_input = IXDR_GET_SHORT(buf);
229 objp->pc_name_max = IXDR_GET_SHORT(buf);
230 objp->pc_path_max = IXDR_GET_SHORT(buf);
231 objp->pc_pipe_buf = IXDR_GET_SHORT(buf);
233 if (!xdr_u_char (xdrs, &objp->pc_vdisable))
235 if (!xdr_char (xdrs, &objp->pc_xxx))
237 buf = XDR_INLINE (xdrs, ( 2 ) * BYTES_PER_XDR_UNIT);
239 if (!xdr_vector (xdrs, (char *)objp->pc_mask, 2,
240 sizeof (short), (xdrproc_t) xdr_short))
244 register short *genp;
246 for (i = 0, genp = objp->pc_mask;
248 *genp++ = IXDR_GET_SHORT(buf);
255 if (!xdr_int (xdrs, &objp->pc_link_max))
257 if (!xdr_short (xdrs, &objp->pc_max_canon))
259 if (!xdr_short (xdrs, &objp->pc_max_input))
261 if (!xdr_short (xdrs, &objp->pc_name_max))
263 if (!xdr_short (xdrs, &objp->pc_path_max))
265 if (!xdr_short (xdrs, &objp->pc_pipe_buf))
267 if (!xdr_u_char (xdrs, &objp->pc_vdisable))
269 if (!xdr_char (xdrs, &objp->pc_xxx))
271 if (!xdr_vector (xdrs, (char *)objp->pc_mask, 2,
272 sizeof (short), (xdrproc_t) xdr_short))
278 xdr_fhandle3 (XDR *xdrs, fhandle3 *objp)
280 register int32_t *buf;
282 if (!xdr_bytes (xdrs, (char **)&objp->fhandle3_val, (u_int *) &objp->fhandle3_len, FHSIZE3))
288 xdr_mountstat3 (XDR *xdrs, mountstat3 *objp)
290 register int32_t *buf;
292 if (!xdr_enum (xdrs, (enum_t *) objp))
298 xdr_mountres3_ok (XDR *xdrs, mountres3_ok *objp)
300 register int32_t *buf;
302 if (!xdr_fhandle3 (xdrs, &objp->fhandle))
304 if (!xdr_array (xdrs, (char **)&objp->auth_flavors.auth_flavors_val, (u_int *) &objp->auth_flavors.auth_flavors_len, ~0,
305 sizeof (int), (xdrproc_t) xdr_int))
311 xdr_mountres3 (XDR *xdrs, mountres3 *objp)
313 register int32_t *buf;
315 if (!xdr_mountstat3 (xdrs, &objp->fhs_status))
317 switch (objp->fhs_status) {
319 if (!xdr_mountres3_ok (xdrs, &objp->mountres3_u.mountinfo))