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