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 $
46 #ifndef _AMU_NFS_PROT_H
47 #define _AMU_NFS_PROT_H
50 #ifdef HAVE_RPCSVC_NFS_PROT_H
51 # include <rpcsvc/nfs_prot.h>
52 #endif /* HAVE_RPCSVC_NFS_PROT_H */
53 #endif /* COMMENT_OUT */
54 # include "nfs_prot.h"
59 #define dr_drok_u diropres
60 #define ca_where where
61 #define da_fhandle dir
63 #define dl_entries entries
65 #define dr_status status
66 #define dr_u diropres_u
67 #define drok_attributes attributes
68 #define drok_fhandle file
70 #define la_fhandle from
72 #define na_atime atime
73 #define na_ctime ctime
74 #define na_fileid fileid
77 #define na_mtime mtime
78 #define na_nlink nlink
81 #define ne_cookie cookie
82 #define ne_fileid fileid
84 #define ne_nextentry nextentry
85 #define ns_attr_u attributes
86 #define ns_status status
87 #define ns_u attrstat_u
88 #define nt_seconds seconds
89 #define nt_useconds useconds
90 #define rda_cookie cookie
91 #define rda_count count
92 #define rda_fhandle dir
93 #define rdr_reply_u reply
94 #define rdr_status status
95 #define rdr_u readdirres_u
96 #define rlr_data_u data
97 #define rlr_status status
98 #define rlr_u readlinkres_u
101 #define rr_status status
102 #define sag_fhandle file
103 #define sfr_reply_u reply
104 #define sfr_status status
105 #define sfr_u statfsres_u
106 #define sfrok_bavail bavail
107 #define sfrok_bfree bfree
108 #define sfrok_blocks blocks
109 #define sfrok_bsize bsize
110 #define sfrok_tsize tsize
111 #define sla_from from
112 #define wra_fhandle file
118 typedef attrstat nfsattrstat;
119 typedef createargs nfscreateargs;
120 typedef dirlist nfsdirlist;
121 typedef diropargs nfsdiropargs;
122 typedef diropres nfsdiropres;
123 typedef entry nfsentry;
124 typedef fattr nfsfattr;
125 typedef ftype nfsftype;
126 typedef linkargs nfslinkargs;
127 typedef readargs nfsreadargs;
128 typedef readdirargs nfsreaddirargs;
129 typedef readdirres nfsreaddirres;
130 typedef readlinkres nfsreadlinkres;
131 typedef readres nfsreadres;
132 typedef renameargs nfsrenameargs;
133 typedef sattrargs nfssattrargs;
134 typedef statfsokres nfsstatfsokres;
135 typedef statfsres nfsstatfsres;
136 typedef symlinkargs nfssymlinkargs;
137 typedef writeargs nfswriteargs;
141 * FreeBSD 2.2.x has NFS V3, but it does not define enough macros
142 * in the headers to automatically detect it.
143 * So fake it in the meant time.
146 #define MOUNT_NFS3 MOUNT_NFS
150 #endif /* not _AMU_NFS_PROT_H */