xref: /netbsd-src/external/bsd/am-utils/dist/conf/nfs_prot/nfs_prot_aix3.h (revision 8bae5d409deb915cf7c8f0539fae22ff2cb8a313)
1 /*	$NetBSD: nfs_prot_aix3.h,v 1.1.1.3 2015/01/17 16:34:16 christos Exp $	*/
2 
3 /*
4  * Copyright (c) 1997-2014 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.
9  *
10  * This code is derived from software contributed to Berkeley by
11  * Jan-Simon Pendry at Imperial College, London.
12  *
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. Neither the name of the University nor the names of its contributors
22  *    may be used to endorse or promote products derived from this software
23  *    without specific prior written permission.
24  *
25  * THIS SOFTWARE IS PROVIDED BY THE REGENTS AND CONTRIBUTORS ``AS IS'' AND
26  * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
27  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
28  * ARE DISCLAIMED.  IN NO EVENT SHALL THE REGENTS OR CONTRIBUTORS BE LIABLE
29  * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
30  * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS
31  * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
32  * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT
33  * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY
34  * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF
35  * SUCH DAMAGE.
36  *
37  *
38  * File: am-utils/conf/nfs_prot/nfs_prot_aix3.h
39  *
40  */
41 
42 #ifndef _AMU_NFS_PROT_H
43 #define _AMU_NFS_PROT_H
44 
45 #ifdef HAVE_RPCSVC_NFS_PROT_H
46 # include <rpcsvc/nfs_prot.h>
47 #endif /* HAVE_RPCSVC_NFS_PROT_H */
48 #ifdef HAVE_NFS_NFSV2_H
49 # include <nfs/nfsv2.h>
50 #endif /* HAVE_NFS_NFSV2_H */
51 #ifdef HAVE_NFS_RPCV2_H
52 # include <nfs/rpcv2.h>
53 #endif /* HAVE_NFS_RPCV2_H */
54 #ifdef HAVE_SYS_FS_NFS_H
55 # include <sys/fs/nfs.h>
56 #endif /* HAVE_SYS_FS_NFS_H */
57 
58 /* don't include this one */
59 #ifdef HAVE_RPCSVC_MOUNT_H_not
60 # include <rpcsvc/mount.h>
61 #endif /* HAVE_RPCSVC_MOUNT_H */
62 
63 
64 /*
65  * MACROS
66  */
67 
68 #ifndef MNTPATHLEN
69 # define MNTPATHLEN 1024
70 #endif /* not MNTPATHLEN */
71 #ifndef MNTNAMLEN
72 # define MNTNAMLEN 255
73 #endif /* not MNTNAMLEN */
74 
75 /* map field names */
76 #define ex_dir ex_name
77 #define gr_name g_name
78 #define gr_next g_next
79 #define ml_directory ml_path
80 #define ml_hostname ml_name
81 #define ml_next ml_nxt
82 
83 #define	dr_drok_u	diropres
84 #define ca_attributes	attributes
85 #define ca_where	where
86 #define da_fhandle	dir
87 #define da_name		name
88 #define dl_entries	entries
89 #define dl_eof		eof
90 #define dr_status	status
91 #define dr_u		diropres_u
92 #define drok_attributes	attributes
93 #define drok_fhandle	file
94 #define fh_data		data
95 #define la_fhandle	from
96 #define la_to		to
97 #define na_atime	atime
98 #define na_blocks	blocks
99 #define na_blocksize	blocksize
100 #define na_ctime	ctime
101 #define na_fileid	fileid
102 #define na_fsid		fsid
103 #define na_gid		gid
104 #define na_mode		mode
105 #define na_mtime	mtime
106 #define na_nlink	nlink
107 #define na_rdev		rdev
108 #define na_size		size
109 #define na_type		type
110 #define na_uid		uid
111 #define ne_cookie	cookie
112 #define ne_fileid	fileid
113 #define ne_name		name
114 #define ne_nextentry	nextentry
115 #define ns_attr_u	attributes
116 #define ns_status	status
117 #define ns_u		attrstat_u
118 #define nt_seconds	seconds
119 #define nt_useconds	useconds
120 #define ra_count	count
121 #define ra_fhandle	file
122 #define ra_offset	offset
123 #define ra_totalcount	totalcount
124 #define raok_attributes	attributes
125 #define raok_len_u	data_len
126 #define raok_u		data
127 #define raok_val_u	data_val
128 #define rda_cookie	cookie
129 #define rda_count	count
130 #define rda_fhandle	dir
131 #define rdr_reply_u	reply
132 #define rdr_status	status
133 #define rdr_u		readdirres_u
134 #define rlr_data_u	data
135 #define rlr_status	status
136 #define rlr_u		readlinkres_u
137 #define rna_from	from
138 #define rna_to		to
139 #define rr_reply_u	reply
140 #define rr_status	status
141 #define rr_u		readres_u
142 #define sa_atime	atime
143 #define sa_gid		gid
144 #define sa_mode		mode
145 #define sa_mtime	mtime
146 #define sa_size		size
147 #define sa_uid		uid
148 #define sag_attributes	attributes
149 #define sag_fhandle	file
150 #define sfr_reply_u	reply
151 #define sfr_status	status
152 #define sfr_u		statfsres_u
153 #define sfrok_bavail	bavail
154 #define sfrok_bfree	bfree
155 #define sfrok_blocks	blocks
156 #define sfrok_bsize	bsize
157 #define sfrok_tsize	tsize
158 #define sla_attributes	attributes
159 #define sla_from	from
160 #define sla_to		to
161 #define wra_beginoffset	beginoffset
162 #define wra_fhandle	file
163 #define wra_len_u	data_len
164 #define wra_offset	offset
165 #define wra_totalcount	totalcount
166 #define wra_u		data
167 #define wra_val_u	data_val
168 
169 
170 /*
171  * TYPEDEFS:
172  */
173 typedef char *dirpath;
174 typedef char *name;
175 typedef struct exports *exports;
176 typedef struct exports exportnode;
177 typedef struct groups *groups;
178 typedef struct groups groupnode;
179 typedef struct mountlist *mountlist;
180 
181 typedef attrstat	nfsattrstat;
182 typedef createargs	nfscreateargs;
183 typedef dirlist		nfsdirlist;
184 typedef diropargs	nfsdiropargs;
185 typedef diropokres	nfsdiropokres;
186 typedef diropres	nfsdiropres;
187 typedef entry		nfsentry;
188 typedef fattr		nfsfattr;
189 typedef ftype		nfsftype;
190 typedef linkargs	nfslinkargs;
191 typedef readargs	nfsreadargs;
192 typedef readdirargs	nfsreaddirargs;
193 typedef readdirres	nfsreaddirres;
194 typedef readlinkres	nfsreadlinkres;
195 typedef readokres	nfsreadokres;
196 typedef readres		nfsreadres;
197 typedef renameargs	nfsrenameargs;
198 typedef sattr		nfssattr;
199 typedef sattrargs	nfssattrargs;
200 typedef statfsokres	nfsstatfsokres;
201 typedef statfsres	nfsstatfsres;
202 typedef symlinkargs	nfssymlinkargs;
203 typedef writeargs	nfswriteargs;
204 
205 /*
206  * EXTERNALS:
207  */
208 extern bool_t xdr_groups(XDR *xdrs, groups *objp);
209 
210 /*
211  * STRUCTURES:
212  */
213 
214 #endif /* not _AMU_NFS_PROT_H */
215