blob: 64ac617c0120e5412397497e89bf41bfcdf0a408 [file] [log] [blame]
Erik Andersene49d5ec2000-02-08 19:58:47 +00001/* vi: set sw=4 ts=4: */
Eric Andersen1c43d0c1999-11-18 07:58:07 +00002/*
3 * Please do not edit this file.
4 * It was generated using rpcgen.
5 */
6
7#ifndef _NFSMOUNT_H_RPCGEN
8#define _NFSMOUNT_H_RPCGEN
9
10#include <rpc/rpc.h>
11
12/*
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.
20 *
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.
24 *
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.
28 *
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.
32 *
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.
36 *
37 * Sun Microsystems, Inc.
38 * 2550 Garcia Avenue
39 * Mountain View, California 94043
40 */
41/*
42 * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
43 */
44
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
49#define MNTNAMLEN 255
50#define FHSIZE 32
51
52typedef char fhandle[FHSIZE];
53#ifdef __cplusplus
54extern "C" bool_t xdr_fhandle(XDR *, fhandle);
55#elif __STDC__
56extern bool_t xdr_fhandle(XDR *, fhandle);
57#else /* Old Style C */
58bool_t xdr_fhandle();
59#endif /* Old Style C */
60
61
62struct fhstatus {
63 u_int fhs_status;
64 union {
65 fhandle fhs_fhandle;
66 } fhstatus_u;
67};
68typedef struct fhstatus fhstatus;
69#ifdef __cplusplus
70extern "C" bool_t xdr_fhstatus(XDR *, fhstatus*);
71#elif __STDC__
72extern bool_t xdr_fhstatus(XDR *, fhstatus*);
73#else /* Old Style C */
74bool_t xdr_fhstatus();
75#endif /* Old Style C */
76
77
78typedef char *dirpath;
79#ifdef __cplusplus
80extern "C" bool_t xdr_dirpath(XDR *, dirpath*);
81#elif __STDC__
82extern bool_t xdr_dirpath(XDR *, dirpath*);
83#else /* Old Style C */
84bool_t xdr_dirpath();
85#endif /* Old Style C */
86
87
88typedef char *name;
89#ifdef __cplusplus
90extern "C" bool_t xdr_name(XDR *, name*);
91#elif __STDC__
92extern bool_t xdr_name(XDR *, name*);
93#else /* Old Style C */
94bool_t xdr_name();
95#endif /* Old Style C */
96
97
98typedef struct mountbody *mountlist;
99#ifdef __cplusplus
100extern "C" bool_t xdr_mountlist(XDR *, mountlist*);
101#elif __STDC__
102extern bool_t xdr_mountlist(XDR *, mountlist*);
103#else /* Old Style C */
104bool_t xdr_mountlist();
105#endif /* Old Style C */
106
107
108struct mountbody {
109 name ml_hostname;
110 dirpath ml_directory;
111 mountlist ml_next;
112};
113typedef struct mountbody mountbody;
114#ifdef __cplusplus
115extern "C" bool_t xdr_mountbody(XDR *, mountbody*);
116#elif __STDC__
117extern bool_t xdr_mountbody(XDR *, mountbody*);
118#else /* Old Style C */
119bool_t xdr_mountbody();
120#endif /* Old Style C */
121
122
123typedef struct groupnode *groups;
124#ifdef __cplusplus
125extern "C" bool_t xdr_groups(XDR *, groups*);
126#elif __STDC__
127extern bool_t xdr_groups(XDR *, groups*);
128#else /* Old Style C */
129bool_t xdr_groups();
130#endif /* Old Style C */
131
132
133struct groupnode {
134 name gr_name;
135 groups gr_next;
136};
137typedef struct groupnode groupnode;
138#ifdef __cplusplus
139extern "C" bool_t xdr_groupnode(XDR *, groupnode*);
140#elif __STDC__
141extern bool_t xdr_groupnode(XDR *, groupnode*);
142#else /* Old Style C */
143bool_t xdr_groupnode();
144#endif /* Old Style C */
145
146
147typedef struct exportnode *exports;
148#ifdef __cplusplus
149extern "C" bool_t xdr_exports(XDR *, exports*);
150#elif __STDC__
151extern bool_t xdr_exports(XDR *, exports*);
152#else /* Old Style C */
153bool_t xdr_exports();
154#endif /* Old Style C */
155
156
157struct exportnode {
158 dirpath ex_dir;
159 groups ex_groups;
160 exports ex_next;
161};
162typedef struct exportnode exportnode;
163#ifdef __cplusplus
164extern "C" bool_t xdr_exportnode(XDR *, exportnode*);
165#elif __STDC__
166extern bool_t xdr_exportnode(XDR *, exportnode*);
167#else /* Old Style C */
168bool_t xdr_exportnode();
169#endif /* Old Style C */
170
171
172struct ppathcnf {
173 int pc_link_max;
174 short pc_max_canon;
175 short pc_max_input;
176 short pc_name_max;
177 short pc_path_max;
178 short pc_pipe_buf;
179 u_char pc_vdisable;
180 char pc_xxx;
181 short pc_mask[2];
182};
183typedef struct ppathcnf ppathcnf;
184#ifdef __cplusplus
185extern "C" bool_t xdr_ppathcnf(XDR *, ppathcnf*);
186#elif __STDC__
187extern bool_t xdr_ppathcnf(XDR *, ppathcnf*);
188#else /* Old Style C */
189bool_t xdr_ppathcnf();
190#endif /* Old Style C */
191
192#endif /*!_rpcsvc_mount_h*/
193
194#define MOUNTPROG ((u_long)100005)
195#define MOUNTVERS ((u_long)1)
196
197#ifdef __cplusplus
198#define MOUNTPROC_NULL ((u_long)0)
199extern "C" void * mountproc_null_1(void *, CLIENT *);
200extern "C" void * mountproc_null_1_svc(void *, struct svc_req *);
201#define MOUNTPROC_MNT ((u_long)1)
202extern "C" fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
203extern "C" fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
204#define MOUNTPROC_DUMP ((u_long)2)
205extern "C" mountlist * mountproc_dump_1(void *, CLIENT *);
206extern "C" mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
207#define MOUNTPROC_UMNT ((u_long)3)
208extern "C" void * mountproc_umnt_1(dirpath *, CLIENT *);
209extern "C" void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
210#define MOUNTPROC_UMNTALL ((u_long)4)
211extern "C" void * mountproc_umntall_1(void *, CLIENT *);
212extern "C" void * mountproc_umntall_1_svc(void *, struct svc_req *);
213#define MOUNTPROC_EXPORT ((u_long)5)
214extern "C" exports * mountproc_export_1(void *, CLIENT *);
215extern "C" exports * mountproc_export_1_svc(void *, struct svc_req *);
216#define MOUNTPROC_EXPORTALL ((u_long)6)
217extern "C" exports * mountproc_exportall_1(void *, CLIENT *);
218extern "C" exports * mountproc_exportall_1_svc(void *, struct svc_req *);
219
220#elif __STDC__
221#define MOUNTPROC_NULL ((u_long)0)
222extern void * mountproc_null_1(void *, CLIENT *);
223extern void * mountproc_null_1_svc(void *, struct svc_req *);
224#define MOUNTPROC_MNT ((u_long)1)
225extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
226extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
227#define MOUNTPROC_DUMP ((u_long)2)
228extern mountlist * mountproc_dump_1(void *, CLIENT *);
229extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
230#define MOUNTPROC_UMNT ((u_long)3)
231extern void * mountproc_umnt_1(dirpath *, CLIENT *);
232extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
233#define MOUNTPROC_UMNTALL ((u_long)4)
234extern void * mountproc_umntall_1(void *, CLIENT *);
235extern void * mountproc_umntall_1_svc(void *, struct svc_req *);
236#define MOUNTPROC_EXPORT ((u_long)5)
237extern exports * mountproc_export_1(void *, CLIENT *);
238extern exports * mountproc_export_1_svc(void *, struct svc_req *);
239#define MOUNTPROC_EXPORTALL ((u_long)6)
240extern exports * mountproc_exportall_1(void *, CLIENT *);
241extern exports * mountproc_exportall_1_svc(void *, struct svc_req *);
242
243#else /* Old Style C */
244#define MOUNTPROC_NULL ((u_long)0)
245extern void * mountproc_null_1();
246extern void * mountproc_null_1_svc();
247#define MOUNTPROC_MNT ((u_long)1)
248extern fhstatus * mountproc_mnt_1();
249extern fhstatus * mountproc_mnt_1_svc();
250#define MOUNTPROC_DUMP ((u_long)2)
251extern mountlist * mountproc_dump_1();
252extern mountlist * mountproc_dump_1_svc();
253#define MOUNTPROC_UMNT ((u_long)3)
254extern void * mountproc_umnt_1();
255extern void * mountproc_umnt_1_svc();
256#define MOUNTPROC_UMNTALL ((u_long)4)
257extern void * mountproc_umntall_1();
258extern void * mountproc_umntall_1_svc();
259#define MOUNTPROC_EXPORT ((u_long)5)
260extern exports * mountproc_export_1();
261extern exports * mountproc_export_1_svc();
262#define MOUNTPROC_EXPORTALL ((u_long)6)
263extern exports * mountproc_exportall_1();
264extern exports * mountproc_exportall_1_svc();
265#endif /* Old Style C */
266#define MOUNTVERS_POSIX ((u_long)2)
267
268#ifdef __cplusplus
269extern "C" void * mountproc_null_2(void *, CLIENT *);
270extern "C" void * mountproc_null_2_svc(void *, struct svc_req *);
271extern "C" fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
272extern "C" fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
273extern "C" mountlist * mountproc_dump_2(void *, CLIENT *);
274extern "C" mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
275extern "C" void * mountproc_umnt_2(dirpath *, CLIENT *);
276extern "C" void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
277extern "C" void * mountproc_umntall_2(void *, CLIENT *);
278extern "C" void * mountproc_umntall_2_svc(void *, struct svc_req *);
279extern "C" exports * mountproc_export_2(void *, CLIENT *);
280extern "C" exports * mountproc_export_2_svc(void *, struct svc_req *);
281extern "C" exports * mountproc_exportall_2(void *, CLIENT *);
282extern "C" exports * mountproc_exportall_2_svc(void *, struct svc_req *);
283#define MOUNTPROC_PATHCONF ((u_long)7)
284extern "C" ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
285extern "C" ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
286
287#elif __STDC__
288extern void * mountproc_null_2(void *, CLIENT *);
289extern void * mountproc_null_2_svc(void *, struct svc_req *);
290extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
291extern fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
292extern mountlist * mountproc_dump_2(void *, CLIENT *);
293extern mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
294extern void * mountproc_umnt_2(dirpath *, CLIENT *);
295extern void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
296extern void * mountproc_umntall_2(void *, CLIENT *);
297extern void * mountproc_umntall_2_svc(void *, struct svc_req *);
298extern exports * mountproc_export_2(void *, CLIENT *);
299extern exports * mountproc_export_2_svc(void *, struct svc_req *);
300extern exports * mountproc_exportall_2(void *, CLIENT *);
301extern exports * mountproc_exportall_2_svc(void *, struct svc_req *);
302#define MOUNTPROC_PATHCONF ((u_long)7)
303extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
304extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
305
306#else /* Old Style C */
307extern void * mountproc_null_2();
308extern void * mountproc_null_2_svc();
309extern fhstatus * mountproc_mnt_2();
310extern fhstatus * mountproc_mnt_2_svc();
311extern mountlist * mountproc_dump_2();
312extern mountlist * mountproc_dump_2_svc();
313extern void * mountproc_umnt_2();
314extern void * mountproc_umnt_2_svc();
315extern void * mountproc_umntall_2();
316extern void * mountproc_umntall_2_svc();
317extern exports * mountproc_export_2();
318extern exports * mountproc_export_2_svc();
319extern exports * mountproc_exportall_2();
320extern exports * mountproc_exportall_2_svc();
321#define MOUNTPROC_PATHCONF ((u_long)7)
322extern ppathcnf * mountproc_pathconf_2();
323extern ppathcnf * mountproc_pathconf_2_svc();
324#endif /* Old Style C */
325
326#endif /* !_NFSMOUNT_H_RPCGEN */