]> CyberLeo.Net >> Repos - FreeBSD/releng/10.0.git/blob - contrib/amd/conf/nfs_prot/nfs_prot_freebsd2.h
- Copy stable/10 (r259064) to releng/10.0 as part of the
[FreeBSD/releng/10.0.git] / contrib / amd / conf / nfs_prot / nfs_prot_freebsd2.h
1 /*
2  * Copyright (c) 1997-2006 Erez Zadok
3  * Copyright (c) 1990 Jan-Simon Pendry
4  * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
5  * Copyright (c) 1990 The Regents of the University of California.
6  * All rights reserved.
7  *
8  * This code is derived from software contributed to Berkeley by
9  * Jan-Simon Pendry at Imperial College, London.
10  *
11  * Redistribution and use in source and binary forms, with or without
12  * modification, are permitted provided that the following conditions
13  * are met:
14  * 1. Redistributions of source code must retain the above copyright
15  *    notice, this list of conditions and the following disclaimer.
16  * 2. Redistributions in binary form must reproduce the above copyright
17  *    notice, this list of conditions and the following disclaimer in the
18  *    documentation and/or other materials provided with the distribution.
19  * 3. All advertising materials mentioning features or use of this software
20  *    must display the following acknowledgment:
21  *      This product includes software developed by the University of
22  *      California, Berkeley and its contributors.
23  * 4. Neither the name of the University nor the names of its contributors
24  *    may be used to endorse or promote products derived from this software
25  *    without specific prior written permission.
26  *
27  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
28  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
29  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
30  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
31  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
32  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
33  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
34  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
35  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
36  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
37  * SUCH DAMAGE.
38  *
39  *
40  * File: am-utils/conf/nfs_prot/nfs_prot_freebsd2.h
41  *
42  */
43
44 #ifndef _AMU_NFS_PROT_H
45 #define _AMU_NFS_PROT_H
46
47 #ifdef HAVE_RPCSVC_NFS_PROT_H
48 # include <rpcsvc/nfs_prot.h>
49 #endif /* HAVE_RPCSVC_NFS_PROT_H */
50
51 /*
52  * MACROS:
53  */
54 #define dr_drok_u       diropres
55 #define ca_where        where
56 #define da_fhandle      dir
57 #define da_name         name
58 #define dl_entries      entries
59 #define dl_eof          eof
60 #define dr_status       status
61 #define dr_u            diropres_u
62 #define drok_attributes attributes
63 #define drok_fhandle    file
64 #define fh_data         data
65 #define la_fhandle      from
66 #define la_to           to
67 #define na_atime        atime
68 #define na_ctime        ctime
69 #define na_fileid       fileid
70 #define na_fsid         fsid
71 #define na_mode         mode
72 #define na_mtime        mtime
73 #define na_nlink        nlink
74 #define na_size         size
75 #define na_type         type
76 #define ne_cookie       cookie
77 #define ne_fileid       fileid
78 #define ne_name         name
79 #define ne_nextentry    nextentry
80 #define ns_attr_u       attributes
81 #define ns_status       status
82 #define ns_u            attrstat_u
83 #define nt_seconds      seconds
84 #define nt_useconds     useconds
85 #define rda_cookie      cookie
86 #define rda_count       count
87 #define rda_fhandle     dir
88 #define rdr_reply_u     reply
89 #define rdr_status      status
90 #define rdr_u           readdirres_u
91 #define rlr_data_u      data
92 #define rlr_status      status
93 #define rlr_u           readlinkres_u
94 #define rna_from        from
95 #define rna_to          to
96 #define rr_status       status
97 #define sag_fhandle     file
98 #define sfr_reply_u     reply
99 #define sfr_status      status
100 #define sfr_u           statfsres_u
101 #define sfrok_bavail    bavail
102 #define sfrok_bfree     bfree
103 #define sfrok_blocks    blocks
104 #define sfrok_bsize     bsize
105 #define sfrok_tsize     tsize
106 #define sla_from        from
107 #define wra_fhandle     file
108
109
110 /*
111  * TYPEDEFS:
112  */
113 typedef attrstat nfsattrstat;
114 typedef createargs nfscreateargs;
115 typedef dirlist nfsdirlist;
116 typedef diropargs nfsdiropargs;
117 typedef diropres nfsdiropres;
118 typedef entry nfsentry;
119 typedef fattr nfsfattr;
120 typedef ftype nfsftype;
121 typedef linkargs nfslinkargs;
122 typedef readargs nfsreadargs;
123 typedef readdirargs nfsreaddirargs;
124 typedef readdirres nfsreaddirres;
125 typedef readlinkres nfsreadlinkres;
126 typedef readres nfsreadres;
127 typedef renameargs nfsrenameargs;
128 typedef sattrargs nfssattrargs;
129 typedef statfsokres nfsstatfsokres;
130 typedef statfsres nfsstatfsres;
131 typedef symlinkargs nfssymlinkargs;
132 typedef writeargs nfswriteargs;
133
134
135 /*
136  * FreeBSD 2.2.x has NFS V3, but it does not define enough macros
137  * in the headers to automatically detect it.
138  * So fake it in the meant time.
139  */
140 #if 0
141 #define MOUNT_NFS3 MOUNT_NFS
142 #endif
143
144
145 #endif /* not _AMU_NFS_PROT_H */