Patrick Welche <prlw1@cam.ac.uk>
[netbsd-mini2440.git] / external / bsd / am-utils / dist / conf / nfs_prot / nfs_prot_darwin.h
blob3a4a5a6b6f0f71df03ba4d876c2c936c11118eed
1 /* $NetBSD$ */
3 /*
4 * Copyright (c) 1997-2009 Erez Zadok
5 * Copyright (c) 1990 Jan-Simon Pendry
6 * Copyright (c) 1990 Imperial College of Science, Technology & Medicine
7 * Copyright (c) 1990 The Regents of the University of California.
8 * All rights reserved.
10 * This code is derived from software contributed to Berkeley by
11 * Jan-Simon Pendry at Imperial College, London.
13 * Redistribution and use in source and binary forms, with or without
14 * modification, are permitted provided that the following conditions
15 * are met:
16 * 1. Redistributions of source code must retain the above copyright
17 * notice, this list of conditions and the following disclaimer.
18 * 2. Redistributions in binary form must reproduce the above copyright
19 * notice, this list of conditions and the following disclaimer in the
20 * documentation and/or other materials provided with the distribution.
21 * 3. All advertising materials mentioning features or use of this software
22 * must display the following acknowledgment:
23 * This product includes software developed by the University of
24 * California, Berkeley and its contributors.
25 * 4. Neither the name of the University nor the names of its contributors
26 * may be used to endorse or promote products derived from this software
27 * without specific prior written permission.
29 * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
30 * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
31 * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
32 * ARE DISCLAIMED. IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
33 * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
34 * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
35 * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
36 * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
37 * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
38 * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
39 * SUCH DAMAGE.
42 * File: am-utils/conf/nfs_prot/nfs_prot_darwin.h
46 #ifndef _AMU_NFS_PROT_H
47 #define _AMU_NFS_PROT_H
49 #ifdef HAVE_RPCSVC_NFS_PROT_H
50 # include <rpcsvc/nfs_prot.h>
51 #endif /* HAVE_RPCSVC_NFS_PROT_H */
52 #ifdef HAVE_NFS_RPCV2_H
53 # include <nfs/rpcv2.h>
54 #endif /* HAVE_NFS_RPCV2_H */
55 #ifdef HAVE_NFS_NFS_H
56 # include <nfs/nfs.h>
57 #endif /* HAVE_NFS_NFS_H */
58 #ifdef HAVE_UFS_UFS_UFSMOUNT_H
59 # include <ufs/ufs/ufsmount.h>
60 #endif /* HAVE_UFS_UFS_UFSMOUNT_H */
63 * MACROS:
65 #define dr_drok_u diropres
66 #define ca_attributes attributes
67 #define ca_where where
68 #define da_fhandle dir
69 #define da_name name
70 #define dl_entries entries
71 #define dl_eof eof
72 #define dr_status status
73 #define dr_u diropres_u
74 #define drok_attributes attributes
75 #define drok_fhandle file
76 #define fh_data data
77 #define la_fhandle from
78 #define la_to to
79 #define na_atime atime
80 #define na_ctime ctime
81 #define na_fileid fileid
82 #define na_fsid fsid
83 #define na_gid gid
84 #define na_mode mode
85 #define na_mtime mtime
86 #define na_nlink nlink
87 #define na_size size
88 #define na_type type
89 #define na_uid uid
90 #define na_blocks blocks
91 #define na_blocksize blocksize
92 #define na_rdev rdev
93 #define ne_cookie cookie
94 #define ne_fileid fileid
95 #define ne_name name
96 #define ne_nextentry nextentry
97 #define ns_attr_u attributes
98 #define ns_status status
99 #define ns_u attrstat_u
100 #define nt_seconds seconds
101 #define nt_useconds useconds
102 #define ra_count count
103 #define ra_fhandle file
104 #define ra_offset offset
105 #define ra_totalcount totalcount
106 #define raok_attributes attributes
107 #define raok_len_u data_len
108 #define raok_u data
109 #define raok_val_u data_val
110 #define rda_cookie cookie
111 #define rda_count count
112 #define rda_fhandle dir
113 #define rdr_reply_u reply
114 #define rdr_status status
115 #define rdr_u readdirres_u
116 #define rlr_data_u data
117 #define rlr_status status
118 #define rlr_u readlinkres_u
119 #define rna_from from
120 #define rna_to to
121 #define rr_reply_u reply
122 #define rr_status status
123 #define rr_u readres_u
124 #define sa_atime atime
125 #define sa_gid gid
126 #define sa_mode mode
127 #define sa_mtime mtime
128 #define sa_size size
129 #define sa_uid uid
130 #define sag_attributes attributes
131 #define sag_fhandle file
132 #define sfr_reply_u reply
133 #define sfr_status status
134 #define sfr_u statfsres_u
135 #define sfrok_bavail bavail
136 #define sfrok_bfree bfree
137 #define sfrok_blocks blocks
138 #define sfrok_bsize bsize
139 #define sfrok_tsize tsize
140 #define sla_attributes attributes
141 #define sla_from from
142 #define sla_to to
143 #define wra_beginoffset beginoffset
144 #define wra_fhandle file
145 #define wra_len_u data_len
146 #define wra_offset offset
147 #define wra_totalcount totalcount
148 #define wra_u data
149 #define wra_val_u data_val
152 * TYPEDEFS:
154 typedef attrstat nfsattrstat;
155 typedef createargs nfscreateargs;
156 typedef dirlist nfsdirlist;
157 typedef diropargs nfsdiropargs;
158 typedef diropokres nfsdiropokres;
159 typedef diropres nfsdiropres;
160 typedef entry nfsentry;
161 typedef fattr nfsfattr;
162 typedef ftype nfsftype;
163 typedef linkargs nfslinkargs;
164 typedef readargs nfsreadargs;
165 typedef readdirargs nfsreaddirargs;
166 typedef readdirres nfsreaddirres;
167 typedef readlinkres nfsreadlinkres;
168 typedef readokres nfsreadokres;
169 typedef readres nfsreadres;
170 typedef renameargs nfsrenameargs;
171 typedef sattr nfssattr;
172 typedef sattrargs nfssattrargs;
173 typedef statfsokres nfsstatfsokres;
174 typedef statfsres nfsstatfsres;
175 typedef symlinkargs nfssymlinkargs;
176 typedef writeargs nfswriteargs;
179 #ifdef NFSMNT_NFSV3
181 # define MOUNT_NFS3 "nfs" /* is this right? */
182 # define MNTOPT_NFS3 "nfs"
184 #endif /* NFSMNT_NFSV3 */
186 #endif /* not _AMU_NFS_PROT_H */