diff options
Diffstat (limited to 'nfsmount.h')
-rw-r--r-- | nfsmount.h | 310 |
1 files changed, 157 insertions, 153 deletions
diff --git a/nfsmount.h b/nfsmount.h index 64ac617c0..a12de50a1 100644 --- a/nfsmount.h +++ b/nfsmount.h | |||
@@ -9,6 +9,11 @@ | |||
9 | 9 | ||
10 | #include <rpc/rpc.h> | 10 | #include <rpc/rpc.h> |
11 | 11 | ||
12 | |||
13 | #ifdef __cplusplus | ||
14 | extern "C" { | ||
15 | #endif | ||
16 | |||
12 | /* | 17 | /* |
13 | * Sun RPC is a product of Sun Microsystems, Inc. and is provided for | 18 | * 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 | 19 | * unrestricted use provided that this legend is included on all tape |
@@ -45,19 +50,33 @@ | |||
45 | /* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */ | 50 | /* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */ |
46 | #ifndef _rpcsvc_mount_h | 51 | #ifndef _rpcsvc_mount_h |
47 | #define _rpcsvc_mount_h | 52 | #define _rpcsvc_mount_h |
53 | #include <asm/types.h> | ||
54 | #define MOUNTPORT 635 | ||
48 | #define MNTPATHLEN 1024 | 55 | #define MNTPATHLEN 1024 |
49 | #define MNTNAMLEN 255 | 56 | #define MNTNAMLEN 255 |
50 | #define FHSIZE 32 | 57 | #define FHSIZE 32 |
58 | #define FHSIZE3 64 | ||
51 | 59 | ||
52 | typedef char fhandle[FHSIZE]; | 60 | typedef char fhandle[FHSIZE]; |
53 | #ifdef __cplusplus | ||
54 | extern "C" bool_t xdr_fhandle(XDR *, fhandle); | ||
55 | #elif __STDC__ | ||
56 | extern bool_t xdr_fhandle(XDR *, fhandle); | ||
57 | #else /* Old Style C */ | ||
58 | bool_t xdr_fhandle(); | ||
59 | #endif /* Old Style C */ | ||
60 | 61 | ||
62 | typedef struct { | ||
63 | u_int fhandle3_len; | ||
64 | char *fhandle3_val; | ||
65 | } fhandle3; | ||
66 | |||
67 | enum mountstat3 { | ||
68 | MNT_OK = 0, | ||
69 | MNT3ERR_PERM = 1, | ||
70 | MNT3ERR_NOENT = 2, | ||
71 | MNT3ERR_IO = 5, | ||
72 | MNT3ERR_ACCES = 13, | ||
73 | MNT3ERR_NOTDIR = 20, | ||
74 | MNT3ERR_INVAL = 22, | ||
75 | MNT3ERR_NAMETOOLONG = 63, | ||
76 | MNT3ERR_NOTSUPP = 10004, | ||
77 | MNT3ERR_SERVERFAULT = 10006, | ||
78 | }; | ||
79 | typedef enum mountstat3 mountstat3; | ||
61 | 80 | ||
62 | struct fhstatus { | 81 | struct fhstatus { |
63 | u_int fhs_status; | 82 | u_int fhs_status; |
@@ -66,44 +85,29 @@ struct fhstatus { | |||
66 | } fhstatus_u; | 85 | } fhstatus_u; |
67 | }; | 86 | }; |
68 | typedef struct fhstatus fhstatus; | 87 | typedef struct fhstatus fhstatus; |
69 | #ifdef __cplusplus | ||
70 | extern "C" bool_t xdr_fhstatus(XDR *, fhstatus*); | ||
71 | #elif __STDC__ | ||
72 | extern bool_t xdr_fhstatus(XDR *, fhstatus*); | ||
73 | #else /* Old Style C */ | ||
74 | bool_t xdr_fhstatus(); | ||
75 | #endif /* Old Style C */ | ||
76 | 88 | ||
89 | struct mountres3_ok { | ||
90 | fhandle3 fhandle; | ||
91 | struct { | ||
92 | u_int auth_flavours_len; | ||
93 | int *auth_flavours_val; | ||
94 | } auth_flavours; | ||
95 | }; | ||
96 | typedef struct mountres3_ok mountres3_ok; | ||
77 | 97 | ||
78 | typedef char *dirpath; | 98 | struct mountres3 { |
79 | #ifdef __cplusplus | 99 | mountstat3 fhs_status; |
80 | extern "C" bool_t xdr_dirpath(XDR *, dirpath*); | 100 | union { |
81 | #elif __STDC__ | 101 | mountres3_ok mountinfo; |
82 | extern bool_t xdr_dirpath(XDR *, dirpath*); | 102 | } mountres3_u; |
83 | #else /* Old Style C */ | 103 | }; |
84 | bool_t xdr_dirpath(); | 104 | typedef struct mountres3 mountres3; |
85 | #endif /* Old Style C */ | ||
86 | 105 | ||
106 | typedef char *dirpath; | ||
87 | 107 | ||
88 | typedef char *name; | 108 | typedef char *name; |
89 | #ifdef __cplusplus | ||
90 | extern "C" bool_t xdr_name(XDR *, name*); | ||
91 | #elif __STDC__ | ||
92 | extern bool_t xdr_name(XDR *, name*); | ||
93 | #else /* Old Style C */ | ||
94 | bool_t xdr_name(); | ||
95 | #endif /* Old Style C */ | ||
96 | |||
97 | 109 | ||
98 | typedef struct mountbody *mountlist; | 110 | typedef struct mountbody *mountlist; |
99 | #ifdef __cplusplus | ||
100 | extern "C" bool_t xdr_mountlist(XDR *, mountlist*); | ||
101 | #elif __STDC__ | ||
102 | extern bool_t xdr_mountlist(XDR *, mountlist*); | ||
103 | #else /* Old Style C */ | ||
104 | bool_t xdr_mountlist(); | ||
105 | #endif /* Old Style C */ | ||
106 | |||
107 | 111 | ||
108 | struct mountbody { | 112 | struct mountbody { |
109 | name ml_hostname; | 113 | name ml_hostname; |
@@ -111,48 +115,16 @@ struct mountbody { | |||
111 | mountlist ml_next; | 115 | mountlist ml_next; |
112 | }; | 116 | }; |
113 | typedef struct mountbody mountbody; | 117 | typedef struct mountbody mountbody; |
114 | #ifdef __cplusplus | ||
115 | extern "C" bool_t xdr_mountbody(XDR *, mountbody*); | ||
116 | #elif __STDC__ | ||
117 | extern bool_t xdr_mountbody(XDR *, mountbody*); | ||
118 | #else /* Old Style C */ | ||
119 | bool_t xdr_mountbody(); | ||
120 | #endif /* Old Style C */ | ||
121 | |||
122 | 118 | ||
123 | typedef struct groupnode *groups; | 119 | typedef struct groupnode *groups; |
124 | #ifdef __cplusplus | ||
125 | extern "C" bool_t xdr_groups(XDR *, groups*); | ||
126 | #elif __STDC__ | ||
127 | extern bool_t xdr_groups(XDR *, groups*); | ||
128 | #else /* Old Style C */ | ||
129 | bool_t xdr_groups(); | ||
130 | #endif /* Old Style C */ | ||
131 | |||
132 | 120 | ||
133 | struct groupnode { | 121 | struct groupnode { |
134 | name gr_name; | 122 | name gr_name; |
135 | groups gr_next; | 123 | groups gr_next; |
136 | }; | 124 | }; |
137 | typedef struct groupnode groupnode; | 125 | typedef struct groupnode groupnode; |
138 | #ifdef __cplusplus | ||
139 | extern "C" bool_t xdr_groupnode(XDR *, groupnode*); | ||
140 | #elif __STDC__ | ||
141 | extern bool_t xdr_groupnode(XDR *, groupnode*); | ||
142 | #else /* Old Style C */ | ||
143 | bool_t xdr_groupnode(); | ||
144 | #endif /* Old Style C */ | ||
145 | |||
146 | 126 | ||
147 | typedef struct exportnode *exports; | 127 | typedef struct exportnode *exports; |
148 | #ifdef __cplusplus | ||
149 | extern "C" bool_t xdr_exports(XDR *, exports*); | ||
150 | #elif __STDC__ | ||
151 | extern bool_t xdr_exports(XDR *, exports*); | ||
152 | #else /* Old Style C */ | ||
153 | bool_t xdr_exports(); | ||
154 | #endif /* Old Style C */ | ||
155 | |||
156 | 128 | ||
157 | struct exportnode { | 129 | struct exportnode { |
158 | dirpath ex_dir; | 130 | dirpath ex_dir; |
@@ -160,14 +132,6 @@ struct exportnode { | |||
160 | exports ex_next; | 132 | exports ex_next; |
161 | }; | 133 | }; |
162 | typedef struct exportnode exportnode; | 134 | typedef struct exportnode exportnode; |
163 | #ifdef __cplusplus | ||
164 | extern "C" bool_t xdr_exportnode(XDR *, exportnode*); | ||
165 | #elif __STDC__ | ||
166 | extern bool_t xdr_exportnode(XDR *, exportnode*); | ||
167 | #else /* Old Style C */ | ||
168 | bool_t xdr_exportnode(); | ||
169 | #endif /* Old Style C */ | ||
170 | |||
171 | 135 | ||
172 | struct ppathcnf { | 136 | struct ppathcnf { |
173 | int pc_link_max; | 137 | int pc_link_max; |
@@ -181,110 +145,62 @@ struct ppathcnf { | |||
181 | short pc_mask[2]; | 145 | short pc_mask[2]; |
182 | }; | 146 | }; |
183 | typedef struct ppathcnf ppathcnf; | 147 | typedef struct ppathcnf ppathcnf; |
184 | #ifdef __cplusplus | ||
185 | extern "C" bool_t xdr_ppathcnf(XDR *, ppathcnf*); | ||
186 | #elif __STDC__ | ||
187 | extern bool_t xdr_ppathcnf(XDR *, ppathcnf*); | ||
188 | #else /* Old Style C */ | ||
189 | bool_t xdr_ppathcnf(); | ||
190 | #endif /* Old Style C */ | ||
191 | |||
192 | #endif /*!_rpcsvc_mount_h*/ | 148 | #endif /*!_rpcsvc_mount_h*/ |
193 | 149 | ||
194 | #define MOUNTPROG ((u_long)100005) | 150 | #define MOUNTPROG 100005 |
195 | #define MOUNTVERS ((u_long)1) | 151 | #define MOUNTVERS 1 |
196 | 152 | ||
197 | #ifdef __cplusplus | 153 | #if defined(__STDC__) || defined(__cplusplus) |
198 | #define MOUNTPROC_NULL ((u_long)0) | 154 | #define MOUNTPROC_NULL 0 |
199 | extern "C" void * mountproc_null_1(void *, CLIENT *); | ||
200 | extern "C" void * mountproc_null_1_svc(void *, struct svc_req *); | ||
201 | #define MOUNTPROC_MNT ((u_long)1) | ||
202 | extern "C" fhstatus * mountproc_mnt_1(dirpath *, CLIENT *); | ||
203 | extern "C" fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *); | ||
204 | #define MOUNTPROC_DUMP ((u_long)2) | ||
205 | extern "C" mountlist * mountproc_dump_1(void *, CLIENT *); | ||
206 | extern "C" mountlist * mountproc_dump_1_svc(void *, struct svc_req *); | ||
207 | #define MOUNTPROC_UMNT ((u_long)3) | ||
208 | extern "C" void * mountproc_umnt_1(dirpath *, CLIENT *); | ||
209 | extern "C" void * mountproc_umnt_1_svc(dirpath *, struct svc_req *); | ||
210 | #define MOUNTPROC_UMNTALL ((u_long)4) | ||
211 | extern "C" void * mountproc_umntall_1(void *, CLIENT *); | ||
212 | extern "C" void * mountproc_umntall_1_svc(void *, struct svc_req *); | ||
213 | #define MOUNTPROC_EXPORT ((u_long)5) | ||
214 | extern "C" exports * mountproc_export_1(void *, CLIENT *); | ||
215 | extern "C" exports * mountproc_export_1_svc(void *, struct svc_req *); | ||
216 | #define MOUNTPROC_EXPORTALL ((u_long)6) | ||
217 | extern "C" exports * mountproc_exportall_1(void *, CLIENT *); | ||
218 | extern "C" exports * mountproc_exportall_1_svc(void *, struct svc_req *); | ||
219 | |||
220 | #elif __STDC__ | ||
221 | #define MOUNTPROC_NULL ((u_long)0) | ||
222 | extern void * mountproc_null_1(void *, CLIENT *); | 155 | extern void * mountproc_null_1(void *, CLIENT *); |
223 | extern void * mountproc_null_1_svc(void *, struct svc_req *); | 156 | extern void * mountproc_null_1_svc(void *, struct svc_req *); |
224 | #define MOUNTPROC_MNT ((u_long)1) | 157 | #define MOUNTPROC_MNT 1 |
225 | extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *); | 158 | extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *); |
226 | extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *); | 159 | extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *); |
227 | #define MOUNTPROC_DUMP ((u_long)2) | 160 | #define MOUNTPROC_DUMP 2 |
228 | extern mountlist * mountproc_dump_1(void *, CLIENT *); | 161 | extern mountlist * mountproc_dump_1(void *, CLIENT *); |
229 | extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *); | 162 | extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *); |
230 | #define MOUNTPROC_UMNT ((u_long)3) | 163 | #define MOUNTPROC_UMNT 3 |
231 | extern void * mountproc_umnt_1(dirpath *, CLIENT *); | 164 | extern void * mountproc_umnt_1(dirpath *, CLIENT *); |
232 | extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *); | 165 | extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *); |
233 | #define MOUNTPROC_UMNTALL ((u_long)4) | 166 | #define MOUNTPROC_UMNTALL 4 |
234 | extern void * mountproc_umntall_1(void *, CLIENT *); | 167 | extern void * mountproc_umntall_1(void *, CLIENT *); |
235 | extern void * mountproc_umntall_1_svc(void *, struct svc_req *); | 168 | extern void * mountproc_umntall_1_svc(void *, struct svc_req *); |
236 | #define MOUNTPROC_EXPORT ((u_long)5) | 169 | #define MOUNTPROC_EXPORT 5 |
237 | extern exports * mountproc_export_1(void *, CLIENT *); | 170 | extern exports * mountproc_export_1(void *, CLIENT *); |
238 | extern exports * mountproc_export_1_svc(void *, struct svc_req *); | 171 | extern exports * mountproc_export_1_svc(void *, struct svc_req *); |
239 | #define MOUNTPROC_EXPORTALL ((u_long)6) | 172 | #define MOUNTPROC_EXPORTALL 6 |
240 | extern exports * mountproc_exportall_1(void *, CLIENT *); | 173 | extern exports * mountproc_exportall_1(void *, CLIENT *); |
241 | extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); | 174 | extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); |
175 | extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | ||
242 | 176 | ||
243 | #else /* Old Style C */ | 177 | #else /* K&R C */ |
244 | #define MOUNTPROC_NULL ((u_long)0) | 178 | #define MOUNTPROC_NULL 0 |
245 | extern void * mountproc_null_1(); | 179 | extern void * mountproc_null_1(); |
246 | extern void * mountproc_null_1_svc(); | 180 | extern void * mountproc_null_1_svc(); |
247 | #define MOUNTPROC_MNT ((u_long)1) | 181 | #define MOUNTPROC_MNT 1 |
248 | extern fhstatus * mountproc_mnt_1(); | 182 | extern fhstatus * mountproc_mnt_1(); |
249 | extern fhstatus * mountproc_mnt_1_svc(); | 183 | extern fhstatus * mountproc_mnt_1_svc(); |
250 | #define MOUNTPROC_DUMP ((u_long)2) | 184 | #define MOUNTPROC_DUMP 2 |
251 | extern mountlist * mountproc_dump_1(); | 185 | extern mountlist * mountproc_dump_1(); |
252 | extern mountlist * mountproc_dump_1_svc(); | 186 | extern mountlist * mountproc_dump_1_svc(); |
253 | #define MOUNTPROC_UMNT ((u_long)3) | 187 | #define MOUNTPROC_UMNT 3 |
254 | extern void * mountproc_umnt_1(); | 188 | extern void * mountproc_umnt_1(); |
255 | extern void * mountproc_umnt_1_svc(); | 189 | extern void * mountproc_umnt_1_svc(); |
256 | #define MOUNTPROC_UMNTALL ((u_long)4) | 190 | #define MOUNTPROC_UMNTALL 4 |
257 | extern void * mountproc_umntall_1(); | 191 | extern void * mountproc_umntall_1(); |
258 | extern void * mountproc_umntall_1_svc(); | 192 | extern void * mountproc_umntall_1_svc(); |
259 | #define MOUNTPROC_EXPORT ((u_long)5) | 193 | #define MOUNTPROC_EXPORT 5 |
260 | extern exports * mountproc_export_1(); | 194 | extern exports * mountproc_export_1(); |
261 | extern exports * mountproc_export_1_svc(); | 195 | extern exports * mountproc_export_1_svc(); |
262 | #define MOUNTPROC_EXPORTALL ((u_long)6) | 196 | #define MOUNTPROC_EXPORTALL 6 |
263 | extern exports * mountproc_exportall_1(); | 197 | extern exports * mountproc_exportall_1(); |
264 | extern exports * mountproc_exportall_1_svc(); | 198 | extern exports * mountproc_exportall_1_svc(); |
265 | #endif /* Old Style C */ | 199 | extern int mountprog_1_freeresult (); |
266 | #define MOUNTVERS_POSIX ((u_long)2) | 200 | #endif /* K&R C */ |
201 | #define MOUNTVERS_POSIX 2 | ||
267 | 202 | ||
268 | #ifdef __cplusplus | 203 | #if defined(__STDC__) || defined(__cplusplus) |
269 | extern "C" void * mountproc_null_2(void *, CLIENT *); | ||
270 | extern "C" void * mountproc_null_2_svc(void *, struct svc_req *); | ||
271 | extern "C" fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); | ||
272 | extern "C" fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *); | ||
273 | extern "C" mountlist * mountproc_dump_2(void *, CLIENT *); | ||
274 | extern "C" mountlist * mountproc_dump_2_svc(void *, struct svc_req *); | ||
275 | extern "C" void * mountproc_umnt_2(dirpath *, CLIENT *); | ||
276 | extern "C" void * mountproc_umnt_2_svc(dirpath *, struct svc_req *); | ||
277 | extern "C" void * mountproc_umntall_2(void *, CLIENT *); | ||
278 | extern "C" void * mountproc_umntall_2_svc(void *, struct svc_req *); | ||
279 | extern "C" exports * mountproc_export_2(void *, CLIENT *); | ||
280 | extern "C" exports * mountproc_export_2_svc(void *, struct svc_req *); | ||
281 | extern "C" exports * mountproc_exportall_2(void *, CLIENT *); | ||
282 | extern "C" exports * mountproc_exportall_2_svc(void *, struct svc_req *); | ||
283 | #define MOUNTPROC_PATHCONF ((u_long)7) | ||
284 | extern "C" ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *); | ||
285 | extern "C" ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); | ||
286 | |||
287 | #elif __STDC__ | ||
288 | extern void * mountproc_null_2(void *, CLIENT *); | 204 | extern void * mountproc_null_2(void *, CLIENT *); |
289 | extern void * mountproc_null_2_svc(void *, struct svc_req *); | 205 | extern void * mountproc_null_2_svc(void *, struct svc_req *); |
290 | extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); | 206 | extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); |
@@ -299,11 +215,12 @@ extern exports * mountproc_export_2(void *, CLIENT *); | |||
299 | extern exports * mountproc_export_2_svc(void *, struct svc_req *); | 215 | extern exports * mountproc_export_2_svc(void *, struct svc_req *); |
300 | extern exports * mountproc_exportall_2(void *, CLIENT *); | 216 | extern exports * mountproc_exportall_2(void *, CLIENT *); |
301 | extern exports * mountproc_exportall_2_svc(void *, struct svc_req *); | 217 | extern exports * mountproc_exportall_2_svc(void *, struct svc_req *); |
302 | #define MOUNTPROC_PATHCONF ((u_long)7) | 218 | #define MOUNTPROC_PATHCONF 7 |
303 | extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *); | 219 | extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *); |
304 | extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); | 220 | extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); |
221 | extern int mountprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | ||
305 | 222 | ||
306 | #else /* Old Style C */ | 223 | #else /* K&R C */ |
307 | extern void * mountproc_null_2(); | 224 | extern void * mountproc_null_2(); |
308 | extern void * mountproc_null_2_svc(); | 225 | extern void * mountproc_null_2_svc(); |
309 | extern fhstatus * mountproc_mnt_2(); | 226 | extern fhstatus * mountproc_mnt_2(); |
@@ -318,9 +235,96 @@ extern exports * mountproc_export_2(); | |||
318 | extern exports * mountproc_export_2_svc(); | 235 | extern exports * mountproc_export_2_svc(); |
319 | extern exports * mountproc_exportall_2(); | 236 | extern exports * mountproc_exportall_2(); |
320 | extern exports * mountproc_exportall_2_svc(); | 237 | extern exports * mountproc_exportall_2_svc(); |
321 | #define MOUNTPROC_PATHCONF ((u_long)7) | 238 | #define MOUNTPROC_PATHCONF 7 |
322 | extern ppathcnf * mountproc_pathconf_2(); | 239 | extern ppathcnf * mountproc_pathconf_2(); |
323 | extern ppathcnf * mountproc_pathconf_2_svc(); | 240 | extern ppathcnf * mountproc_pathconf_2_svc(); |
324 | #endif /* Old Style C */ | 241 | extern int mountprog_2_freeresult (); |
242 | #endif /* K&R C */ | ||
243 | #define MOUNT_V3 3 | ||
244 | |||
245 | #if defined(__STDC__) || defined(__cplusplus) | ||
246 | #define MOUNTPROC3_NULL 0 | ||
247 | extern void * mountproc3_null_3(void *, CLIENT *); | ||
248 | extern void * mountproc3_null_3_svc(void *, struct svc_req *); | ||
249 | #define MOUNTPROC3_MNT 1 | ||
250 | extern mountres3 * mountproc3_mnt_3(dirpath *, CLIENT *); | ||
251 | extern mountres3 * mountproc3_mnt_3_svc(dirpath *, struct svc_req *); | ||
252 | #define MOUNTPROC3_DUMP 2 | ||
253 | extern mountlist * mountproc3_dump_3(void *, CLIENT *); | ||
254 | extern mountlist * mountproc3_dump_3_svc(void *, struct svc_req *); | ||
255 | #define MOUNTPROC3_UMNT 3 | ||
256 | extern void * mountproc3_umnt_3(dirpath *, CLIENT *); | ||
257 | extern void * mountproc3_umnt_3_svc(dirpath *, struct svc_req *); | ||
258 | #define MOUNTPROC3_UMNTALL 4 | ||
259 | extern void * mountproc3_umntall_3(void *, CLIENT *); | ||
260 | extern void * mountproc3_umntall_3_svc(void *, struct svc_req *); | ||
261 | #define MOUNTPROC3_EXPORT 5 | ||
262 | extern exports * mountproc3_export_3(void *, CLIENT *); | ||
263 | extern exports * mountproc3_export_3_svc(void *, struct svc_req *); | ||
264 | extern int mountprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); | ||
265 | |||
266 | #else /* K&R C */ | ||
267 | #define MOUNTPROC3_NULL 0 | ||
268 | extern void * mountproc3_null_3(); | ||
269 | extern void * mountproc3_null_3_svc(); | ||
270 | #define MOUNTPROC3_MNT 1 | ||
271 | extern mountres3 * mountproc3_mnt_3(); | ||
272 | extern mountres3 * mountproc3_mnt_3_svc(); | ||
273 | #define MOUNTPROC3_DUMP 2 | ||
274 | extern mountlist * mountproc3_dump_3(); | ||
275 | extern mountlist * mountproc3_dump_3_svc(); | ||
276 | #define MOUNTPROC3_UMNT 3 | ||
277 | extern void * mountproc3_umnt_3(); | ||
278 | extern void * mountproc3_umnt_3_svc(); | ||
279 | #define MOUNTPROC3_UMNTALL 4 | ||
280 | extern void * mountproc3_umntall_3(); | ||
281 | extern void * mountproc3_umntall_3_svc(); | ||
282 | #define MOUNTPROC3_EXPORT 5 | ||
283 | extern exports * mountproc3_export_3(); | ||
284 | extern exports * mountproc3_export_3_svc(); | ||
285 | extern int mountprog_3_freeresult (); | ||
286 | #endif /* K&R C */ | ||
287 | |||
288 | /* the xdr functions */ | ||
289 | |||
290 | #if defined(__STDC__) || defined(__cplusplus) | ||
291 | extern bool_t xdr_fhandle (XDR *, fhandle); | ||
292 | extern bool_t xdr_fhandle3 (XDR *, fhandle3*); | ||
293 | extern bool_t xdr_mountstat3 (XDR *, mountstat3*); | ||
294 | extern bool_t xdr_fhstatus (XDR *, fhstatus*); | ||
295 | extern bool_t xdr_mountres3_ok (XDR *, mountres3_ok*); | ||
296 | extern bool_t xdr_mountres3 (XDR *, mountres3*); | ||
297 | extern bool_t xdr_dirpath (XDR *, dirpath*); | ||
298 | extern bool_t xdr_name (XDR *, name*); | ||
299 | extern bool_t xdr_mountlist (XDR *, mountlist*); | ||
300 | extern bool_t xdr_mountbody (XDR *, mountbody*); | ||
301 | extern bool_t xdr_groups (XDR *, groups*); | ||
302 | extern bool_t xdr_groupnode (XDR *, groupnode*); | ||
303 | extern bool_t xdr_exports (XDR *, exports*); | ||
304 | extern bool_t xdr_exportnode (XDR *, exportnode*); | ||
305 | extern bool_t xdr_ppathcnf (XDR *, ppathcnf*); | ||
306 | |||
307 | #else /* K&R C */ | ||
308 | extern bool_t xdr_fhandle (); | ||
309 | extern bool_t xdr_fhandle3 (); | ||
310 | extern bool_t xdr_mountstat3 (); | ||
311 | extern bool_t xdr_fhstatus (); | ||
312 | extern bool_t xdr_mountres3_ok (); | ||
313 | extern bool_t xdr_mountres3 (); | ||
314 | extern bool_t xdr_dirpath (); | ||
315 | extern bool_t xdr_name (); | ||
316 | extern bool_t xdr_mountlist (); | ||
317 | extern bool_t xdr_mountbody (); | ||
318 | extern bool_t xdr_groups (); | ||
319 | extern bool_t xdr_groupnode (); | ||
320 | extern bool_t xdr_exports (); | ||
321 | extern bool_t xdr_exportnode (); | ||
322 | extern bool_t xdr_ppathcnf (); | ||
323 | |||
324 | #endif /* K&R C */ | ||
325 | |||
326 | #ifdef __cplusplus | ||
327 | } | ||
328 | #endif | ||
325 | 329 | ||
326 | #endif /* !_NFSMOUNT_H_RPCGEN */ | 330 | #endif /* !_NFSMOUNT_H_RPCGEN */ |