Erik Andersen | e49d5ec | 2000-02-08 19:58:47 +0000 | [diff] [blame^] | 1 | /* vi: set sw=4 ts=4: */ |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 2 | /* |
| 3 | * Please do not edit this file. |
| 4 | * It was generated using rpcgen. |
| 5 | */ |
| 6 | |
| 7 | #ifndef _NFSMOUNT_H_RPCGEN |
| 8 | #define _NFSMOUNT_H_RPCGEN |
| 9 | |
| 10 | #include <rpc/rpc.h> |
| 11 | |
| 12 | /* |
| 13 | * 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 |
| 15 | * media and as a part of the software program in whole or part. Users |
| 16 | * may copy or modify Sun RPC without charge, but are not authorized |
| 17 | * to license or distribute it to anyone else except as part of a product or |
| 18 | * program developed by the user or with the express written consent of |
| 19 | * Sun Microsystems, Inc. |
| 20 | * |
| 21 | * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE |
| 22 | * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR |
| 23 | * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. |
| 24 | * |
| 25 | * Sun RPC is provided with no support and without any obligation on the |
| 26 | * part of Sun Microsystems, Inc. to assist in its use, correction, |
| 27 | * modification or enhancement. |
| 28 | * |
| 29 | * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE |
| 30 | * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC |
| 31 | * OR ANY PART THEREOF. |
| 32 | * |
| 33 | * In no event will Sun Microsystems, Inc. be liable for any lost revenue |
| 34 | * or profits or other special, indirect and consequential damages, even if |
| 35 | * Sun has been advised of the possibility of such damages. |
| 36 | * |
| 37 | * Sun Microsystems, Inc. |
| 38 | * 2550 Garcia Avenue |
| 39 | * Mountain View, California 94043 |
| 40 | */ |
| 41 | /* |
| 42 | * Copyright (c) 1985, 1990 by Sun Microsystems, Inc. |
| 43 | */ |
| 44 | |
| 45 | /* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */ |
| 46 | #ifndef _rpcsvc_mount_h |
| 47 | #define _rpcsvc_mount_h |
| 48 | #define MNTPATHLEN 1024 |
| 49 | #define MNTNAMLEN 255 |
| 50 | #define FHSIZE 32 |
| 51 | |
| 52 | 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 | struct fhstatus { |
| 63 | u_int fhs_status; |
| 64 | union { |
| 65 | fhandle fhs_fhandle; |
| 66 | } fhstatus_u; |
| 67 | }; |
| 68 | 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 | |
| 77 | |
| 78 | typedef char *dirpath; |
| 79 | #ifdef __cplusplus |
| 80 | extern "C" bool_t xdr_dirpath(XDR *, dirpath*); |
| 81 | #elif __STDC__ |
| 82 | extern bool_t xdr_dirpath(XDR *, dirpath*); |
| 83 | #else /* Old Style C */ |
| 84 | bool_t xdr_dirpath(); |
| 85 | #endif /* Old Style C */ |
| 86 | |
| 87 | |
| 88 | 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 | |
| 98 | 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 | |
| 108 | struct mountbody { |
| 109 | name ml_hostname; |
| 110 | dirpath ml_directory; |
| 111 | mountlist ml_next; |
| 112 | }; |
| 113 | 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 | |
| 123 | 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 | |
| 133 | struct groupnode { |
| 134 | name gr_name; |
| 135 | groups gr_next; |
| 136 | }; |
| 137 | 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 | |
| 147 | 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 | |
| 157 | struct exportnode { |
| 158 | dirpath ex_dir; |
| 159 | groups ex_groups; |
| 160 | exports ex_next; |
| 161 | }; |
| 162 | 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 | |
| 172 | struct ppathcnf { |
| 173 | int pc_link_max; |
| 174 | short pc_max_canon; |
| 175 | short pc_max_input; |
| 176 | short pc_name_max; |
| 177 | short pc_path_max; |
| 178 | short pc_pipe_buf; |
| 179 | u_char pc_vdisable; |
| 180 | char pc_xxx; |
| 181 | short pc_mask[2]; |
| 182 | }; |
| 183 | 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*/ |
| 193 | |
| 194 | #define MOUNTPROG ((u_long)100005) |
| 195 | #define MOUNTVERS ((u_long)1) |
| 196 | |
| 197 | #ifdef __cplusplus |
| 198 | #define MOUNTPROC_NULL ((u_long)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 *); |
| 223 | extern void * mountproc_null_1_svc(void *, struct svc_req *); |
| 224 | #define MOUNTPROC_MNT ((u_long)1) |
| 225 | extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *); |
| 226 | extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *); |
| 227 | #define MOUNTPROC_DUMP ((u_long)2) |
| 228 | extern mountlist * mountproc_dump_1(void *, CLIENT *); |
| 229 | extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *); |
| 230 | #define MOUNTPROC_UMNT ((u_long)3) |
| 231 | extern void * mountproc_umnt_1(dirpath *, CLIENT *); |
| 232 | extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *); |
| 233 | #define MOUNTPROC_UMNTALL ((u_long)4) |
| 234 | extern void * mountproc_umntall_1(void *, CLIENT *); |
| 235 | extern void * mountproc_umntall_1_svc(void *, struct svc_req *); |
| 236 | #define MOUNTPROC_EXPORT ((u_long)5) |
| 237 | extern exports * mountproc_export_1(void *, CLIENT *); |
| 238 | extern exports * mountproc_export_1_svc(void *, struct svc_req *); |
| 239 | #define MOUNTPROC_EXPORTALL ((u_long)6) |
| 240 | extern exports * mountproc_exportall_1(void *, CLIENT *); |
| 241 | extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); |
| 242 | |
| 243 | #else /* Old Style C */ |
| 244 | #define MOUNTPROC_NULL ((u_long)0) |
| 245 | extern void * mountproc_null_1(); |
| 246 | extern void * mountproc_null_1_svc(); |
| 247 | #define MOUNTPROC_MNT ((u_long)1) |
| 248 | extern fhstatus * mountproc_mnt_1(); |
| 249 | extern fhstatus * mountproc_mnt_1_svc(); |
| 250 | #define MOUNTPROC_DUMP ((u_long)2) |
| 251 | extern mountlist * mountproc_dump_1(); |
| 252 | extern mountlist * mountproc_dump_1_svc(); |
| 253 | #define MOUNTPROC_UMNT ((u_long)3) |
| 254 | extern void * mountproc_umnt_1(); |
| 255 | extern void * mountproc_umnt_1_svc(); |
| 256 | #define MOUNTPROC_UMNTALL ((u_long)4) |
| 257 | extern void * mountproc_umntall_1(); |
| 258 | extern void * mountproc_umntall_1_svc(); |
| 259 | #define MOUNTPROC_EXPORT ((u_long)5) |
| 260 | extern exports * mountproc_export_1(); |
| 261 | extern exports * mountproc_export_1_svc(); |
| 262 | #define MOUNTPROC_EXPORTALL ((u_long)6) |
| 263 | extern exports * mountproc_exportall_1(); |
| 264 | extern exports * mountproc_exportall_1_svc(); |
| 265 | #endif /* Old Style C */ |
| 266 | #define MOUNTVERS_POSIX ((u_long)2) |
| 267 | |
| 268 | #ifdef __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 *); |
| 289 | extern void * mountproc_null_2_svc(void *, struct svc_req *); |
| 290 | extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); |
| 291 | extern fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *); |
| 292 | extern mountlist * mountproc_dump_2(void *, CLIENT *); |
| 293 | extern mountlist * mountproc_dump_2_svc(void *, struct svc_req *); |
| 294 | extern void * mountproc_umnt_2(dirpath *, CLIENT *); |
| 295 | extern void * mountproc_umnt_2_svc(dirpath *, struct svc_req *); |
| 296 | extern void * mountproc_umntall_2(void *, CLIENT *); |
| 297 | extern void * mountproc_umntall_2_svc(void *, struct svc_req *); |
| 298 | extern exports * mountproc_export_2(void *, CLIENT *); |
| 299 | extern exports * mountproc_export_2_svc(void *, struct svc_req *); |
| 300 | extern exports * mountproc_exportall_2(void *, CLIENT *); |
| 301 | extern exports * mountproc_exportall_2_svc(void *, struct svc_req *); |
| 302 | #define MOUNTPROC_PATHCONF ((u_long)7) |
| 303 | extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *); |
| 304 | extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); |
| 305 | |
| 306 | #else /* Old Style C */ |
| 307 | extern void * mountproc_null_2(); |
| 308 | extern void * mountproc_null_2_svc(); |
| 309 | extern fhstatus * mountproc_mnt_2(); |
| 310 | extern fhstatus * mountproc_mnt_2_svc(); |
| 311 | extern mountlist * mountproc_dump_2(); |
| 312 | extern mountlist * mountproc_dump_2_svc(); |
| 313 | extern void * mountproc_umnt_2(); |
| 314 | extern void * mountproc_umnt_2_svc(); |
| 315 | extern void * mountproc_umntall_2(); |
| 316 | extern void * mountproc_umntall_2_svc(); |
| 317 | extern exports * mountproc_export_2(); |
| 318 | extern exports * mountproc_export_2_svc(); |
| 319 | extern exports * mountproc_exportall_2(); |
| 320 | extern exports * mountproc_exportall_2_svc(); |
| 321 | #define MOUNTPROC_PATHCONF ((u_long)7) |
| 322 | extern ppathcnf * mountproc_pathconf_2(); |
| 323 | extern ppathcnf * mountproc_pathconf_2_svc(); |
| 324 | #endif /* Old Style C */ |
| 325 | |
| 326 | #endif /* !_NFSMOUNT_H_RPCGEN */ |