1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5 
6 #ifndef _MOUNT_H_RPCGEN
7 #define	_MOUNT_H_RPCGEN
8 
9 #include <rpc/rpc.h>
10 
11 #ifdef __cplusplus
12 extern "C" {
13 #endif
14 
15 #define	MNTPATHLEN 1024
16 #define	MNTNAMLEN 255
17 #define	FHSIZE 32
18 #define	FHSIZE3 64
19 
20 typedef char fhandle[FHSIZE];
21 
22 typedef struct {
23 	u_int fhandle3_len;
24 	char *fhandle3_val;
25 } fhandle3;
26 
27 struct fhstatus {
28 	u_int fhs_status;
29 	union {
30 		fhandle fhs_fhandle;
31 	} fhstatus_u;
32 };
33 typedef struct fhstatus fhstatus;
34 
35 #define	fhs_fh	fhstatus_u.fhs_fhandle
36 
37 enum mountstat3 {
38 	MNT_OK = 0,
39 	MNT3ERR_PERM = 1,
40 	MNT3ERR_NOENT = 2,
41 	MNT3ERR_IO = 5,
42 	MNT3ERR_ACCES = 13,
43 	MNT3ERR_NOTDIR = 20,
44 	MNT3ERR_INVAL = 22,
45 	MNT3ERR_NAMETOOLONG = 63,
46 	MNT3ERR_NOTSUPP = 10004,
47 	MNT3ERR_SERVERFAULT = 10006
48 };
49 typedef enum mountstat3 mountstat3;
50 
51 struct mountres3_ok {
52 	fhandle3 fhandle;
53 	struct {
54 		u_int auth_flavors_len;
55 		int *auth_flavors_val;
56 	} auth_flavors;
57 };
58 typedef struct mountres3_ok mountres3_ok;
59 
60 struct mountres3 {
61 	mountstat3 fhs_status;
62 	union {
63 		mountres3_ok mountinfo;
64 	} mountres3_u;
65 };
66 typedef struct mountres3 mountres3;
67 
68 typedef char *dirpath;
69 
70 typedef char *name;
71 
72 typedef struct mountbody *mountlist;
73 
74 struct mountbody {
75 	name ml_hostname;
76 	dirpath ml_directory;
77 	mountlist ml_next;
78 };
79 typedef struct mountbody mountbody;
80 
81 typedef struct groupnode *groups;
82 
83 struct groupnode {
84 	name gr_name;
85 	groups gr_next;
86 };
87 typedef struct groupnode groupnode;
88 
89 typedef struct exportnode *exports;
90 
91 struct exportnode {
92 	dirpath ex_dir;
93 	groups ex_groups;
94 	exports ex_next;
95 };
96 typedef struct exportnode exportnode;
97 
98 struct ppathcnf {
99 	int pc_link_max;
100 	short pc_max_canon;
101 	short pc_max_input;
102 	short pc_name_max;
103 	short pc_path_max;
104 	short pc_pipe_buf;
105 	u_char pc_vdisable;
106 	char pc_xxx;
107 	short pc_mask[2];
108 };
109 typedef struct ppathcnf ppathcnf;
110 
111 #define	MOUNTPROG	100005
112 #define	MOUNTVERS	1
113 
114 #if defined(__STDC__) || defined(__cplusplus)
115 #define	MOUNTPROC_NULL	0
116 extern  void * mountproc_null_1(void *, CLIENT *);
117 extern  void * mountproc_null_1_svc(void *, struct svc_req *);
118 #define	MOUNTPROC_MNT	1
119 extern  fhstatus * mountproc_mnt_1(dirpath *, CLIENT *);
120 extern  fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *);
121 #define	MOUNTPROC_DUMP	2
122 extern  mountlist * mountproc_dump_1(void *, CLIENT *);
123 extern  mountlist * mountproc_dump_1_svc(void *, struct svc_req *);
124 #define	MOUNTPROC_UMNT	3
125 extern  void * mountproc_umnt_1(dirpath *, CLIENT *);
126 extern  void * mountproc_umnt_1_svc(dirpath *, struct svc_req *);
127 #define	MOUNTPROC_UMNTALL	4
128 extern  void * mountproc_umntall_1(void *, CLIENT *);
129 extern  void * mountproc_umntall_1_svc(void *, struct svc_req *);
130 #define	MOUNTPROC_EXPORT	5
131 extern  exports * mountproc_export_1(void *, CLIENT *);
132 extern  exports * mountproc_export_1_svc(void *, struct svc_req *);
133 #define	MOUNTPROC_EXPORTALL	6
134 extern  exports * mountproc_exportall_1(void *, CLIENT *);
135 extern  exports * mountproc_exportall_1_svc(void *, struct svc_req *);
136 extern int mountprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
137 
138 #else /* K&R C */
139 #define	MOUNTPROC_NULL	0
140 extern  void * mountproc_null_1();
141 extern  void * mountproc_null_1_svc();
142 #define	MOUNTPROC_MNT	1
143 extern  fhstatus * mountproc_mnt_1();
144 extern  fhstatus * mountproc_mnt_1_svc();
145 #define	MOUNTPROC_DUMP	2
146 extern  mountlist * mountproc_dump_1();
147 extern  mountlist * mountproc_dump_1_svc();
148 #define	MOUNTPROC_UMNT	3
149 extern  void * mountproc_umnt_1();
150 extern  void * mountproc_umnt_1_svc();
151 #define	MOUNTPROC_UMNTALL	4
152 extern  void * mountproc_umntall_1();
153 extern  void * mountproc_umntall_1_svc();
154 #define	MOUNTPROC_EXPORT	5
155 extern  exports * mountproc_export_1();
156 extern  exports * mountproc_export_1_svc();
157 #define	MOUNTPROC_EXPORTALL	6
158 extern  exports * mountproc_exportall_1();
159 extern  exports * mountproc_exportall_1_svc();
160 extern int mountprog_1_freeresult();
161 #endif /* K&R C */
162 #define	MOUNTVERS_POSIX	2
163 
164 #if defined(__STDC__) || defined(__cplusplus)
165 extern  void * mountproc_null_2(void *, CLIENT *);
166 extern  void * mountproc_null_2_svc(void *, struct svc_req *);
167 extern  fhstatus * mountproc_mnt_2(dirpath *, CLIENT *);
168 extern  fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *);
169 extern  mountlist * mountproc_dump_2(void *, CLIENT *);
170 extern  mountlist * mountproc_dump_2_svc(void *, struct svc_req *);
171 extern  void * mountproc_umnt_2(dirpath *, CLIENT *);
172 extern  void * mountproc_umnt_2_svc(dirpath *, struct svc_req *);
173 extern  void * mountproc_umntall_2(void *, CLIENT *);
174 extern  void * mountproc_umntall_2_svc(void *, struct svc_req *);
175 extern  exports * mountproc_export_2(void *, CLIENT *);
176 extern  exports * mountproc_export_2_svc(void *, struct svc_req *);
177 extern  exports * mountproc_exportall_2(void *, CLIENT *);
178 extern  exports * mountproc_exportall_2_svc(void *, struct svc_req *);
179 #define	MOUNTPROC_PATHCONF	7
180 extern  ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *);
181 extern  ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *);
182 extern int mountprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
183 
184 #else /* K&R C */
185 extern  void * mountproc_null_2();
186 extern  void * mountproc_null_2_svc();
187 extern  fhstatus * mountproc_mnt_2();
188 extern  fhstatus * mountproc_mnt_2_svc();
189 extern  mountlist * mountproc_dump_2();
190 extern  mountlist * mountproc_dump_2_svc();
191 extern  void * mountproc_umnt_2();
192 extern  void * mountproc_umnt_2_svc();
193 extern  void * mountproc_umntall_2();
194 extern  void * mountproc_umntall_2_svc();
195 extern  exports * mountproc_export_2();
196 extern  exports * mountproc_export_2_svc();
197 extern  exports * mountproc_exportall_2();
198 extern  exports * mountproc_exportall_2_svc();
199 #define	MOUNTPROC_PATHCONF	7
200 extern  ppathcnf * mountproc_pathconf_2();
201 extern  ppathcnf * mountproc_pathconf_2_svc();
202 extern int mountprog_2_freeresult();
203 #endif /* K&R C */
204 #define	MOUNTVERS3	3
205 
206 #if defined(__STDC__) || defined(__cplusplus)
207 extern  void * mountproc_null_3(void *, CLIENT *);
208 extern  void * mountproc_null_3_svc(void *, struct svc_req *);
209 extern  mountres3 * mountproc_mnt_3(dirpath *, CLIENT *);
210 extern  mountres3 * mountproc_mnt_3_svc(dirpath *, struct svc_req *);
211 extern  mountlist * mountproc_dump_3(void *, CLIENT *);
212 extern  mountlist * mountproc_dump_3_svc(void *, struct svc_req *);
213 extern  void * mountproc_umnt_3(dirpath *, CLIENT *);
214 extern  void * mountproc_umnt_3_svc(dirpath *, struct svc_req *);
215 extern  void * mountproc_umntall_3(void *, CLIENT *);
216 extern  void * mountproc_umntall_3_svc(void *, struct svc_req *);
217 extern  exports * mountproc_export_3(void *, CLIENT *);
218 extern  exports * mountproc_export_3_svc(void *, struct svc_req *);
219 extern int mountprog_3_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
220 
221 #else /* K&R C */
222 extern  void * mountproc_null_3();
223 extern  void * mountproc_null_3_svc();
224 extern  mountres3 * mountproc_mnt_3();
225 extern  mountres3 * mountproc_mnt_3_svc();
226 extern  mountlist * mountproc_dump_3();
227 extern  mountlist * mountproc_dump_3_svc();
228 extern  void * mountproc_umnt_3();
229 extern  void * mountproc_umnt_3_svc();
230 extern  void * mountproc_umntall_3();
231 extern  void * mountproc_umntall_3_svc();
232 extern  exports * mountproc_export_3();
233 extern  exports * mountproc_export_3_svc();
234 extern int mountprog_3_freeresult();
235 #endif /* K&R C */
236 
237 /* the xdr functions */
238 
239 #if defined(__STDC__) || defined(__cplusplus)
240 extern  bool_t xdr_fhandle(XDR *, fhandle);
241 extern  bool_t xdr_fhandle3(XDR *, fhandle3*);
242 extern  bool_t xdr_fhstatus(XDR *, fhstatus*);
243 extern  bool_t xdr_mountstat3(XDR *, mountstat3*);
244 extern  bool_t xdr_mountres3_ok(XDR *, mountres3_ok*);
245 extern  bool_t xdr_mountres3(XDR *, mountres3*);
246 extern  bool_t xdr_dirpath(XDR *, dirpath*);
247 extern  bool_t xdr_name(XDR *, name*);
248 extern  bool_t xdr_mountlist(XDR *, mountlist*);
249 extern  bool_t xdr_mountbody(XDR *, mountbody*);
250 extern  bool_t xdr_groups(XDR *, groups*);
251 extern  bool_t xdr_groupnode(XDR *, groupnode*);
252 extern  bool_t xdr_exports(XDR *, exports*);
253 extern  bool_t xdr_exportnode(XDR *, exportnode*);
254 extern  bool_t xdr_ppathcnf(XDR *, ppathcnf*);
255 
256 #else /* K&R C */
257 extern bool_t xdr_fhandle();
258 extern bool_t xdr_fhandle3();
259 extern bool_t xdr_fhstatus();
260 extern bool_t xdr_mountstat3();
261 extern bool_t xdr_mountres3_ok();
262 extern bool_t xdr_mountres3();
263 extern bool_t xdr_dirpath();
264 extern bool_t xdr_name();
265 extern bool_t xdr_mountlist();
266 extern bool_t xdr_mountbody();
267 extern bool_t xdr_groups();
268 extern bool_t xdr_groupnode();
269 extern bool_t xdr_exports();
270 extern bool_t xdr_exportnode();
271 extern bool_t xdr_ppathcnf();
272 
273 #endif /* K&R C */
274 
275 #ifdef __cplusplus
276 }
277 #endif
278 
279 #endif /* !_MOUNT_H_RPCGEN */
280