* Copyright (c) 1989 Jan-Simon Pendry
* Copyright (c) 1989 Imperial College of Science, Technology & Medicine
* Copyright (c) 1989 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
* @(#)nfs_prot_xdr.c 5.3 (Berkeley) 5/12/91
* $Id: nfs_prot_xdr.c,v 5.2.1.2 91/05/07 22:18:59 jsp Alpha $
if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
if (!xdr_enum(xdrs
, (enum_t
*)objp
)) {
if (!xdr_opaque(xdrs
, objp
->data
, NFS_FHSIZE
)) {
if (!xdr_u_int(xdrs
, &objp
->seconds
)) {
if (!xdr_u_int(xdrs
, &objp
->useconds
)) {
if (!xdr_ftype(xdrs
, &objp
->type
)) {
if (!xdr_u_int(xdrs
, &objp
->mode
)) {
if (!xdr_u_int(xdrs
, &objp
->nlink
)) {
if (!xdr_u_int(xdrs
, &objp
->uid
)) {
if (!xdr_u_int(xdrs
, &objp
->gid
)) {
if (!xdr_u_int(xdrs
, &objp
->size
)) {
if (!xdr_u_int(xdrs
, &objp
->blocksize
)) {
if (!xdr_u_int(xdrs
, &objp
->rdev
)) {
if (!xdr_u_int(xdrs
, &objp
->blocks
)) {
if (!xdr_u_int(xdrs
, &objp
->fsid
)) {
if (!xdr_u_int(xdrs
, &objp
->fileid
)) {
if (!xdr_nfstime(xdrs
, &objp
->atime
)) {
if (!xdr_nfstime(xdrs
, &objp
->mtime
)) {
if (!xdr_nfstime(xdrs
, &objp
->ctime
)) {
if (!xdr_u_int(xdrs
, &objp
->mode
)) {
if (!xdr_u_int(xdrs
, &objp
->uid
)) {
if (!xdr_u_int(xdrs
, &objp
->gid
)) {
if (!xdr_u_int(xdrs
, &objp
->size
)) {
if (!xdr_nfstime(xdrs
, &objp
->atime
)) {
if (!xdr_nfstime(xdrs
, &objp
->mtime
)) {
if (!xdr_string(xdrs
, objp
, NFS_MAXNAMLEN
)) {
if (!xdr_string(xdrs
, objp
, NFS_MAXPATHLEN
)) {
if (!xdr_nfsstat(xdrs
, &objp
->status
)) {
if (!xdr_fattr(xdrs
, &objp
->attrstat_u
.attributes
)) {
xdr_sattrargs(xdrs
, objp
)
if (!xdr_nfs_fh(xdrs
, &objp
->file
)) {
if (!xdr_sattr(xdrs
, &objp
->attributes
)) {
xdr_diropargs(xdrs
, objp
)
if (!xdr_nfs_fh(xdrs
, &objp
->dir
)) {
if (!xdr_filename(xdrs
, &objp
->name
)) {
xdr_diropokres(xdrs
, objp
)
if (!xdr_nfs_fh(xdrs
, &objp
->file
)) {
if (!xdr_fattr(xdrs
, &objp
->attributes
)) {
if (!xdr_nfsstat(xdrs
, &objp
->status
)) {
if (!xdr_diropokres(xdrs
, &objp
->diropres_u
.diropres
)) {
xdr_readlinkres(xdrs
, objp
)
if (!xdr_nfsstat(xdrs
, &objp
->status
)) {
if (!xdr_nfspath(xdrs
, &objp
->readlinkres_u
.data
)) {
if (!xdr_nfs_fh(xdrs
, &objp
->file
)) {
if (!xdr_u_int(xdrs
, &objp
->offset
)) {
if (!xdr_u_int(xdrs
, &objp
->count
)) {
if (!xdr_u_int(xdrs
, &objp
->totalcount
)) {
xdr_readokres(xdrs
, objp
)
if (!xdr_fattr(xdrs
, &objp
->attributes
)) {
if (!xdr_bytes(xdrs
, (char **)&objp
->data
.data_val
, (u_int
*)&objp
->data
.data_len
, NFS_MAXDATA
)) {
if (!xdr_nfsstat(xdrs
, &objp
->status
)) {
if (!xdr_readokres(xdrs
, &objp
->readres_u
.reply
)) {
xdr_writeargs(xdrs
, objp
)
if (!xdr_nfs_fh(xdrs
, &objp
->file
)) {
if (!xdr_u_int(xdrs
, &objp
->beginoffset
)) {
if (!xdr_u_int(xdrs
, &objp
->offset
)) {
if (!xdr_u_int(xdrs
, &objp
->totalcount
)) {
if (!xdr_bytes(xdrs
, (char **)&objp
->data
.data_val
, (u_int
*)&objp
->data
.data_len
, NFS_MAXDATA
)) {
xdr_createargs(xdrs
, objp
)
if (!xdr_diropargs(xdrs
, &objp
->where
)) {
if (!xdr_sattr(xdrs
, &objp
->attributes
)) {
xdr_renameargs(xdrs
, objp
)
if (!xdr_diropargs(xdrs
, &objp
->from
)) {
if (!xdr_diropargs(xdrs
, &objp
->to
)) {
if (!xdr_nfs_fh(xdrs
, &objp
->from
)) {
if (!xdr_diropargs(xdrs
, &objp
->to
)) {
xdr_symlinkargs(xdrs
, objp
)
if (!xdr_diropargs(xdrs
, &objp
->from
)) {
if (!xdr_nfspath(xdrs
, &objp
->to
)) {
if (!xdr_sattr(xdrs
, &objp
->attributes
)) {
xdr_nfscookie(xdrs
, objp
)
if (!xdr_opaque(xdrs
, objp
, NFS_COOKIESIZE
)) {
xdr_readdirargs(xdrs
, objp
)
if (!xdr_nfs_fh(xdrs
, &objp
->dir
)) {
if (!xdr_nfscookie(xdrs
, objp
->cookie
)) {
if (!xdr_u_int(xdrs
, &objp
->count
)) {
if (!xdr_u_int(xdrs
, &objp
->fileid
)) {
if (!xdr_filename(xdrs
, &objp
->name
)) {
if (!xdr_nfscookie(xdrs
, objp
->cookie
)) {
if (!xdr_pointer(xdrs
, (char **)&objp
->nextentry
, sizeof(entry
), xdr_entry
)) {
if (!xdr_pointer(xdrs
, (char **)&objp
->entries
, sizeof(entry
), xdr_entry
)) {
if (!xdr_bool(xdrs
, &objp
->eof
)) {
xdr_readdirres(xdrs
, objp
)
if (!xdr_nfsstat(xdrs
, &objp
->status
)) {
if (!xdr_dirlist(xdrs
, &objp
->readdirres_u
.reply
)) {
xdr_statfsokres(xdrs
, objp
)
if (!xdr_u_int(xdrs
, &objp
->tsize
)) {
if (!xdr_u_int(xdrs
, &objp
->bsize
)) {
if (!xdr_u_int(xdrs
, &objp
->blocks
)) {
if (!xdr_u_int(xdrs
, &objp
->bfree
)) {
if (!xdr_u_int(xdrs
, &objp
->bavail
)) {
xdr_statfsres(xdrs
, objp
)
if (!xdr_nfsstat(xdrs
, &objp
->status
)) {
if (!xdr_statfsokres(xdrs
, &objp
->statfsres_u
.reply
)) {