]> git.ipfire.org Git - thirdparty/util-linux.git/blob - mount/rpcsvc/nfsmount.h
Imported from util-linux-2.5 tarball.
[thirdparty/util-linux.git] / mount / rpcsvc / nfsmount.h
1 /*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6 #ifndef _NFSMOUNT_H_RPCGEN
7 #define _NFSMOUNT_H_RPCGEN
8
9 #include <rpc/rpc.h>
10
11 /*
12 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
13 * unrestricted use provided that this legend is included on all tape
14 * media and as a part of the software program in whole or part. Users
15 * may copy or modify Sun RPC without charge, but are not authorized
16 * to license or distribute it to anyone else except as part of a product or
17 * program developed by the user or with the express written consent of
18 * Sun Microsystems, Inc.
19 *
20 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
21 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
23 *
24 * Sun RPC is provided with no support and without any obligation on the
25 * part of Sun Microsystems, Inc. to assist in its use, correction,
26 * modification or enhancement.
27 *
28 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
29 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
30 * OR ANY PART THEREOF.
31 *
32 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
33 * or profits or other special, indirect and consequential damages, even if
34 * Sun has been advised of the possibility of such damages.
35 *
36 * Sun Microsystems, Inc.
37 * 2550 Garcia Avenue
38 * Mountain View, California 94043
39 */
40 /*
41 * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
42 */
43
44 /* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */
45 #ifndef _rpcsvc_mount_h
46 #define _rpcsvc_mount_h
47 #define MNTPATHLEN 1024
48 #define MNTNAMLEN 255
49 #define FHSIZE 32
50
51 typedef char fhandle[FHSIZE];
52 #ifdef __cplusplus
53 extern "C" bool_t xdr_fhandle(XDR *, fhandle);
54 #elif __STDC__
55 extern bool_t xdr_fhandle(XDR *, fhandle);
56 #else /* Old Style C */
57 bool_t xdr_fhandle();
58 #endif /* Old Style C */
59
60
61 struct fhstatus {
62 u_int fhs_status;
63 union {
64 fhandle fhs_fhandle;
65 } fhstatus_u;
66 };
67 typedef struct fhstatus fhstatus;
68 #ifdef __cplusplus
69 extern "C" bool_t xdr_fhstatus(XDR *, fhstatus*);
70 #elif __STDC__
71 extern bool_t xdr_fhstatus(XDR *, fhstatus*);
72 #else /* Old Style C */
73 bool_t xdr_fhstatus();
74 #endif /* Old Style C */
75
76
77 typedef char *dirpath;
78 #ifdef __cplusplus
79 extern "C" bool_t xdr_dirpath(XDR *, dirpath*);
80 #elif __STDC__
81 extern bool_t xdr_dirpath(XDR *, dirpath*);
82 #else /* Old Style C */
83 bool_t xdr_dirpath();
84 #endif /* Old Style C */
85
86
87 typedef char *name;
88 #ifdef __cplusplus
89 extern "C" bool_t xdr_name(XDR *, name*);
90 #elif __STDC__
91 extern bool_t xdr_name(XDR *, name*);
92 #else /* Old Style C */
93 bool_t xdr_name();
94 #endif /* Old Style C */
95
96
97 typedef struct mountbody *mountlist;
98 #ifdef __cplusplus
99 extern "C" bool_t xdr_mountlist(XDR *, mountlist*);
100 #elif __STDC__
101 extern bool_t xdr_mountlist(XDR *, mountlist*);
102 #else /* Old Style C */
103 bool_t xdr_mountlist();
104 #endif /* Old Style C */
105
106
107 struct mountbody {
108 name ml_hostname;
109 dirpath ml_directory;
110 mountlist ml_next;
111 };
112 typedef struct mountbody mountbody;
113 #ifdef __cplusplus
114 extern "C" bool_t xdr_mountbody(XDR *, mountbody*);
115 #elif __STDC__
116 extern bool_t xdr_mountbody(XDR *, mountbody*);
117 #else /* Old Style C */
118 bool_t xdr_mountbody();
119 #endif /* Old Style C */
120
121
122 typedef struct groupnode *groups;
123 #ifdef __cplusplus
124 extern "C" bool_t xdr_groups(XDR *, groups*);
125 #elif __STDC__
126 extern bool_t xdr_groups(XDR *, groups*);
127 #else /* Old Style C */
128 bool_t xdr_groups();
129 #endif /* Old Style C */
130
131
132 struct groupnode {
133 name gr_name;
134 groups gr_next;
135 };
136 typedef struct groupnode groupnode;
137 #ifdef __cplusplus
138 extern "C" bool_t xdr_groupnode(XDR *, groupnode*);
139 #elif __STDC__
140 extern bool_t xdr_groupnode(XDR *, groupnode*);
141 #else /* Old Style C */
142 bool_t xdr_groupnode();
143 #endif /* Old Style C */
144
145
146 typedef struct exportnode *exports;
147 #ifdef __cplusplus
148 extern "C" bool_t xdr_exports(XDR *, exports*);
149 #elif __STDC__
150 extern bool_t xdr_exports(XDR *, exports*);
151 #else /* Old Style C */
152 bool_t xdr_exports();
153 #endif /* Old Style C */
154
155
156 struct exportnode {
157 dirpath ex_dir;
158 groups ex_groups;
159 exports ex_next;
160 };
161 typedef struct exportnode exportnode;
162 #ifdef __cplusplus
163 extern "C" bool_t xdr_exportnode(XDR *, exportnode*);
164 #elif __STDC__
165 extern bool_t xdr_exportnode(XDR *, exportnode*);
166 #else /* Old Style C */
167 bool_t xdr_exportnode();
168 #endif /* Old Style C */
169
170
171 struct ppathcnf {
172 int pc_link_max;
173 short pc_max_canon;
174 short pc_max_input;
175 short pc_name_max;
176 short pc_path_max;
177 short pc_pipe_buf;
178 u_char pc_vdisable;
179 char pc_xxx;
180 short pc_mask[2];
181 };
182 typedef struct ppathcnf ppathcnf;
183 #ifdef __cplusplus
184 extern "C" bool_t xdr_ppathcnf(XDR *, ppathcnf*);
185 #elif __STDC__
186 extern bool_t xdr_ppathcnf(XDR *, ppathcnf*);
187 #else /* Old Style C */
188 bool_t xdr_ppathcnf();
189 #endif /* Old Style C */
190
191 #endif /*!_rpcsvc_mount_h*/
192
193 #define MOUNTPROG ((u_long)100005)
194 #define MOUNTVERS ((u_long)1)
195
196 #ifdef __cplusplus
197 #define MOUNTPROC_NULL ((u_long)0)
198 extern "C" void * mountproc_null_1(void *, CLIENT *);
199 extern "C" void * mountproc_null_1_svc(void *, struct svc_req *);
200 #define MOUNTPROC_MNT ((u_long)1)
201 extern "C" fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
202 extern "C" fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
203 #define MOUNTPROC_DUMP ((u_long)2)
204 extern "C" mountlist * mountproc_dump_1(void *, CLIENT *);
205 extern "C" mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
206 #define MOUNTPROC_UMNT ((u_long)3)
207 extern "C" void * mountproc_umnt_1(dirpath *, CLIENT *);
208 extern "C" void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
209 #define MOUNTPROC_UMNTALL ((u_long)4)
210 extern "C" void * mountproc_umntall_1(void *, CLIENT *);
211 extern "C" void * mountproc_umntall_1_svc(void *, struct svc_req *);
212 #define MOUNTPROC_EXPORT ((u_long)5)
213 extern "C" exports * mountproc_export_1(void *, CLIENT *);
214 extern "C" exports * mountproc_export_1_svc(void *, struct svc_req *);
215 #define MOUNTPROC_EXPORTALL ((u_long)6)
216 extern "C" exports * mountproc_exportall_1(void *, CLIENT *);
217 extern "C" exports * mountproc_exportall_1_svc(void *, struct svc_req *);
218
219 #elif __STDC__
220 #define MOUNTPROC_NULL ((u_long)0)
221 extern void * mountproc_null_1(void *, CLIENT *);
222 extern void * mountproc_null_1_svc(void *, struct svc_req *);
223 #define MOUNTPROC_MNT ((u_long)1)
224 extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
225 extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
226 #define MOUNTPROC_DUMP ((u_long)2)
227 extern mountlist * mountproc_dump_1(void *, CLIENT *);
228 extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
229 #define MOUNTPROC_UMNT ((u_long)3)
230 extern void * mountproc_umnt_1(dirpath *, CLIENT *);
231 extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
232 #define MOUNTPROC_UMNTALL ((u_long)4)
233 extern void * mountproc_umntall_1(void *, CLIENT *);
234 extern void * mountproc_umntall_1_svc(void *, struct svc_req *);
235 #define MOUNTPROC_EXPORT ((u_long)5)
236 extern exports * mountproc_export_1(void *, CLIENT *);
237 extern exports * mountproc_export_1_svc(void *, struct svc_req *);
238 #define MOUNTPROC_EXPORTALL ((u_long)6)
239 extern exports * mountproc_exportall_1(void *, CLIENT *);
240 extern exports * mountproc_exportall_1_svc(void *, struct svc_req *);
241
242 #else /* Old Style C */
243 #define MOUNTPROC_NULL ((u_long)0)
244 extern void * mountproc_null_1();
245 extern void * mountproc_null_1_svc();
246 #define MOUNTPROC_MNT ((u_long)1)
247 extern fhstatus * mountproc_mnt_1();
248 extern fhstatus * mountproc_mnt_1_svc();
249 #define MOUNTPROC_DUMP ((u_long)2)
250 extern mountlist * mountproc_dump_1();
251 extern mountlist * mountproc_dump_1_svc();
252 #define MOUNTPROC_UMNT ((u_long)3)
253 extern void * mountproc_umnt_1();
254 extern void * mountproc_umnt_1_svc();
255 #define MOUNTPROC_UMNTALL ((u_long)4)
256 extern void * mountproc_umntall_1();
257 extern void * mountproc_umntall_1_svc();
258 #define MOUNTPROC_EXPORT ((u_long)5)
259 extern exports * mountproc_export_1();
260 extern exports * mountproc_export_1_svc();
261 #define MOUNTPROC_EXPORTALL ((u_long)6)
262 extern exports * mountproc_exportall_1();
263 extern exports * mountproc_exportall_1_svc();
264 #endif /* Old Style C */
265 #define MOUNTVERS_POSIX ((u_long)2)
266
267 #ifdef __cplusplus
268 extern "C" void * mountproc_null_2(void *, CLIENT *);
269 extern "C" void * mountproc_null_2_svc(void *, struct svc_req *);
270 extern "C" fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
271 extern "C" fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
272 extern "C" mountlist * mountproc_dump_2(void *, CLIENT *);
273 extern "C" mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
274 extern "C" void * mountproc_umnt_2(dirpath *, CLIENT *);
275 extern "C" void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
276 extern "C" void * mountproc_umntall_2(void *, CLIENT *);
277 extern "C" void * mountproc_umntall_2_svc(void *, struct svc_req *);
278 extern "C" exports * mountproc_export_2(void *, CLIENT *);
279 extern "C" exports * mountproc_export_2_svc(void *, struct svc_req *);
280 extern "C" exports * mountproc_exportall_2(void *, CLIENT *);
281 extern "C" exports * mountproc_exportall_2_svc(void *, struct svc_req *);
282 #define MOUNTPROC_PATHCONF ((u_long)7)
283 extern "C" ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
284 extern "C" ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
285
286 #elif __STDC__
287 extern void * mountproc_null_2(void *, CLIENT *);
288 extern void * mountproc_null_2_svc(void *, struct svc_req *);
289 extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
290 extern fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
291 extern mountlist * mountproc_dump_2(void *, CLIENT *);
292 extern mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
293 extern void * mountproc_umnt_2(dirpath *, CLIENT *);
294 extern void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
295 extern void * mountproc_umntall_2(void *, CLIENT *);
296 extern void * mountproc_umntall_2_svc(void *, struct svc_req *);
297 extern exports * mountproc_export_2(void *, CLIENT *);
298 extern exports * mountproc_export_2_svc(void *, struct svc_req *);
299 extern exports * mountproc_exportall_2(void *, CLIENT *);
300 extern exports * mountproc_exportall_2_svc(void *, struct svc_req *);
301 #define MOUNTPROC_PATHCONF ((u_long)7)
302 extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
303 extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
304
305 #else /* Old Style C */
306 extern void * mountproc_null_2();
307 extern void * mountproc_null_2_svc();
308 extern fhstatus * mountproc_mnt_2();
309 extern fhstatus * mountproc_mnt_2_svc();
310 extern mountlist * mountproc_dump_2();
311 extern mountlist * mountproc_dump_2_svc();
312 extern void * mountproc_umnt_2();
313 extern void * mountproc_umnt_2_svc();
314 extern void * mountproc_umntall_2();
315 extern void * mountproc_umntall_2_svc();
316 extern exports * mountproc_export_2();
317 extern exports * mountproc_export_2_svc();
318 extern exports * mountproc_exportall_2();
319 extern exports * mountproc_exportall_2_svc();
320 #define MOUNTPROC_PATHCONF ((u_long)7)
321 extern ppathcnf * mountproc_pathconf_2();
322 extern ppathcnf * mountproc_pathconf_2_svc();
323 #endif /* Old Style C */
324
325 #endif /* !_NFSMOUNT_H_RPCGEN */