2 * Please do not edit this file.
3 * It was generated using rpcgen.
6 #ifndef _NFS_PROT_H_RPCGEN
7 #define _NFS_PROT_H_RPCGEN
12 #define NFS_MAXDATA 8192
13 #define NFS_MAXPATHLEN 1024
14 #define NFS_MAXNAMLEN 255
16 #define NFS_COOKIESIZE 4
17 #define NFS_FIFO_DEV -1
18 #define NFSMODE_FMT 0170000
19 #define NFSMODE_DIR 0040000
20 #define NFSMODE_CHR 0020000
21 #define NFSMODE_BLK 0060000
22 #define NFSMODE_REG 0100000
23 #define NFSMODE_LNK 0120000
24 #define NFSMODE_SOCK 0140000
25 #define NFSMODE_FIFO 0010000
41 NFSERR_NAMETOOLONG = 63,
47 typedef enum nfsstat nfsstat;
49 extern "C" bool_t xdr_nfsstat(XDR *, nfsstat*);
51 extern bool_t xdr_nfsstat(XDR *, nfsstat*);
52 #else /* Old Style C */
54 #endif /* Old Style C */
68 typedef enum ftype ftype;
70 extern "C" bool_t xdr_ftype(XDR *, ftype*);
72 extern bool_t xdr_ftype(XDR *, ftype*);
73 #else /* Old Style C */
75 #endif /* Old Style C */
79 char data[NFS_FHSIZE];
81 typedef struct nfs_fh nfs_fh;
83 extern "C" bool_t xdr_nfs_fh(XDR *, nfs_fh*);
85 extern bool_t xdr_nfs_fh(XDR *, nfs_fh*);
86 #else /* Old Style C */
88 #endif /* Old Style C */
95 typedef struct nfstime nfstime;
97 extern "C" bool_t xdr_nfstime(XDR *, nfstime*);
99 extern bool_t xdr_nfstime(XDR *, nfstime*);
100 #else /* Old Style C */
101 bool_t xdr_nfstime();
102 #endif /* Old Style C */
121 typedef struct fattr fattr;
123 extern "C" bool_t xdr_fattr(XDR *, fattr*);
125 extern bool_t xdr_fattr(XDR *, fattr*);
126 #else /* Old Style C */
128 #endif /* Old Style C */
139 typedef struct sattr sattr;
141 extern "C" bool_t xdr_sattr(XDR *, sattr*);
143 extern bool_t xdr_sattr(XDR *, sattr*);
144 #else /* Old Style C */
146 #endif /* Old Style C */
149 typedef char *filename;
151 extern "C" bool_t xdr_filename(XDR *, filename*);
153 extern bool_t xdr_filename(XDR *, filename*);
154 #else /* Old Style C */
155 bool_t xdr_filename();
156 #endif /* Old Style C */
159 typedef char *nfspath;
161 extern "C" bool_t xdr_nfspath(XDR *, nfspath*);
163 extern bool_t xdr_nfspath(XDR *, nfspath*);
164 #else /* Old Style C */
165 bool_t xdr_nfspath();
166 #endif /* Old Style C */
175 typedef struct attrstat attrstat;
177 extern "C" bool_t xdr_attrstat(XDR *, attrstat*);
179 extern bool_t xdr_attrstat(XDR *, attrstat*);
180 #else /* Old Style C */
181 bool_t xdr_attrstat();
182 #endif /* Old Style C */
189 typedef struct sattrargs sattrargs;
191 extern "C" bool_t xdr_sattrargs(XDR *, sattrargs*);
193 extern bool_t xdr_sattrargs(XDR *, sattrargs*);
194 #else /* Old Style C */
195 bool_t xdr_sattrargs();
196 #endif /* Old Style C */
203 typedef struct diropargs diropargs;
205 extern "C" bool_t xdr_diropargs(XDR *, diropargs*);
207 extern bool_t xdr_diropargs(XDR *, diropargs*);
208 #else /* Old Style C */
209 bool_t xdr_diropargs();
210 #endif /* Old Style C */
217 typedef struct diropokres diropokres;
219 extern "C" bool_t xdr_diropokres(XDR *, diropokres*);
221 extern bool_t xdr_diropokres(XDR *, diropokres*);
222 #else /* Old Style C */
223 bool_t xdr_diropokres();
224 #endif /* Old Style C */
233 typedef struct diropres diropres;
235 extern "C" bool_t xdr_diropres(XDR *, diropres*);
237 extern bool_t xdr_diropres(XDR *, diropres*);
238 #else /* Old Style C */
239 bool_t xdr_diropres();
240 #endif /* Old Style C */
249 typedef struct readlinkres readlinkres;
251 extern "C" bool_t xdr_readlinkres(XDR *, readlinkres*);
253 extern bool_t xdr_readlinkres(XDR *, readlinkres*);
254 #else /* Old Style C */
255 bool_t xdr_readlinkres();
256 #endif /* Old Style C */
265 typedef struct readargs readargs;
267 extern "C" bool_t xdr_readargs(XDR *, readargs*);
269 extern bool_t xdr_readargs(XDR *, readargs*);
270 #else /* Old Style C */
271 bool_t xdr_readargs();
272 #endif /* Old Style C */
282 typedef struct readokres readokres;
284 extern "C" bool_t xdr_readokres(XDR *, readokres*);
286 extern bool_t xdr_readokres(XDR *, readokres*);
287 #else /* Old Style C */
288 bool_t xdr_readokres();
289 #endif /* Old Style C */
298 typedef struct readres readres;
300 extern "C" bool_t xdr_readres(XDR *, readres*);
302 extern bool_t xdr_readres(XDR *, readres*);
303 #else /* Old Style C */
304 bool_t xdr_readres();
305 #endif /* Old Style C */
318 typedef struct writeargs writeargs;
320 extern "C" bool_t xdr_writeargs(XDR *, writeargs*);
322 extern bool_t xdr_writeargs(XDR *, writeargs*);
323 #else /* Old Style C */
324 bool_t xdr_writeargs();
325 #endif /* Old Style C */
332 typedef struct createargs createargs;
334 extern "C" bool_t xdr_createargs(XDR *, createargs*);
336 extern bool_t xdr_createargs(XDR *, createargs*);
337 #else /* Old Style C */
338 bool_t xdr_createargs();
339 #endif /* Old Style C */
346 typedef struct renameargs renameargs;
348 extern "C" bool_t xdr_renameargs(XDR *, renameargs*);
350 extern bool_t xdr_renameargs(XDR *, renameargs*);
351 #else /* Old Style C */
352 bool_t xdr_renameargs();
353 #endif /* Old Style C */
360 typedef struct linkargs linkargs;
362 extern "C" bool_t xdr_linkargs(XDR *, linkargs*);
364 extern bool_t xdr_linkargs(XDR *, linkargs*);
365 #else /* Old Style C */
366 bool_t xdr_linkargs();
367 #endif /* Old Style C */
375 typedef struct symlinkargs symlinkargs;
377 extern "C" bool_t xdr_symlinkargs(XDR *, symlinkargs*);
379 extern bool_t xdr_symlinkargs(XDR *, symlinkargs*);
380 #else /* Old Style C */
381 bool_t xdr_symlinkargs();
382 #endif /* Old Style C */
385 typedef char nfscookie[NFS_COOKIESIZE];
387 extern "C" bool_t xdr_nfscookie(XDR *, nfscookie);
389 extern bool_t xdr_nfscookie(XDR *, nfscookie);
390 #else /* Old Style C */
391 bool_t xdr_nfscookie();
392 #endif /* Old Style C */
400 typedef struct readdirargs readdirargs;
402 extern "C" bool_t xdr_readdirargs(XDR *, readdirargs*);
404 extern bool_t xdr_readdirargs(XDR *, readdirargs*);
405 #else /* Old Style C */
406 bool_t xdr_readdirargs();
407 #endif /* Old Style C */
414 struct entry *nextentry;
416 typedef struct entry entry;
418 extern "C" bool_t xdr_entry(XDR *, entry*);
420 extern bool_t xdr_entry(XDR *, entry*);
421 #else /* Old Style C */
423 #endif /* Old Style C */
430 typedef struct dirlist dirlist;
432 extern "C" bool_t xdr_dirlist(XDR *, dirlist*);
434 extern bool_t xdr_dirlist(XDR *, dirlist*);
435 #else /* Old Style C */
436 bool_t xdr_dirlist();
437 #endif /* Old Style C */
446 typedef struct readdirres readdirres;
448 extern "C" bool_t xdr_readdirres(XDR *, readdirres*);
450 extern bool_t xdr_readdirres(XDR *, readdirres*);
451 #else /* Old Style C */
452 bool_t xdr_readdirres();
453 #endif /* Old Style C */
463 typedef struct statfsokres statfsokres;
465 extern "C" bool_t xdr_statfsokres(XDR *, statfsokres*);
467 extern bool_t xdr_statfsokres(XDR *, statfsokres*);
468 #else /* Old Style C */
469 bool_t xdr_statfsokres();
470 #endif /* Old Style C */
479 typedef struct statfsres statfsres;
481 extern "C" bool_t xdr_statfsres(XDR *, statfsres*);
483 extern bool_t xdr_statfsres(XDR *, statfsres*);
484 #else /* Old Style C */
485 bool_t xdr_statfsres();
486 #endif /* Old Style C */
489 #define NFS_PROGRAM ((u_long)100003)
490 #define NFS_VERSION ((u_long)2)
493 #define NFSPROC_NULL ((u_long)0)
494 extern "C" void * nfsproc_null_2(void *, CLIENT *);
495 extern "C" void * nfsproc_null_2_svc(void *, struct svc_req *);
496 #define NFSPROC_GETATTR ((u_long)1)
497 extern "C" attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *);
498 extern "C" attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *);
499 #define NFSPROC_SETATTR ((u_long)2)
500 extern "C" attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *);
501 extern "C" attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *);
502 #define NFSPROC_ROOT ((u_long)3)
503 extern "C" void * nfsproc_root_2(void *, CLIENT *);
504 extern "C" void * nfsproc_root_2_svc(void *, struct svc_req *);
505 #define NFSPROC_LOOKUP ((u_long)4)
506 extern "C" diropres * nfsproc_lookup_2(diropargs *, CLIENT *);
507 extern "C" diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *);
508 #define NFSPROC_READLINK ((u_long)5)
509 extern "C" readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *);
510 extern "C" readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *);
511 #define NFSPROC_READ ((u_long)6)
512 extern "C" readres * nfsproc_read_2(readargs *, CLIENT *);
513 extern "C" readres * nfsproc_read_2_svc(readargs *, struct svc_req *);
514 #define NFSPROC_WRITECACHE ((u_long)7)
515 extern "C" void * nfsproc_writecache_2(void *, CLIENT *);
516 extern "C" void * nfsproc_writecache_2_svc(void *, struct svc_req *);
517 #define NFSPROC_WRITE ((u_long)8)
518 extern "C" attrstat * nfsproc_write_2(writeargs *, CLIENT *);
519 extern "C" attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *);
520 #define NFSPROC_CREATE ((u_long)9)
521 extern "C" diropres * nfsproc_create_2(createargs *, CLIENT *);
522 extern "C" diropres * nfsproc_create_2_svc(createargs *, struct svc_req *);
523 #define NFSPROC_REMOVE ((u_long)10)
524 extern "C" nfsstat * nfsproc_remove_2(diropargs *, CLIENT *);
525 extern "C" nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *);
526 #define NFSPROC_RENAME ((u_long)11)
527 extern "C" nfsstat * nfsproc_rename_2(renameargs *, CLIENT *);
528 extern "C" nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *);
529 #define NFSPROC_LINK ((u_long)12)
530 extern "C" nfsstat * nfsproc_link_2(linkargs *, CLIENT *);
531 extern "C" nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *);
532 #define NFSPROC_SYMLINK ((u_long)13)
533 extern "C" nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *);
534 extern "C" nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *);
535 #define NFSPROC_MKDIR ((u_long)14)
536 extern "C" diropres * nfsproc_mkdir_2(createargs *, CLIENT *);
537 extern "C" diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *);
538 #define NFSPROC_RMDIR ((u_long)15)
539 extern "C" nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *);
540 extern "C" nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *);
541 #define NFSPROC_READDIR ((u_long)16)
542 extern "C" readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *);
543 extern "C" readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *);
544 #define NFSPROC_STATFS ((u_long)17)
545 extern "C" statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *);
546 extern "C" statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);
549 #define NFSPROC_NULL ((u_long)0)
550 extern void * nfsproc_null_2(void *, CLIENT *);
551 extern void * nfsproc_null_2_svc(void *, struct svc_req *);
552 #define NFSPROC_GETATTR ((u_long)1)
553 extern attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *);
554 extern attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *);
555 #define NFSPROC_SETATTR ((u_long)2)
556 extern attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *);
557 extern attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *);
558 #define NFSPROC_ROOT ((u_long)3)
559 extern void * nfsproc_root_2(void *, CLIENT *);
560 extern void * nfsproc_root_2_svc(void *, struct svc_req *);
561 #define NFSPROC_LOOKUP ((u_long)4)
562 extern diropres * nfsproc_lookup_2(diropargs *, CLIENT *);
563 extern diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *);
564 #define NFSPROC_READLINK ((u_long)5)
565 extern readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *);
566 extern readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *);
567 #define NFSPROC_READ ((u_long)6)
568 extern readres * nfsproc_read_2(readargs *, CLIENT *);
569 extern readres * nfsproc_read_2_svc(readargs *, struct svc_req *);
570 #define NFSPROC_WRITECACHE ((u_long)7)
571 extern void * nfsproc_writecache_2(void *, CLIENT *);
572 extern void * nfsproc_writecache_2_svc(void *, struct svc_req *);
573 #define NFSPROC_WRITE ((u_long)8)
574 extern attrstat * nfsproc_write_2(writeargs *, CLIENT *);
575 extern attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *);
576 #define NFSPROC_CREATE ((u_long)9)
577 extern diropres * nfsproc_create_2(createargs *, CLIENT *);
578 extern diropres * nfsproc_create_2_svc(createargs *, struct svc_req *);
579 #define NFSPROC_REMOVE ((u_long)10)
580 extern nfsstat * nfsproc_remove_2(diropargs *, CLIENT *);
581 extern nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *);
582 #define NFSPROC_RENAME ((u_long)11)
583 extern nfsstat * nfsproc_rename_2(renameargs *, CLIENT *);
584 extern nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *);
585 #define NFSPROC_LINK ((u_long)12)
586 extern nfsstat * nfsproc_link_2(linkargs *, CLIENT *);
587 extern nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *);
588 #define NFSPROC_SYMLINK ((u_long)13)
589 extern nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *);
590 extern nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *);
591 #define NFSPROC_MKDIR ((u_long)14)
592 extern diropres * nfsproc_mkdir_2(createargs *, CLIENT *);
593 extern diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *);
594 #define NFSPROC_RMDIR ((u_long)15)
595 extern nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *);
596 extern nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *);
597 #define NFSPROC_READDIR ((u_long)16)
598 extern readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *);
599 extern readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *);
600 #define NFSPROC_STATFS ((u_long)17)
601 extern statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *);
602 extern statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);
604 #else /* Old Style C */
605 #define NFSPROC_NULL ((u_long)0)
606 extern void * nfsproc_null_2();
607 extern void * nfsproc_null_2_svc();
608 #define NFSPROC_GETATTR ((u_long)1)
609 extern attrstat * nfsproc_getattr_2();
610 extern attrstat * nfsproc_getattr_2_svc();
611 #define NFSPROC_SETATTR ((u_long)2)
612 extern attrstat * nfsproc_setattr_2();
613 extern attrstat * nfsproc_setattr_2_svc();
614 #define NFSPROC_ROOT ((u_long)3)
615 extern void * nfsproc_root_2();
616 extern void * nfsproc_root_2_svc();
617 #define NFSPROC_LOOKUP ((u_long)4)
618 extern diropres * nfsproc_lookup_2();
619 extern diropres * nfsproc_lookup_2_svc();
620 #define NFSPROC_READLINK ((u_long)5)
621 extern readlinkres * nfsproc_readlink_2();
622 extern readlinkres * nfsproc_readlink_2_svc();
623 #define NFSPROC_READ ((u_long)6)
624 extern readres * nfsproc_read_2();
625 extern readres * nfsproc_read_2_svc();
626 #define NFSPROC_WRITECACHE ((u_long)7)
627 extern void * nfsproc_writecache_2();
628 extern void * nfsproc_writecache_2_svc();
629 #define NFSPROC_WRITE ((u_long)8)
630 extern attrstat * nfsproc_write_2();
631 extern attrstat * nfsproc_write_2_svc();
632 #define NFSPROC_CREATE ((u_long)9)
633 extern diropres * nfsproc_create_2();
634 extern diropres * nfsproc_create_2_svc();
635 #define NFSPROC_REMOVE ((u_long)10)
636 extern nfsstat * nfsproc_remove_2();
637 extern nfsstat * nfsproc_remove_2_svc();
638 #define NFSPROC_RENAME ((u_long)11)
639 extern nfsstat * nfsproc_rename_2();
640 extern nfsstat * nfsproc_rename_2_svc();
641 #define NFSPROC_LINK ((u_long)12)
642 extern nfsstat * nfsproc_link_2();
643 extern nfsstat * nfsproc_link_2_svc();
644 #define NFSPROC_SYMLINK ((u_long)13)
645 extern nfsstat * nfsproc_symlink_2();
646 extern nfsstat * nfsproc_symlink_2_svc();
647 #define NFSPROC_MKDIR ((u_long)14)
648 extern diropres * nfsproc_mkdir_2();
649 extern diropres * nfsproc_mkdir_2_svc();
650 #define NFSPROC_RMDIR ((u_long)15)
651 extern nfsstat * nfsproc_rmdir_2();
652 extern nfsstat * nfsproc_rmdir_2_svc();
653 #define NFSPROC_READDIR ((u_long)16)
654 extern readdirres * nfsproc_readdir_2();
655 extern readdirres * nfsproc_readdir_2_svc();
656 #define NFSPROC_STATFS ((u_long)17)
657 extern statfsres * nfsproc_statfs_2();
658 extern statfsres * nfsproc_statfs_2_svc();
659 #endif /* Old Style C */
661 #endif /* !_NFS_PROT_H_RPCGEN */