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