2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #ifndef _NFSMOUNT_H_RPCGEN
7 #define _NFSMOUNT_H_RPCGEN
10 #include <gnu/types.h>
15 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
16 * unrestricted use provided that this legend is included on all tape
17 * media and as a part of the software program in whole or part. Users
18 * may copy or modify Sun RPC without charge, but are not authorized
19 * to license or distribute it to anyone else except as part of a product or
20 * program developed by the user or with the express written consent of
21 * Sun Microsystems, Inc.
23 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
24 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
25 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
27 * Sun RPC is provided with no support and without any obligation on the
28 * part of Sun Microsystems, Inc. to assist in its use, correction,
29 * modification or enhancement.
31 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
32 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
33 * OR ANY PART THEREOF.
35 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
36 * or profits or other special, indirect and consequential damages, even if
37 * Sun has been advised of the possibility of such damages.
39 * Sun Microsystems, Inc.
41 * Mountain View, California 94043
44 * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
47 /* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */
48 #ifndef _rpcsvc_mount_h
49 #define _rpcsvc_mount_h
50 #define MNTPATHLEN 1024
54 typedef char fhandle[FHSIZE];
56 extern "C" bool_t xdr_fhandle(XDR *, fhandle);
58 extern bool_t xdr_fhandle(XDR *, fhandle);
59 #else /* Old Style C */
61 #endif /* Old Style C */
70 typedef struct fhstatus fhstatus;
72 extern "C" bool_t xdr_fhstatus(XDR *, fhstatus*);
74 extern bool_t xdr_fhstatus(XDR *, fhstatus*);
75 #else /* Old Style C */
76 bool_t xdr_fhstatus();
77 #endif /* Old Style C */
80 typedef char *dirpath;
82 extern "C" bool_t xdr_dirpath(XDR *, dirpath*);
84 extern bool_t xdr_dirpath(XDR *, dirpath*);
85 #else /* Old Style C */
87 #endif /* Old Style C */
92 extern "C" bool_t xdr_name(XDR *, name*);
94 extern bool_t xdr_name(XDR *, name*);
95 #else /* Old Style C */
97 #endif /* Old Style C */
100 typedef struct mountbody *mountlist;
102 extern "C" bool_t xdr_mountlist(XDR *, mountlist*);
104 extern bool_t xdr_mountlist(XDR *, mountlist*);
105 #else /* Old Style C */
106 bool_t xdr_mountlist();
107 #endif /* Old Style C */
112 dirpath ml_directory;
115 typedef struct mountbody mountbody;
117 extern "C" bool_t xdr_mountbody(XDR *, mountbody*);
119 extern bool_t xdr_mountbody(XDR *, mountbody*);
120 #else /* Old Style C */
121 bool_t xdr_mountbody();
122 #endif /* Old Style C */
125 typedef struct groupnode *groups;
127 extern "C" bool_t xdr_groups(XDR *, groups*);
129 extern bool_t xdr_groups(XDR *, groups*);
130 #else /* Old Style C */
132 #endif /* Old Style C */
139 typedef struct groupnode groupnode;
141 extern "C" bool_t xdr_groupnode(XDR *, groupnode*);
143 extern bool_t xdr_groupnode(XDR *, groupnode*);
144 #else /* Old Style C */
145 bool_t xdr_groupnode();
146 #endif /* Old Style C */
149 typedef struct exportnode *exports;
151 extern "C" bool_t xdr_exports(XDR *, exports*);
153 extern bool_t xdr_exports(XDR *, exports*);
154 #else /* Old Style C */
155 bool_t xdr_exports();
156 #endif /* Old Style C */
164 typedef struct exportnode exportnode;
166 extern "C" bool_t xdr_exportnode(XDR *, exportnode*);
168 extern bool_t xdr_exportnode(XDR *, exportnode*);
169 #else /* Old Style C */
170 bool_t xdr_exportnode();
171 #endif /* Old Style C */
185 typedef struct ppathcnf ppathcnf;
187 extern "C" bool_t xdr_ppathcnf(XDR *, ppathcnf*);
189 extern bool_t xdr_ppathcnf(XDR *, ppathcnf*);
190 #else /* Old Style C */
191 bool_t xdr_ppathcnf();
192 #endif /* Old Style C */
194 #endif /*!_rpcsvc_mount_h*/
196 #define MOUNTPROG ((u_long)100005)
197 #define MOUNTVERS ((u_long)1)
200 #define MOUNTPROC_NULL ((u_long)0)
201 extern "C" void * mountproc_null_1(void *, CLIENT *);
202 extern "C" void * mountproc_null_1_svc(void *, struct svc_req *);
203 #define MOUNTPROC_MNT ((u_long)1)
204 extern "C" fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
205 extern "C" fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
206 #define MOUNTPROC_DUMP ((u_long)2)
207 extern "C" mountlist * mountproc_dump_1(void *, CLIENT *);
208 extern "C" mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
209 #define MOUNTPROC_UMNT ((u_long)3)
210 extern "C" void * mountproc_umnt_1(dirpath *, CLIENT *);
211 extern "C" void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
212 #define MOUNTPROC_UMNTALL ((u_long)4)
213 extern "C" void * mountproc_umntall_1(void *, CLIENT *);
214 extern "C" void * mountproc_umntall_1_svc(void *, struct svc_req *);
215 #define MOUNTPROC_EXPORT ((u_long)5)
216 extern "C" exports * mountproc_export_1(void *, CLIENT *);
217 extern "C" exports * mountproc_export_1_svc(void *, struct svc_req *);
218 #define MOUNTPROC_EXPORTALL ((u_long)6)
219 extern "C" exports * mountproc_exportall_1(void *, CLIENT *);
220 extern "C" exports * mountproc_exportall_1_svc(void *, struct svc_req *);
223 #define MOUNTPROC_NULL ((u_long)0)
224 extern void * mountproc_null_1(void *, CLIENT *);
225 extern void * mountproc_null_1_svc(void *, struct svc_req *);
226 #define MOUNTPROC_MNT ((u_long)1)
227 extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
228 extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
229 #define MOUNTPROC_DUMP ((u_long)2)
230 extern mountlist * mountproc_dump_1(void *, CLIENT *);
231 extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
232 #define MOUNTPROC_UMNT ((u_long)3)
233 extern void * mountproc_umnt_1(dirpath *, CLIENT *);
234 extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
235 #define MOUNTPROC_UMNTALL ((u_long)4)
236 extern void * mountproc_umntall_1(void *, CLIENT *);
237 extern void * mountproc_umntall_1_svc(void *, struct svc_req *);
238 #define MOUNTPROC_EXPORT ((u_long)5)
239 extern exports * mountproc_export_1(void *, CLIENT *);
240 extern exports * mountproc_export_1_svc(void *, struct svc_req *);
241 #define MOUNTPROC_EXPORTALL ((u_long)6)
242 extern exports * mountproc_exportall_1(void *, CLIENT *);
243 extern exports * mountproc_exportall_1_svc(void *, struct svc_req *);
245 #else /* Old Style C */
246 #define MOUNTPROC_NULL ((u_long)0)
247 extern void * mountproc_null_1();
248 extern void * mountproc_null_1_svc();
249 #define MOUNTPROC_MNT ((u_long)1)
250 extern fhstatus * mountproc_mnt_1();
251 extern fhstatus * mountproc_mnt_1_svc();
252 #define MOUNTPROC_DUMP ((u_long)2)
253 extern mountlist * mountproc_dump_1();
254 extern mountlist * mountproc_dump_1_svc();
255 #define MOUNTPROC_UMNT ((u_long)3)
256 extern void * mountproc_umnt_1();
257 extern void * mountproc_umnt_1_svc();
258 #define MOUNTPROC_UMNTALL ((u_long)4)
259 extern void * mountproc_umntall_1();
260 extern void * mountproc_umntall_1_svc();
261 #define MOUNTPROC_EXPORT ((u_long)5)
262 extern exports * mountproc_export_1();
263 extern exports * mountproc_export_1_svc();
264 #define MOUNTPROC_EXPORTALL ((u_long)6)
265 extern exports * mountproc_exportall_1();
266 extern exports * mountproc_exportall_1_svc();
267 #endif /* Old Style C */
268 #define MOUNTVERS_POSIX ((u_long)2)
271 extern "C" void * mountproc_null_2(void *, CLIENT *);
272 extern "C" void * mountproc_null_2_svc(void *, struct svc_req *);
273 extern "C" fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
274 extern "C" fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
275 extern "C" mountlist * mountproc_dump_2(void *, CLIENT *);
276 extern "C" mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
277 extern "C" void * mountproc_umnt_2(dirpath *, CLIENT *);
278 extern "C" void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
279 extern "C" void * mountproc_umntall_2(void *, CLIENT *);
280 extern "C" void * mountproc_umntall_2_svc(void *, struct svc_req *);
281 extern "C" exports * mountproc_export_2(void *, CLIENT *);
282 extern "C" exports * mountproc_export_2_svc(void *, struct svc_req *);
283 extern "C" exports * mountproc_exportall_2(void *, CLIENT *);
284 extern "C" exports * mountproc_exportall_2_svc(void *, struct svc_req *);
285 #define MOUNTPROC_PATHCONF ((u_long)7)
286 extern "C" ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
287 extern "C" ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
290 extern void * mountproc_null_2(void *, CLIENT *);
291 extern void * mountproc_null_2_svc(void *, struct svc_req *);
292 extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
293 extern fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
294 extern mountlist * mountproc_dump_2(void *, CLIENT *);
295 extern mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
296 extern void * mountproc_umnt_2(dirpath *, CLIENT *);
297 extern void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
298 extern void * mountproc_umntall_2(void *, CLIENT *);
299 extern void * mountproc_umntall_2_svc(void *, struct svc_req *);
300 extern exports * mountproc_export_2(void *, CLIENT *);
301 extern exports * mountproc_export_2_svc(void *, struct svc_req *);
302 extern exports * mountproc_exportall_2(void *, CLIENT *);
303 extern exports * mountproc_exportall_2_svc(void *, struct svc_req *);
304 #define MOUNTPROC_PATHCONF ((u_long)7)
305 extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
306 extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
308 #else /* Old Style C */
309 extern void * mountproc_null_2();
310 extern void * mountproc_null_2_svc();
311 extern fhstatus * mountproc_mnt_2();
312 extern fhstatus * mountproc_mnt_2_svc();
313 extern mountlist * mountproc_dump_2();
314 extern mountlist * mountproc_dump_2_svc();
315 extern void * mountproc_umnt_2();
316 extern void * mountproc_umnt_2_svc();
317 extern void * mountproc_umntall_2();
318 extern void * mountproc_umntall_2_svc();
319 extern exports * mountproc_export_2();
320 extern exports * mountproc_export_2_svc();
321 extern exports * mountproc_exportall_2();
322 extern exports * mountproc_exportall_2_svc();
323 #define MOUNTPROC_PATHCONF ((u_long)7)
324 extern ppathcnf * mountproc_pathconf_2();
325 extern ppathcnf * mountproc_pathconf_2_svc();
326 #endif /* Old Style C */
328 #endif /* !_NFSMOUNT_H_RPCGEN */