OSDN Git Service

2013.10.24
[uclinux-h8/uClinux-dist.git] / user / mount / 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 #ifdef EMBED
10 #include <gnu/types.h>
11 #endif
12 #include <rpc/rpc.h>
13
14 /*
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.
22  *
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.
26  *
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.
30  *
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.
34  *
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.
38  *
39  * Sun Microsystems, Inc.
40  * 2550 Garcia Avenue
41  * Mountain View, California  94043
42  */
43 /*
44  * Copyright (c) 1985, 1990 by Sun Microsystems, Inc.
45  */
46
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
51 #define MNTNAMLEN 255
52 #define FHSIZE 32
53
54 typedef char fhandle[FHSIZE];
55 #ifdef __cplusplus 
56 extern "C" bool_t xdr_fhandle(XDR *, fhandle);
57 #elif __STDC__ 
58 extern  bool_t xdr_fhandle(XDR *, fhandle);
59 #else /* Old Style C */ 
60 bool_t xdr_fhandle();
61 #endif /* Old Style C */ 
62
63
64 struct fhstatus {
65         u_int fhs_status;
66         union {
67                 fhandle fhs_fhandle;
68         } fhstatus_u;
69 };
70 typedef struct fhstatus fhstatus;
71 #ifdef __cplusplus 
72 extern "C" bool_t xdr_fhstatus(XDR *, fhstatus*);
73 #elif __STDC__ 
74 extern  bool_t xdr_fhstatus(XDR *, fhstatus*);
75 #else /* Old Style C */ 
76 bool_t xdr_fhstatus();
77 #endif /* Old Style C */ 
78
79
80 typedef char *dirpath;
81 #ifdef __cplusplus 
82 extern "C" bool_t xdr_dirpath(XDR *, dirpath*);
83 #elif __STDC__ 
84 extern  bool_t xdr_dirpath(XDR *, dirpath*);
85 #else /* Old Style C */ 
86 bool_t xdr_dirpath();
87 #endif /* Old Style C */ 
88
89
90 typedef char *name;
91 #ifdef __cplusplus 
92 extern "C" bool_t xdr_name(XDR *, name*);
93 #elif __STDC__ 
94 extern  bool_t xdr_name(XDR *, name*);
95 #else /* Old Style C */ 
96 bool_t xdr_name();
97 #endif /* Old Style C */ 
98
99
100 typedef struct mountbody *mountlist;
101 #ifdef __cplusplus 
102 extern "C" bool_t xdr_mountlist(XDR *, mountlist*);
103 #elif __STDC__ 
104 extern  bool_t xdr_mountlist(XDR *, mountlist*);
105 #else /* Old Style C */ 
106 bool_t xdr_mountlist();
107 #endif /* Old Style C */ 
108
109
110 struct mountbody {
111         name ml_hostname;
112         dirpath ml_directory;
113         mountlist ml_next;
114 };
115 typedef struct mountbody mountbody;
116 #ifdef __cplusplus 
117 extern "C" bool_t xdr_mountbody(XDR *, mountbody*);
118 #elif __STDC__ 
119 extern  bool_t xdr_mountbody(XDR *, mountbody*);
120 #else /* Old Style C */ 
121 bool_t xdr_mountbody();
122 #endif /* Old Style C */ 
123
124
125 typedef struct groupnode *groups;
126 #ifdef __cplusplus 
127 extern "C" bool_t xdr_groups(XDR *, groups*);
128 #elif __STDC__ 
129 extern  bool_t xdr_groups(XDR *, groups*);
130 #else /* Old Style C */ 
131 bool_t xdr_groups();
132 #endif /* Old Style C */ 
133
134
135 struct groupnode {
136         name gr_name;
137         groups gr_next;
138 };
139 typedef struct groupnode groupnode;
140 #ifdef __cplusplus 
141 extern "C" bool_t xdr_groupnode(XDR *, groupnode*);
142 #elif __STDC__ 
143 extern  bool_t xdr_groupnode(XDR *, groupnode*);
144 #else /* Old Style C */ 
145 bool_t xdr_groupnode();
146 #endif /* Old Style C */ 
147
148
149 typedef struct exportnode *exports;
150 #ifdef __cplusplus 
151 extern "C" bool_t xdr_exports(XDR *, exports*);
152 #elif __STDC__ 
153 extern  bool_t xdr_exports(XDR *, exports*);
154 #else /* Old Style C */ 
155 bool_t xdr_exports();
156 #endif /* Old Style C */ 
157
158
159 struct exportnode {
160         dirpath ex_dir;
161         groups ex_groups;
162         exports ex_next;
163 };
164 typedef struct exportnode exportnode;
165 #ifdef __cplusplus 
166 extern "C" bool_t xdr_exportnode(XDR *, exportnode*);
167 #elif __STDC__ 
168 extern  bool_t xdr_exportnode(XDR *, exportnode*);
169 #else /* Old Style C */ 
170 bool_t xdr_exportnode();
171 #endif /* Old Style C */ 
172
173
174 struct ppathcnf {
175         int pc_link_max;
176         short pc_max_canon;
177         short pc_max_input;
178         short pc_name_max;
179         short pc_path_max;
180         short pc_pipe_buf;
181         u_char pc_vdisable;
182         char pc_xxx;
183         short pc_mask[2];
184 };
185 typedef struct ppathcnf ppathcnf;
186 #ifdef __cplusplus 
187 extern "C" bool_t xdr_ppathcnf(XDR *, ppathcnf*);
188 #elif __STDC__ 
189 extern  bool_t xdr_ppathcnf(XDR *, ppathcnf*);
190 #else /* Old Style C */ 
191 bool_t xdr_ppathcnf();
192 #endif /* Old Style C */ 
193
194 #endif /*!_rpcsvc_mount_h*/
195
196 #define MOUNTPROG ((u_long)100005)
197 #define MOUNTVERS ((u_long)1)
198
199 #ifdef __cplusplus
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 *);
221
222 #elif __STDC__
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 *);
244
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)
269
270 #ifdef __cplusplus
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 *);
288
289 #elif __STDC__
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 *);
307
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 */ 
327
328 #endif /* !_NFSMOUNT_H_RPCGEN */