1 /* 2 * Please do not edit this file. 3 * It was generated using rpcgen. 4 */ 5 6 #ifndef _RPC_NFS3_PROT_H_RPCGEN 7 #define _RPC_NFS3_PROT_H_RPCGEN 8 9 #include <rpc/rpc.h> 10 11 12 #ifdef __cplusplus 13 extern "C" { 14 #endif 15 16 #define PROGRAM 100003 17 #define VERSION 3 18 #define NFS3_FHSIZE 64 19 #define NFS3_COOKIEVERFSIZE 8 20 #define NFS3_CREATEVERFSIZE 8 21 #define NFS3_WRITEVERFSIZE 8 22 #if defined(HAVE_XDR_U_INT64_T) 23 #define xdr_uint64_t xdr_u_int64_t 24 #elif !defined(HAVE_XDR_UINT64_T) 25 #if defined(HAVE_XDR_U_HYPER) 26 #define xdr_uint64_t xdr_u_hyper 27 #define xdr_int64_t xdr_hyper 28 #elif defined(HAVE_XDR_U_LONGLONG_T) 29 #define xdr_uint64_t xdr_u_longlong_t 30 #define xdr_int64_t xdr_longlong_t 31 #endif 32 #endif 33 34 typedef uint64_t uint64; 35 36 typedef int64_t int64; 37 38 typedef u_long uint32; 39 40 typedef long int32; 41 42 typedef char *filename3; 43 44 typedef char *nfspath3; 45 46 typedef uint64 fileid3; 47 48 typedef uint64 cookie3; 49 50 typedef char cookieverf3[NFS3_COOKIEVERFSIZE]; 51 52 typedef char createverf3[NFS3_CREATEVERFSIZE]; 53 54 typedef char writeverf3[NFS3_WRITEVERFSIZE]; 55 56 typedef uint32 uid3; 57 58 typedef uint32 gid3; 59 60 typedef uint64 size3; 61 62 typedef uint64 offset3; 63 64 typedef uint32 mode3; 65 66 typedef uint32 count3; 67 68 enum nfsstat3 { 69 NFS3_OK = 0, 70 NFS3ERR_PERM = 1, 71 NFS3ERR_NOENT = 2, 72 NFS3ERR_IO = 5, 73 NFS3ERR_NXIO = 6, 74 NFS3ERR_ACCES = 13, 75 NFS3ERR_EXIST = 17, 76 NFS3ERR_XDEV = 18, 77 NFS3ERR_NODEV = 19, 78 NFS3ERR_NOTDIR = 20, 79 NFS3ERR_ISDIR = 21, 80 NFS3ERR_INVAL = 22, 81 NFS3ERR_FBIG = 27, 82 NFS3ERR_NOSPC = 28, 83 NFS3ERR_ROFS = 30, 84 NFS3ERR_MLINK = 31, 85 NFS3ERR_NAMETOOLONG = 63, 86 NFS3ERR_NOTEMPTY = 66, 87 NFS3ERR_DQUOT = 69, 88 NFS3ERR_STALE = 70, 89 NFS3ERR_REMOTE = 71, 90 NFS3ERR_BADHANDLE = 10001, 91 NFS3ERR_NOT_SYNC = 10002, 92 NFS3ERR_BAD_COOKIE = 10003, 93 NFS3ERR_NOTSUPP = 10004, 94 NFS3ERR_TOOSMALL = 10005, 95 NFS3ERR_SERVERFAULT = 10006, 96 NFS3ERR_BADTYPE = 10007, 97 NFS3ERR_JUKEBOX = 10008, 98 }; 99 typedef enum nfsstat3 nfsstat3; 100 101 enum ftype3 { 102 NF3REG = 1, 103 NF3DIR = 2, 104 NF3BLK = 3, 105 NF3CHR = 4, 106 NF3LNK = 5, 107 NF3SOCK = 6, 108 NF3FIFO = 7, 109 }; 110 typedef enum ftype3 ftype3; 111 112 struct specdata3 { 113 uint32 specdata1; 114 uint32 specdata2; 115 }; 116 typedef struct specdata3 specdata3; 117 118 struct nfs_fh3 { 119 struct { 120 u_int data_len; 121 char *data_val; 122 } data; 123 }; 124 typedef struct nfs_fh3 nfs_fh3; 125 126 struct nfstime3 { 127 uint32 seconds; 128 uint32 nseconds; 129 }; 130 typedef struct nfstime3 nfstime3; 131 132 struct fattr3 { 133 ftype3 type; 134 mode3 mode; 135 uint32 nlink; 136 uid3 uid; 137 gid3 gid; 138 size3 size; 139 size3 used; 140 specdata3 rdev; 141 uint64 fsid; 142 fileid3 fileid; 143 nfstime3 atime; 144 nfstime3 mtime; 145 nfstime3 ctime; 146 }; 147 typedef struct fattr3 fattr3; 148 149 struct post_op_attr { 150 bool_t attributes_follow; 151 union { 152 fattr3 attributes; 153 } post_op_attr_u; 154 }; 155 typedef struct post_op_attr post_op_attr; 156 157 struct wcc_attr { 158 size3 size; 159 nfstime3 mtime; 160 nfstime3 ctime; 161 }; 162 typedef struct wcc_attr wcc_attr; 163 164 struct pre_op_attr { 165 bool_t attributes_follow; 166 union { 167 wcc_attr attributes; 168 } pre_op_attr_u; 169 }; 170 typedef struct pre_op_attr pre_op_attr; 171 172 struct wcc_data { 173 pre_op_attr before; 174 post_op_attr after; 175 }; 176 typedef struct wcc_data wcc_data; 177 178 struct post_op_fh3 { 179 bool_t handle_follows; 180 union { 181 nfs_fh3 handle; 182 } post_op_fh3_u; 183 }; 184 typedef struct post_op_fh3 post_op_fh3; 185 186 enum time_how { 187 DONT_CHANGE = 0, 188 SET_TO_SERVER_TIME = 1, 189 SET_TO_CLIENT_TIME = 2, 190 }; 191 typedef enum time_how time_how; 192 193 struct set_mode3 { 194 bool_t set_it; 195 union { 196 mode3 mode; 197 } set_mode3_u; 198 }; 199 typedef struct set_mode3 set_mode3; 200 201 struct set_uid3 { 202 bool_t set_it; 203 union { 204 uid3 uid; 205 } set_uid3_u; 206 }; 207 typedef struct set_uid3 set_uid3; 208 209 struct set_gid3 { 210 bool_t set_it; 211 union { 212 gid3 gid; 213 } set_gid3_u; 214 }; 215 typedef struct set_gid3 set_gid3; 216 217 struct set_size3 { 218 bool_t set_it; 219 union { 220 size3 size; 221 } set_size3_u; 222 }; 223 typedef struct set_size3 set_size3; 224 225 struct set_atime { 226 time_how set_it; 227 union { 228 nfstime3 atime; 229 } set_atime_u; 230 }; 231 typedef struct set_atime set_atime; 232 233 struct set_mtime { 234 time_how set_it; 235 union { 236 nfstime3 mtime; 237 } set_mtime_u; 238 }; 239 typedef struct set_mtime set_mtime; 240 241 struct sattr3 { 242 set_mode3 mode; 243 set_uid3 uid; 244 set_gid3 gid; 245 set_size3 size; 246 set_atime atime; 247 set_mtime mtime; 248 }; 249 typedef struct sattr3 sattr3; 250 251 struct diropargs3 { 252 nfs_fh3 dir; 253 filename3 name; 254 }; 255 typedef struct diropargs3 diropargs3; 256 257 struct GETATTR3args { 258 nfs_fh3 object; 259 }; 260 typedef struct GETATTR3args GETATTR3args; 261 262 struct GETATTR3resok { 263 fattr3 obj_attributes; 264 }; 265 typedef struct GETATTR3resok GETATTR3resok; 266 267 struct GETATTR3res { 268 nfsstat3 status; 269 union { 270 GETATTR3resok resok; 271 } GETATTR3res_u; 272 }; 273 typedef struct GETATTR3res GETATTR3res; 274 275 struct sattrguard3 { 276 bool_t check; 277 union { 278 nfstime3 obj_ctime; 279 } sattrguard3_u; 280 }; 281 typedef struct sattrguard3 sattrguard3; 282 283 struct SETATTR3args { 284 nfs_fh3 object; 285 sattr3 new_attributes; 286 sattrguard3 guard; 287 }; 288 typedef struct SETATTR3args SETATTR3args; 289 290 struct SETATTR3resok { 291 wcc_data obj_wcc; 292 }; 293 typedef struct SETATTR3resok SETATTR3resok; 294 295 struct SETATTR3resfail { 296 wcc_data obj_wcc; 297 }; 298 typedef struct SETATTR3resfail SETATTR3resfail; 299 300 struct SETATTR3res { 301 nfsstat3 status; 302 union { 303 SETATTR3resok resok; 304 SETATTR3resfail resfail; 305 } SETATTR3res_u; 306 }; 307 typedef struct SETATTR3res SETATTR3res; 308 309 struct LOOKUP3args { 310 diropargs3 what; 311 }; 312 typedef struct LOOKUP3args LOOKUP3args; 313 314 struct LOOKUP3resok { 315 nfs_fh3 object; 316 post_op_attr obj_attributes; 317 post_op_attr dir_attributes; 318 }; 319 typedef struct LOOKUP3resok LOOKUP3resok; 320 321 struct LOOKUP3resfail { 322 post_op_attr dir_attributes; 323 }; 324 typedef struct LOOKUP3resfail LOOKUP3resfail; 325 326 struct LOOKUP3res { 327 nfsstat3 status; 328 union { 329 LOOKUP3resok resok; 330 LOOKUP3resfail resfail; 331 } LOOKUP3res_u; 332 }; 333 typedef struct LOOKUP3res LOOKUP3res; 334 #define ACCESS3_READ 0x0001 335 #define ACCESS3_LOOKUP 0x0002 336 #define ACCESS3_MODIFY 0x0004 337 #define ACCESS3_EXTEND 0x0008 338 #define ACCESS3_DELETE 0x0010 339 #define ACCESS3_EXECUTE 0x0020 340 341 struct ACCESS3args { 342 nfs_fh3 object; 343 uint32 access; 344 }; 345 typedef struct ACCESS3args ACCESS3args; 346 347 struct ACCESS3resok { 348 post_op_attr obj_attributes; 349 uint32 access; 350 }; 351 typedef struct ACCESS3resok ACCESS3resok; 352 353 struct ACCESS3resfail { 354 post_op_attr obj_attributes; 355 }; 356 typedef struct ACCESS3resfail ACCESS3resfail; 357 358 struct ACCESS3res { 359 nfsstat3 status; 360 union { 361 ACCESS3resok resok; 362 ACCESS3resfail resfail; 363 } ACCESS3res_u; 364 }; 365 typedef struct ACCESS3res ACCESS3res; 366 367 struct READLINK3args { 368 nfs_fh3 symlink; 369 }; 370 typedef struct READLINK3args READLINK3args; 371 372 struct READLINK3resok { 373 post_op_attr symlink_attributes; 374 nfspath3 data; 375 }; 376 typedef struct READLINK3resok READLINK3resok; 377 378 struct READLINK3resfail { 379 post_op_attr symlink_attributes; 380 }; 381 typedef struct READLINK3resfail READLINK3resfail; 382 383 struct READLINK3res { 384 nfsstat3 status; 385 union { 386 READLINK3resok resok; 387 READLINK3resfail resfail; 388 } READLINK3res_u; 389 }; 390 typedef struct READLINK3res READLINK3res; 391 392 struct READ3args { 393 nfs_fh3 file; 394 offset3 offset; 395 count3 count; 396 }; 397 typedef struct READ3args READ3args; 398 399 struct READ3resok { 400 post_op_attr file_attributes; 401 count3 count; 402 bool_t eof; 403 struct { 404 u_int data_len; 405 char *data_val; 406 } data; 407 }; 408 typedef struct READ3resok READ3resok; 409 410 struct READ3resfail { 411 post_op_attr file_attributes; 412 }; 413 typedef struct READ3resfail READ3resfail; 414 415 struct READ3res { 416 nfsstat3 status; 417 union { 418 READ3resok resok; 419 READ3resfail resfail; 420 } READ3res_u; 421 }; 422 typedef struct READ3res READ3res; 423 424 enum stable_how { 425 UNSTABLE = 0, 426 DATA_SYNC = 1, 427 FILE_SYNC = 2, 428 }; 429 typedef enum stable_how stable_how; 430 431 struct WRITE3args { 432 nfs_fh3 file; 433 offset3 offset; 434 count3 count; 435 stable_how stable; 436 struct { 437 u_int data_len; 438 char *data_val; 439 } data; 440 }; 441 typedef struct WRITE3args WRITE3args; 442 443 struct WRITE3resok { 444 wcc_data file_wcc; 445 count3 count; 446 stable_how committed; 447 writeverf3 verf; 448 }; 449 typedef struct WRITE3resok WRITE3resok; 450 451 struct WRITE3resfail { 452 wcc_data file_wcc; 453 }; 454 typedef struct WRITE3resfail WRITE3resfail; 455 456 struct WRITE3res { 457 nfsstat3 status; 458 union { 459 WRITE3resok resok; 460 WRITE3resfail resfail; 461 } WRITE3res_u; 462 }; 463 typedef struct WRITE3res WRITE3res; 464 465 enum createmode3 { 466 UNCHECKED = 0, 467 GUARDED = 1, 468 EXCLUSIVE = 2, 469 }; 470 typedef enum createmode3 createmode3; 471 472 struct createhow3 { 473 createmode3 mode; 474 union { 475 sattr3 obj_attributes; 476 createverf3 verf; 477 } createhow3_u; 478 }; 479 typedef struct createhow3 createhow3; 480 481 struct CREATE3args { 482 diropargs3 where; 483 createhow3 how; 484 }; 485 typedef struct CREATE3args CREATE3args; 486 487 struct CREATE3resok { 488 post_op_fh3 obj; 489 post_op_attr obj_attributes; 490 wcc_data dir_wcc; 491 }; 492 typedef struct CREATE3resok CREATE3resok; 493 494 struct CREATE3resfail { 495 wcc_data dir_wcc; 496 }; 497 typedef struct CREATE3resfail CREATE3resfail; 498 499 struct CREATE3res { 500 nfsstat3 status; 501 union { 502 CREATE3resok resok; 503 CREATE3resfail resfail; 504 } CREATE3res_u; 505 }; 506 typedef struct CREATE3res CREATE3res; 507 508 struct MKDIR3args { 509 diropargs3 where; 510 sattr3 attributes; 511 }; 512 typedef struct MKDIR3args MKDIR3args; 513 514 struct MKDIR3resok { 515 post_op_fh3 obj; 516 post_op_attr obj_attributes; 517 wcc_data dir_wcc; 518 }; 519 typedef struct MKDIR3resok MKDIR3resok; 520 521 struct MKDIR3resfail { 522 wcc_data dir_wcc; 523 }; 524 typedef struct MKDIR3resfail MKDIR3resfail; 525 526 struct MKDIR3res { 527 nfsstat3 status; 528 union { 529 MKDIR3resok resok; 530 MKDIR3resfail resfail; 531 } MKDIR3res_u; 532 }; 533 typedef struct MKDIR3res MKDIR3res; 534 535 struct symlinkdata3 { 536 sattr3 symlink_attributes; 537 nfspath3 symlink_data; 538 }; 539 typedef struct symlinkdata3 symlinkdata3; 540 541 struct SYMLINK3args { 542 diropargs3 where; 543 symlinkdata3 symlink; 544 }; 545 typedef struct SYMLINK3args SYMLINK3args; 546 547 struct SYMLINK3resok { 548 post_op_fh3 obj; 549 post_op_attr obj_attributes; 550 wcc_data dir_wcc; 551 }; 552 typedef struct SYMLINK3resok SYMLINK3resok; 553 554 struct SYMLINK3resfail { 555 wcc_data dir_wcc; 556 }; 557 typedef struct SYMLINK3resfail SYMLINK3resfail; 558 559 struct SYMLINK3res { 560 nfsstat3 status; 561 union { 562 SYMLINK3resok resok; 563 SYMLINK3resfail resfail; 564 } SYMLINK3res_u; 565 }; 566 typedef struct SYMLINK3res SYMLINK3res; 567 568 struct devicedata3 { 569 sattr3 dev_attributes; 570 specdata3 spec; 571 }; 572 typedef struct devicedata3 devicedata3; 573 574 struct mknoddata3 { 575 ftype3 type; 576 union { 577 devicedata3 device; 578 sattr3 pipe_attributes; 579 } mknoddata3_u; 580 }; 581 typedef struct mknoddata3 mknoddata3; 582 583 struct MKNOD3args { 584 diropargs3 where; 585 mknoddata3 what; 586 }; 587 typedef struct MKNOD3args MKNOD3args; 588 589 struct MKNOD3resok { 590 post_op_fh3 obj; 591 post_op_attr obj_attributes; 592 wcc_data dir_wcc; 593 }; 594 typedef struct MKNOD3resok MKNOD3resok; 595 596 struct MKNOD3resfail { 597 wcc_data dir_wcc; 598 }; 599 typedef struct MKNOD3resfail MKNOD3resfail; 600 601 struct MKNOD3res { 602 nfsstat3 status; 603 union { 604 MKNOD3resok resok; 605 MKNOD3resfail resfail; 606 } MKNOD3res_u; 607 }; 608 typedef struct MKNOD3res MKNOD3res; 609 610 struct REMOVE3args { 611 diropargs3 object; 612 }; 613 typedef struct REMOVE3args REMOVE3args; 614 615 struct REMOVE3resok { 616 wcc_data dir_wcc; 617 }; 618 typedef struct REMOVE3resok REMOVE3resok; 619 620 struct REMOVE3resfail { 621 wcc_data dir_wcc; 622 }; 623 typedef struct REMOVE3resfail REMOVE3resfail; 624 625 struct REMOVE3res { 626 nfsstat3 status; 627 union { 628 REMOVE3resok resok; 629 REMOVE3resfail resfail; 630 } REMOVE3res_u; 631 }; 632 typedef struct REMOVE3res REMOVE3res; 633 634 struct RMDIR3args { 635 diropargs3 object; 636 }; 637 typedef struct RMDIR3args RMDIR3args; 638 639 struct RMDIR3resok { 640 wcc_data dir_wcc; 641 }; 642 typedef struct RMDIR3resok RMDIR3resok; 643 644 struct RMDIR3resfail { 645 wcc_data dir_wcc; 646 }; 647 typedef struct RMDIR3resfail RMDIR3resfail; 648 649 struct RMDIR3res { 650 nfsstat3 status; 651 union { 652 RMDIR3resok resok; 653 RMDIR3resfail resfail; 654 } RMDIR3res_u; 655 }; 656 typedef struct RMDIR3res RMDIR3res; 657 658 struct RENAME3args { 659 diropargs3 from; 660 diropargs3 to; 661 }; 662 typedef struct RENAME3args RENAME3args; 663 664 struct RENAME3resok { 665 wcc_data fromdir_wcc; 666 wcc_data todir_wcc; 667 }; 668 typedef struct RENAME3resok RENAME3resok; 669 670 struct RENAME3resfail { 671 wcc_data fromdir_wcc; 672 wcc_data todir_wcc; 673 }; 674 typedef struct RENAME3resfail RENAME3resfail; 675 676 struct RENAME3res { 677 nfsstat3 status; 678 union { 679 RENAME3resok resok; 680 RENAME3resfail resfail; 681 } RENAME3res_u; 682 }; 683 typedef struct RENAME3res RENAME3res; 684 685 struct LINK3args { 686 nfs_fh3 file; 687 diropargs3 link; 688 }; 689 typedef struct LINK3args LINK3args; 690 691 struct LINK3resok { 692 post_op_attr file_attributes; 693 wcc_data linkdir_wcc; 694 }; 695 typedef struct LINK3resok LINK3resok; 696 697 struct LINK3resfail { 698 post_op_attr file_attributes; 699 wcc_data linkdir_wcc; 700 }; 701 typedef struct LINK3resfail LINK3resfail; 702 703 struct LINK3res { 704 nfsstat3 status; 705 union { 706 LINK3resok resok; 707 LINK3resfail resfail; 708 } LINK3res_u; 709 }; 710 typedef struct LINK3res LINK3res; 711 712 struct READDIR3args { 713 nfs_fh3 dir; 714 cookie3 cookie; 715 cookieverf3 cookieverf; 716 count3 count; 717 }; 718 typedef struct READDIR3args READDIR3args; 719 720 struct entry3 { 721 fileid3 fileid; 722 filename3 name; 723 cookie3 cookie; 724 struct entry3 *nextentry; 725 }; 726 typedef struct entry3 entry3; 727 728 struct dirlist3 { 729 entry3 *entries; 730 bool_t eof; 731 }; 732 typedef struct dirlist3 dirlist3; 733 734 struct READDIR3resok { 735 post_op_attr dir_attributes; 736 cookieverf3 cookieverf; 737 dirlist3 reply; 738 }; 739 typedef struct READDIR3resok READDIR3resok; 740 741 struct READDIR3resfail { 742 post_op_attr dir_attributes; 743 }; 744 typedef struct READDIR3resfail READDIR3resfail; 745 746 struct READDIR3res { 747 nfsstat3 status; 748 union { 749 READDIR3resok resok; 750 READDIR3resfail resfail; 751 } READDIR3res_u; 752 }; 753 typedef struct READDIR3res READDIR3res; 754 755 struct READDIRPLUS3args { 756 nfs_fh3 dir; 757 cookie3 cookie; 758 cookieverf3 cookieverf; 759 count3 dircount; 760 count3 maxcount; 761 }; 762 typedef struct READDIRPLUS3args READDIRPLUS3args; 763 764 struct entryplus3 { 765 fileid3 fileid; 766 filename3 name; 767 cookie3 cookie; 768 post_op_attr name_attributes; 769 post_op_fh3 name_handle; 770 struct entryplus3 *nextentry; 771 }; 772 typedef struct entryplus3 entryplus3; 773 774 struct dirlistplus3 { 775 entryplus3 *entries; 776 bool_t eof; 777 }; 778 typedef struct dirlistplus3 dirlistplus3; 779 780 struct READDIRPLUS3resok { 781 post_op_attr dir_attributes; 782 cookieverf3 cookieverf; 783 dirlistplus3 reply; 784 }; 785 typedef struct READDIRPLUS3resok READDIRPLUS3resok; 786 787 struct READDIRPLUS3resfail { 788 post_op_attr dir_attributes; 789 }; 790 typedef struct READDIRPLUS3resfail READDIRPLUS3resfail; 791 792 struct READDIRPLUS3res { 793 nfsstat3 status; 794 union { 795 READDIRPLUS3resok resok; 796 READDIRPLUS3resfail resfail; 797 } READDIRPLUS3res_u; 798 }; 799 typedef struct READDIRPLUS3res READDIRPLUS3res; 800 801 struct FSSTAT3args { 802 nfs_fh3 fsroot; 803 }; 804 typedef struct FSSTAT3args FSSTAT3args; 805 806 struct FSSTAT3resok { 807 post_op_attr obj_attributes; 808 size3 tbytes; 809 size3 fbytes; 810 size3 abytes; 811 size3 tfiles; 812 size3 ffiles; 813 size3 afiles; 814 uint32 invarsec; 815 }; 816 typedef struct FSSTAT3resok FSSTAT3resok; 817 818 struct FSSTAT3resfail { 819 post_op_attr obj_attributes; 820 }; 821 typedef struct FSSTAT3resfail FSSTAT3resfail; 822 823 struct FSSTAT3res { 824 nfsstat3 status; 825 union { 826 FSSTAT3resok resok; 827 FSSTAT3resfail resfail; 828 } FSSTAT3res_u; 829 }; 830 typedef struct FSSTAT3res FSSTAT3res; 831 #define FSF3_LINK 0x0001 832 #define FSF3_SYMLINK 0x0002 833 #define FSF3_HOMOGENEOUS 0x0008 834 #define FSF3_CANSETTIME 0x0010 835 836 struct FSINFO3args { 837 nfs_fh3 fsroot; 838 }; 839 typedef struct FSINFO3args FSINFO3args; 840 841 struct FSINFO3resok { 842 post_op_attr obj_attributes; 843 uint32 rtmax; 844 uint32 rtpref; 845 uint32 rtmult; 846 uint32 wtmax; 847 uint32 wtpref; 848 uint32 wtmult; 849 uint32 dtpref; 850 size3 maxfilesize; 851 nfstime3 time_delta; 852 uint32 properties; 853 }; 854 typedef struct FSINFO3resok FSINFO3resok; 855 856 struct FSINFO3resfail { 857 post_op_attr obj_attributes; 858 }; 859 typedef struct FSINFO3resfail FSINFO3resfail; 860 861 struct FSINFO3res { 862 nfsstat3 status; 863 union { 864 FSINFO3resok resok; 865 FSINFO3resfail resfail; 866 } FSINFO3res_u; 867 }; 868 typedef struct FSINFO3res FSINFO3res; 869 870 struct PATHCONF3args { 871 nfs_fh3 object; 872 }; 873 typedef struct PATHCONF3args PATHCONF3args; 874 875 struct PATHCONF3resok { 876 post_op_attr obj_attributes; 877 uint32 linkmax; 878 uint32 name_max; 879 bool_t no_trunc; 880 bool_t chown_restricted; 881 bool_t case_insensitive; 882 bool_t case_preserving; 883 }; 884 typedef struct PATHCONF3resok PATHCONF3resok; 885 886 struct PATHCONF3resfail { 887 post_op_attr obj_attributes; 888 }; 889 typedef struct PATHCONF3resfail PATHCONF3resfail; 890 891 struct PATHCONF3res { 892 nfsstat3 status; 893 union { 894 PATHCONF3resok resok; 895 PATHCONF3resfail resfail; 896 } PATHCONF3res_u; 897 }; 898 typedef struct PATHCONF3res PATHCONF3res; 899 900 struct COMMIT3args { 901 nfs_fh3 file; 902 offset3 offset; 903 count3 count; 904 }; 905 typedef struct COMMIT3args COMMIT3args; 906 907 struct COMMIT3resok { 908 wcc_data file_wcc; 909 writeverf3 verf; 910 }; 911 typedef struct COMMIT3resok COMMIT3resok; 912 913 struct COMMIT3resfail { 914 wcc_data file_wcc; 915 }; 916 typedef struct COMMIT3resfail COMMIT3resfail; 917 918 struct COMMIT3res { 919 nfsstat3 status; 920 union { 921 COMMIT3resok resok; 922 COMMIT3resfail resfail; 923 } COMMIT3res_u; 924 }; 925 typedef struct COMMIT3res COMMIT3res; 926 #define MNTPATHLEN3 1024 927 #define MNTNAMLEN3 255 928 #define FHSIZE3 64 929 930 typedef struct { 931 u_int fhandle3_len; 932 char *fhandle3_val; 933 } fhandle3; 934 935 typedef char *dirpath3; 936 937 typedef char *name3; 938 939 enum mountstat3 { 940 MNT3_OK = 0, 941 MNT3ERR_PERM = 1, 942 MNT3ERR_NOENT = 2, 943 MNT3ERR_IO = 5, 944 MNT3ERR_ACCES = 13, 945 MNT3ERR_NOTDIR = 20, 946 MNT3ERR_INVAL = 22, 947 MNT3ERR_NAMETOOLONG = 63, 948 MNT3ERR_NOTSUPP = 10004, 949 MNT3ERR_SERVERFAULT = 10006, 950 }; 951 typedef enum mountstat3 mountstat3; 952 953 struct mountres3_ok { 954 fhandle3 fhandle; 955 struct { 956 u_int auth_flavors_len; 957 int *auth_flavors_val; 958 } auth_flavors; 959 }; 960 typedef struct mountres3_ok mountres3_ok; 961 962 struct mountres3 { 963 mountstat3 fhs_status; 964 union { 965 mountres3_ok mountinfo; 966 } mountres3_u; 967 }; 968 typedef struct mountres3 mountres3; 969 970 typedef struct mountbody3 *mountlist3; 971 972 struct mountbody3 { 973 name3 ml_hostname; 974 dirpath3 ml_directory; 975 mountlist3 ml_next; 976 }; 977 typedef struct mountbody3 mountbody3; 978 979 typedef struct groupnode3 *groups3; 980 981 struct groupnode3 { 982 name3 gr_name; 983 groups3 gr_next; 984 }; 985 typedef struct groupnode3 groupnode3; 986 987 typedef struct exportnode3 *exports3; 988 989 struct exportnode3 { 990 dirpath3 ex_dir; 991 groups3 ex_groups; 992 exports3 ex_next; 993 }; 994 typedef struct exportnode3 exportnode3; 995 996 #define NFS_PROGRAM 100003 997 #define NFS_V3 3 998 999 #if defined(__STDC__) || defined(__cplusplus) 1000 #define NFSPROC3_NULL 0 1001 extern void * nfsproc3_null_3(CLIENT *); 1002 extern void * nfsproc3_null_3_svc(struct svc_req *); 1003 #define NFSPROC3_GETATTR 1 1004 extern GETATTR3res * nfsproc3_getattr_3(GETATTR3args , CLIENT *); 1005 extern GETATTR3res * nfsproc3_getattr_3_svc(GETATTR3args , struct svc_req *); 1006 #define NFSPROC3_SETATTR 2 1007 extern SETATTR3res * nfsproc3_setattr_3(SETATTR3args , CLIENT *); 1008 extern SETATTR3res * nfsproc3_setattr_3_svc(SETATTR3args , struct svc_req *); 1009 #define NFSPROC3_LOOKUP 3 1010 extern LOOKUP3res * nfsproc3_lookup_3(LOOKUP3args , CLIENT *); 1011 extern LOOKUP3res * nfsproc3_lookup_3_svc(LOOKUP3args , struct svc_req *); 1012 #define NFSPROC3_ACCESS 4 1013 extern ACCESS3res * nfsproc3_access_3(ACCESS3args , CLIENT *); 1014 extern ACCESS3res * nfsproc3_access_3_svc(ACCESS3args , struct svc_req *); 1015 #define NFSPROC3_READLINK 5 1016 extern READLINK3res * nfsproc3_readlink_3(READLINK3args , CLIENT *); 1017 extern READLINK3res * nfsproc3_readlink_3_svc(READLINK3args , struct svc_req *); 1018 #define NFSPROC3_READ 6 1019 extern READ3res * nfsproc3_read_3(READ3args , CLIENT *); 1020 extern READ3res * nfsproc3_read_3_svc(READ3args , struct svc_req *); 1021 #define NFSPROC3_WRITE 7 1022 extern WRITE3res * nfsproc3_write_3(WRITE3args , CLIENT *); 1023 extern WRITE3res * nfsproc3_write_3_svc(WRITE3args , struct svc_req *); 1024 #define NFSPROC3_CREATE 8 1025 extern CREATE3res * nfsproc3_create_3(CREATE3args , CLIENT *); 1026 extern CREATE3res * nfsproc3_create_3_svc(CREATE3args , struct svc_req *); 1027 #define NFSPROC3_MKDIR 9 1028 extern MKDIR3res * nfsproc3_mkdir_3(MKDIR3args , CLIENT *); 1029 extern MKDIR3res * nfsproc3_mkdir_3_svc(MKDIR3args , struct svc_req *); 1030 #define NFSPROC3_SYMLINK 10 1031 extern SYMLINK3res * nfsproc3_symlink_3(SYMLINK3args , CLIENT *); 1032 extern SYMLINK3res * nfsproc3_symlink_3_svc(SYMLINK3args , struct svc_req *); 1033 #define NFSPROC3_MKNOD 11 1034 extern MKNOD3res * nfsproc3_mknod_3(MKNOD3args , CLIENT *); 1035 extern MKNOD3res * nfsproc3_mknod_3_svc(MKNOD3args , struct svc_req *); 1036 #define NFSPROC3_REMOVE 12 1037 extern REMOVE3res * nfsproc3_remove_3(REMOVE3args , CLIENT *); 1038 extern REMOVE3res * nfsproc3_remove_3_svc(REMOVE3args , struct svc_req *); 1039 #define NFSPROC3_RMDIR 13 1040 extern RMDIR3res * nfsproc3_rmdir_3(RMDIR3args , CLIENT *); 1041 extern RMDIR3res * nfsproc3_rmdir_3_svc(RMDIR3args , struct svc_req *); 1042 #define NFSPROC3_RENAME 14 1043 extern RENAME3res * nfsproc3_rename_3(RENAME3args , CLIENT *); 1044 extern RENAME3res * nfsproc3_rename_3_svc(RENAME3args , struct svc_req *); 1045 #define NFSPROC3_LINK 15 1046 extern LINK3res * nfsproc3_link_3(LINK3args , CLIENT *); 1047 extern LINK3res * nfsproc3_link_3_svc(LINK3args , struct svc_req *); 1048 #define NFSPROC3_READDIR 16 1049 extern READDIR3res * nfsproc3_readdir_3(READDIR3args , CLIENT *); 1050 extern READDIR3res * nfsproc3_readdir_3_svc(READDIR3args , struct svc_req *); 1051 #define NFSPROC3_READDIRPLUS 17 1052 extern READDIRPLUS3res * nfsproc3_readdirplus_3(READDIRPLUS3args , CLIENT *); 1053 extern READDIRPLUS3res * nfsproc3_readdirplus_3_svc(READDIRPLUS3args , struct svc_req *); 1054 #define NFSPROC3_FSSTAT 18 1055 extern FSSTAT3res * nfsproc3_fsstat_3(FSSTAT3args , CLIENT *); 1056 extern FSSTAT3res * nfsproc3_fsstat_3_svc(FSSTAT3args , struct svc_req *); 1057 #define NFSPROC3_FSINFO 19 1058 extern FSINFO3res * nfsproc3_fsinfo_3(FSINFO3args , CLIENT *); 1059 extern FSINFO3res * nfsproc3_fsinfo_3_svc(FSINFO3args , struct svc_req *); 1060 #define NFSPROC3_PATHCONF 20 1061 extern PATHCONF3res * nfsproc3_pathconf_3(PATHCONF3args , CLIENT *); 1062 extern PATHCONF3res * nfsproc3_pathconf_3_svc(PATHCONF3args , struct svc_req *); 1063 #define NFSPROC3_COMMIT 21 1064 extern COMMIT3res * nfsproc3_commit_3(COMMIT3args , CLIENT *); 1065 extern COMMIT3res * nfsproc3_commit_3_svc(COMMIT3args , struct svc_req *); 1066 extern int nfs_program_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); 1067 1068 #else /* K&R C */ 1069 #define NFSPROC3_NULL 0 1070 extern void * nfsproc3_null_3(); 1071 extern void * nfsproc3_null_3_svc(); 1072 #define NFSPROC3_GETATTR 1 1073 extern GETATTR3res * nfsproc3_getattr_3(); 1074 extern GETATTR3res * nfsproc3_getattr_3_svc(); 1075 #define NFSPROC3_SETATTR 2 1076 extern SETATTR3res * nfsproc3_setattr_3(); 1077 extern SETATTR3res * nfsproc3_setattr_3_svc(); 1078 #define NFSPROC3_LOOKUP 3 1079 extern LOOKUP3res * nfsproc3_lookup_3(); 1080 extern LOOKUP3res * nfsproc3_lookup_3_svc(); 1081 #define NFSPROC3_ACCESS 4 1082 extern ACCESS3res * nfsproc3_access_3(); 1083 extern ACCESS3res * nfsproc3_access_3_svc(); 1084 #define NFSPROC3_READLINK 5 1085 extern READLINK3res * nfsproc3_readlink_3(); 1086 extern READLINK3res * nfsproc3_readlink_3_svc(); 1087 #define NFSPROC3_READ 6 1088 extern READ3res * nfsproc3_read_3(); 1089 extern READ3res * nfsproc3_read_3_svc(); 1090 #define NFSPROC3_WRITE 7 1091 extern WRITE3res * nfsproc3_write_3(); 1092 extern WRITE3res * nfsproc3_write_3_svc(); 1093 #define NFSPROC3_CREATE 8 1094 extern CREATE3res * nfsproc3_create_3(); 1095 extern CREATE3res * nfsproc3_create_3_svc(); 1096 #define NFSPROC3_MKDIR 9 1097 extern MKDIR3res * nfsproc3_mkdir_3(); 1098 extern MKDIR3res * nfsproc3_mkdir_3_svc(); 1099 #define NFSPROC3_SYMLINK 10 1100 extern SYMLINK3res * nfsproc3_symlink_3(); 1101 extern SYMLINK3res * nfsproc3_symlink_3_svc(); 1102 #define NFSPROC3_MKNOD 11 1103 extern MKNOD3res * nfsproc3_mknod_3(); 1104 extern MKNOD3res * nfsproc3_mknod_3_svc(); 1105 #define NFSPROC3_REMOVE 12 1106 extern REMOVE3res * nfsproc3_remove_3(); 1107 extern REMOVE3res * nfsproc3_remove_3_svc(); 1108 #define NFSPROC3_RMDIR 13 1109 extern RMDIR3res * nfsproc3_rmdir_3(); 1110 extern RMDIR3res * nfsproc3_rmdir_3_svc(); 1111 #define NFSPROC3_RENAME 14 1112 extern RENAME3res * nfsproc3_rename_3(); 1113 extern RENAME3res * nfsproc3_rename_3_svc(); 1114 #define NFSPROC3_LINK 15 1115 extern LINK3res * nfsproc3_link_3(); 1116 extern LINK3res * nfsproc3_link_3_svc(); 1117 #define NFSPROC3_READDIR 16 1118 extern READDIR3res * nfsproc3_readdir_3(); 1119 extern READDIR3res * nfsproc3_readdir_3_svc(); 1120 #define NFSPROC3_READDIRPLUS 17 1121 extern READDIRPLUS3res * nfsproc3_readdirplus_3(); 1122 extern READDIRPLUS3res * nfsproc3_readdirplus_3_svc(); 1123 #define NFSPROC3_FSSTAT 18 1124 extern FSSTAT3res * nfsproc3_fsstat_3(); 1125 extern FSSTAT3res * nfsproc3_fsstat_3_svc(); 1126 #define NFSPROC3_FSINFO 19 1127 extern FSINFO3res * nfsproc3_fsinfo_3(); 1128 extern FSINFO3res * nfsproc3_fsinfo_3_svc(); 1129 #define NFSPROC3_PATHCONF 20 1130 extern PATHCONF3res * nfsproc3_pathconf_3(); 1131 extern PATHCONF3res * nfsproc3_pathconf_3_svc(); 1132 #define NFSPROC3_COMMIT 21 1133 extern COMMIT3res * nfsproc3_commit_3(); 1134 extern COMMIT3res * nfsproc3_commit_3_svc(); 1135 extern int nfs_program_3_freeresult (); 1136 #endif /* K&R C */ 1137 1138 #define MOUNT_PROGRAM 100005 1139 #define MOUNT_V3 3 1140 1141 #if defined(__STDC__) || defined(__cplusplus) 1142 #define MOUNTPROC3_NULL 0 1143 extern void * mountproc3_null_3(CLIENT *); 1144 extern void * mountproc3_null_3_svc(struct svc_req *); 1145 #define MOUNTPROC3_MNT 1 1146 extern mountres3 * mountproc3_mnt_3(dirpath3 , CLIENT *); 1147 extern mountres3 * mountproc3_mnt_3_svc(dirpath3 , struct svc_req *); 1148 #define MOUNTPROC3_DUMP 2 1149 extern mountlist3 * mountproc3_dump_3(CLIENT *); 1150 extern mountlist3 * mountproc3_dump_3_svc(struct svc_req *); 1151 #define MOUNTPROC3_UMNT 3 1152 extern void * mountproc3_umnt_3(dirpath3 , CLIENT *); 1153 extern void * mountproc3_umnt_3_svc(dirpath3 , struct svc_req *); 1154 #define MOUNTPROC3_UMNTALL 4 1155 extern void * mountproc3_umntall_3(CLIENT *); 1156 extern void * mountproc3_umntall_3_svc(struct svc_req *); 1157 #define MOUNTPROC3_EXPORT 5 1158 extern exports3 * mountproc3_export_3(CLIENT *); 1159 extern exports3 * mountproc3_export_3_svc(struct svc_req *); 1160 extern int mount_program_3_freeresult (SVCXPRT *, xdrproc_t, caddr_t); 1161 1162 #else /* K&R C */ 1163 #define MOUNTPROC3_NULL 0 1164 extern void * mountproc3_null_3(); 1165 extern void * mountproc3_null_3_svc(); 1166 #define MOUNTPROC3_MNT 1 1167 extern mountres3 * mountproc3_mnt_3(); 1168 extern mountres3 * mountproc3_mnt_3_svc(); 1169 #define MOUNTPROC3_DUMP 2 1170 extern mountlist3 * mountproc3_dump_3(); 1171 extern mountlist3 * mountproc3_dump_3_svc(); 1172 #define MOUNTPROC3_UMNT 3 1173 extern void * mountproc3_umnt_3(); 1174 extern void * mountproc3_umnt_3_svc(); 1175 #define MOUNTPROC3_UMNTALL 4 1176 extern void * mountproc3_umntall_3(); 1177 extern void * mountproc3_umntall_3_svc(); 1178 #define MOUNTPROC3_EXPORT 5 1179 extern exports3 * mountproc3_export_3(); 1180 extern exports3 * mountproc3_export_3_svc(); 1181 extern int mount_program_3_freeresult (); 1182 #endif /* K&R C */ 1183 1184 /* the xdr functions */ 1185 1186 #if defined(__STDC__) || defined(__cplusplus) 1187 extern bool_t xdr_uint64 (XDR *, uint64*); 1188 extern bool_t xdr_int64 (XDR *, int64*); 1189 extern bool_t xdr_uint32 (XDR *, uint32*); 1190 extern bool_t xdr_int32 (XDR *, int32*); 1191 extern bool_t xdr_filename3 (XDR *, filename3*); 1192 extern bool_t xdr_nfspath3 (XDR *, nfspath3*); 1193 extern bool_t xdr_fileid3 (XDR *, fileid3*); 1194 extern bool_t xdr_cookie3 (XDR *, cookie3*); 1195 extern bool_t xdr_cookieverf3 (XDR *, cookieverf3); 1196 extern bool_t xdr_createverf3 (XDR *, createverf3); 1197 extern bool_t xdr_writeverf3 (XDR *, writeverf3); 1198 extern bool_t xdr_uid3 (XDR *, uid3*); 1199 extern bool_t xdr_gid3 (XDR *, gid3*); 1200 extern bool_t xdr_size3 (XDR *, size3*); 1201 extern bool_t xdr_offset3 (XDR *, offset3*); 1202 extern bool_t xdr_mode3 (XDR *, mode3*); 1203 extern bool_t xdr_count3 (XDR *, count3*); 1204 extern bool_t xdr_nfsstat3 (XDR *, nfsstat3*); 1205 extern bool_t xdr_ftype3 (XDR *, ftype3*); 1206 extern bool_t xdr_specdata3 (XDR *, specdata3*); 1207 extern bool_t xdr_nfs_fh3 (XDR *, nfs_fh3*); 1208 extern bool_t xdr_nfstime3 (XDR *, nfstime3*); 1209 extern bool_t xdr_fattr3 (XDR *, fattr3*); 1210 extern bool_t xdr_post_op_attr (XDR *, post_op_attr*); 1211 extern bool_t xdr_wcc_attr (XDR *, wcc_attr*); 1212 extern bool_t xdr_pre_op_attr (XDR *, pre_op_attr*); 1213 extern bool_t xdr_wcc_data (XDR *, wcc_data*); 1214 extern bool_t xdr_post_op_fh3 (XDR *, post_op_fh3*); 1215 extern bool_t xdr_time_how (XDR *, time_how*); 1216 extern bool_t xdr_set_mode3 (XDR *, set_mode3*); 1217 extern bool_t xdr_set_uid3 (XDR *, set_uid3*); 1218 extern bool_t xdr_set_gid3 (XDR *, set_gid3*); 1219 extern bool_t xdr_set_size3 (XDR *, set_size3*); 1220 extern bool_t xdr_set_atime (XDR *, set_atime*); 1221 extern bool_t xdr_set_mtime (XDR *, set_mtime*); 1222 extern bool_t xdr_sattr3 (XDR *, sattr3*); 1223 extern bool_t xdr_diropargs3 (XDR *, diropargs3*); 1224 extern bool_t xdr_GETATTR3args (XDR *, GETATTR3args*); 1225 extern bool_t xdr_GETATTR3resok (XDR *, GETATTR3resok*); 1226 extern bool_t xdr_GETATTR3res (XDR *, GETATTR3res*); 1227 extern bool_t xdr_sattrguard3 (XDR *, sattrguard3*); 1228 extern bool_t xdr_SETATTR3args (XDR *, SETATTR3args*); 1229 extern bool_t xdr_SETATTR3resok (XDR *, SETATTR3resok*); 1230 extern bool_t xdr_SETATTR3resfail (XDR *, SETATTR3resfail*); 1231 extern bool_t xdr_SETATTR3res (XDR *, SETATTR3res*); 1232 extern bool_t xdr_LOOKUP3args (XDR *, LOOKUP3args*); 1233 extern bool_t xdr_LOOKUP3resok (XDR *, LOOKUP3resok*); 1234 extern bool_t xdr_LOOKUP3resfail (XDR *, LOOKUP3resfail*); 1235 extern bool_t xdr_LOOKUP3res (XDR *, LOOKUP3res*); 1236 extern bool_t xdr_ACCESS3args (XDR *, ACCESS3args*); 1237 extern bool_t xdr_ACCESS3resok (XDR *, ACCESS3resok*); 1238 extern bool_t xdr_ACCESS3resfail (XDR *, ACCESS3resfail*); 1239 extern bool_t xdr_ACCESS3res (XDR *, ACCESS3res*); 1240 extern bool_t xdr_READLINK3args (XDR *, READLINK3args*); 1241 extern bool_t xdr_READLINK3resok (XDR *, READLINK3resok*); 1242 extern bool_t xdr_READLINK3resfail (XDR *, READLINK3resfail*); 1243 extern bool_t xdr_READLINK3res (XDR *, READLINK3res*); 1244 extern bool_t xdr_READ3args (XDR *, READ3args*); 1245 extern bool_t xdr_READ3resok (XDR *, READ3resok*); 1246 extern bool_t xdr_READ3resfail (XDR *, READ3resfail*); 1247 extern bool_t xdr_READ3res (XDR *, READ3res*); 1248 extern bool_t xdr_stable_how (XDR *, stable_how*); 1249 extern bool_t xdr_WRITE3args (XDR *, WRITE3args*); 1250 extern bool_t xdr_WRITE3resok (XDR *, WRITE3resok*); 1251 extern bool_t xdr_WRITE3resfail (XDR *, WRITE3resfail*); 1252 extern bool_t xdr_WRITE3res (XDR *, WRITE3res*); 1253 extern bool_t xdr_createmode3 (XDR *, createmode3*); 1254 extern bool_t xdr_createhow3 (XDR *, createhow3*); 1255 extern bool_t xdr_CREATE3args (XDR *, CREATE3args*); 1256 extern bool_t xdr_CREATE3resok (XDR *, CREATE3resok*); 1257 extern bool_t xdr_CREATE3resfail (XDR *, CREATE3resfail*); 1258 extern bool_t xdr_CREATE3res (XDR *, CREATE3res*); 1259 extern bool_t xdr_MKDIR3args (XDR *, MKDIR3args*); 1260 extern bool_t xdr_MKDIR3resok (XDR *, MKDIR3resok*); 1261 extern bool_t xdr_MKDIR3resfail (XDR *, MKDIR3resfail*); 1262 extern bool_t xdr_MKDIR3res (XDR *, MKDIR3res*); 1263 extern bool_t xdr_symlinkdata3 (XDR *, symlinkdata3*); 1264 extern bool_t xdr_SYMLINK3args (XDR *, SYMLINK3args*); 1265 extern bool_t xdr_SYMLINK3resok (XDR *, SYMLINK3resok*); 1266 extern bool_t xdr_SYMLINK3resfail (XDR *, SYMLINK3resfail*); 1267 extern bool_t xdr_SYMLINK3res (XDR *, SYMLINK3res*); 1268 extern bool_t xdr_devicedata3 (XDR *, devicedata3*); 1269 extern bool_t xdr_mknoddata3 (XDR *, mknoddata3*); 1270 extern bool_t xdr_MKNOD3args (XDR *, MKNOD3args*); 1271 extern bool_t xdr_MKNOD3resok (XDR *, MKNOD3resok*); 1272 extern bool_t xdr_MKNOD3resfail (XDR *, MKNOD3resfail*); 1273 extern bool_t xdr_MKNOD3res (XDR *, MKNOD3res*); 1274 extern bool_t xdr_REMOVE3args (XDR *, REMOVE3args*); 1275 extern bool_t xdr_REMOVE3resok (XDR *, REMOVE3resok*); 1276 extern bool_t xdr_REMOVE3resfail (XDR *, REMOVE3resfail*); 1277 extern bool_t xdr_REMOVE3res (XDR *, REMOVE3res*); 1278 extern bool_t xdr_RMDIR3args (XDR *, RMDIR3args*); 1279 extern bool_t xdr_RMDIR3resok (XDR *, RMDIR3resok*); 1280 extern bool_t xdr_RMDIR3resfail (XDR *, RMDIR3resfail*); 1281 extern bool_t xdr_RMDIR3res (XDR *, RMDIR3res*); 1282 extern bool_t xdr_RENAME3args (XDR *, RENAME3args*); 1283 extern bool_t xdr_RENAME3resok (XDR *, RENAME3resok*); 1284 extern bool_t xdr_RENAME3resfail (XDR *, RENAME3resfail*); 1285 extern bool_t xdr_RENAME3res (XDR *, RENAME3res*); 1286 extern bool_t xdr_LINK3args (XDR *, LINK3args*); 1287 extern bool_t xdr_LINK3resok (XDR *, LINK3resok*); 1288 extern bool_t xdr_LINK3resfail (XDR *, LINK3resfail*); 1289 extern bool_t xdr_LINK3res (XDR *, LINK3res*); 1290 extern bool_t xdr_READDIR3args (XDR *, READDIR3args*); 1291 extern bool_t xdr_entry3 (XDR *, entry3*); 1292 extern bool_t xdr_dirlist3 (XDR *, dirlist3*); 1293 extern bool_t xdr_READDIR3resok (XDR *, READDIR3resok*); 1294 extern bool_t xdr_READDIR3resfail (XDR *, READDIR3resfail*); 1295 extern bool_t xdr_READDIR3res (XDR *, READDIR3res*); 1296 extern bool_t xdr_READDIRPLUS3args (XDR *, READDIRPLUS3args*); 1297 extern bool_t xdr_entryplus3 (XDR *, entryplus3*); 1298 extern bool_t xdr_dirlistplus3 (XDR *, dirlistplus3*); 1299 extern bool_t xdr_READDIRPLUS3resok (XDR *, READDIRPLUS3resok*); 1300 extern bool_t xdr_READDIRPLUS3resfail (XDR *, READDIRPLUS3resfail*); 1301 extern bool_t xdr_READDIRPLUS3res (XDR *, READDIRPLUS3res*); 1302 extern bool_t xdr_FSSTAT3args (XDR *, FSSTAT3args*); 1303 extern bool_t xdr_FSSTAT3resok (XDR *, FSSTAT3resok*); 1304 extern bool_t xdr_FSSTAT3resfail (XDR *, FSSTAT3resfail*); 1305 extern bool_t xdr_FSSTAT3res (XDR *, FSSTAT3res*); 1306 extern bool_t xdr_FSINFO3args (XDR *, FSINFO3args*); 1307 extern bool_t xdr_FSINFO3resok (XDR *, FSINFO3resok*); 1308 extern bool_t xdr_FSINFO3resfail (XDR *, FSINFO3resfail*); 1309 extern bool_t xdr_FSINFO3res (XDR *, FSINFO3res*); 1310 extern bool_t xdr_PATHCONF3args (XDR *, PATHCONF3args*); 1311 extern bool_t xdr_PATHCONF3resok (XDR *, PATHCONF3resok*); 1312 extern bool_t xdr_PATHCONF3resfail (XDR *, PATHCONF3resfail*); 1313 extern bool_t xdr_PATHCONF3res (XDR *, PATHCONF3res*); 1314 extern bool_t xdr_COMMIT3args (XDR *, COMMIT3args*); 1315 extern bool_t xdr_COMMIT3resok (XDR *, COMMIT3resok*); 1316 extern bool_t xdr_COMMIT3resfail (XDR *, COMMIT3resfail*); 1317 extern bool_t xdr_COMMIT3res (XDR *, COMMIT3res*); 1318 extern bool_t xdr_fhandle3 (XDR *, fhandle3*); 1319 extern bool_t xdr_dirpath3 (XDR *, dirpath3*); 1320 extern bool_t xdr_name3 (XDR *, name3*); 1321 extern bool_t xdr_mountstat3 (XDR *, mountstat3*); 1322 extern bool_t xdr_mountres3_ok (XDR *, mountres3_ok*); 1323 extern bool_t xdr_mountres3 (XDR *, mountres3*); 1324 extern bool_t xdr_mountlist3 (XDR *, mountlist3*); 1325 extern bool_t xdr_mountbody3 (XDR *, mountbody3*); 1326 extern bool_t xdr_groups3 (XDR *, groups3*); 1327 extern bool_t xdr_groupnode3 (XDR *, groupnode3*); 1328 extern bool_t xdr_exports3 (XDR *, exports3*); 1329 extern bool_t xdr_exportnode3 (XDR *, exportnode3*); 1330 1331 #else /* K&R C */ 1332 extern bool_t xdr_uint64 (); 1333 extern bool_t xdr_int64 (); 1334 extern bool_t xdr_uint32 (); 1335 extern bool_t xdr_int32 (); 1336 extern bool_t xdr_filename3 (); 1337 extern bool_t xdr_nfspath3 (); 1338 extern bool_t xdr_fileid3 (); 1339 extern bool_t xdr_cookie3 (); 1340 extern bool_t xdr_cookieverf3 (); 1341 extern bool_t xdr_createverf3 (); 1342 extern bool_t xdr_writeverf3 (); 1343 extern bool_t xdr_uid3 (); 1344 extern bool_t xdr_gid3 (); 1345 extern bool_t xdr_size3 (); 1346 extern bool_t xdr_offset3 (); 1347 extern bool_t xdr_mode3 (); 1348 extern bool_t xdr_count3 (); 1349 extern bool_t xdr_nfsstat3 (); 1350 extern bool_t xdr_ftype3 (); 1351 extern bool_t xdr_specdata3 (); 1352 extern bool_t xdr_nfs_fh3 (); 1353 extern bool_t xdr_nfstime3 (); 1354 extern bool_t xdr_fattr3 (); 1355 extern bool_t xdr_post_op_attr (); 1356 extern bool_t xdr_wcc_attr (); 1357 extern bool_t xdr_pre_op_attr (); 1358 extern bool_t xdr_wcc_data (); 1359 extern bool_t xdr_post_op_fh3 (); 1360 extern bool_t xdr_time_how (); 1361 extern bool_t xdr_set_mode3 (); 1362 extern bool_t xdr_set_uid3 (); 1363 extern bool_t xdr_set_gid3 (); 1364 extern bool_t xdr_set_size3 (); 1365 extern bool_t xdr_set_atime (); 1366 extern bool_t xdr_set_mtime (); 1367 extern bool_t xdr_sattr3 (); 1368 extern bool_t xdr_diropargs3 (); 1369 extern bool_t xdr_GETATTR3args (); 1370 extern bool_t xdr_GETATTR3resok (); 1371 extern bool_t xdr_GETATTR3res (); 1372 extern bool_t xdr_sattrguard3 (); 1373 extern bool_t xdr_SETATTR3args (); 1374 extern bool_t xdr_SETATTR3resok (); 1375 extern bool_t xdr_SETATTR3resfail (); 1376 extern bool_t xdr_SETATTR3res (); 1377 extern bool_t xdr_LOOKUP3args (); 1378 extern bool_t xdr_LOOKUP3resok (); 1379 extern bool_t xdr_LOOKUP3resfail (); 1380 extern bool_t xdr_LOOKUP3res (); 1381 extern bool_t xdr_ACCESS3args (); 1382 extern bool_t xdr_ACCESS3resok (); 1383 extern bool_t xdr_ACCESS3resfail (); 1384 extern bool_t xdr_ACCESS3res (); 1385 extern bool_t xdr_READLINK3args (); 1386 extern bool_t xdr_READLINK3resok (); 1387 extern bool_t xdr_READLINK3resfail (); 1388 extern bool_t xdr_READLINK3res (); 1389 extern bool_t xdr_READ3args (); 1390 extern bool_t xdr_READ3resok (); 1391 extern bool_t xdr_READ3resfail (); 1392 extern bool_t xdr_READ3res (); 1393 extern bool_t xdr_stable_how (); 1394 extern bool_t xdr_WRITE3args (); 1395 extern bool_t xdr_WRITE3resok (); 1396 extern bool_t xdr_WRITE3resfail (); 1397 extern bool_t xdr_WRITE3res (); 1398 extern bool_t xdr_createmode3 (); 1399 extern bool_t xdr_createhow3 (); 1400 extern bool_t xdr_CREATE3args (); 1401 extern bool_t xdr_CREATE3resok (); 1402 extern bool_t xdr_CREATE3resfail (); 1403 extern bool_t xdr_CREATE3res (); 1404 extern bool_t xdr_MKDIR3args (); 1405 extern bool_t xdr_MKDIR3resok (); 1406 extern bool_t xdr_MKDIR3resfail (); 1407 extern bool_t xdr_MKDIR3res (); 1408 extern bool_t xdr_symlinkdata3 (); 1409 extern bool_t xdr_SYMLINK3args (); 1410 extern bool_t xdr_SYMLINK3resok (); 1411 extern bool_t xdr_SYMLINK3resfail (); 1412 extern bool_t xdr_SYMLINK3res (); 1413 extern bool_t xdr_devicedata3 (); 1414 extern bool_t xdr_mknoddata3 (); 1415 extern bool_t xdr_MKNOD3args (); 1416 extern bool_t xdr_MKNOD3resok (); 1417 extern bool_t xdr_MKNOD3resfail (); 1418 extern bool_t xdr_MKNOD3res (); 1419 extern bool_t xdr_REMOVE3args (); 1420 extern bool_t xdr_REMOVE3resok (); 1421 extern bool_t xdr_REMOVE3resfail (); 1422 extern bool_t xdr_REMOVE3res (); 1423 extern bool_t xdr_RMDIR3args (); 1424 extern bool_t xdr_RMDIR3resok (); 1425 extern bool_t xdr_RMDIR3resfail (); 1426 extern bool_t xdr_RMDIR3res (); 1427 extern bool_t xdr_RENAME3args (); 1428 extern bool_t xdr_RENAME3resok (); 1429 extern bool_t xdr_RENAME3resfail (); 1430 extern bool_t xdr_RENAME3res (); 1431 extern bool_t xdr_LINK3args (); 1432 extern bool_t xdr_LINK3resok (); 1433 extern bool_t xdr_LINK3resfail (); 1434 extern bool_t xdr_LINK3res (); 1435 extern bool_t xdr_READDIR3args (); 1436 extern bool_t xdr_entry3 (); 1437 extern bool_t xdr_dirlist3 (); 1438 extern bool_t xdr_READDIR3resok (); 1439 extern bool_t xdr_READDIR3resfail (); 1440 extern bool_t xdr_READDIR3res (); 1441 extern bool_t xdr_READDIRPLUS3args (); 1442 extern bool_t xdr_entryplus3 (); 1443 extern bool_t xdr_dirlistplus3 (); 1444 extern bool_t xdr_READDIRPLUS3resok (); 1445 extern bool_t xdr_READDIRPLUS3resfail (); 1446 extern bool_t xdr_READDIRPLUS3res (); 1447 extern bool_t xdr_FSSTAT3args (); 1448 extern bool_t xdr_FSSTAT3resok (); 1449 extern bool_t xdr_FSSTAT3resfail (); 1450 extern bool_t xdr_FSSTAT3res (); 1451 extern bool_t xdr_FSINFO3args (); 1452 extern bool_t xdr_FSINFO3resok (); 1453 extern bool_t xdr_FSINFO3resfail (); 1454 extern bool_t xdr_FSINFO3res (); 1455 extern bool_t xdr_PATHCONF3args (); 1456 extern bool_t xdr_PATHCONF3resok (); 1457 extern bool_t xdr_PATHCONF3resfail (); 1458 extern bool_t xdr_PATHCONF3res (); 1459 extern bool_t xdr_COMMIT3args (); 1460 extern bool_t xdr_COMMIT3resok (); 1461 extern bool_t xdr_COMMIT3resfail (); 1462 extern bool_t xdr_COMMIT3res (); 1463 extern bool_t xdr_fhandle3 (); 1464 extern bool_t xdr_dirpath3 (); 1465 extern bool_t xdr_name3 (); 1466 extern bool_t xdr_mountstat3 (); 1467 extern bool_t xdr_mountres3_ok (); 1468 extern bool_t xdr_mountres3 (); 1469 extern bool_t xdr_mountlist3 (); 1470 extern bool_t xdr_mountbody3 (); 1471 extern bool_t xdr_groups3 (); 1472 extern bool_t xdr_groupnode3 (); 1473 extern bool_t xdr_exports3 (); 1474 extern bool_t xdr_exportnode3 (); 1475 1476 #endif /* K&R C */ 1477 1478 #ifdef __cplusplus 1479 } 1480 #endif 1481 1482 #endif /* !_RPC_NFS3_PROT_H_RPCGEN */ 1483