am_xdr_func.h revision 82794
138494Sobrien/*
282794Sobrien * Copyright (c) 1997-2001 Erez Zadok
338494Sobrien * Copyright (c) 1990 Jan-Simon Pendry
438494Sobrien * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
538494Sobrien * Copyright (c) 1990 The Regents of the University of California.
638494Sobrien * All rights reserved.
738494Sobrien *
838494Sobrien * This code is derived from software contributed to Berkeley by
938494Sobrien * Jan-Simon Pendry at Imperial College, London.
1038494Sobrien *
1138494Sobrien * Redistribution and use in source and binary forms, with or without
1238494Sobrien * modification, are permitted provided that the following conditions
1338494Sobrien * are met:
1438494Sobrien * 1. Redistributions of source code must retain the above copyright
1538494Sobrien *    notice, this list of conditions and the following disclaimer.
1638494Sobrien * 2. Redistributions in binary form must reproduce the above copyright
1738494Sobrien *    notice, this list of conditions and the following disclaimer in the
1838494Sobrien *    documentation and/or other materials provided with the distribution.
1938494Sobrien * 3. All advertising materials mentioning features or use of this software
2042629Sobrien *    must display the following acknowledgment:
2138494Sobrien *      This product includes software developed by the University of
2238494Sobrien *      California, Berkeley and its contributors.
2338494Sobrien * 4. Neither the name of the University nor the names of its contributors
2438494Sobrien *    may be used to endorse or promote products derived from this software
2538494Sobrien *    without specific prior written permission.
2638494Sobrien *
2738494Sobrien * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
2838494Sobrien * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
2938494Sobrien * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
3038494Sobrien * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
3138494Sobrien * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
3238494Sobrien * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
3338494Sobrien * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
3438494Sobrien * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
3538494Sobrien * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
3638494Sobrien * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
3738494Sobrien * SUCH DAMAGE.
3838494Sobrien *
3938494Sobrien *      %W% (Berkeley) %G%
4038494Sobrien *
4182794Sobrien * $Id: am_xdr_func.h,v 1.3.2.2 2001/01/10 03:23:38 ezk Exp $
4238494Sobrien *
4338494Sobrien */
4438494Sobrien
4538494Sobrien/*
4638494Sobrien * Definitions of all possible xdr functions that are otherwise
4738494Sobrien * not defined elsewhere.
4838494Sobrien */
4938494Sobrien
5038494Sobrien#ifndef _AM_XDR_FUNC_H
5138494Sobrien#define _AM_XDR_FUNC_H
5238494Sobrien
5338494Sobrien#ifndef HAVE_XDR_ATTRSTAT
5438494Sobrienbool_t xdr_attrstat(XDR *xdrs, nfsattrstat *objp);
5538494Sobrien#endif /* not HAVE_XDR_ATTRSTAT */
5638494Sobrien#ifndef HAVE_XDR_CREATEARGS
5738494Sobrienbool_t xdr_createargs(XDR *xdrs, nfscreateargs *objp);
5838494Sobrien#endif /* not HAVE_XDR_CREATEARGS */
5938494Sobrien#ifndef HAVE_XDR_DIRLIST
6038494Sobrienbool_t xdr_dirlist(XDR *xdrs, nfsdirlist *objp);
6138494Sobrien#endif /* not HAVE_XDR_DIRLIST */
6238494Sobrien#ifndef HAVE_XDR_DIROPARGS
6338494Sobrienbool_t xdr_diropargs(XDR *xdrs, nfsdiropargs *objp);
6438494Sobrien#endif /* not HAVE_XDR_DIROPARGS */
6538494Sobrien#ifndef HAVE_XDR_DIROPOKRES
6638494Sobrienbool_t xdr_diropokres(XDR *xdrs, nfsdiropokres *objp);
6738494Sobrien#endif /* not HAVE_XDR_DIROPOKRES */
6838494Sobrien#ifndef HAVE_XDR_DIROPRES
6938494Sobrienbool_t xdr_diropres(XDR *xdrs, nfsdiropres *objp);
7038494Sobrien#endif /* not HAVE_XDR_DIROPRES */
7138494Sobrien#ifndef HAVE_XDR_DIRPATH
7238494Sobrienbool_t xdr_dirpath(XDR *xdrs, dirpath *objp);
7338494Sobrien#endif /* not HAVE_XDR_DIRPATH */
7438494Sobrien#ifndef HAVE_XDR_ENTRY
7538494Sobrienbool_t xdr_entry(XDR *xdrs, nfsentry *objp);
7638494Sobrien#endif /* not HAVE_XDR_ENTRY */
7738494Sobrien#ifndef HAVE_XDR_EXPORTNODE
7838494Sobrienbool_t xdr_exportnode(XDR *xdrs, exportnode *objp);
7938494Sobrien#endif /* not HAVE_XDR_EXPORTNODE */
8038494Sobrien#ifndef HAVE_XDR_EXPORTS
8138494Sobrienbool_t xdr_exports(XDR *xdrs, exports *objp);
8238494Sobrien#endif /* not HAVE_XDR_EXPORTS */
8338494Sobrien#ifndef HAVE_XDR_FATTR
8438494Sobrienbool_t xdr_fattr(XDR *xdrs, nfsfattr *objp);
8538494Sobrien#endif /* not HAVE_XDR_FATTR */
8638494Sobrien#ifndef HAVE_XDR_FHANDLE
8738494Sobrienbool_t xdr_fhandle(XDR *xdrs, fhandle objp);
8838494Sobrien#endif /* not HAVE_XDR_FHANDLE */
8938494Sobrien#ifndef HAVE_XDR_FHSTATUS
9038494Sobrienbool_t xdr_fhstatus(XDR *xdrs, fhstatus *objp);
9138494Sobrien#endif /* not HAVE_XDR_FHSTATUS */
9238494Sobrien#ifndef HAVE_XDR_FILENAME
9338494Sobrienbool_t xdr_filename(XDR *xdrs, filename *objp);
9438494Sobrien#endif /* not HAVE_XDR_FILENAME */
9538494Sobrien#ifndef HAVE_XDR_FTYPE
9638494Sobrienbool_t xdr_ftype(XDR *xdrs, nfsftype *objp);
9738494Sobrien#endif /* not HAVE_XDR_FTYPE */
9838494Sobrien#ifndef HAVE_XDR_GROUPNODE
9938494Sobrienbool_t xdr_groupnode(XDR *xdrs, groupnode *objp);
10038494Sobrien#endif /* not HAVE_XDR_GROUPNODE */
10138494Sobrien#ifndef HAVE_XDR_GROUPS
10282794Sobrienbool_t xdr_groups(XDR *xdrs, groups *objp);
10338494Sobrien#endif /* not HAVE_XDR_GROUPS */
10438494Sobrien#ifndef HAVE_XDR_LINKARGS
10538494Sobrienbool_t xdr_linkargs(XDR *xdrs, nfslinkargs *objp);
10638494Sobrien#endif /* not HAVE_XDR_LINKARGS */
10738494Sobrien#ifndef HAVE_XDR_MOUNTBODY
10838494Sobrienbool_t xdr_mountbody(XDR *xdrs, mountbody *objp);
10938494Sobrien#endif /* not HAVE_XDR_MOUNTBODY */
11038494Sobrien#ifndef HAVE_XDR_MOUNTLIST
11138494Sobrienbool_t xdr_mountlist(XDR *xdrs, mountlist *objp);
11238494Sobrien#endif /* not HAVE_XDR_MOUNTLIST */
11338494Sobrien
11438494Sobrien/*
11538494Sobrien * NFS3 XDR FUNCTIONS:
11638494Sobrien */
11738494Sobrien#if defined(HAVE_FS_NFS3) && !defined(HAVE_XDR_MOUNTRES3)
11838494Sobrienbool_t xdr_fhandle3(XDR *xdrs, fhandle3 *objp);
11938494Sobrienbool_t xdr_mountstat3(XDR *xdrs, mountstat3 *objp);
12038494Sobrienbool_t xdr_mountres3_ok(XDR *xdrs, mountres3_ok *objp);
12138494Sobrienbool_t xdr_mountres3(XDR *xdrs, mountres3 *objp);
12238494Sobrien#endif /* defined(HAVE_FS_NFS3) && !defined(HAVE_XDR_MOUNTRES3) */
12338494Sobrien
12438494Sobrien#ifndef HAVE_XDR_NAME
12538494Sobrienbool_t xdr_name(XDR *xdrs, name *objp);
12638494Sobrien#endif /* not HAVE_XDR_NAME */
12738494Sobrien#ifndef HAVE_XDR_NFS_FH
12838494Sobrienbool_t xdr_nfs_fh(XDR *xdrs, am_nfs_fh *objp);
12938494Sobrien#endif /* not HAVE_XDR_NFS_FH */
13038494Sobrien#ifndef HAVE_XDR_NFSCOOKIE
13138494Sobrienbool_t xdr_nfscookie(XDR *xdrs, nfscookie objp);
13238494Sobrien#endif /* not HAVE_XDR_NFSCOOKIE */
13338494Sobrien#ifndef HAVE_XDR_NFSPATH
13438494Sobrienbool_t xdr_nfspath(XDR *xdrs, nfspath *objp);
13538494Sobrien#endif /* not HAVE_XDR_NFSPATH */
13638494Sobrien#ifndef HAVE_XDR_NFSSTAT
13738494Sobrienbool_t xdr_nfsstat(XDR *xdrs, nfsstat *objp);
13838494Sobrien#endif /* not HAVE_XDR_NFSSTAT */
13938494Sobrien#ifndef HAVE_XDR_NFSTIME
14038494Sobrienbool_t xdr_nfstime(XDR *xdrs, nfstime *objp);
14138494Sobrien#endif /* not HAVE_XDR_NFSTIME */
14238494Sobrien#ifndef HAVE_XDR_POINTER
14338494Sobrienbool_t xdr_pointer(register XDR *xdrs, char **objpp, u_int obj_size, XDRPROC_T_TYPE xdr_obj);
14438494Sobrien#endif /* not HAVE_XDR_POINTER */
14538494Sobrien#ifndef HAVE_XDR_READARGS
14638494Sobrienbool_t xdr_readargs(XDR *xdrs, nfsreadargs *objp);
14738494Sobrien#endif /* not HAVE_XDR_READARGS */
14838494Sobrien#ifndef HAVE_XDR_READDIRARGS
14938494Sobrienbool_t xdr_readdirargs(XDR *xdrs, nfsreaddirargs *objp);
15038494Sobrien#endif /* not HAVE_XDR_READDIRARGS */
15138494Sobrien#ifndef HAVE_XDR_READDIRRES
15238494Sobrienbool_t xdr_readdirres(XDR *xdrs, nfsreaddirres *objp);
15338494Sobrien#endif /* not HAVE_XDR_READDIRRES */
15438494Sobrien#ifndef HAVE_XDR_READLINKRES
15538494Sobrienbool_t xdr_readlinkres(XDR *xdrs, nfsreadlinkres *objp);
15638494Sobrien#endif /* not HAVE_XDR_READLINKRES */
15738494Sobrien#ifndef HAVE_XDR_READOKRES
15838494Sobrienbool_t xdr_readokres(XDR *xdrs, nfsreadokres *objp);
15938494Sobrien#endif /* not HAVE_XDR_READOKRES */
16038494Sobrien#ifndef HAVE_XDR_READRES
16138494Sobrienbool_t xdr_readres(XDR *xdrs, nfsreadres *objp);
16238494Sobrien#endif /* not HAVE_XDR_READRES */
16338494Sobrien#ifndef HAVE_XDR_RENAMEARGS
16438494Sobrienbool_t xdr_renameargs(XDR *xdrs, nfsrenameargs *objp);
16538494Sobrien#endif /* not HAVE_XDR_RENAMEARGS */
16638494Sobrien#ifndef HAVE_XDR_SATTR
16738494Sobrienbool_t xdr_sattr(XDR *xdrs, nfssattr *objp);
16838494Sobrien#endif /* not HAVE_XDR_SATTR */
16938494Sobrien#ifndef HAVE_XDR_SATTRARGS
17038494Sobrienbool_t xdr_sattrargs(XDR *xdrs, nfssattrargs *objp);
17138494Sobrien#endif /* not HAVE_XDR_SATTRARGS */
17238494Sobrien#ifndef HAVE_XDR_STATFSOKRES
17338494Sobrienbool_t xdr_statfsokres(XDR *xdrs, nfsstatfsokres *objp);
17438494Sobrien#endif /* not HAVE_XDR_STATFSOKRES */
17538494Sobrien#ifndef HAVE_XDR_STATFSRES
17638494Sobrienbool_t xdr_statfsres(XDR *xdrs, nfsstatfsres *objp);
17738494Sobrien#endif /* not HAVE_XDR_STATFSRES */
17838494Sobrien#ifndef HAVE_XDR_SYMLINKARGS
17938494Sobrienbool_t xdr_symlinkargs(XDR *xdrs, nfssymlinkargs *objp);
18038494Sobrien#endif /* not HAVE_XDR_SYMLINKARGS */
18138494Sobrien#ifndef HAVE_XDR_WRITEARGS
18238494Sobrienbool_t xdr_writeargs(XDR *xdrs, nfswriteargs *objp);
18338494Sobrien#endif /* not HAVE_XDR_WRITEARGS */
18438494Sobrien
18538494Sobrien/*
18638494Sobrien * AUTOFS XDR FUNCTIONS:
18738494Sobrien */
18838494Sobrien#ifdef HAVE_FS_AUTOFS
18938494Sobrien# ifndef HAVE_XDR_MNTREQUEST
19038494Sobrienbool_t xdr_mntrequest(XDR *xdrs, mntrequest *objp);
19138494Sobrien# endif /* not HAVE_XDR_MNTREQUEST */
19238494Sobrien# ifndef HAVE_XDR_MNTRES
19338494Sobrienbool_t xdr_mntres(XDR *xdrs, mntres *objp);
19438494Sobrien# endif /* not HAVE_XDR_MNTRES */
19538494Sobrien# ifndef HAVE_XDR_UMNTREQUEST
19638494Sobrienbool_t xdr_umntrequest(XDR *xdrs, umntrequest *objp);
19738494Sobrien# endif /* not HAVE_XDR_UMNTREQUEST */
19838494Sobrien# ifndef HAVE_XDR_UMNTRES
19938494Sobrienbool_t xdr_umntres(XDR *xdrs, umntres *objp);
20038494Sobrien# endif /* not HAVE_XDR_UMNTRES */
20138494Sobrien#endif /* HAVE_FS_AUTOFS */
20238494Sobrien
20338494Sobrien#endif /* not _AM_XDR_FUNC_H */
204