* Copyright (c) 1990 Jan-Simon Pendry
* Copyright (c) 1990 Imperial College of Science, Technology & Medicine
* Copyright (c) 1990 The Regents of the University of California.
* This code is derived from software contributed to Berkeley by
* Jan-Simon Pendry at Imperial College, London.
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* 1. Redistributions of source code must retain the above copyright
* notice, this list of conditions and the following disclaimer.
* 2. Redistributions in binary form must reproduce the above copyright
* notice, this list of conditions and the following disclaimer in the
* documentation and/or other materials provided with the distribution.
* 3. All advertising materials mentioning features or use of this software
* must display the following acknowledgement:
* This product includes software developed by the University of
* California, Berkeley and its contributors.
* 4. Neither the name of the University nor the names of its contributors
* may be used to endorse or promote products derived from this software
* without specific prior written permission.
* THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
* ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
* IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
* ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
* FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
* DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
* OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
* HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
* LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
* OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
* @(#)amq_xdr.c 5.3 (Berkeley) 5/12/91
* $Id: amq_xdr.c,v 5.2.1.2 91/05/07 22:18:51 jsp Alpha $
xdr_amq_string(xdrs
, objp
)
if (!xdr_string(xdrs
, objp
, AMQ_STRLEN
)) {
xdr_time_type(xdrs
, objp
)
if (!xdr_long(xdrs
, objp
)) {
xdr_amq_mount_tree(xdrs
, objp
)
if (!xdr_amq_string(xdrs
, &objp
->mt_mountinfo
)) {
if (!xdr_amq_string(xdrs
, &objp
->mt_directory
)) {
if (!xdr_amq_string(xdrs
, &objp
->mt_mountpoint
)) {
if (!xdr_amq_string(xdrs
, &objp
->mt_type
)) {
if (!xdr_time_type(xdrs
, &objp
->mt_mounttime
)) {
if (!xdr_u_short(xdrs
, &objp
->mt_mountuid
)) {
if (!xdr_int(xdrs
, &objp
->mt_getattr
)) {
if (!xdr_int(xdrs
, &objp
->mt_lookup
)) {
if (!xdr_int(xdrs
, &objp
->mt_readdir
)) {
if (!xdr_int(xdrs
, &objp
->mt_readlink
)) {
if (!xdr_int(xdrs
, &objp
->mt_statfs
)) {
if (!xdr_pointer(xdrs
, (char **)&objp
->mt_next
, sizeof(amq_mount_tree
), xdr_amq_mount_tree
)) {
if (!xdr_pointer(xdrs
, (char **)&objp
->mt_child
, sizeof(amq_mount_tree
), xdr_amq_mount_tree
)) {
xdr_amq_mount_tree_p(xdrs
, objp
)
if (!xdr_pointer(xdrs
, (char **)objp
, sizeof(amq_mount_tree
), xdr_amq_mount_tree
)) {
xdr_amq_mount_info(xdrs
, objp
)
if (!xdr_amq_string(xdrs
, &objp
->mi_type
)) {
if (!xdr_amq_string(xdrs
, &objp
->mi_mountpt
)) {
if (!xdr_amq_string(xdrs
, &objp
->mi_mountinfo
)) {
if (!xdr_amq_string(xdrs
, &objp
->mi_fserver
)) {
if (!xdr_int(xdrs
, &objp
->mi_error
)) {
if (!xdr_int(xdrs
, &objp
->mi_refc
)) {
if (!xdr_int(xdrs
, &objp
->mi_up
)) {
xdr_amq_mount_info_list(xdrs
, objp
)
amq_mount_info_list
*objp
;
if (!xdr_array(xdrs
, (char **)&objp
->amq_mount_info_list_val
, (u_int
*)&objp
->amq_mount_info_list_len
, ~0, sizeof(amq_mount_info
), xdr_amq_mount_info
)) {
xdr_amq_mount_tree_list(xdrs
, objp
)
amq_mount_tree_list
*objp
;
if (!xdr_array(xdrs
, (char **)&objp
->amq_mount_tree_list_val
, (u_int
*)&objp
->amq_mount_tree_list_len
, ~0, sizeof(amq_mount_tree_p
), xdr_amq_mount_tree_p
)) {
xdr_amq_mount_stats(xdrs
, objp
)
if (!xdr_int(xdrs
, &objp
->as_drops
)) {
if (!xdr_int(xdrs
, &objp
->as_stale
)) {
if (!xdr_int(xdrs
, &objp
->as_mok
)) {
if (!xdr_int(xdrs
, &objp
->as_merr
)) {
if (!xdr_int(xdrs
, &objp
->as_uerr
)) {
if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
xdr_amq_setopt(xdrs
, objp
)
if (!xdr_amq_opt(xdrs
, &objp
->as_opt
)) {
if (!xdr_amq_string(xdrs
, &objp
->as_str
)) {