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 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
13 * unrestricted use provided that this legend is included on all tape
14 * media and as a part of the software program in whole or part. Users
15 * may copy or modify Sun RPC without charge, but are not authorized
16 * to license or distribute it to anyone else except as part of a product or
17 * program developed by the user or with the express written consent of
18 * Sun Microsystems, Inc.
20 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
21 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
24 * Sun RPC is provided with no support and without any obligation on the
25 * part of Sun Microsystems, Inc. to assist in its use, correction,
26 * modification or enhancement.
28 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
29 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
30 * OR ANY PART THEREOF.
32 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
33 * or profits or other special, indirect and consequential damages, even if
34 * Sun has been advised of the possibility of such damages.
36 * Sun Microsystems, Inc.
38 * Mountain View, California 94043
41 * Copyright (c) 1987, 1990 by Sun Microsystems, Inc.
44 /* from @(#)nfs_prot.x 1.3 91/03/11 TIRPC 1.0 */
45 #ifndef _rpcsvc_nfs_prot_h
46 #define _rpcsvc_nfs_prot_h
48 #define NFS_MAXDATA 8192
49 #define NFS_MAXPATHLEN 1024
50 #define NFS_MAXNAMLEN 255
52 #define NFS_COOKIESIZE 4
53 #define NFS_FIFO_DEV -1
54 #define NFSMODE_FMT 0170000
55 #define NFSMODE_DIR 0040000
56 #define NFSMODE_CHR 0020000
57 #define NFSMODE_BLK 0060000
58 #define NFSMODE_REG 0100000
59 #define NFSMODE_LNK 0120000
60 #define NFSMODE_SOCK 0140000
61 #define NFSMODE_FIFO 0010000
78 NFSERR_NAMETOOLONG
= 63,
84 typedef enum nfsstat nfsstat
;
86 extern "C" bool_t
xdr_nfsstat(XDR
*, nfsstat
*);
88 extern bool_t
xdr_nfsstat(XDR
*, nfsstat
*);
89 #else /* Old Style C */
91 #endif /* Old Style C */
105 typedef enum ftype ftype
;
107 extern "C" bool_t
xdr_ftype(XDR
*, ftype
*);
109 extern bool_t
xdr_ftype(XDR
*, ftype
*);
110 #else /* Old Style C */
112 #endif /* Old Style C */
116 char data
[NFS_FHSIZE
];
118 typedef struct nfs_fh nfs_fh
;
120 extern "C" bool_t
xdr_nfs_fh(XDR
*, nfs_fh
*);
122 extern bool_t
xdr_nfs_fh(XDR
*, nfs_fh
*);
123 #else /* Old Style C */
125 #endif /* Old Style C */
132 typedef struct nfstime nfstime
;
134 extern "C" bool_t
xdr_nfstime(XDR
*, nfstime
*);
136 extern bool_t
xdr_nfstime(XDR
*, nfstime
*);
137 #else /* Old Style C */
138 bool_t
xdr_nfstime();
139 #endif /* Old Style C */
158 typedef struct fattr fattr
;
160 extern "C" bool_t
xdr_fattr(XDR
*, fattr
*);
162 extern bool_t
xdr_fattr(XDR
*, fattr
*);
163 #else /* Old Style C */
165 #endif /* Old Style C */
176 typedef struct sattr sattr
;
178 extern "C" bool_t
xdr_sattr(XDR
*, sattr
*);
180 extern bool_t
xdr_sattr(XDR
*, sattr
*);
181 #else /* Old Style C */
183 #endif /* Old Style C */
186 typedef char *filename
;
188 extern "C" bool_t
xdr_filename(XDR
*, filename
*);
190 extern bool_t
xdr_filename(XDR
*, filename
*);
191 #else /* Old Style C */
192 bool_t
xdr_filename();
193 #endif /* Old Style C */
196 typedef char *nfspath
;
198 extern "C" bool_t
xdr_nfspath(XDR
*, nfspath
*);
200 extern bool_t
xdr_nfspath(XDR
*, nfspath
*);
201 #else /* Old Style C */
202 bool_t
xdr_nfspath();
203 #endif /* Old Style C */
212 typedef struct attrstat attrstat
;
214 extern "C" bool_t
xdr_attrstat(XDR
*, attrstat
*);
216 extern bool_t
xdr_attrstat(XDR
*, attrstat
*);
217 #else /* Old Style C */
218 bool_t
xdr_attrstat();
219 #endif /* Old Style C */
226 typedef struct sattrargs sattrargs
;
228 extern "C" bool_t
xdr_sattrargs(XDR
*, sattrargs
*);
230 extern bool_t
xdr_sattrargs(XDR
*, sattrargs
*);
231 #else /* Old Style C */
232 bool_t
xdr_sattrargs();
233 #endif /* Old Style C */
240 typedef struct diropargs diropargs
;
242 extern "C" bool_t
xdr_diropargs(XDR
*, diropargs
*);
244 extern bool_t
xdr_diropargs(XDR
*, diropargs
*);
245 #else /* Old Style C */
246 bool_t
xdr_diropargs();
247 #endif /* Old Style C */
254 typedef struct diropokres diropokres
;
256 extern "C" bool_t
xdr_diropokres(XDR
*, diropokres
*);
258 extern bool_t
xdr_diropokres(XDR
*, diropokres
*);
259 #else /* Old Style C */
260 bool_t
xdr_diropokres();
261 #endif /* Old Style C */
270 typedef struct diropres diropres
;
272 extern "C" bool_t
xdr_diropres(XDR
*, diropres
*);
274 extern bool_t
xdr_diropres(XDR
*, diropres
*);
275 #else /* Old Style C */
276 bool_t
xdr_diropres();
277 #endif /* Old Style C */
286 typedef struct readlinkres readlinkres
;
288 extern "C" bool_t
xdr_readlinkres(XDR
*, readlinkres
*);
290 extern bool_t
xdr_readlinkres(XDR
*, readlinkres
*);
291 #else /* Old Style C */
292 bool_t
xdr_readlinkres();
293 #endif /* Old Style C */
302 typedef struct readargs readargs
;
304 extern "C" bool_t
xdr_readargs(XDR
*, readargs
*);
306 extern bool_t
xdr_readargs(XDR
*, readargs
*);
307 #else /* Old Style C */
308 bool_t
xdr_readargs();
309 #endif /* Old Style C */
319 typedef struct readokres readokres
;
321 extern "C" bool_t
xdr_readokres(XDR
*, readokres
*);
323 extern bool_t
xdr_readokres(XDR
*, readokres
*);
324 #else /* Old Style C */
325 bool_t
xdr_readokres();
326 #endif /* Old Style C */
335 typedef struct readres readres
;
337 extern "C" bool_t
xdr_readres(XDR
*, readres
*);
339 extern bool_t
xdr_readres(XDR
*, readres
*);
340 #else /* Old Style C */
341 bool_t
xdr_readres();
342 #endif /* Old Style C */
355 typedef struct writeargs writeargs
;
357 extern "C" bool_t
xdr_writeargs(XDR
*, writeargs
*);
359 extern bool_t
xdr_writeargs(XDR
*, writeargs
*);
360 #else /* Old Style C */
361 bool_t
xdr_writeargs();
362 #endif /* Old Style C */
369 typedef struct createargs createargs
;
371 extern "C" bool_t
xdr_createargs(XDR
*, createargs
*);
373 extern bool_t
xdr_createargs(XDR
*, createargs
*);
374 #else /* Old Style C */
375 bool_t
xdr_createargs();
376 #endif /* Old Style C */
383 typedef struct renameargs renameargs
;
385 extern "C" bool_t
xdr_renameargs(XDR
*, renameargs
*);
387 extern bool_t
xdr_renameargs(XDR
*, renameargs
*);
388 #else /* Old Style C */
389 bool_t
xdr_renameargs();
390 #endif /* Old Style C */
397 typedef struct linkargs linkargs
;
399 extern "C" bool_t
xdr_linkargs(XDR
*, linkargs
*);
401 extern bool_t
xdr_linkargs(XDR
*, linkargs
*);
402 #else /* Old Style C */
403 bool_t
xdr_linkargs();
404 #endif /* Old Style C */
412 typedef struct symlinkargs symlinkargs
;
414 extern "C" bool_t
xdr_symlinkargs(XDR
*, symlinkargs
*);
416 extern bool_t
xdr_symlinkargs(XDR
*, symlinkargs
*);
417 #else /* Old Style C */
418 bool_t
xdr_symlinkargs();
419 #endif /* Old Style C */
422 typedef char nfscookie
[NFS_COOKIESIZE
];
424 extern "C" bool_t
xdr_nfscookie(XDR
*, nfscookie
);
426 extern bool_t
xdr_nfscookie(XDR
*, nfscookie
);
427 #else /* Old Style C */
428 bool_t
xdr_nfscookie();
429 #endif /* Old Style C */
437 typedef struct readdirargs readdirargs
;
439 extern "C" bool_t
xdr_readdirargs(XDR
*, readdirargs
*);
441 extern bool_t
xdr_readdirargs(XDR
*, readdirargs
*);
442 #else /* Old Style C */
443 bool_t
xdr_readdirargs();
444 #endif /* Old Style C */
451 struct entry
*nextentry
;
453 typedef struct entry entry
;
455 extern "C" bool_t
xdr_entry(XDR
*, entry
*);
457 extern bool_t
xdr_entry(XDR
*, entry
*);
458 #else /* Old Style C */
460 #endif /* Old Style C */
467 typedef struct dirlist dirlist
;
469 extern "C" bool_t
xdr_dirlist(XDR
*, dirlist
*);
471 extern bool_t
xdr_dirlist(XDR
*, dirlist
*);
472 #else /* Old Style C */
473 bool_t
xdr_dirlist();
474 #endif /* Old Style C */
483 typedef struct readdirres readdirres
;
485 extern "C" bool_t
xdr_readdirres(XDR
*, readdirres
*);
487 extern bool_t
xdr_readdirres(XDR
*, readdirres
*);
488 #else /* Old Style C */
489 bool_t
xdr_readdirres();
490 #endif /* Old Style C */
500 typedef struct statfsokres statfsokres
;
502 extern "C" bool_t
xdr_statfsokres(XDR
*, statfsokres
*);
504 extern bool_t
xdr_statfsokres(XDR
*, statfsokres
*);
505 #else /* Old Style C */
506 bool_t
xdr_statfsokres();
507 #endif /* Old Style C */
516 typedef struct statfsres statfsres
;
518 extern "C" bool_t
xdr_statfsres(XDR
*, statfsres
*);
520 extern bool_t
xdr_statfsres(XDR
*, statfsres
*);
521 #else /* Old Style C */
522 bool_t
xdr_statfsres();
523 #endif /* Old Style C */
525 #endif /*!_rpcsvc_nfs_prot_h*/
527 #define NFS_PROGRAM ((u_long)100003)
528 #define NFS_VERSION ((u_long)2)
531 #define NFSPROC_NULL ((u_long)0)
532 extern "C" void * nfsproc_null_2(void *, CLIENT
*);
533 extern "C" void * nfsproc_null_2_svc(void *, struct svc_req
*);
534 #define NFSPROC_GETATTR ((u_long)1)
535 extern "C" attrstat
* nfsproc_getattr_2(nfs_fh
*, CLIENT
*);
536 extern "C" attrstat
* nfsproc_getattr_2_svc(nfs_fh
*, struct svc_req
*);
537 #define NFSPROC_SETATTR ((u_long)2)
538 extern "C" attrstat
* nfsproc_setattr_2(sattrargs
*, CLIENT
*);
539 extern "C" attrstat
* nfsproc_setattr_2_svc(sattrargs
*, struct svc_req
*);
540 #define NFSPROC_ROOT ((u_long)3)
541 extern "C" void * nfsproc_root_2(void *, CLIENT
*);
542 extern "C" void * nfsproc_root_2_svc(void *, struct svc_req
*);
543 #define NFSPROC_LOOKUP ((u_long)4)
544 extern "C" diropres
* nfsproc_lookup_2(diropargs
*, CLIENT
*);
545 extern "C" diropres
* nfsproc_lookup_2_svc(diropargs
*, struct svc_req
*);
546 #define NFSPROC_READLINK ((u_long)5)
547 extern "C" readlinkres
* nfsproc_readlink_2(nfs_fh
*, CLIENT
*);
548 extern "C" readlinkres
* nfsproc_readlink_2_svc(nfs_fh
*, struct svc_req
*);
549 #define NFSPROC_READ ((u_long)6)
550 extern "C" readres
* nfsproc_read_2(readargs
*, CLIENT
*);
551 extern "C" readres
* nfsproc_read_2_svc(readargs
*, struct svc_req
*);
552 #define NFSPROC_WRITECACHE ((u_long)7)
553 extern "C" void * nfsproc_writecache_2(void *, CLIENT
*);
554 extern "C" void * nfsproc_writecache_2_svc(void *, struct svc_req
*);
555 #define NFSPROC_WRITE ((u_long)8)
556 extern "C" attrstat
* nfsproc_write_2(writeargs
*, CLIENT
*);
557 extern "C" attrstat
* nfsproc_write_2_svc(writeargs
*, struct svc_req
*);
558 #define NFSPROC_CREATE ((u_long)9)
559 extern "C" diropres
* nfsproc_create_2(createargs
*, CLIENT
*);
560 extern "C" diropres
* nfsproc_create_2_svc(createargs
*, struct svc_req
*);
561 #define NFSPROC_REMOVE ((u_long)10)
562 extern "C" nfsstat
* nfsproc_remove_2(diropargs
*, CLIENT
*);
563 extern "C" nfsstat
* nfsproc_remove_2_svc(diropargs
*, struct svc_req
*);
564 #define NFSPROC_RENAME ((u_long)11)
565 extern "C" nfsstat
* nfsproc_rename_2(renameargs
*, CLIENT
*);
566 extern "C" nfsstat
* nfsproc_rename_2_svc(renameargs
*, struct svc_req
*);
567 #define NFSPROC_LINK ((u_long)12)
568 extern "C" nfsstat
* nfsproc_link_2(linkargs
*, CLIENT
*);
569 extern "C" nfsstat
* nfsproc_link_2_svc(linkargs
*, struct svc_req
*);
570 #define NFSPROC_SYMLINK ((u_long)13)
571 extern "C" nfsstat
* nfsproc_symlink_2(symlinkargs
*, CLIENT
*);
572 extern "C" nfsstat
* nfsproc_symlink_2_svc(symlinkargs
*, struct svc_req
*);
573 #define NFSPROC_MKDIR ((u_long)14)
574 extern "C" diropres
* nfsproc_mkdir_2(createargs
*, CLIENT
*);
575 extern "C" diropres
* nfsproc_mkdir_2_svc(createargs
*, struct svc_req
*);
576 #define NFSPROC_RMDIR ((u_long)15)
577 extern "C" nfsstat
* nfsproc_rmdir_2(diropargs
*, CLIENT
*);
578 extern "C" nfsstat
* nfsproc_rmdir_2_svc(diropargs
*, struct svc_req
*);
579 #define NFSPROC_READDIR ((u_long)16)
580 extern "C" readdirres
* nfsproc_readdir_2(readdirargs
*, CLIENT
*);
581 extern "C" readdirres
* nfsproc_readdir_2_svc(readdirargs
*, struct svc_req
*);
582 #define NFSPROC_STATFS ((u_long)17)
583 extern "C" statfsres
* nfsproc_statfs_2(nfs_fh
*, CLIENT
*);
584 extern "C" statfsres
* nfsproc_statfs_2_svc(nfs_fh
*, struct svc_req
*);
587 #define NFSPROC_NULL ((u_long)0)
588 extern void * nfsproc_null_2(void *, CLIENT
*);
589 extern void * nfsproc_null_2_svc(void *, struct svc_req
*);
590 #define NFSPROC_GETATTR ((u_long)1)
591 extern attrstat
* nfsproc_getattr_2(nfs_fh
*, CLIENT
*);
592 extern attrstat
* nfsproc_getattr_2_svc(nfs_fh
*, struct svc_req
*);
593 #define NFSPROC_SETATTR ((u_long)2)
594 extern attrstat
* nfsproc_setattr_2(sattrargs
*, CLIENT
*);
595 extern attrstat
* nfsproc_setattr_2_svc(sattrargs
*, struct svc_req
*);
596 #define NFSPROC_ROOT ((u_long)3)
597 extern void * nfsproc_root_2(void *, CLIENT
*);
598 extern void * nfsproc_root_2_svc(void *, struct svc_req
*);
599 #define NFSPROC_LOOKUP ((u_long)4)
600 extern diropres
* nfsproc_lookup_2(diropargs
*, CLIENT
*);
601 extern diropres
* nfsproc_lookup_2_svc(diropargs
*, struct svc_req
*);
602 #define NFSPROC_READLINK ((u_long)5)
603 extern readlinkres
* nfsproc_readlink_2(nfs_fh
*, CLIENT
*);
604 extern readlinkres
* nfsproc_readlink_2_svc(nfs_fh
*, struct svc_req
*);
605 #define NFSPROC_READ ((u_long)6)
606 extern readres
* nfsproc_read_2(readargs
*, CLIENT
*);
607 extern readres
* nfsproc_read_2_svc(readargs
*, struct svc_req
*);
608 #define NFSPROC_WRITECACHE ((u_long)7)
609 extern void * nfsproc_writecache_2(void *, CLIENT
*);
610 extern void * nfsproc_writecache_2_svc(void *, struct svc_req
*);
611 #define NFSPROC_WRITE ((u_long)8)
612 extern attrstat
* nfsproc_write_2(writeargs
*, CLIENT
*);
613 extern attrstat
* nfsproc_write_2_svc(writeargs
*, struct svc_req
*);
614 #define NFSPROC_CREATE ((u_long)9)
615 extern diropres
* nfsproc_create_2(createargs
*, CLIENT
*);
616 extern diropres
* nfsproc_create_2_svc(createargs
*, struct svc_req
*);
617 #define NFSPROC_REMOVE ((u_long)10)
618 extern nfsstat
* nfsproc_remove_2(diropargs
*, CLIENT
*);
619 extern nfsstat
* nfsproc_remove_2_svc(diropargs
*, struct svc_req
*);
620 #define NFSPROC_RENAME ((u_long)11)
621 extern nfsstat
* nfsproc_rename_2(renameargs
*, CLIENT
*);
622 extern nfsstat
* nfsproc_rename_2_svc(renameargs
*, struct svc_req
*);
623 #define NFSPROC_LINK ((u_long)12)
624 extern nfsstat
* nfsproc_link_2(linkargs
*, CLIENT
*);
625 extern nfsstat
* nfsproc_link_2_svc(linkargs
*, struct svc_req
*);
626 #define NFSPROC_SYMLINK ((u_long)13)
627 extern nfsstat
* nfsproc_symlink_2(symlinkargs
*, CLIENT
*);
628 extern nfsstat
* nfsproc_symlink_2_svc(symlinkargs
*, struct svc_req
*);
629 #define NFSPROC_MKDIR ((u_long)14)
630 extern diropres
* nfsproc_mkdir_2(createargs
*, CLIENT
*);
631 extern diropres
* nfsproc_mkdir_2_svc(createargs
*, struct svc_req
*);
632 #define NFSPROC_RMDIR ((u_long)15)
633 extern nfsstat
* nfsproc_rmdir_2(diropargs
*, CLIENT
*);
634 extern nfsstat
* nfsproc_rmdir_2_svc(diropargs
*, struct svc_req
*);
635 #define NFSPROC_READDIR ((u_long)16)
636 extern readdirres
* nfsproc_readdir_2(readdirargs
*, CLIENT
*);
637 extern readdirres
* nfsproc_readdir_2_svc(readdirargs
*, struct svc_req
*);
638 #define NFSPROC_STATFS ((u_long)17)
639 extern statfsres
* nfsproc_statfs_2(nfs_fh
*, CLIENT
*);
640 extern statfsres
* nfsproc_statfs_2_svc(nfs_fh
*, struct svc_req
*);
642 #else /* Old Style C */
643 #define NFSPROC_NULL ((u_long)0)
644 extern void * nfsproc_null_2();
645 extern void * nfsproc_null_2_svc();
646 #define NFSPROC_GETATTR ((u_long)1)
647 extern attrstat
* nfsproc_getattr_2();
648 extern attrstat
* nfsproc_getattr_2_svc();
649 #define NFSPROC_SETATTR ((u_long)2)
650 extern attrstat
* nfsproc_setattr_2();
651 extern attrstat
* nfsproc_setattr_2_svc();
652 #define NFSPROC_ROOT ((u_long)3)
653 extern void * nfsproc_root_2();
654 extern void * nfsproc_root_2_svc();
655 #define NFSPROC_LOOKUP ((u_long)4)
656 extern diropres
* nfsproc_lookup_2();
657 extern diropres
* nfsproc_lookup_2_svc();
658 #define NFSPROC_READLINK ((u_long)5)
659 extern readlinkres
* nfsproc_readlink_2();
660 extern readlinkres
* nfsproc_readlink_2_svc();
661 #define NFSPROC_READ ((u_long)6)
662 extern readres
* nfsproc_read_2();
663 extern readres
* nfsproc_read_2_svc();
664 #define NFSPROC_WRITECACHE ((u_long)7)
665 extern void * nfsproc_writecache_2();
666 extern void * nfsproc_writecache_2_svc();
667 #define NFSPROC_WRITE ((u_long)8)
668 extern attrstat
* nfsproc_write_2();
669 extern attrstat
* nfsproc_write_2_svc();
670 #define NFSPROC_CREATE ((u_long)9)
671 extern diropres
* nfsproc_create_2();
672 extern diropres
* nfsproc_create_2_svc();
673 #define NFSPROC_REMOVE ((u_long)10)
674 extern nfsstat
* nfsproc_remove_2();
675 extern nfsstat
* nfsproc_remove_2_svc();
676 #define NFSPROC_RENAME ((u_long)11)
677 extern nfsstat
* nfsproc_rename_2();
678 extern nfsstat
* nfsproc_rename_2_svc();
679 #define NFSPROC_LINK ((u_long)12)
680 extern nfsstat
* nfsproc_link_2();
681 extern nfsstat
* nfsproc_link_2_svc();
682 #define NFSPROC_SYMLINK ((u_long)13)
683 extern nfsstat
* nfsproc_symlink_2();
684 extern nfsstat
* nfsproc_symlink_2_svc();
685 #define NFSPROC_MKDIR ((u_long)14)
686 extern diropres
* nfsproc_mkdir_2();
687 extern diropres
* nfsproc_mkdir_2_svc();
688 #define NFSPROC_RMDIR ((u_long)15)
689 extern nfsstat
* nfsproc_rmdir_2();
690 extern nfsstat
* nfsproc_rmdir_2_svc();
691 #define NFSPROC_READDIR ((u_long)16)
692 extern readdirres
* nfsproc_readdir_2();
693 extern readdirres
* nfsproc_readdir_2_svc();
694 #define NFSPROC_STATFS ((u_long)17)
695 extern statfsres
* nfsproc_statfs_2();
696 extern statfsres
* nfsproc_statfs_2_svc();
697 #endif /* Old Style C */
699 #endif /* !_NFS_PROT_H_RPCGEN */