Deleted Added
full compact
nfs_prot_freebsd2.h (38578) nfs_prot_freebsd2.h (42633)
1/*
2 * Copyright (c) 1997-1998 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
1/*
2 * Copyright (c) 1997-1998 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 acknowledgement:
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 * %W% (Berkeley) %G%
40 *
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 * %W% (Berkeley) %G%
40 *
41 * $Id: nfs_prot_freebsd2.h,v 1.1.1.1 1998/08/23 22:07:20 obrien Exp $
41 * $Id: nfs_prot_freebsd2.h,v 1.2 1998/08/27 07:33:23 obrien Exp $
42 *
43 */
44
45#ifndef _AMU_NFS_PROT_H
46#define _AMU_NFS_PROT_H
47
48#ifdef COMMENT_OUT
49#ifdef HAVE_RPCSVC_NFS_PROT_H
50# include <rpcsvc/nfs_prot.h>
51#endif /* HAVE_RPCSVC_NFS_PROT_H */
52#endif /* COMMENT_OUT */
53# include "nfs_prot.h"
54
55/*
56 * MACROS:
57 */
58#define dr_drok_u diropres
59#define ca_where where
60#define da_fhandle dir
61#define da_name name
62#define dl_entries entries
63#define dl_eof eof
64#define dr_status status
65#define dr_u diropres_u
66#define drok_attributes attributes
67#define drok_fhandle file
68#define fh_data data
69#define la_fhandle from
70#define la_to to
71#define na_atime atime
72#define na_ctime ctime
73#define na_fileid fileid
74#define na_fsid fsid
75#define na_mode mode
76#define na_mtime mtime
77#define na_nlink nlink
78#define na_size size
79#define na_type type
80#define ne_cookie cookie
81#define ne_fileid fileid
82#define ne_name name
83#define ne_nextentry nextentry
84#define ns_attr_u attributes
85#define ns_status status
86#define ns_u attrstat_u
87#define nt_seconds seconds
88#define nt_useconds useconds
89#define rda_cookie cookie
90#define rda_count count
91#define rda_fhandle dir
92#define rdr_reply_u reply
93#define rdr_status status
94#define rdr_u readdirres_u
95#define rlr_data_u data
96#define rlr_status status
97#define rlr_u readlinkres_u
98#define rna_from from
99#define rna_to to
100#define rr_status status
101#define sag_fhandle file
102#define sfr_reply_u reply
103#define sfr_status status
104#define sfr_u statfsres_u
105#define sfrok_bavail bavail
106#define sfrok_bfree bfree
107#define sfrok_blocks blocks
108#define sfrok_bsize bsize
109#define sfrok_tsize tsize
110#define sla_from from
111#define wra_fhandle file
112
113
114/*
115 * TYPEDEFS:
116 */
117typedef attrstat nfsattrstat;
118typedef createargs nfscreateargs;
119typedef dirlist nfsdirlist;
120typedef diropargs nfsdiropargs;
121typedef diropres nfsdiropres;
122typedef entry nfsentry;
123typedef fattr nfsfattr;
124typedef ftype nfsftype;
125typedef linkargs nfslinkargs;
126typedef readargs nfsreadargs;
127typedef readdirargs nfsreaddirargs;
128typedef readdirres nfsreaddirres;
129typedef readlinkres nfsreadlinkres;
130typedef readres nfsreadres;
131typedef renameargs nfsrenameargs;
132typedef sattrargs nfssattrargs;
133typedef statfsokres nfsstatfsokres;
134typedef statfsres nfsstatfsres;
135typedef symlinkargs nfssymlinkargs;
136typedef writeargs nfswriteargs;
137
138
139/*
140 * FreeBSD 2.2.x has NFS V3, but it does not define enough macros
141 * in the headers to automatically detect it.
142 * So fake it in the meant time.
143 */
144#if 0
145#define MOUNT_NFS3 MOUNT_NFS
146#endif
147
148
149#endif /* not _AMU_NFS_PROT_H */
42 *
43 */
44
45#ifndef _AMU_NFS_PROT_H
46#define _AMU_NFS_PROT_H
47
48#ifdef COMMENT_OUT
49#ifdef HAVE_RPCSVC_NFS_PROT_H
50# include <rpcsvc/nfs_prot.h>
51#endif /* HAVE_RPCSVC_NFS_PROT_H */
52#endif /* COMMENT_OUT */
53# include "nfs_prot.h"
54
55/*
56 * MACROS:
57 */
58#define dr_drok_u diropres
59#define ca_where where
60#define da_fhandle dir
61#define da_name name
62#define dl_entries entries
63#define dl_eof eof
64#define dr_status status
65#define dr_u diropres_u
66#define drok_attributes attributes
67#define drok_fhandle file
68#define fh_data data
69#define la_fhandle from
70#define la_to to
71#define na_atime atime
72#define na_ctime ctime
73#define na_fileid fileid
74#define na_fsid fsid
75#define na_mode mode
76#define na_mtime mtime
77#define na_nlink nlink
78#define na_size size
79#define na_type type
80#define ne_cookie cookie
81#define ne_fileid fileid
82#define ne_name name
83#define ne_nextentry nextentry
84#define ns_attr_u attributes
85#define ns_status status
86#define ns_u attrstat_u
87#define nt_seconds seconds
88#define nt_useconds useconds
89#define rda_cookie cookie
90#define rda_count count
91#define rda_fhandle dir
92#define rdr_reply_u reply
93#define rdr_status status
94#define rdr_u readdirres_u
95#define rlr_data_u data
96#define rlr_status status
97#define rlr_u readlinkres_u
98#define rna_from from
99#define rna_to to
100#define rr_status status
101#define sag_fhandle file
102#define sfr_reply_u reply
103#define sfr_status status
104#define sfr_u statfsres_u
105#define sfrok_bavail bavail
106#define sfrok_bfree bfree
107#define sfrok_blocks blocks
108#define sfrok_bsize bsize
109#define sfrok_tsize tsize
110#define sla_from from
111#define wra_fhandle file
112
113
114/*
115 * TYPEDEFS:
116 */
117typedef attrstat nfsattrstat;
118typedef createargs nfscreateargs;
119typedef dirlist nfsdirlist;
120typedef diropargs nfsdiropargs;
121typedef diropres nfsdiropres;
122typedef entry nfsentry;
123typedef fattr nfsfattr;
124typedef ftype nfsftype;
125typedef linkargs nfslinkargs;
126typedef readargs nfsreadargs;
127typedef readdirargs nfsreaddirargs;
128typedef readdirres nfsreaddirres;
129typedef readlinkres nfsreadlinkres;
130typedef readres nfsreadres;
131typedef renameargs nfsrenameargs;
132typedef sattrargs nfssattrargs;
133typedef statfsokres nfsstatfsokres;
134typedef statfsres nfsstatfsres;
135typedef symlinkargs nfssymlinkargs;
136typedef writeargs nfswriteargs;
137
138
139/*
140 * FreeBSD 2.2.x has NFS V3, but it does not define enough macros
141 * in the headers to automatically detect it.
142 * So fake it in the meant time.
143 */
144#if 0
145#define MOUNT_NFS3 MOUNT_NFS
146#endif
147
148
149#endif /* not _AMU_NFS_PROT_H */