blob: 73c71fc68c58a0d434f1b281b0972c1246414c52 [file] [log] [blame]
Eric Andersen1c43d0c1999-11-18 07:58:07 +00001/*
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
51typedef char fhandle[FHSIZE];
52#ifdef __cplusplus
53extern "C" bool_t xdr_fhandle(XDR *, fhandle);
54#elif __STDC__
55extern bool_t xdr_fhandle(XDR *, fhandle);
56#else /* Old Style C */
57bool_t xdr_fhandle();
58#endif /* Old Style C */
59
60
61struct fhstatus {
62 u_int fhs_status;
63 union {
64 fhandle fhs_fhandle;
65 } fhstatus_u;
66};
67typedef struct fhstatus fhstatus;
68#ifdef __cplusplus
69extern "C" bool_t xdr_fhstatus(XDR *, fhstatus*);
70#elif __STDC__
71extern bool_t xdr_fhstatus(XDR *, fhstatus*);
72#else /* Old Style C */
73bool_t xdr_fhstatus();
74#endif /* Old Style C */
75
76
77typedef char *dirpath;
78#ifdef __cplusplus
79extern "C" bool_t xdr_dirpath(XDR *, dirpath*);
80#elif __STDC__
81extern bool_t xdr_dirpath(XDR *, dirpath*);
82#else /* Old Style C */
83bool_t xdr_dirpath();
84#endif /* Old Style C */
85
86
87typedef char *name;
88#ifdef __cplusplus
89extern "C" bool_t xdr_name(XDR *, name*);
90#elif __STDC__
91extern bool_t xdr_name(XDR *, name*);
92#else /* Old Style C */
93bool_t xdr_name();
94#endif /* Old Style C */
95
96
97typedef struct mountbody *mountlist;
98#ifdef __cplusplus
99extern "C" bool_t xdr_mountlist(XDR *, mountlist*);
100#elif __STDC__
101extern bool_t xdr_mountlist(XDR *, mountlist*);
102#else /* Old Style C */
103bool_t xdr_mountlist();
104#endif /* Old Style C */
105
106
107struct mountbody {
108 name ml_hostname;
109 dirpath ml_directory;
110 mountlist ml_next;
111};
112typedef struct mountbody mountbody;
113#ifdef __cplusplus
114extern "C" bool_t xdr_mountbody(XDR *, mountbody*);
115#elif __STDC__
116extern bool_t xdr_mountbody(XDR *, mountbody*);
117#else /* Old Style C */
118bool_t xdr_mountbody();
119#endif /* Old Style C */
120
121
122typedef struct groupnode *groups;
123#ifdef __cplusplus
124extern "C" bool_t xdr_groups(XDR *, groups*);
125#elif __STDC__
126extern bool_t xdr_groups(XDR *, groups*);
127#else /* Old Style C */
128bool_t xdr_groups();
129#endif /* Old Style C */
130
131
132struct groupnode {
133 name gr_name;
134 groups gr_next;
135};
136typedef struct groupnode groupnode;
137#ifdef __cplusplus
138extern "C" bool_t xdr_groupnode(XDR *, groupnode*);
139#elif __STDC__
140extern bool_t xdr_groupnode(XDR *, groupnode*);
141#else /* Old Style C */
142bool_t xdr_groupnode();
143#endif /* Old Style C */
144
145
146typedef struct exportnode *exports;
147#ifdef __cplusplus
148extern "C" bool_t xdr_exports(XDR *, exports*);
149#elif __STDC__
150extern bool_t xdr_exports(XDR *, exports*);
151#else /* Old Style C */
152bool_t xdr_exports();
153#endif /* Old Style C */
154
155
156struct exportnode {
157 dirpath ex_dir;
158 groups ex_groups;
159 exports ex_next;
160};
161typedef struct exportnode exportnode;
162#ifdef __cplusplus
163extern "C" bool_t xdr_exportnode(XDR *, exportnode*);
164#elif __STDC__
165extern bool_t xdr_exportnode(XDR *, exportnode*);
166#else /* Old Style C */
167bool_t xdr_exportnode();
168#endif /* Old Style C */
169
170
171struct 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};
182typedef struct ppathcnf ppathcnf;
183#ifdef __cplusplus
184extern "C" bool_t xdr_ppathcnf(XDR *, ppathcnf*);
185#elif __STDC__
186extern bool_t xdr_ppathcnf(XDR *, ppathcnf*);
187#else /* Old Style C */
188bool_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)
198extern "C" void * mountproc_null_1(void *, CLIENT *);
199extern "C" void * mountproc_null_1_svc(void *, struct svc_req *);
200#define MOUNTPROC_MNT ((u_long)1)
201extern "C" fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
202extern "C" fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
203#define MOUNTPROC_DUMP ((u_long)2)
204extern "C" mountlist * mountproc_dump_1(void *, CLIENT *);
205extern "C" mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
206#define MOUNTPROC_UMNT ((u_long)3)
207extern "C" void * mountproc_umnt_1(dirpath *, CLIENT *);
208extern "C" void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
209#define MOUNTPROC_UMNTALL ((u_long)4)
210extern "C" void * mountproc_umntall_1(void *, CLIENT *);
211extern "C" void * mountproc_umntall_1_svc(void *, struct svc_req *);
212#define MOUNTPROC_EXPORT ((u_long)5)
213extern "C" exports * mountproc_export_1(void *, CLIENT *);
214extern "C" exports * mountproc_export_1_svc(void *, struct svc_req *);
215#define MOUNTPROC_EXPORTALL ((u_long)6)
216extern "C" exports * mountproc_exportall_1(void *, CLIENT *);
217extern "C" exports * mountproc_exportall_1_svc(void *, struct svc_req *);
218
219#elif __STDC__
220#define MOUNTPROC_NULL ((u_long)0)
221extern void * mountproc_null_1(void *, CLIENT *);
222extern void * mountproc_null_1_svc(void *, struct svc_req *);
223#define MOUNTPROC_MNT ((u_long)1)
224extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
225extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
226#define MOUNTPROC_DUMP ((u_long)2)
227extern mountlist * mountproc_dump_1(void *, CLIENT *);
228extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
229#define MOUNTPROC_UMNT ((u_long)3)
230extern void * mountproc_umnt_1(dirpath *, CLIENT *);
231extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
232#define MOUNTPROC_UMNTALL ((u_long)4)
233extern void * mountproc_umntall_1(void *, CLIENT *);
234extern void * mountproc_umntall_1_svc(void *, struct svc_req *);
235#define MOUNTPROC_EXPORT ((u_long)5)
236extern exports * mountproc_export_1(void *, CLIENT *);
237extern exports * mountproc_export_1_svc(void *, struct svc_req *);
238#define MOUNTPROC_EXPORTALL ((u_long)6)
239extern exports * mountproc_exportall_1(void *, CLIENT *);
240extern exports * mountproc_exportall_1_svc(void *, struct svc_req *);
241
242#else /* Old Style C */
243#define MOUNTPROC_NULL ((u_long)0)
244extern void * mountproc_null_1();
245extern void * mountproc_null_1_svc();
246#define MOUNTPROC_MNT ((u_long)1)
247extern fhstatus * mountproc_mnt_1();
248extern fhstatus * mountproc_mnt_1_svc();
249#define MOUNTPROC_DUMP ((u_long)2)
250extern mountlist * mountproc_dump_1();
251extern mountlist * mountproc_dump_1_svc();
252#define MOUNTPROC_UMNT ((u_long)3)
253extern void * mountproc_umnt_1();
254extern void * mountproc_umnt_1_svc();
255#define MOUNTPROC_UMNTALL ((u_long)4)
256extern void * mountproc_umntall_1();
257extern void * mountproc_umntall_1_svc();
258#define MOUNTPROC_EXPORT ((u_long)5)
259extern exports * mountproc_export_1();
260extern exports * mountproc_export_1_svc();
261#define MOUNTPROC_EXPORTALL ((u_long)6)
262extern exports * mountproc_exportall_1();
263extern exports * mountproc_exportall_1_svc();
264#endif /* Old Style C */
265#define MOUNTVERS_POSIX ((u_long)2)
266
267#ifdef __cplusplus
268extern "C" void * mountproc_null_2(void *, CLIENT *);
269extern "C" void * mountproc_null_2_svc(void *, struct svc_req *);
270extern "C" fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
271extern "C" fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
272extern "C" mountlist * mountproc_dump_2(void *, CLIENT *);
273extern "C" mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
274extern "C" void * mountproc_umnt_2(dirpath *, CLIENT *);
275extern "C" void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
276extern "C" void * mountproc_umntall_2(void *, CLIENT *);
277extern "C" void * mountproc_umntall_2_svc(void *, struct svc_req *);
278extern "C" exports * mountproc_export_2(void *, CLIENT *);
279extern "C" exports * mountproc_export_2_svc(void *, struct svc_req *);
280extern "C" exports * mountproc_exportall_2(void *, CLIENT *);
281extern "C" exports * mountproc_exportall_2_svc(void *, struct svc_req *);
282#define MOUNTPROC_PATHCONF ((u_long)7)
283extern "C" ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
284extern "C" ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
285
286#elif __STDC__
287extern void * mountproc_null_2(void *, CLIENT *);
288extern void * mountproc_null_2_svc(void *, struct svc_req *);
289extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
290extern fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
291extern mountlist * mountproc_dump_2(void *, CLIENT *);
292extern mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
293extern void * mountproc_umnt_2(dirpath *, CLIENT *);
294extern void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
295extern void * mountproc_umntall_2(void *, CLIENT *);
296extern void * mountproc_umntall_2_svc(void *, struct svc_req *);
297extern exports * mountproc_export_2(void *, CLIENT *);
298extern exports * mountproc_export_2_svc(void *, struct svc_req *);
299extern exports * mountproc_exportall_2(void *, CLIENT *);
300extern exports * mountproc_exportall_2_svc(void *, struct svc_req *);
301#define MOUNTPROC_PATHCONF ((u_long)7)
302extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
303extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
304
305#else /* Old Style C */
306extern void * mountproc_null_2();
307extern void * mountproc_null_2_svc();
308extern fhstatus * mountproc_mnt_2();
309extern fhstatus * mountproc_mnt_2_svc();
310extern mountlist * mountproc_dump_2();
311extern mountlist * mountproc_dump_2_svc();
312extern void * mountproc_umnt_2();
313extern void * mountproc_umnt_2_svc();
314extern void * mountproc_umntall_2();
315extern void * mountproc_umntall_2_svc();
316extern exports * mountproc_export_2();
317extern exports * mountproc_export_2_svc();
318extern exports * mountproc_exportall_2();
319extern exports * mountproc_exportall_2_svc();
320#define MOUNTPROC_PATHCONF ((u_long)7)
321extern ppathcnf * mountproc_pathconf_2();
322extern ppathcnf * mountproc_pathconf_2_svc();
323#endif /* Old Style C */
324
325#endif /* !_NFSMOUNT_H_RPCGEN */