File indexing completed on 2024-04-28 08:50:00

0001 /*
0002  * Please do not edit this file.
0003  * It was generated using rpcgen.
0004  */
0005 
0006 #ifndef _RPC_NFS2_PROT_H_RPCGEN
0007 #define _RPC_NFS2_PROT_H_RPCGEN
0008 
0009 #include <rpc/rpc.h>
0010 
0011 #ifdef __cplusplus
0012 extern "C" {
0013 #endif
0014 
0015 /*
0016  * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
0017  * unrestricted use provided that this legend is included on all tape
0018  * media and as a part of the software program in whole or part.  Users
0019  * may copy or modify Sun RPC without charge, but are not authorized
0020  * to license or distribute it to anyone else except as part of a product or
0021  * program developed by the user or with the express written consent of
0022  * Sun Microsystems, Inc.
0023  *
0024  * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
0025  * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
0026  * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
0027  *
0028  * Sun RPC is provided with no support and without any obligation on the
0029  * part of Sun Microsystems, Inc. to assist in its use, correction,
0030  * modification or enhancement.
0031  *
0032  * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
0033  * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
0034  * OR ANY PART THEREOF.
0035  *
0036  * In no event will Sun Microsystems, Inc. be liable for any lost revenue
0037  * or profits or other special, indirect and consequential damages, even if
0038  * Sun has been advised of the possibility of such damages.
0039  *
0040  * Sun Microsystems, Inc.
0041  * 2550 Garcia Avenue
0042  * Mountain View, California  94043
0043  */
0044 /*
0045  * SPDX-FileCopyrightText: 1987, 1990 Sun Microsystems Inc.
0046  */
0047 
0048 /* from @(#)nfs_prot.x  1.3 91/03/11 TIRPC 1.0 */
0049 #ifndef _rpcsvc_nfs_prot_h
0050 #define _rpcsvc_nfs_prot_h
0051 #define NFS_PORT 2049
0052 #define NFS_MAXDATA 8192
0053 #define NFS_MAXPATHLEN 1024
0054 #define NFS_MAXNAMLEN 255
0055 #define NFS_FHSIZE 32
0056 #define NFS_COOKIESIZE 4
0057 #define NFS_FIFO_DEV -1
0058 #define NFSMODE_FMT 0170000
0059 #define NFSMODE_DIR 0040000
0060 #define NFSMODE_CHR 0020000
0061 #define NFSMODE_BLK 0060000
0062 #define NFSMODE_REG 0100000
0063 #define NFSMODE_LNK 0120000
0064 #define NFSMODE_SOCK 0140000
0065 #define NFSMODE_FIFO 0010000
0066 
0067 enum nfsstat {
0068     NFS_OK = 0,
0069     NFSERR_PERM = 1,
0070     NFSERR_NOENT = 2,
0071     NFSERR_IO = 5,
0072     NFSERR_NXIO = 6,
0073     NFSERR_ACCES = 13,
0074     NFSERR_EXIST = 17,
0075     NFSERR_NODEV = 19,
0076     NFSERR_NOTDIR = 20,
0077     NFSERR_ISDIR = 21,
0078     NFSERR_INVAL = 22,
0079     NFSERR_FBIG = 27,
0080     NFSERR_NOSPC = 28,
0081     NFSERR_ROFS = 30,
0082     NFSERR_NAMETOOLONG = 63,
0083     NFSERR_NOTEMPTY = 66,
0084     NFSERR_DQUOT = 69,
0085     NFSERR_STALE = 70,
0086     NFSERR_WFLUSH = 99,
0087 };
0088 typedef enum nfsstat nfsstat;
0089 
0090 enum ftype {
0091     NFNON = 0,
0092     NFREG = 1,
0093     NFDIR = 2,
0094     NFBLK = 3,
0095     NFCHR = 4,
0096     NFLNK = 5,
0097     NFSOCK = 6,
0098     NFBAD = 7,
0099     NFFIFO = 8,
0100 };
0101 typedef enum ftype ftype;
0102 
0103 struct nfs_fh {
0104     char data[NFS_FHSIZE];
0105 };
0106 typedef struct nfs_fh nfs_fh;
0107 
0108 struct nfstime {
0109     u_int seconds;
0110     u_int useconds;
0111 };
0112 typedef struct nfstime nfstime;
0113 
0114 struct fattr {
0115     ftype type;
0116     u_int mode;
0117     u_int nlink;
0118     u_int uid;
0119     u_int gid;
0120     u_int size;
0121     u_int blocksize;
0122     u_int rdev;
0123     u_int blocks;
0124     u_int fsid;
0125     u_int fileid;
0126     nfstime atime;
0127     nfstime mtime;
0128     nfstime ctime;
0129 };
0130 typedef struct fattr fattr;
0131 
0132 struct sattr {
0133     u_int mode;
0134     u_int uid;
0135     u_int gid;
0136     u_int size;
0137     nfstime atime;
0138     nfstime mtime;
0139 };
0140 typedef struct sattr sattr;
0141 
0142 typedef char *filename;
0143 
0144 typedef char *nfspath;
0145 
0146 struct attrstat {
0147     nfsstat status;
0148     union {
0149         fattr attributes;
0150     } attrstat_u;
0151 };
0152 typedef struct attrstat attrstat;
0153 
0154 struct sattrargs {
0155     nfs_fh file;
0156     sattr attributes;
0157 };
0158 typedef struct sattrargs sattrargs;
0159 
0160 struct diropargs {
0161     nfs_fh dir;
0162     filename name;
0163 };
0164 typedef struct diropargs diropargs;
0165 
0166 struct diropokres {
0167     nfs_fh file;
0168     fattr attributes;
0169 };
0170 typedef struct diropokres diropokres;
0171 
0172 struct diropres {
0173     nfsstat status;
0174     union {
0175         diropokres diropres;
0176     } diropres_u;
0177 };
0178 typedef struct diropres diropres;
0179 
0180 struct readlinkres {
0181     nfsstat status;
0182     union {
0183         nfspath data;
0184     } readlinkres_u;
0185 };
0186 typedef struct readlinkres readlinkres;
0187 
0188 struct readargs {
0189     nfs_fh file;
0190     u_int offset;
0191     u_int count;
0192     u_int totalcount;
0193 };
0194 typedef struct readargs readargs;
0195 
0196 struct readokres {
0197     fattr attributes;
0198     struct {
0199         u_int data_len;
0200         char *data_val;
0201     } data;
0202 };
0203 typedef struct readokres readokres;
0204 
0205 struct readres {
0206     nfsstat status;
0207     union {
0208         readokres reply;
0209     } readres_u;
0210 };
0211 typedef struct readres readres;
0212 
0213 struct writeargs {
0214     nfs_fh file;
0215     u_int beginoffset;
0216     u_int offset;
0217     u_int totalcount;
0218     struct {
0219         u_int data_len;
0220         char *data_val;
0221     } data;
0222 };
0223 typedef struct writeargs writeargs;
0224 
0225 struct createargs {
0226     diropargs where;
0227     sattr attributes;
0228 };
0229 typedef struct createargs createargs;
0230 
0231 struct renameargs {
0232     diropargs from;
0233     diropargs to;
0234 };
0235 typedef struct renameargs renameargs;
0236 
0237 struct linkargs {
0238     nfs_fh from;
0239     diropargs to;
0240 };
0241 typedef struct linkargs linkargs;
0242 
0243 struct symlinkargs {
0244     diropargs from;
0245     nfspath to;
0246     sattr attributes;
0247 };
0248 typedef struct symlinkargs symlinkargs;
0249 
0250 typedef char nfscookie[NFS_COOKIESIZE];
0251 
0252 struct readdirargs {
0253     nfs_fh dir;
0254     nfscookie cookie;
0255     u_int count;
0256 };
0257 typedef struct readdirargs readdirargs;
0258 
0259 struct entry {
0260     u_int fileid;
0261     filename name;
0262     nfscookie cookie;
0263     struct entry *nextentry;
0264 };
0265 typedef struct entry entry;
0266 
0267 struct dirlist {
0268     entry *entries;
0269     bool_t eof;
0270 };
0271 typedef struct dirlist dirlist;
0272 
0273 struct readdirres {
0274     nfsstat status;
0275     union {
0276         dirlist reply;
0277     } readdirres_u;
0278 };
0279 typedef struct readdirres readdirres;
0280 
0281 struct statfsokres {
0282     u_int tsize;
0283     u_int bsize;
0284     u_int blocks;
0285     u_int bfree;
0286     u_int bavail;
0287 };
0288 typedef struct statfsokres statfsokres;
0289 
0290 struct statfsres {
0291     nfsstat status;
0292     union {
0293         statfsokres reply;
0294     } statfsres_u;
0295 };
0296 typedef struct statfsres statfsres;
0297 #define MNTPATHLEN 1024
0298 #define MNTNAMLEN 255
0299 #define FHSIZE 32
0300 
0301 typedef char fhandle[FHSIZE];
0302 
0303 struct fhstatus {
0304     u_int fhs_status;
0305     union {
0306         fhandle fhs_fhandle;
0307     } fhstatus_u;
0308 };
0309 typedef struct fhstatus fhstatus;
0310 
0311 typedef char *dirpath;
0312 
0313 typedef char *name;
0314 
0315 typedef struct mountbody *mountlist;
0316 
0317 struct mountbody {
0318     name ml_hostname;
0319     dirpath ml_directory;
0320     mountlist ml_next;
0321 };
0322 typedef struct mountbody mountbody;
0323 
0324 typedef struct groupnode *groups;
0325 
0326 struct groupnode {
0327     name gr_name;
0328     groups gr_next;
0329 };
0330 typedef struct groupnode groupnode;
0331 
0332 typedef struct exportnode *exports;
0333 
0334 struct exportnode {
0335     dirpath ex_dir;
0336     groups ex_groups;
0337     exports ex_next;
0338 };
0339 typedef struct exportnode exportnode;
0340 
0341 struct ppathcnf {
0342     int pc_link_max;
0343     short pc_max_canon;
0344     short pc_max_input;
0345     short pc_name_max;
0346     short pc_path_max;
0347     short pc_pipe_buf;
0348     u_char pc_vdisable;
0349     char pc_xxx;
0350     short pc_mask[2];
0351 };
0352 typedef struct ppathcnf ppathcnf;
0353 #endif /*!_rpcsvc_nfs_prot_h*/
0354 
0355 #define NFS_PROGRAM 100003
0356 #define NFS_VERSION 2
0357 
0358 #if defined(__STDC__) || defined(__cplusplus)
0359 #define NFSPROC_NULL 0
0360 extern void *nfsproc_null_2(CLIENT *);
0361 extern void *nfsproc_null_2_svc(struct svc_req *);
0362 #define NFSPROC_GETATTR 1
0363 extern attrstat *nfsproc_getattr_2(nfs_fh, CLIENT *);
0364 extern attrstat *nfsproc_getattr_2_svc(nfs_fh, struct svc_req *);
0365 #define NFSPROC_SETATTR 2
0366 extern attrstat *nfsproc_setattr_2(sattrargs, CLIENT *);
0367 extern attrstat *nfsproc_setattr_2_svc(sattrargs, struct svc_req *);
0368 #define NFSPROC_ROOT 3
0369 extern void *nfsproc_root_2(CLIENT *);
0370 extern void *nfsproc_root_2_svc(struct svc_req *);
0371 #define NFSPROC_LOOKUP 4
0372 extern diropres *nfsproc_lookup_2(diropargs, CLIENT *);
0373 extern diropres *nfsproc_lookup_2_svc(diropargs, struct svc_req *);
0374 #define NFSPROC_READLINK 5
0375 extern readlinkres *nfsproc_readlink_2(nfs_fh, CLIENT *);
0376 extern readlinkres *nfsproc_readlink_2_svc(nfs_fh, struct svc_req *);
0377 #define NFSPROC_READ 6
0378 extern readres *nfsproc_read_2(readargs, CLIENT *);
0379 extern readres *nfsproc_read_2_svc(readargs, struct svc_req *);
0380 #define NFSPROC_WRITECACHE 7
0381 extern void *nfsproc_writecache_2(CLIENT *);
0382 extern void *nfsproc_writecache_2_svc(struct svc_req *);
0383 #define NFSPROC_WRITE 8
0384 extern attrstat *nfsproc_write_2(writeargs, CLIENT *);
0385 extern attrstat *nfsproc_write_2_svc(writeargs, struct svc_req *);
0386 #define NFSPROC_CREATE 9
0387 extern diropres *nfsproc_create_2(createargs, CLIENT *);
0388 extern diropres *nfsproc_create_2_svc(createargs, struct svc_req *);
0389 #define NFSPROC_REMOVE 10
0390 extern nfsstat *nfsproc_remove_2(diropargs, CLIENT *);
0391 extern nfsstat *nfsproc_remove_2_svc(diropargs, struct svc_req *);
0392 #define NFSPROC_RENAME 11
0393 extern nfsstat *nfsproc_rename_2(renameargs, CLIENT *);
0394 extern nfsstat *nfsproc_rename_2_svc(renameargs, struct svc_req *);
0395 #define NFSPROC_LINK 12
0396 extern nfsstat *nfsproc_link_2(linkargs, CLIENT *);
0397 extern nfsstat *nfsproc_link_2_svc(linkargs, struct svc_req *);
0398 #define NFSPROC_SYMLINK 13
0399 extern nfsstat *nfsproc_symlink_2(symlinkargs, CLIENT *);
0400 extern nfsstat *nfsproc_symlink_2_svc(symlinkargs, struct svc_req *);
0401 #define NFSPROC_MKDIR 14
0402 extern diropres *nfsproc_mkdir_2(createargs, CLIENT *);
0403 extern diropres *nfsproc_mkdir_2_svc(createargs, struct svc_req *);
0404 #define NFSPROC_RMDIR 15
0405 extern nfsstat *nfsproc_rmdir_2(diropargs, CLIENT *);
0406 extern nfsstat *nfsproc_rmdir_2_svc(diropargs, struct svc_req *);
0407 #define NFSPROC_READDIR 16
0408 extern readdirres *nfsproc_readdir_2(readdirargs, CLIENT *);
0409 extern readdirres *nfsproc_readdir_2_svc(readdirargs, struct svc_req *);
0410 #define NFSPROC_STATFS 17
0411 extern statfsres *nfsproc_statfs_2(nfs_fh, CLIENT *);
0412 extern statfsres *nfsproc_statfs_2_svc(nfs_fh, struct svc_req *);
0413 extern int nfs_program_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
0414 
0415 #else /* K&R C */
0416 #define NFSPROC_NULL 0
0417 extern void *nfsproc_null_2();
0418 extern void *nfsproc_null_2_svc();
0419 #define NFSPROC_GETATTR 1
0420 extern attrstat *nfsproc_getattr_2();
0421 extern attrstat *nfsproc_getattr_2_svc();
0422 #define NFSPROC_SETATTR 2
0423 extern attrstat *nfsproc_setattr_2();
0424 extern attrstat *nfsproc_setattr_2_svc();
0425 #define NFSPROC_ROOT 3
0426 extern void *nfsproc_root_2();
0427 extern void *nfsproc_root_2_svc();
0428 #define NFSPROC_LOOKUP 4
0429 extern diropres *nfsproc_lookup_2();
0430 extern diropres *nfsproc_lookup_2_svc();
0431 #define NFSPROC_READLINK 5
0432 extern readlinkres *nfsproc_readlink_2();
0433 extern readlinkres *nfsproc_readlink_2_svc();
0434 #define NFSPROC_READ 6
0435 extern readres *nfsproc_read_2();
0436 extern readres *nfsproc_read_2_svc();
0437 #define NFSPROC_WRITECACHE 7
0438 extern void *nfsproc_writecache_2();
0439 extern void *nfsproc_writecache_2_svc();
0440 #define NFSPROC_WRITE 8
0441 extern attrstat *nfsproc_write_2();
0442 extern attrstat *nfsproc_write_2_svc();
0443 #define NFSPROC_CREATE 9
0444 extern diropres *nfsproc_create_2();
0445 extern diropres *nfsproc_create_2_svc();
0446 #define NFSPROC_REMOVE 10
0447 extern nfsstat *nfsproc_remove_2();
0448 extern nfsstat *nfsproc_remove_2_svc();
0449 #define NFSPROC_RENAME 11
0450 extern nfsstat *nfsproc_rename_2();
0451 extern nfsstat *nfsproc_rename_2_svc();
0452 #define NFSPROC_LINK 12
0453 extern nfsstat *nfsproc_link_2();
0454 extern nfsstat *nfsproc_link_2_svc();
0455 #define NFSPROC_SYMLINK 13
0456 extern nfsstat *nfsproc_symlink_2();
0457 extern nfsstat *nfsproc_symlink_2_svc();
0458 #define NFSPROC_MKDIR 14
0459 extern diropres *nfsproc_mkdir_2();
0460 extern diropres *nfsproc_mkdir_2_svc();
0461 #define NFSPROC_RMDIR 15
0462 extern nfsstat *nfsproc_rmdir_2();
0463 extern nfsstat *nfsproc_rmdir_2_svc();
0464 #define NFSPROC_READDIR 16
0465 extern readdirres *nfsproc_readdir_2();
0466 extern readdirres *nfsproc_readdir_2_svc();
0467 #define NFSPROC_STATFS 17
0468 extern statfsres *nfsproc_statfs_2();
0469 extern statfsres *nfsproc_statfs_2_svc();
0470 extern int nfs_program_2_freeresult();
0471 #endif /* K&R C */
0472 
0473 #define MOUNTPROG 100005
0474 #define MOUNTVERS 1
0475 
0476 #if defined(__STDC__) || defined(__cplusplus)
0477 #define MOUNTPROC_NULL 0
0478 extern void *mountproc_null_1(CLIENT *);
0479 extern void *mountproc_null_1_svc(struct svc_req *);
0480 #define MOUNTPROC_MNT 1
0481 extern fhstatus *mountproc_mnt_1(dirpath, CLIENT *);
0482 extern fhstatus *mountproc_mnt_1_svc(dirpath, struct svc_req *);
0483 #define MOUNTPROC_DUMP 2
0484 extern mountlist *mountproc_dump_1(CLIENT *);
0485 extern mountlist *mountproc_dump_1_svc(struct svc_req *);
0486 #define MOUNTPROC_UMNT 3
0487 extern void *mountproc_umnt_1(dirpath, CLIENT *);
0488 extern void *mountproc_umnt_1_svc(dirpath, struct svc_req *);
0489 #define MOUNTPROC_UMNTALL 4
0490 extern void *mountproc_umntall_1(CLIENT *);
0491 extern void *mountproc_umntall_1_svc(struct svc_req *);
0492 #define MOUNTPROC_EXPORT 5
0493 extern exports *mountproc_export_1(CLIENT *);
0494 extern exports *mountproc_export_1_svc(struct svc_req *);
0495 #define MOUNTPROC_EXPORTALL 6
0496 extern exports *mountproc_exportall_1(CLIENT *);
0497 extern exports *mountproc_exportall_1_svc(struct svc_req *);
0498 extern int mountprog_1_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
0499 
0500 #else /* K&R C */
0501 #define MOUNTPROC_NULL 0
0502 extern void *mountproc_null_1();
0503 extern void *mountproc_null_1_svc();
0504 #define MOUNTPROC_MNT 1
0505 extern fhstatus *mountproc_mnt_1();
0506 extern fhstatus *mountproc_mnt_1_svc();
0507 #define MOUNTPROC_DUMP 2
0508 extern mountlist *mountproc_dump_1();
0509 extern mountlist *mountproc_dump_1_svc();
0510 #define MOUNTPROC_UMNT 3
0511 extern void *mountproc_umnt_1();
0512 extern void *mountproc_umnt_1_svc();
0513 #define MOUNTPROC_UMNTALL 4
0514 extern void *mountproc_umntall_1();
0515 extern void *mountproc_umntall_1_svc();
0516 #define MOUNTPROC_EXPORT 5
0517 extern exports *mountproc_export_1();
0518 extern exports *mountproc_export_1_svc();
0519 #define MOUNTPROC_EXPORTALL 6
0520 extern exports *mountproc_exportall_1();
0521 extern exports *mountproc_exportall_1_svc();
0522 extern int mountprog_1_freeresult();
0523 #endif /* K&R C */
0524 #define MOUNTVERS_POSIX 2
0525 
0526 #if defined(__STDC__) || defined(__cplusplus)
0527 extern void *mountproc_null_2(CLIENT *);
0528 extern void *mountproc_null_2_svc(struct svc_req *);
0529 extern fhstatus *mountproc_mnt_2(dirpath, CLIENT *);
0530 extern fhstatus *mountproc_mnt_2_svc(dirpath, struct svc_req *);
0531 extern mountlist *mountproc_dump_2(CLIENT *);
0532 extern mountlist *mountproc_dump_2_svc(struct svc_req *);
0533 extern void *mountproc_umnt_2(dirpath, CLIENT *);
0534 extern void *mountproc_umnt_2_svc(dirpath, struct svc_req *);
0535 extern void *mountproc_umntall_2(CLIENT *);
0536 extern void *mountproc_umntall_2_svc(struct svc_req *);
0537 extern exports *mountproc_export_2(CLIENT *);
0538 extern exports *mountproc_export_2_svc(struct svc_req *);
0539 extern exports *mountproc_exportall_2(CLIENT *);
0540 extern exports *mountproc_exportall_2_svc(struct svc_req *);
0541 #define MOUNTPROC_PATHCONF 7
0542 extern ppathcnf *mountproc_pathconf_2(dirpath, CLIENT *);
0543 extern ppathcnf *mountproc_pathconf_2_svc(dirpath, struct svc_req *);
0544 extern int mountprog_2_freeresult(SVCXPRT *, xdrproc_t, caddr_t);
0545 
0546 #else /* K&R C */
0547 extern void *mountproc_null_2();
0548 extern void *mountproc_null_2_svc();
0549 extern fhstatus *mountproc_mnt_2();
0550 extern fhstatus *mountproc_mnt_2_svc();
0551 extern mountlist *mountproc_dump_2();
0552 extern mountlist *mountproc_dump_2_svc();
0553 extern void *mountproc_umnt_2();
0554 extern void *mountproc_umnt_2_svc();
0555 extern void *mountproc_umntall_2();
0556 extern void *mountproc_umntall_2_svc();
0557 extern exports *mountproc_export_2();
0558 extern exports *mountproc_export_2_svc();
0559 extern exports *mountproc_exportall_2();
0560 extern exports *mountproc_exportall_2_svc();
0561 #define MOUNTPROC_PATHCONF 7
0562 extern ppathcnf *mountproc_pathconf_2();
0563 extern ppathcnf *mountproc_pathconf_2_svc();
0564 extern int mountprog_2_freeresult();
0565 #endif /* K&R C */
0566 
0567 /* the xdr functions */
0568 
0569 #if defined(__STDC__) || defined(__cplusplus)
0570 extern bool_t xdr_nfsstat(XDR *, nfsstat *);
0571 extern bool_t xdr_ftype(XDR *, ftype *);
0572 extern bool_t xdr_nfs_fh(XDR *, nfs_fh *);
0573 extern bool_t xdr_nfstime(XDR *, nfstime *);
0574 extern bool_t xdr_fattr(XDR *, fattr *);
0575 extern bool_t xdr_sattr(XDR *, sattr *);
0576 extern bool_t xdr_filename(XDR *, filename *);
0577 extern bool_t xdr_nfspath(XDR *, nfspath *);
0578 extern bool_t xdr_attrstat(XDR *, attrstat *);
0579 extern bool_t xdr_sattrargs(XDR *, sattrargs *);
0580 extern bool_t xdr_diropargs(XDR *, diropargs *);
0581 extern bool_t xdr_diropokres(XDR *, diropokres *);
0582 extern bool_t xdr_diropres(XDR *, diropres *);
0583 extern bool_t xdr_readlinkres(XDR *, readlinkres *);
0584 extern bool_t xdr_readargs(XDR *, readargs *);
0585 extern bool_t xdr_readokres(XDR *, readokres *);
0586 extern bool_t xdr_readres(XDR *, readres *);
0587 extern bool_t xdr_writeargs(XDR *, writeargs *);
0588 extern bool_t xdr_createargs(XDR *, createargs *);
0589 extern bool_t xdr_renameargs(XDR *, renameargs *);
0590 extern bool_t xdr_linkargs(XDR *, linkargs *);
0591 extern bool_t xdr_symlinkargs(XDR *, symlinkargs *);
0592 extern bool_t xdr_nfscookie(XDR *, nfscookie);
0593 extern bool_t xdr_readdirargs(XDR *, readdirargs *);
0594 extern bool_t xdr_entry(XDR *, entry *);
0595 extern bool_t xdr_dirlist(XDR *, dirlist *);
0596 extern bool_t xdr_readdirres(XDR *, readdirres *);
0597 extern bool_t xdr_statfsokres(XDR *, statfsokres *);
0598 extern bool_t xdr_statfsres(XDR *, statfsres *);
0599 extern bool_t xdr_fhandle(XDR *, fhandle);
0600 extern bool_t xdr_fhstatus(XDR *, fhstatus *);
0601 extern bool_t xdr_dirpath(XDR *, dirpath *);
0602 extern bool_t xdr_name(XDR *, name *);
0603 extern bool_t xdr_mountlist(XDR *, mountlist *);
0604 extern bool_t xdr_mountbody(XDR *, mountbody *);
0605 extern bool_t xdr_groups(XDR *, groups *);
0606 extern bool_t xdr_groupnode(XDR *, groupnode *);
0607 extern bool_t xdr_exports(XDR *, exports *);
0608 extern bool_t xdr_exportnode(XDR *, exportnode *);
0609 extern bool_t xdr_ppathcnf(XDR *, ppathcnf *);
0610 
0611 #else /* K&R C */
0612 extern bool_t xdr_nfsstat();
0613 extern bool_t xdr_ftype();
0614 extern bool_t xdr_nfs_fh();
0615 extern bool_t xdr_nfstime();
0616 extern bool_t xdr_fattr();
0617 extern bool_t xdr_sattr();
0618 extern bool_t xdr_filename();
0619 extern bool_t xdr_nfspath();
0620 extern bool_t xdr_attrstat();
0621 extern bool_t xdr_sattrargs();
0622 extern bool_t xdr_diropargs();
0623 extern bool_t xdr_diropokres();
0624 extern bool_t xdr_diropres();
0625 extern bool_t xdr_readlinkres();
0626 extern bool_t xdr_readargs();
0627 extern bool_t xdr_readokres();
0628 extern bool_t xdr_readres();
0629 extern bool_t xdr_writeargs();
0630 extern bool_t xdr_createargs();
0631 extern bool_t xdr_renameargs();
0632 extern bool_t xdr_linkargs();
0633 extern bool_t xdr_symlinkargs();
0634 extern bool_t xdr_nfscookie();
0635 extern bool_t xdr_readdirargs();
0636 extern bool_t xdr_entry();
0637 extern bool_t xdr_dirlist();
0638 extern bool_t xdr_readdirres();
0639 extern bool_t xdr_statfsokres();
0640 extern bool_t xdr_statfsres();
0641 extern bool_t xdr_fhandle();
0642 extern bool_t xdr_fhstatus();
0643 extern bool_t xdr_dirpath();
0644 extern bool_t xdr_name();
0645 extern bool_t xdr_mountlist();
0646 extern bool_t xdr_mountbody();
0647 extern bool_t xdr_groups();
0648 extern bool_t xdr_groupnode();
0649 extern bool_t xdr_exports();
0650 extern bool_t xdr_exportnode();
0651 extern bool_t xdr_ppathcnf();
0652 
0653 #endif /* K&R C */
0654 
0655 #ifdef __cplusplus
0656 }
0657 #endif
0658 
0659 #endif /* !_RPC_NFS2_PROT_H_RPCGEN */