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 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 12 | |
| 13 | #ifdef __cplusplus |
| 14 | extern "C" { |
| 15 | #endif |
| 16 | |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 17 | /* |
| 18 | * Sun RPC is a product of Sun Microsystems, Inc. and is provided for |
| 19 | * unrestricted use provided that this legend is included on all tape |
| 20 | * media and as a part of the software program in whole or part. Users |
| 21 | * may copy or modify Sun RPC without charge, but are not authorized |
| 22 | * to license or distribute it to anyone else except as part of a product or |
| 23 | * program developed by the user or with the express written consent of |
| 24 | * Sun Microsystems, Inc. |
| 25 | * |
| 26 | * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE |
| 27 | * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR |
| 28 | * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE. |
| 29 | * |
| 30 | * Sun RPC is provided with no support and without any obligation on the |
| 31 | * part of Sun Microsystems, Inc. to assist in its use, correction, |
| 32 | * modification or enhancement. |
| 33 | * |
| 34 | * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE |
| 35 | * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC |
| 36 | * OR ANY PART THEREOF. |
| 37 | * |
| 38 | * In no event will Sun Microsystems, Inc. be liable for any lost revenue |
| 39 | * or profits or other special, indirect and consequential damages, even if |
| 40 | * Sun has been advised of the possibility of such damages. |
| 41 | * |
| 42 | * Sun Microsystems, Inc. |
| 43 | * 2550 Garcia Avenue |
| 44 | * Mountain View, California 94043 |
| 45 | */ |
| 46 | /* |
| 47 | * Copyright (c) 1985, 1990 by Sun Microsystems, Inc. |
| 48 | */ |
| 49 | |
| 50 | /* from @(#)mount.x 1.3 91/03/11 TIRPC 1.0 */ |
| 51 | #ifndef _rpcsvc_mount_h |
| 52 | #define _rpcsvc_mount_h |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 53 | #include <asm/types.h> |
| 54 | #define MOUNTPORT 635 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 55 | #define MNTPATHLEN 1024 |
| 56 | #define MNTNAMLEN 255 |
| 57 | #define FHSIZE 32 |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 58 | #define FHSIZE3 64 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 59 | |
| 60 | typedef char fhandle[FHSIZE]; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 61 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 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; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 80 | |
| 81 | struct fhstatus { |
| 82 | u_int fhs_status; |
| 83 | union { |
| 84 | fhandle fhs_fhandle; |
| 85 | } fhstatus_u; |
| 86 | }; |
| 87 | typedef struct fhstatus fhstatus; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 88 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 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; |
| 97 | |
| 98 | struct mountres3 { |
| 99 | mountstat3 fhs_status; |
| 100 | union { |
| 101 | mountres3_ok mountinfo; |
| 102 | } mountres3_u; |
| 103 | }; |
| 104 | typedef struct mountres3 mountres3; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 105 | |
| 106 | typedef char *dirpath; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 107 | |
| 108 | typedef char *name; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 109 | |
| 110 | typedef struct mountbody *mountlist; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 111 | |
| 112 | struct mountbody { |
| 113 | name ml_hostname; |
| 114 | dirpath ml_directory; |
| 115 | mountlist ml_next; |
| 116 | }; |
| 117 | typedef struct mountbody mountbody; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 118 | |
| 119 | typedef struct groupnode *groups; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 120 | |
| 121 | struct groupnode { |
| 122 | name gr_name; |
| 123 | groups gr_next; |
| 124 | }; |
| 125 | typedef struct groupnode groupnode; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 126 | |
| 127 | typedef struct exportnode *exports; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 128 | |
| 129 | struct exportnode { |
| 130 | dirpath ex_dir; |
| 131 | groups ex_groups; |
| 132 | exports ex_next; |
| 133 | }; |
| 134 | typedef struct exportnode exportnode; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 135 | |
| 136 | struct ppathcnf { |
| 137 | int pc_link_max; |
| 138 | short pc_max_canon; |
| 139 | short pc_max_input; |
| 140 | short pc_name_max; |
| 141 | short pc_path_max; |
| 142 | short pc_pipe_buf; |
| 143 | u_char pc_vdisable; |
| 144 | char pc_xxx; |
| 145 | short pc_mask[2]; |
| 146 | }; |
| 147 | typedef struct ppathcnf ppathcnf; |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 148 | #endif /*!_rpcsvc_mount_h*/ |
| 149 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 150 | #define MOUNTPROG 100005 |
| 151 | #define MOUNTVERS 1 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 152 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 153 | #define MOUNTPROC_NULL 0 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 154 | extern void * mountproc_null_1(void *, CLIENT *); |
| 155 | extern void * mountproc_null_1_svc(void *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 156 | #define MOUNTPROC_MNT 1 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 157 | extern fhstatus * mountproc_mnt_1(dirpath *, CLIENT *); |
| 158 | extern fhstatus * mountproc_mnt_1_svc(dirpath *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 159 | #define MOUNTPROC_DUMP 2 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 160 | extern mountlist * mountproc_dump_1(void *, CLIENT *); |
| 161 | extern mountlist * mountproc_dump_1_svc(void *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 162 | #define MOUNTPROC_UMNT 3 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 163 | extern void * mountproc_umnt_1(dirpath *, CLIENT *); |
| 164 | extern void * mountproc_umnt_1_svc(dirpath *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 165 | #define MOUNTPROC_UMNTALL 4 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 166 | extern void * mountproc_umntall_1(void *, CLIENT *); |
| 167 | extern void * mountproc_umntall_1_svc(void *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 168 | #define MOUNTPROC_EXPORT 5 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 169 | extern exports * mountproc_export_1(void *, CLIENT *); |
| 170 | extern exports * mountproc_export_1_svc(void *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 171 | #define MOUNTPROC_EXPORTALL 6 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 172 | extern exports * mountproc_exportall_1(void *, CLIENT *); |
| 173 | extern exports * mountproc_exportall_1_svc(void *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 174 | extern int mountprog_1_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 175 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 176 | #define MOUNTVERS_POSIX 2 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 177 | |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 178 | extern void * mountproc_null_2(void *, CLIENT *); |
| 179 | extern void * mountproc_null_2_svc(void *, struct svc_req *); |
| 180 | extern fhstatus * mountproc_mnt_2(dirpath *, CLIENT *); |
| 181 | extern fhstatus * mountproc_mnt_2_svc(dirpath *, struct svc_req *); |
| 182 | extern mountlist * mountproc_dump_2(void *, CLIENT *); |
| 183 | extern mountlist * mountproc_dump_2_svc(void *, struct svc_req *); |
| 184 | extern void * mountproc_umnt_2(dirpath *, CLIENT *); |
| 185 | extern void * mountproc_umnt_2_svc(dirpath *, struct svc_req *); |
| 186 | extern void * mountproc_umntall_2(void *, CLIENT *); |
| 187 | extern void * mountproc_umntall_2_svc(void *, struct svc_req *); |
| 188 | extern exports * mountproc_export_2(void *, CLIENT *); |
| 189 | extern exports * mountproc_export_2_svc(void *, struct svc_req *); |
| 190 | extern exports * mountproc_exportall_2(void *, CLIENT *); |
| 191 | extern exports * mountproc_exportall_2_svc(void *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 192 | #define MOUNTPROC_PATHCONF 7 |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 193 | extern ppathcnf * mountproc_pathconf_2(dirpath *, CLIENT *); |
| 194 | extern ppathcnf * mountproc_pathconf_2_svc(dirpath *, struct svc_req *); |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 195 | extern int mountprog_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 196 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 197 | #define MOUNT_V3 3 |
| 198 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 199 | #define MOUNTPROC3_NULL 0 |
| 200 | extern void * mountproc3_null_3(void *, CLIENT *); |
| 201 | extern void * mountproc3_null_3_svc(void *, struct svc_req *); |
| 202 | #define MOUNTPROC3_MNT 1 |
| 203 | extern mountres3 * mountproc3_mnt_3(dirpath *, CLIENT *); |
| 204 | extern mountres3 * mountproc3_mnt_3_svc(dirpath *, struct svc_req *); |
| 205 | #define MOUNTPROC3_DUMP 2 |
| 206 | extern mountlist * mountproc3_dump_3(void *, CLIENT *); |
| 207 | extern mountlist * mountproc3_dump_3_svc(void *, struct svc_req *); |
| 208 | #define MOUNTPROC3_UMNT 3 |
| 209 | extern void * mountproc3_umnt_3(dirpath *, CLIENT *); |
| 210 | extern void * mountproc3_umnt_3_svc(dirpath *, struct svc_req *); |
| 211 | #define MOUNTPROC3_UMNTALL 4 |
| 212 | extern void * mountproc3_umntall_3(void *, CLIENT *); |
| 213 | extern void * mountproc3_umntall_3_svc(void *, struct svc_req *); |
| 214 | #define MOUNTPROC3_EXPORT 5 |
| 215 | extern exports * mountproc3_export_3(void *, CLIENT *); |
| 216 | extern exports * mountproc3_export_3_svc(void *, struct svc_req *); |
| 217 | extern int mountprog_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); |
| 218 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 219 | /* the xdr functions */ |
| 220 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 221 | extern bool_t xdr_fhandle (XDR *, fhandle); |
| 222 | extern bool_t xdr_fhandle3 (XDR *, fhandle3*); |
| 223 | extern bool_t xdr_mountstat3 (XDR *, mountstat3*); |
| 224 | extern bool_t xdr_fhstatus (XDR *, fhstatus*); |
| 225 | extern bool_t xdr_mountres3_ok (XDR *, mountres3_ok*); |
| 226 | extern bool_t xdr_mountres3 (XDR *, mountres3*); |
| 227 | extern bool_t xdr_dirpath (XDR *, dirpath*); |
| 228 | extern bool_t xdr_name (XDR *, name*); |
| 229 | extern bool_t xdr_mountlist (XDR *, mountlist*); |
| 230 | extern bool_t xdr_mountbody (XDR *, mountbody*); |
| 231 | extern bool_t xdr_groups (XDR *, groups*); |
| 232 | extern bool_t xdr_groupnode (XDR *, groupnode*); |
| 233 | extern bool_t xdr_exports (XDR *, exports*); |
| 234 | extern bool_t xdr_exportnode (XDR *, exportnode*); |
| 235 | extern bool_t xdr_ppathcnf (XDR *, ppathcnf*); |
| 236 | |
Eric Andersen | da1d1e7 | 2000-07-10 23:39:44 +0000 | [diff] [blame] | 237 | #ifdef __cplusplus |
| 238 | } |
| 239 | #endif |
Eric Andersen | 1c43d0c | 1999-11-18 07:58:07 +0000 | [diff] [blame] | 240 | |
| 241 | #endif /* !_NFSMOUNT_H_RPCGEN */ |