]>
git.ipfire.org Git - thirdparty/util-linux.git/blob - mount/nfsmount_xdr.c
2 * Please do not edit this file.
3 * It was generated using rpcgen.
11 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
12 * unrestricted use provided that this legend is included on all tape
13 * media and as a part of the software program in whole or part. Users
14 * may copy or modify Sun RPC without charge, but are not authorized
15 * to license or distribute it to anyone else except as part of a product or
16 * program developed by the user or with the express written consent of
17 * Sun Microsystems, Inc.
19 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
20 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
21 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
23 * Sun RPC is provided with no support and without any obligation on the
24 * part of Sun Microsystems, Inc. to assist in its use, correction,
25 * modification or enhancement.
27 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
28 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
29 * OR ANY PART THEREOF.
31 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
32 * or profits or other special, indirect and consequential damages, even if
33 * Sun has been advised of the possibility of such damages.
35 * Sun Microsystems, Inc.
37 * Mountain View, California 94043
40 * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
43 /* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */
46 xdr_fhandle(XDR
*xdrs
, fhandle objp
)
51 if (!xdr_opaque(xdrs
, objp
, FHSIZE
)) {
58 xdr_fhstatus(XDR
*xdrs
, fhstatus
*objp
)
63 if (!xdr_u_int(xdrs
, &objp
->fhs_status
)) {
66 switch (objp
->fhs_status
) {
68 if (!xdr_fhandle(xdrs
, objp
->fhstatus_u
.fhs_fhandle
)) {
79 xdr_dirpath(XDR
*xdrs
, dirpath
*objp
)
84 if (!xdr_string(xdrs
, objp
, MNTPATHLEN
)) {
91 xdr_name(XDR
*xdrs
, name
*objp
)
96 if (!xdr_string(xdrs
, objp
, MNTNAMLEN
)) {
103 xdr_mountlist(XDR
*xdrs
, mountlist
*objp
)
108 if (!xdr_pointer(xdrs
, (char **)objp
, sizeof(struct mountbody
), (xdrproc_t
)xdr_mountbody
)) {
115 xdr_mountbody(XDR
*xdrs
, mountbody
*objp
)
120 if (!xdr_name(xdrs
, &objp
->ml_hostname
)) {
123 if (!xdr_dirpath(xdrs
, &objp
->ml_directory
)) {
126 if (!xdr_mountlist(xdrs
, &objp
->ml_next
)) {
133 xdr_groups(XDR
*xdrs
, groups
*objp
)
138 if (!xdr_pointer(xdrs
, (char **)objp
, sizeof(struct groupnode
), (xdrproc_t
)xdr_groupnode
)) {
145 xdr_groupnode(XDR
*xdrs
, groupnode
*objp
)
150 if (!xdr_name(xdrs
, &objp
->gr_name
)) {
153 if (!xdr_groups(xdrs
, &objp
->gr_next
)) {
160 xdr_exports(XDR
*xdrs
, exports
*objp
)
165 if (!xdr_pointer(xdrs
, (char **)objp
, sizeof(struct exportnode
), (xdrproc_t
)xdr_exportnode
)) {
172 xdr_exportnode(XDR
*xdrs
, exportnode
*objp
)
177 if (!xdr_dirpath(xdrs
, &objp
->ex_dir
)) {
180 if (!xdr_groups(xdrs
, &objp
->ex_groups
)) {
183 if (!xdr_exports(xdrs
, &objp
->ex_next
)) {
190 xdr_ppathcnf(XDR
*xdrs
, ppathcnf
*objp
)
197 if (xdrs
->x_op
== XDR_ENCODE
) {
198 buf
= XDR_INLINE(xdrs
,6 * BYTES_PER_XDR_UNIT
);
200 if (!xdr_int(xdrs
, &objp
->pc_link_max
)) {
203 if (!xdr_short(xdrs
, &objp
->pc_max_canon
)) {
206 if (!xdr_short(xdrs
, &objp
->pc_max_input
)) {
209 if (!xdr_short(xdrs
, &objp
->pc_name_max
)) {
212 if (!xdr_short(xdrs
, &objp
->pc_path_max
)) {
215 if (!xdr_short(xdrs
, &objp
->pc_pipe_buf
)) {
221 IXDR_PUT_LONG(buf
,objp
->pc_link_max
);
222 IXDR_PUT_SHORT(buf
,objp
->pc_max_canon
);
223 IXDR_PUT_SHORT(buf
,objp
->pc_max_input
);
224 IXDR_PUT_SHORT(buf
,objp
->pc_name_max
);
225 IXDR_PUT_SHORT(buf
,objp
->pc_path_max
);
226 IXDR_PUT_SHORT(buf
,objp
->pc_pipe_buf
);
228 if (!xdr_u_char(xdrs
, &objp
->pc_vdisable
)) {
231 if (!xdr_char(xdrs
, &objp
->pc_xxx
)) {
234 buf
= XDR_INLINE(xdrs
, 2 * BYTES_PER_XDR_UNIT
);
236 if (!xdr_vector(xdrs
, (char *)objp
->pc_mask
, 2, sizeof(short), (xdrproc_t
)xdr_short
)) {
242 { register short *genp
;
243 for ( i
= 0,genp
=objp
->pc_mask
;
245 IXDR_PUT_SHORT(buf
,*genp
++);
251 } else if (xdrs
->x_op
== XDR_DECODE
) {
252 buf
= XDR_INLINE(xdrs
,6 * BYTES_PER_XDR_UNIT
);
254 if (!xdr_int(xdrs
, &objp
->pc_link_max
)) {
257 if (!xdr_short(xdrs
, &objp
->pc_max_canon
)) {
260 if (!xdr_short(xdrs
, &objp
->pc_max_input
)) {
263 if (!xdr_short(xdrs
, &objp
->pc_name_max
)) {
266 if (!xdr_short(xdrs
, &objp
->pc_path_max
)) {
269 if (!xdr_short(xdrs
, &objp
->pc_pipe_buf
)) {
275 objp
->pc_link_max
= IXDR_GET_LONG(buf
);
276 objp
->pc_max_canon
= IXDR_GET_SHORT(buf
);
277 objp
->pc_max_input
= IXDR_GET_SHORT(buf
);
278 objp
->pc_name_max
= IXDR_GET_SHORT(buf
);
279 objp
->pc_path_max
= IXDR_GET_SHORT(buf
);
280 objp
->pc_pipe_buf
= IXDR_GET_SHORT(buf
);
282 if (!xdr_u_char(xdrs
, &objp
->pc_vdisable
)) {
285 if (!xdr_char(xdrs
, &objp
->pc_xxx
)) {
288 buf
= XDR_INLINE(xdrs
, 2 * BYTES_PER_XDR_UNIT
);
290 if (!xdr_vector(xdrs
, (char *)objp
->pc_mask
, 2, sizeof(short), (xdrproc_t
)xdr_short
)) {
296 { register short *genp
;
297 for ( i
= 0,genp
=objp
->pc_mask
;
299 *genp
++ = IXDR_GET_SHORT(buf
);
306 if (!xdr_int(xdrs
, &objp
->pc_link_max
)) {
309 if (!xdr_short(xdrs
, &objp
->pc_max_canon
)) {
312 if (!xdr_short(xdrs
, &objp
->pc_max_input
)) {
315 if (!xdr_short(xdrs
, &objp
->pc_name_max
)) {
318 if (!xdr_short(xdrs
, &objp
->pc_path_max
)) {
321 if (!xdr_short(xdrs
, &objp
->pc_pipe_buf
)) {
324 if (!xdr_u_char(xdrs
, &objp
->pc_vdisable
)) {
327 if (!xdr_char(xdrs
, &objp
->pc_xxx
)) {
330 if (!xdr_vector(xdrs
, (char *)objp
->pc_mask
, 2, sizeof(short), (xdrproc_t
)xdr_short
)) {