2 Copyright (c) 2014, Ronnie Sahlberg
5 Redistribution and use in source and binary forms, with or without
6 modification, are permitted provided that the following conditions are met:
8 1. Redistributions of source code must retain the above copyright notice, this
9 list of conditions and the following disclaimer.
10 2. Redistributions in binary form must reproduce the above copyright notice,
11 this list of conditions and the following disclaimer in the documentation
12 and/or other materials provided with the distribution.
14 THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND
15 ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED
16 WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
17 DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR
18 ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES
19 (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
20 LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND
21 ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
22 (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
23 SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
25 The views and conclusions contained in the software and documentation are those
26 of the authors and should not be interpreted as representing official policies,
27 either expressed or implied, of the FreeBSD Project.
31 * Please do not edit this file.
32 * It was generated using rpcgen.
35 #ifndef _MOUNT_H_RPCGEN
36 #define _MOUNT_H_RPCGEN
38 #include <nfsc/libnfs-zdr.h>
45 #define MNTPATHLEN 1024
54 typedef char *dirpath
;
66 MNT3ERR_NAMETOOLONG
= 63,
67 MNT3ERR_NOTSUPP
= 10004,
68 MNT3ERR_SERVERFAULT
= 10006,
70 typedef enum mountstat3 mountstat3
;
72 typedef struct mountbody
*mountlist
;
79 typedef struct mountbody mountbody
;
81 typedef struct groupnode
*groups
;
87 typedef struct groupnode groupnode
;
89 typedef struct exportnode
*exports
;
96 typedef struct exportnode exportnode
;
101 u_int auth_flavors_len
;
102 int *auth_flavors_val
;
105 typedef struct mountres3_ok mountres3_ok
;
108 mountstat3 fhs_status
;
110 mountres3_ok mountinfo
;
113 typedef struct mountres3 mountres3
;
123 MNT1ERR_NAMETOOLONG
= 63,
124 MNT1ERR_NOTSUPP
= 10004,
125 MNT1ERR_SERVERFAULT
= 10006,
127 typedef enum mountstat1 mountstat1
;
130 typedef char fhandle1
[FHSIZE
];
132 struct mountres1_ok
{
135 typedef struct mountres1_ok mountres1_ok
;
138 mountstat1 fhs_status
;
140 mountres1_ok mountinfo
;
143 typedef struct mountres1 mountres1
;
145 #define MOUNT_PROGRAM 100005
148 #if defined(__STDC__) || defined(__cplusplus)
149 #define MOUNT1_NULL 0
150 extern void * mount1_null_1(void *, void *);
151 extern void * mount1_null_1_svc(void *, struct svc_req
*);
153 extern mountres1
* mount1_mnt_1(dirpath
*, void *);
154 extern mountres1
* mount1_mnt_1_svc(dirpath
*, struct svc_req
*);
155 #define MOUNT1_DUMP 2
156 extern mountlist
* mount1_dump_1(void *, void *);
157 extern mountlist
* mount1_dump_1_svc(void *, struct svc_req
*);
158 #define MOUNT1_UMNT 3
159 extern void * mount1_umnt_1(dirpath
*, void *);
160 extern void * mount1_umnt_1_svc(dirpath
*, struct svc_req
*);
161 #define MOUNT1_UMNTALL 4
162 extern void * mount1_umntall_1(void *, void *);
163 extern void * mount1_umntall_1_svc(void *, struct svc_req
*);
164 #define MOUNT1_EXPORT 5
165 extern exports
* mount1_export_1(void *, void *);
166 extern exports
* mount1_export_1_svc(void *, struct svc_req
*);
167 extern int mount_program_1_freeresult (void *, zdrproc_t
, caddr_t
);
170 #define MOUNT1_NULL 0
171 extern void * mount1_null_1();
172 extern void * mount1_null_1_svc();
174 extern mountres1
* mount1_mnt_1();
175 extern mountres1
* mount1_mnt_1_svc();
176 #define MOUNT1_DUMP 2
177 extern mountlist
* mount1_dump_1();
178 extern mountlist
* mount1_dump_1_svc();
179 #define MOUNT1_UMNT 3
180 extern void * mount1_umnt_1();
181 extern void * mount1_umnt_1_svc();
182 #define MOUNT1_UMNTALL 4
183 extern void * mount1_umntall_1();
184 extern void * mount1_umntall_1_svc();
185 #define MOUNT1_EXPORT 5
186 extern exports
* mount1_export_1();
187 extern exports
* mount1_export_1_svc();
188 extern int mount_program_1_freeresult ();
192 #if defined(__STDC__) || defined(__cplusplus)
193 #define MOUNT3_NULL 0
194 extern void * mount3_null_3(void *, void *);
195 extern void * mount3_null_3_svc(void *, struct svc_req
*);
197 extern mountres3
* mount3_mnt_3(dirpath
*, void *);
198 extern mountres3
* mount3_mnt_3_svc(dirpath
*, struct svc_req
*);
199 #define MOUNT3_DUMP 2
200 extern mountlist
* mount3_dump_3(void *, void *);
201 extern mountlist
* mount3_dump_3_svc(void *, struct svc_req
*);
202 #define MOUNT3_UMNT 3
203 extern void * mount3_umnt_3(dirpath
*, void *);
204 extern void * mount3_umnt_3_svc(dirpath
*, struct svc_req
*);
205 #define MOUNT3_UMNTALL 4
206 extern void * mount3_umntall_3(void *, void *);
207 extern void * mount3_umntall_3_svc(void *, struct svc_req
*);
208 #define MOUNT3_EXPORT 5
209 extern exports
* mount3_export_3(void *, void *);
210 extern exports
* mount3_export_3_svc(void *, struct svc_req
*);
211 extern int mount_program_3_freeresult (void *, zdrproc_t
, caddr_t
);
214 #define MOUNT3_NULL 0
215 extern void * mount3_null_3();
216 extern void * mount3_null_3_svc();
218 extern mountres3
* mount3_mnt_3();
219 extern mountres3
* mount3_mnt_3_svc();
220 #define MOUNT3_DUMP 2
221 extern mountlist
* mount3_dump_3();
222 extern mountlist
* mount3_dump_3_svc();
223 #define MOUNT3_UMNT 3
224 extern void * mount3_umnt_3();
225 extern void * mount3_umnt_3_svc();
226 #define MOUNT3_UMNTALL 4
227 extern void * mount3_umntall_3();
228 extern void * mount3_umntall_3_svc();
229 #define MOUNT3_EXPORT 5
230 extern exports
* mount3_export_3();
231 extern exports
* mount3_export_3_svc();
232 extern int mount_program_3_freeresult ();
235 /* the zdr functions */
237 #if defined(__STDC__) || defined(__cplusplus)
238 extern uint32_t zdr_fhandle3 (ZDR
*, fhandle3
*);
239 extern uint32_t zdr_dirpath (ZDR
*, dirpath
*);
240 extern uint32_t zdr_name (ZDR
*, name
*);
241 extern uint32_t zdr_mountstat3 (ZDR
*, mountstat3
*);
242 extern uint32_t zdr_mountlist (ZDR
*, mountlist
*);
243 extern uint32_t zdr_mountbody (ZDR
*, mountbody
*);
244 extern uint32_t zdr_groups (ZDR
*, groups
*);
245 extern uint32_t zdr_groupnode (ZDR
*, groupnode
*);
246 extern uint32_t zdr_exports (ZDR
*, exports
*);
247 extern uint32_t zdr_exportnode (ZDR
*, exportnode
*);
248 extern uint32_t zdr_mountres3_ok (ZDR
*, mountres3_ok
*);
249 extern uint32_t zdr_mountres3 (ZDR
*, mountres3
*);
250 extern uint32_t zdr_mountstat1 (ZDR
*, mountstat1
*);
251 extern uint32_t zdr_fhandle1 (ZDR
*, fhandle1
);
252 extern uint32_t zdr_mountres1_ok (ZDR
*, mountres1_ok
*);
253 extern uint32_t zdr_mountres1 (ZDR
*, mountres1
*);
256 extern uint32_t zdr_fhandle3 ();
257 extern uint32_t zdr_dirpath ();
258 extern uint32_t zdr_name ();
259 extern uint32_t zdr_mountstat3 ();
260 extern uint32_t zdr_mountlist ();
261 extern uint32_t zdr_mountbody ();
262 extern uint32_t zdr_groups ();
263 extern uint32_t zdr_groupnode ();
264 extern uint32_t zdr_exports ();
265 extern uint32_t zdr_exportnode ();
266 extern uint32_t zdr_mountres3_ok ();
267 extern uint32_t zdr_mountres3 ();
268 extern uint32_t zdr_mountstat1 ();
269 extern uint32_t zdr_fhandle1 ();
270 extern uint32_t zdr_mountres1_ok ();
271 extern uint32_t zdr_mountres1 ();
279 #endif /* !_MOUNT_H_RPCGEN */