2 * Copyright (c) 1997-1999 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.
8 * This code is derived from software contributed to Berkeley by
9 * Jan-Simon Pendry at Imperial College, London.
11 * Redistribution and use in source and binary forms, with or without
12 * modification, are permitted provided that the following conditions
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.
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
41 * $Id: nfs_prot_freebsd2.h,v 1.2 1999/01/10 21:54:14 ezk Exp $
42 * $FreeBSD: src/contrib/amd/conf/nfs_prot/nfs_prot_freebsd2.h,v 1.4 1999/09/15 05:45:14 obrien Exp $
43 * $DragonFly: src/contrib/amd/conf/nfs_prot/nfs_prot_freebsd2.h,v 1.2 2003/06/17 04:23:57 dillon Exp $
47 #ifndef _AMU_NFS_PROT_H
48 #define _AMU_NFS_PROT_H
51 #ifdef HAVE_RPCSVC_NFS_PROT_H
52 # include <rpcsvc/nfs_prot.h>
53 #endif /* HAVE_RPCSVC_NFS_PROT_H */
54 #endif /* COMMENT_OUT */
55 # include "nfs_prot.h"
60 #define dr_drok_u diropres
61 #define ca_where where
62 #define da_fhandle dir
64 #define dl_entries entries
66 #define dr_status status
67 #define dr_u diropres_u
68 #define drok_attributes attributes
69 #define drok_fhandle file
71 #define la_fhandle from
73 #define na_atime atime
74 #define na_ctime ctime
75 #define na_fileid fileid
78 #define na_mtime mtime
79 #define na_nlink nlink
82 #define ne_cookie cookie
83 #define ne_fileid fileid
85 #define ne_nextentry nextentry
86 #define ns_attr_u attributes
87 #define ns_status status
88 #define ns_u attrstat_u
89 #define nt_seconds seconds
90 #define nt_useconds useconds
91 #define rda_cookie cookie
92 #define rda_count count
93 #define rda_fhandle dir
94 #define rdr_reply_u reply
95 #define rdr_status status
96 #define rdr_u readdirres_u
97 #define rlr_data_u data
98 #define rlr_status status
99 #define rlr_u readlinkres_u
100 #define rna_from from
102 #define rr_status status
103 #define sag_fhandle file
104 #define sfr_reply_u reply
105 #define sfr_status status
106 #define sfr_u statfsres_u
107 #define sfrok_bavail bavail
108 #define sfrok_bfree bfree
109 #define sfrok_blocks blocks
110 #define sfrok_bsize bsize
111 #define sfrok_tsize tsize
112 #define sla_from from
113 #define wra_fhandle file
119 typedef attrstat nfsattrstat;
120 typedef createargs nfscreateargs;
121 typedef dirlist nfsdirlist;
122 typedef diropargs nfsdiropargs;
123 typedef diropres nfsdiropres;
124 typedef entry nfsentry;
125 typedef fattr nfsfattr;
126 typedef ftype nfsftype;
127 typedef linkargs nfslinkargs;
128 typedef readargs nfsreadargs;
129 typedef readdirargs nfsreaddirargs;
130 typedef readdirres nfsreaddirres;
131 typedef readlinkres nfsreadlinkres;
132 typedef readres nfsreadres;
133 typedef renameargs nfsrenameargs;
134 typedef sattrargs nfssattrargs;
135 typedef statfsokres nfsstatfsokres;
136 typedef statfsres nfsstatfsres;
137 typedef symlinkargs nfssymlinkargs;
138 typedef writeargs nfswriteargs;
142 * FreeBSD 2.2.x has NFS V3, but it does not define enough macros
143 * in the headers to automatically detect it.
144 * So fake it in the meant time.
147 #define MOUNT_NFS3 MOUNT_NFS
151 #endif /* not _AMU_NFS_PROT_H */