4ba504fdf0cf46b2c314c85e8c2aa3b6a5031116
[deb_libnfs.git] / nfs / libnfs-raw-nfs.h
1 /*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
5
6 #ifndef _NFS_H_RPCGEN
7 #define _NFS_H_RPCGEN
8
9
10
11
12 #ifdef __cplusplus
13 extern "C" {
14 #endif
15
16 #define NFS3_FHSIZE 64
17 #define NFS3_WRITEVERFSIZE 8
18 #define NFS3_CREATEVERFSIZE 8
19 #define NFS3_COOKIEVERFSIZE 8
20
21 #if defined(ANDROID)
22 typedef long long int quad_t;
23 typedef long long unsigned u_quad_t;
24 #endif
25
26 typedef char cookieverf3[NFS3_COOKIEVERFSIZE];
27
28 typedef u_quad_t uint64;
29
30 typedef uint64 cookie3;
31
32 struct nfs_fh3 {
33 struct {
34 u_int data_len;
35 char *data_val;
36 } data;
37 };
38 typedef struct nfs_fh3 nfs_fh3;
39
40 typedef char *filename3;
41
42 struct diropargs3 {
43 nfs_fh3 dir;
44 filename3 name;
45 };
46 typedef struct diropargs3 diropargs3;
47
48 enum ftype3 {
49 NF3REG = 1,
50 NF3DIR = 2,
51 NF3BLK = 3,
52 NF3CHR = 4,
53 NF3LNK = 5,
54 NF3SOCK = 6,
55 NF3FIFO = 7,
56 };
57 typedef enum ftype3 ftype3;
58
59 typedef u_int mode3;
60
61 typedef u_int uid3;
62
63 typedef u_int gid3;
64
65 typedef uint64 size3;
66
67 typedef uint64 fileid3;
68
69 struct specdata3 {
70 u_int specdata1;
71 u_int specdata2;
72 };
73 typedef struct specdata3 specdata3;
74
75 struct nfstime3 {
76 u_int seconds;
77 u_int nseconds;
78 };
79 typedef struct nfstime3 nfstime3;
80
81 struct fattr3 {
82 ftype3 type;
83 mode3 mode;
84 u_int nlink;
85 uid3 uid;
86 gid3 gid;
87 size3 size;
88 size3 used;
89 specdata3 rdev;
90 uint64 fsid;
91 fileid3 fileid;
92 nfstime3 atime;
93 nfstime3 mtime;
94 nfstime3 ctime;
95 };
96 typedef struct fattr3 fattr3;
97
98 struct post_op_attr {
99 bool_t attributes_follow;
100 union {
101 fattr3 attributes;
102 } post_op_attr_u;
103 };
104 typedef struct post_op_attr post_op_attr;
105
106 enum nfsstat3 {
107 NFS3_OK = 0,
108 NFS3ERR_PERM = 1,
109 NFS3ERR_NOENT = 2,
110 NFS3ERR_IO = 5,
111 NFS3ERR_NXIO = 6,
112 NFS3ERR_ACCES = 13,
113 NFS3ERR_EXIST = 17,
114 NFS3ERR_XDEV = 18,
115 NFS3ERR_NODEV = 19,
116 NFS3ERR_NOTDIR = 20,
117 NFS3ERR_ISDIR = 21,
118 NFS3ERR_INVAL = 22,
119 NFS3ERR_FBIG = 27,
120 NFS3ERR_NOSPC = 28,
121 NFS3ERR_ROFS = 30,
122 NFS3ERR_MLINK = 31,
123 NFS3ERR_NAMETOOLONG = 63,
124 NFS3ERR_NOTEMPTY = 66,
125 NFS3ERR_DQUOT = 69,
126 NFS3ERR_STALE = 70,
127 NFS3ERR_REMOTE = 71,
128 NFS3ERR_BADHANDLE = 10001,
129 NFS3ERR_NOT_SYNC = 10002,
130 NFS3ERR_BAD_COOKIE = 10003,
131 NFS3ERR_NOTSUPP = 10004,
132 NFS3ERR_TOOSMALL = 10005,
133 NFS3ERR_SERVERFAULT = 10006,
134 NFS3ERR_BADTYPE = 10007,
135 NFS3ERR_JUKEBOX = 10008,
136 };
137 typedef enum nfsstat3 nfsstat3;
138
139 enum stable_how {
140 UNSTABLE = 0,
141 DATA_SYNC = 1,
142 FILE_SYNC = 2,
143 };
144 typedef enum stable_how stable_how;
145
146 typedef uint64 offset3;
147
148 typedef u_int count3;
149
150 struct wcc_attr {
151 size3 size;
152 nfstime3 mtime;
153 nfstime3 ctime;
154 };
155 typedef struct wcc_attr wcc_attr;
156
157 struct pre_op_attr {
158 bool_t attributes_follow;
159 union {
160 wcc_attr attributes;
161 } pre_op_attr_u;
162 };
163 typedef struct pre_op_attr pre_op_attr;
164
165 struct wcc_data {
166 pre_op_attr before;
167 post_op_attr after;
168 };
169 typedef struct wcc_data wcc_data;
170
171 struct WRITE3args {
172 nfs_fh3 file;
173 offset3 offset;
174 count3 count;
175 stable_how stable;
176 struct {
177 u_int data_len;
178 char *data_val;
179 } data;
180 };
181 typedef struct WRITE3args WRITE3args;
182
183 typedef char writeverf3[NFS3_WRITEVERFSIZE];
184
185 struct WRITE3resok {
186 wcc_data file_wcc;
187 count3 count;
188 stable_how committed;
189 writeverf3 verf;
190 };
191 typedef struct WRITE3resok WRITE3resok;
192
193 struct WRITE3resfail {
194 wcc_data file_wcc;
195 };
196 typedef struct WRITE3resfail WRITE3resfail;
197
198 struct WRITE3res {
199 nfsstat3 status;
200 union {
201 WRITE3resok resok;
202 WRITE3resfail resfail;
203 } WRITE3res_u;
204 };
205 typedef struct WRITE3res WRITE3res;
206
207 struct LOOKUP3args {
208 diropargs3 what;
209 };
210 typedef struct LOOKUP3args LOOKUP3args;
211
212 struct LOOKUP3resok {
213 nfs_fh3 object;
214 post_op_attr obj_attributes;
215 post_op_attr dir_attributes;
216 };
217 typedef struct LOOKUP3resok LOOKUP3resok;
218
219 struct LOOKUP3resfail {
220 post_op_attr dir_attributes;
221 };
222 typedef struct LOOKUP3resfail LOOKUP3resfail;
223
224 struct LOOKUP3res {
225 nfsstat3 status;
226 union {
227 LOOKUP3resok resok;
228 LOOKUP3resfail resfail;
229 } LOOKUP3res_u;
230 };
231 typedef struct LOOKUP3res LOOKUP3res;
232
233 struct COMMIT3args {
234 nfs_fh3 file;
235 offset3 offset;
236 count3 count;
237 };
238 typedef struct COMMIT3args COMMIT3args;
239
240 struct COMMIT3resok {
241 wcc_data file_wcc;
242 writeverf3 verf;
243 };
244 typedef struct COMMIT3resok COMMIT3resok;
245
246 struct COMMIT3resfail {
247 wcc_data file_wcc;
248 };
249 typedef struct COMMIT3resfail COMMIT3resfail;
250
251 struct COMMIT3res {
252 nfsstat3 status;
253 union {
254 COMMIT3resok resok;
255 COMMIT3resfail resfail;
256 } COMMIT3res_u;
257 };
258 typedef struct COMMIT3res COMMIT3res;
259 #define ACCESS3_READ 0x0001
260 #define ACCESS3_LOOKUP 0x0002
261 #define ACCESS3_MODIFY 0x0004
262 #define ACCESS3_EXTEND 0x0008
263 #define ACCESS3_DELETE 0x0010
264 #define ACCESS3_EXECUTE 0x0020
265
266 struct ACCESS3args {
267 nfs_fh3 object;
268 u_int access;
269 };
270 typedef struct ACCESS3args ACCESS3args;
271
272 struct ACCESS3resok {
273 post_op_attr obj_attributes;
274 u_int access;
275 };
276 typedef struct ACCESS3resok ACCESS3resok;
277
278 struct ACCESS3resfail {
279 post_op_attr obj_attributes;
280 };
281 typedef struct ACCESS3resfail ACCESS3resfail;
282
283 struct ACCESS3res {
284 nfsstat3 status;
285 union {
286 ACCESS3resok resok;
287 ACCESS3resfail resfail;
288 } ACCESS3res_u;
289 };
290 typedef struct ACCESS3res ACCESS3res;
291
292 struct GETATTR3args {
293 nfs_fh3 object;
294 };
295 typedef struct GETATTR3args GETATTR3args;
296
297 struct GETATTR3resok {
298 fattr3 obj_attributes;
299 };
300 typedef struct GETATTR3resok GETATTR3resok;
301
302 struct GETATTR3res {
303 nfsstat3 status;
304 union {
305 GETATTR3resok resok;
306 } GETATTR3res_u;
307 };
308 typedef struct GETATTR3res GETATTR3res;
309
310 enum time_how {
311 DONT_CHANGE = 0,
312 SET_TO_SERVER_TIME = 1,
313 SET_TO_CLIENT_TIME = 2,
314 };
315 typedef enum time_how time_how;
316
317 struct set_mode3 {
318 bool_t set_it;
319 union {
320 mode3 mode;
321 } set_mode3_u;
322 };
323 typedef struct set_mode3 set_mode3;
324
325 struct set_uid3 {
326 bool_t set_it;
327 union {
328 uid3 uid;
329 } set_uid3_u;
330 };
331 typedef struct set_uid3 set_uid3;
332
333 struct set_gid3 {
334 bool_t set_it;
335 union {
336 gid3 gid;
337 } set_gid3_u;
338 };
339 typedef struct set_gid3 set_gid3;
340
341 struct set_size3 {
342 bool_t set_it;
343 union {
344 size3 size;
345 } set_size3_u;
346 };
347 typedef struct set_size3 set_size3;
348
349 struct set_atime {
350 time_how set_it;
351 union {
352 nfstime3 atime;
353 } set_atime_u;
354 };
355 typedef struct set_atime set_atime;
356
357 struct set_mtime {
358 time_how set_it;
359 union {
360 nfstime3 mtime;
361 } set_mtime_u;
362 };
363 typedef struct set_mtime set_mtime;
364
365 struct sattr3 {
366 set_mode3 mode;
367 set_uid3 uid;
368 set_gid3 gid;
369 set_size3 size;
370 set_atime atime;
371 set_mtime mtime;
372 };
373 typedef struct sattr3 sattr3;
374
375 enum createmode3 {
376 UNCHECKED = 0,
377 GUARDED = 1,
378 EXCLUSIVE = 2,
379 };
380 typedef enum createmode3 createmode3;
381
382 typedef char createverf3[NFS3_CREATEVERFSIZE];
383
384 struct createhow3 {
385 createmode3 mode;
386 union {
387 sattr3 obj_attributes;
388 sattr3 g_obj_attributes;
389 createverf3 verf;
390 } createhow3_u;
391 };
392 typedef struct createhow3 createhow3;
393
394 struct CREATE3args {
395 diropargs3 where;
396 createhow3 how;
397 };
398 typedef struct CREATE3args CREATE3args;
399
400 struct post_op_fh3 {
401 bool_t handle_follows;
402 union {
403 nfs_fh3 handle;
404 } post_op_fh3_u;
405 };
406 typedef struct post_op_fh3 post_op_fh3;
407
408 struct CREATE3resok {
409 post_op_fh3 obj;
410 post_op_attr obj_attributes;
411 wcc_data dir_wcc;
412 };
413 typedef struct CREATE3resok CREATE3resok;
414
415 struct CREATE3resfail {
416 wcc_data dir_wcc;
417 };
418 typedef struct CREATE3resfail CREATE3resfail;
419
420 struct CREATE3res {
421 nfsstat3 status;
422 union {
423 CREATE3resok resok;
424 CREATE3resfail resfail;
425 } CREATE3res_u;
426 };
427 typedef struct CREATE3res CREATE3res;
428
429 struct REMOVE3args {
430 diropargs3 object;
431 };
432 typedef struct REMOVE3args REMOVE3args;
433
434 struct REMOVE3resok {
435 wcc_data dir_wcc;
436 };
437 typedef struct REMOVE3resok REMOVE3resok;
438
439 struct REMOVE3resfail {
440 wcc_data dir_wcc;
441 };
442 typedef struct REMOVE3resfail REMOVE3resfail;
443
444 struct REMOVE3res {
445 nfsstat3 status;
446 union {
447 REMOVE3resok resok;
448 REMOVE3resfail resfail;
449 } REMOVE3res_u;
450 };
451 typedef struct REMOVE3res REMOVE3res;
452
453 struct READ3args {
454 nfs_fh3 file;
455 offset3 offset;
456 count3 count;
457 };
458 typedef struct READ3args READ3args;
459
460 struct READ3resok {
461 post_op_attr file_attributes;
462 count3 count;
463 bool_t eof;
464 struct {
465 u_int data_len;
466 char *data_val;
467 } data;
468 };
469 typedef struct READ3resok READ3resok;
470
471 struct READ3resfail {
472 post_op_attr file_attributes;
473 };
474 typedef struct READ3resfail READ3resfail;
475
476 struct READ3res {
477 nfsstat3 status;
478 union {
479 READ3resok resok;
480 READ3resfail resfail;
481 } READ3res_u;
482 };
483 typedef struct READ3res READ3res;
484 #define FSF3_LINK 0x0001
485 #define FSF3_SYMLINK 0x0002
486 #define FSF3_HOMOGENEOUS 0x0008
487 #define FSF3_CANSETTIME 0x0010
488
489 struct FSINFO3args {
490 nfs_fh3 fsroot;
491 };
492 typedef struct FSINFO3args FSINFO3args;
493
494 struct FSINFO3resok {
495 post_op_attr obj_attributes;
496 u_int rtmax;
497 u_int rtpref;
498 u_int rtmult;
499 u_int wtmax;
500 u_int wtpref;
501 u_int wtmult;
502 u_int dtpref;
503 size3 maxfilesize;
504 nfstime3 time_delta;
505 u_int properties;
506 };
507 typedef struct FSINFO3resok FSINFO3resok;
508
509 struct FSINFO3resfail {
510 post_op_attr obj_attributes;
511 };
512 typedef struct FSINFO3resfail FSINFO3resfail;
513
514 struct FSINFO3res {
515 nfsstat3 status;
516 union {
517 FSINFO3resok resok;
518 FSINFO3resfail resfail;
519 } FSINFO3res_u;
520 };
521 typedef struct FSINFO3res FSINFO3res;
522
523 struct FSSTAT3args {
524 nfs_fh3 fsroot;
525 };
526 typedef struct FSSTAT3args FSSTAT3args;
527
528 struct FSSTAT3resok {
529 post_op_attr obj_attributes;
530 size3 tbytes;
531 size3 fbytes;
532 size3 abytes;
533 size3 tfiles;
534 size3 ffiles;
535 size3 afiles;
536 u_int invarsec;
537 };
538 typedef struct FSSTAT3resok FSSTAT3resok;
539
540 struct FSSTAT3resfail {
541 post_op_attr obj_attributes;
542 };
543 typedef struct FSSTAT3resfail FSSTAT3resfail;
544
545 struct FSSTAT3res {
546 nfsstat3 status;
547 union {
548 FSSTAT3resok resok;
549 FSSTAT3resfail resfail;
550 } FSSTAT3res_u;
551 };
552 typedef struct FSSTAT3res FSSTAT3res;
553
554 struct PATHCONF3args {
555 nfs_fh3 object;
556 };
557 typedef struct PATHCONF3args PATHCONF3args;
558
559 struct PATHCONF3resok {
560 post_op_attr obj_attributes;
561 u_int linkmax;
562 u_int name_max;
563 bool_t no_trunc;
564 bool_t chown_restricted;
565 bool_t case_insensitive;
566 bool_t case_preserving;
567 };
568 typedef struct PATHCONF3resok PATHCONF3resok;
569
570 struct PATHCONF3resfail {
571 post_op_attr obj_attributes;
572 };
573 typedef struct PATHCONF3resfail PATHCONF3resfail;
574
575 struct PATHCONF3res {
576 nfsstat3 status;
577 union {
578 PATHCONF3resok resok;
579 PATHCONF3resfail resfail;
580 } PATHCONF3res_u;
581 };
582 typedef struct PATHCONF3res PATHCONF3res;
583
584 typedef char *nfspath3;
585
586 struct symlinkdata3 {
587 sattr3 symlink_attributes;
588 nfspath3 symlink_data;
589 };
590 typedef struct symlinkdata3 symlinkdata3;
591
592 struct SYMLINK3args {
593 diropargs3 where;
594 symlinkdata3 symlink;
595 };
596 typedef struct SYMLINK3args SYMLINK3args;
597
598 struct SYMLINK3resok {
599 post_op_fh3 obj;
600 post_op_attr obj_attributes;
601 wcc_data dir_wcc;
602 };
603 typedef struct SYMLINK3resok SYMLINK3resok;
604
605 struct SYMLINK3resfail {
606 wcc_data dir_wcc;
607 };
608 typedef struct SYMLINK3resfail SYMLINK3resfail;
609
610 struct SYMLINK3res {
611 nfsstat3 status;
612 union {
613 SYMLINK3resok resok;
614 SYMLINK3resfail resfail;
615 } SYMLINK3res_u;
616 };
617 typedef struct SYMLINK3res SYMLINK3res;
618
619 struct READLINK3args {
620 nfs_fh3 symlink;
621 };
622 typedef struct READLINK3args READLINK3args;
623
624 struct READLINK3resok {
625 post_op_attr symlink_attributes;
626 nfspath3 data;
627 };
628 typedef struct READLINK3resok READLINK3resok;
629
630 struct READLINK3resfail {
631 post_op_attr symlink_attributes;
632 };
633 typedef struct READLINK3resfail READLINK3resfail;
634
635 struct READLINK3res {
636 nfsstat3 status;
637 union {
638 READLINK3resok resok;
639 READLINK3resfail resfail;
640 } READLINK3res_u;
641 };
642 typedef struct READLINK3res READLINK3res;
643
644 struct devicedata3 {
645 sattr3 dev_attributes;
646 specdata3 spec;
647 };
648 typedef struct devicedata3 devicedata3;
649
650 struct mknoddata3 {
651 ftype3 type;
652 union {
653 devicedata3 chr_device;
654 devicedata3 blk_device;
655 sattr3 sock_attributes;
656 sattr3 pipe_attributes;
657 } mknoddata3_u;
658 };
659 typedef struct mknoddata3 mknoddata3;
660
661 struct MKNOD3args {
662 diropargs3 where;
663 mknoddata3 what;
664 };
665 typedef struct MKNOD3args MKNOD3args;
666
667 struct MKNOD3resok {
668 post_op_fh3 obj;
669 post_op_attr obj_attributes;
670 wcc_data dir_wcc;
671 };
672 typedef struct MKNOD3resok MKNOD3resok;
673
674 struct MKNOD3resfail {
675 wcc_data dir_wcc;
676 };
677 typedef struct MKNOD3resfail MKNOD3resfail;
678
679 struct MKNOD3res {
680 nfsstat3 status;
681 union {
682 MKNOD3resok resok;
683 MKNOD3resfail resfail;
684 } MKNOD3res_u;
685 };
686 typedef struct MKNOD3res MKNOD3res;
687
688 struct MKDIR3args {
689 diropargs3 where;
690 sattr3 attributes;
691 };
692 typedef struct MKDIR3args MKDIR3args;
693
694 struct MKDIR3resok {
695 post_op_fh3 obj;
696 post_op_attr obj_attributes;
697 wcc_data dir_wcc;
698 };
699 typedef struct MKDIR3resok MKDIR3resok;
700
701 struct MKDIR3resfail {
702 wcc_data dir_wcc;
703 };
704 typedef struct MKDIR3resfail MKDIR3resfail;
705
706 struct MKDIR3res {
707 nfsstat3 status;
708 union {
709 MKDIR3resok resok;
710 MKDIR3resfail resfail;
711 } MKDIR3res_u;
712 };
713 typedef struct MKDIR3res MKDIR3res;
714
715 struct RMDIR3args {
716 diropargs3 object;
717 };
718 typedef struct RMDIR3args RMDIR3args;
719
720 struct RMDIR3resok {
721 wcc_data dir_wcc;
722 };
723 typedef struct RMDIR3resok RMDIR3resok;
724
725 struct RMDIR3resfail {
726 wcc_data dir_wcc;
727 };
728 typedef struct RMDIR3resfail RMDIR3resfail;
729
730 struct RMDIR3res {
731 nfsstat3 status;
732 union {
733 RMDIR3resok resok;
734 RMDIR3resfail resfail;
735 } RMDIR3res_u;
736 };
737 typedef struct RMDIR3res RMDIR3res;
738
739 struct RENAME3args {
740 diropargs3 from;
741 diropargs3 to;
742 };
743 typedef struct RENAME3args RENAME3args;
744
745 struct RENAME3resok {
746 wcc_data fromdir_wcc;
747 wcc_data todir_wcc;
748 };
749 typedef struct RENAME3resok RENAME3resok;
750
751 struct RENAME3resfail {
752 wcc_data fromdir_wcc;
753 wcc_data todir_wcc;
754 };
755 typedef struct RENAME3resfail RENAME3resfail;
756
757 struct RENAME3res {
758 nfsstat3 status;
759 union {
760 RENAME3resok resok;
761 RENAME3resfail resfail;
762 } RENAME3res_u;
763 };
764 typedef struct RENAME3res RENAME3res;
765
766 struct READDIRPLUS3args {
767 nfs_fh3 dir;
768 cookie3 cookie;
769 cookieverf3 cookieverf;
770 count3 dircount;
771 count3 maxcount;
772 };
773 typedef struct READDIRPLUS3args READDIRPLUS3args;
774
775 struct entryplus3 {
776 fileid3 fileid;
777 filename3 name;
778 cookie3 cookie;
779 post_op_attr name_attributes;
780 post_op_fh3 name_handle;
781 struct entryplus3 *nextentry;
782 };
783 typedef struct entryplus3 entryplus3;
784
785 struct dirlistplus3 {
786 entryplus3 *entries;
787 bool_t eof;
788 };
789 typedef struct dirlistplus3 dirlistplus3;
790
791 struct READDIRPLUS3resok {
792 post_op_attr dir_attributes;
793 cookieverf3 cookieverf;
794 dirlistplus3 reply;
795 };
796 typedef struct READDIRPLUS3resok READDIRPLUS3resok;
797
798 struct READDIRPLUS3resfail {
799 post_op_attr dir_attributes;
800 };
801 typedef struct READDIRPLUS3resfail READDIRPLUS3resfail;
802
803 struct READDIRPLUS3res {
804 nfsstat3 status;
805 union {
806 READDIRPLUS3resok resok;
807 READDIRPLUS3resfail resfail;
808 } READDIRPLUS3res_u;
809 };
810 typedef struct READDIRPLUS3res READDIRPLUS3res;
811
812 struct READDIR3args {
813 nfs_fh3 dir;
814 cookie3 cookie;
815 cookieverf3 cookieverf;
816 count3 count;
817 };
818 typedef struct READDIR3args READDIR3args;
819
820 struct entry3 {
821 fileid3 fileid;
822 filename3 name;
823 cookie3 cookie;
824 struct entry3 *nextentry;
825 };
826 typedef struct entry3 entry3;
827
828 struct dirlist3 {
829 entry3 *entries;
830 bool_t eof;
831 };
832 typedef struct dirlist3 dirlist3;
833
834 struct READDIR3resok {
835 post_op_attr dir_attributes;
836 cookieverf3 cookieverf;
837 dirlist3 reply;
838 };
839 typedef struct READDIR3resok READDIR3resok;
840
841 struct READDIR3resfail {
842 post_op_attr dir_attributes;
843 };
844 typedef struct READDIR3resfail READDIR3resfail;
845
846 struct READDIR3res {
847 nfsstat3 status;
848 union {
849 READDIR3resok resok;
850 READDIR3resfail resfail;
851 } READDIR3res_u;
852 };
853 typedef struct READDIR3res READDIR3res;
854
855 struct LINK3args {
856 nfs_fh3 file;
857 diropargs3 link;
858 };
859 typedef struct LINK3args LINK3args;
860
861 struct LINK3resok {
862 post_op_attr file_attributes;
863 wcc_data linkdir_wcc;
864 };
865 typedef struct LINK3resok LINK3resok;
866
867 struct LINK3resfail {
868 post_op_attr file_attributes;
869 wcc_data linkdir_wcc;
870 };
871 typedef struct LINK3resfail LINK3resfail;
872
873 struct LINK3res {
874 nfsstat3 status;
875 union {
876 LINK3resok resok;
877 LINK3resfail resfail;
878 } LINK3res_u;
879 };
880 typedef struct LINK3res LINK3res;
881
882 struct sattrguard3 {
883 bool_t check;
884 union {
885 nfstime3 obj_ctime;
886 } sattrguard3_u;
887 };
888 typedef struct sattrguard3 sattrguard3;
889
890 struct SETATTR3args {
891 nfs_fh3 object;
892 sattr3 new_attributes;
893 sattrguard3 guard;
894 };
895 typedef struct SETATTR3args SETATTR3args;
896
897 struct SETATTR3resok {
898 wcc_data obj_wcc;
899 };
900 typedef struct SETATTR3resok SETATTR3resok;
901
902 struct SETATTR3resfail {
903 wcc_data obj_wcc;
904 };
905 typedef struct SETATTR3resfail SETATTR3resfail;
906
907 struct SETATTR3res {
908 nfsstat3 status;
909 union {
910 SETATTR3resok resok;
911 SETATTR3resfail resfail;
912 } SETATTR3res_u;
913 };
914 typedef struct SETATTR3res SETATTR3res;
915
916 enum nfsacl_type {
917 NFSACL_TYPE_USER_OBJ = 0x0001,
918 NFSACL_TYPE_USER = 0x0002,
919 NFSACL_TYPE_GROUP_OBJ = 0x0004,
920 NFSACL_TYPE_GROUP = 0x0008,
921 NFSACL_TYPE_CLASS_OBJ = 0x0010,
922 NFSACL_TYPE_CLASS = 0x0020,
923 NFSACL_TYPE_DEFAULT = 0x1000,
924 NFSACL_TYPE_DEFAULT_USER_OBJ = 0x1001,
925 NFSACL_TYPE_DEFAULT_USER = 0x1002,
926 NFSACL_TYPE_DEFAULT_GROUP_OBJ = 0x1004,
927 NFSACL_TYPE_DEFAULT_GROUP = 0x1008,
928 NFSACL_TYPE_DEFAULT_CLASS_OBJ = 0x1010,
929 NFSACL_TYPE_DEFAULT_OTHER_OBJ = 0x1020,
930 };
931 typedef enum nfsacl_type nfsacl_type;
932 #define NFSACL_PERM_READ 0x04
933 #define NFSACL_PERM_WRITE 0x02
934 #define NFSACL_PERM_EXEC 0x01
935
936 struct nfsacl_ace {
937 enum nfsacl_type type;
938 u_int id;
939 u_int perm;
940 };
941 typedef struct nfsacl_ace nfsacl_ace;
942 #define NFSACL_MASK_ACL_ENTRY 0x0001
943 #define NFSACL_MASK_ACL_COUNT 0x0002
944 #define NFSACL_MASK_ACL_DEFAULT_ENTRY 0x0004
945 #define NFSACL_MASK_ACL_DEFAULT_COUNT 0x0008
946
947 struct GETACL3args {
948 nfs_fh3 dir;
949 u_int mask;
950 };
951 typedef struct GETACL3args GETACL3args;
952
953 struct GETACL3resok {
954 post_op_attr attr;
955 u_int mask;
956 u_int ace_count;
957 struct {
958 u_int ace_len;
959 struct nfsacl_ace *ace_val;
960 } ace;
961 u_int default_ace_count;
962 struct {
963 u_int default_ace_len;
964 struct nfsacl_ace *default_ace_val;
965 } default_ace;
966 };
967 typedef struct GETACL3resok GETACL3resok;
968
969 struct GETACL3res {
970 nfsstat3 status;
971 union {
972 GETACL3resok resok;
973 } GETACL3res_u;
974 };
975 typedef struct GETACL3res GETACL3res;
976
977 struct SETACL3args {
978 nfs_fh3 dir;
979 u_int mask;
980 u_int ace_count;
981 struct {
982 u_int ace_len;
983 struct nfsacl_ace *ace_val;
984 } ace;
985 u_int default_ace_count;
986 struct {
987 u_int default_ace_len;
988 struct nfsacl_ace *default_ace_val;
989 } default_ace;
990 };
991 typedef struct SETACL3args SETACL3args;
992
993 struct SETACL3resok {
994 post_op_attr attr;
995 };
996 typedef struct SETACL3resok SETACL3resok;
997
998 struct SETACL3res {
999 nfsstat3 status;
1000 union {
1001 SETACL3resok resok;
1002 } SETACL3res_u;
1003 };
1004 typedef struct SETACL3res SETACL3res;
1005
1006 #define NFS_PROGRAM 100003
1007 #define NFS_V3 3
1008
1009 #if defined(__STDC__) || defined(__cplusplus)
1010 #define NFS3_NULL 0
1011 extern void * nfs3_null_3(void *, CLIENT *);
1012 extern void * nfs3_null_3_svc(void *, struct svc_req *);
1013 #define NFS3_GETATTR 1
1014 extern GETATTR3res * nfs3_getattr_3(GETATTR3args *, CLIENT *);
1015 extern GETATTR3res * nfs3_getattr_3_svc(GETATTR3args *, struct svc_req *);
1016 #define NFS3_SETATTR 2
1017 extern SETATTR3res * nfs3_setattr_3(SETATTR3args *, CLIENT *);
1018 extern SETATTR3res * nfs3_setattr_3_svc(SETATTR3args *, struct svc_req *);
1019 #define NFS3_LOOKUP 3
1020 extern LOOKUP3res * nfs3_lookup_3(LOOKUP3args *, CLIENT *);
1021 extern LOOKUP3res * nfs3_lookup_3_svc(LOOKUP3args *, struct svc_req *);
1022 #define NFS3_ACCESS 4
1023 extern ACCESS3res * nfs3_access_3(ACCESS3args *, CLIENT *);
1024 extern ACCESS3res * nfs3_access_3_svc(ACCESS3args *, struct svc_req *);
1025 #define NFS3_READLINK 5
1026 extern READLINK3res * nfs3_readlink_3(READLINK3args *, CLIENT *);
1027 extern READLINK3res * nfs3_readlink_3_svc(READLINK3args *, struct svc_req *);
1028 #define NFS3_READ 6
1029 extern READ3res * nfs3_read_3(READ3args *, CLIENT *);
1030 extern READ3res * nfs3_read_3_svc(READ3args *, struct svc_req *);
1031 #define NFS3_WRITE 7
1032 extern WRITE3res * nfs3_write_3(WRITE3args *, CLIENT *);
1033 extern WRITE3res * nfs3_write_3_svc(WRITE3args *, struct svc_req *);
1034 #define NFS3_CREATE 8
1035 extern CREATE3res * nfs3_create_3(CREATE3args *, CLIENT *);
1036 extern CREATE3res * nfs3_create_3_svc(CREATE3args *, struct svc_req *);
1037 #define NFS3_MKDIR 9
1038 extern MKDIR3res * nfs3_mkdir_3(MKDIR3args *, CLIENT *);
1039 extern MKDIR3res * nfs3_mkdir_3_svc(MKDIR3args *, struct svc_req *);
1040 #define NFS3_SYMLINK 10
1041 extern SYMLINK3res * nfs3_symlink_3(SYMLINK3args *, CLIENT *);
1042 extern SYMLINK3res * nfs3_symlink_3_svc(SYMLINK3args *, struct svc_req *);
1043 #define NFS3_MKNOD 11
1044 extern MKNOD3res * nfs3_mknod_3(MKNOD3args *, CLIENT *);
1045 extern MKNOD3res * nfs3_mknod_3_svc(MKNOD3args *, struct svc_req *);
1046 #define NFS3_REMOVE 12
1047 extern REMOVE3res * nfs3_remove_3(REMOVE3args *, CLIENT *);
1048 extern REMOVE3res * nfs3_remove_3_svc(REMOVE3args *, struct svc_req *);
1049 #define NFS3_RMDIR 13
1050 extern RMDIR3res * nfs3_rmdir_3(RMDIR3args *, CLIENT *);
1051 extern RMDIR3res * nfs3_rmdir_3_svc(RMDIR3args *, struct svc_req *);
1052 #define NFS3_RENAME 14
1053 extern RENAME3res * nfs3_rename_3(RENAME3args *, CLIENT *);
1054 extern RENAME3res * nfs3_rename_3_svc(RENAME3args *, struct svc_req *);
1055 #define NFS3_LINK 15
1056 extern LINK3res * nfs3_link_3(LINK3args *, CLIENT *);
1057 extern LINK3res * nfs3_link_3_svc(LINK3args *, struct svc_req *);
1058 #define NFS3_READDIR 16
1059 extern READDIR3res * nfs3_readdir_3(READDIR3args *, CLIENT *);
1060 extern READDIR3res * nfs3_readdir_3_svc(READDIR3args *, struct svc_req *);
1061 #define NFS3_READDIRPLUS 17
1062 extern READDIRPLUS3res * nfs3_readdirplus_3(READDIRPLUS3args *, CLIENT *);
1063 extern READDIRPLUS3res * nfs3_readdirplus_3_svc(READDIRPLUS3args *, struct svc_req *);
1064 #define NFS3_FSSTAT 18
1065 extern FSSTAT3res * nfs3_fsstat_3(FSSTAT3args *, CLIENT *);
1066 extern FSSTAT3res * nfs3_fsstat_3_svc(FSSTAT3args *, struct svc_req *);
1067 #define NFS3_FSINFO 19
1068 extern FSINFO3res * nfs3_fsinfo_3(FSINFO3args *, CLIENT *);
1069 extern FSINFO3res * nfs3_fsinfo_3_svc(FSINFO3args *, struct svc_req *);
1070 #define NFS3_PATHCONF 20
1071 extern PATHCONF3res * nfs3_pathconf_3(PATHCONF3args *, CLIENT *);
1072 extern PATHCONF3res * nfs3_pathconf_3_svc(PATHCONF3args *, struct svc_req *);
1073 #define NFS3_COMMIT 21
1074 extern COMMIT3res * nfs3_commit_3(COMMIT3args *, CLIENT *);
1075 extern COMMIT3res * nfs3_commit_3_svc(COMMIT3args *, struct svc_req *);
1076 extern int nfs_program_3_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
1077
1078 #else /* K&R C */
1079 #define NFS3_NULL 0
1080 extern void * nfs3_null_3();
1081 extern void * nfs3_null_3_svc();
1082 #define NFS3_GETATTR 1
1083 extern GETATTR3res * nfs3_getattr_3();
1084 extern GETATTR3res * nfs3_getattr_3_svc();
1085 #define NFS3_SETATTR 2
1086 extern SETATTR3res * nfs3_setattr_3();
1087 extern SETATTR3res * nfs3_setattr_3_svc();
1088 #define NFS3_LOOKUP 3
1089 extern LOOKUP3res * nfs3_lookup_3();
1090 extern LOOKUP3res * nfs3_lookup_3_svc();
1091 #define NFS3_ACCESS 4
1092 extern ACCESS3res * nfs3_access_3();
1093 extern ACCESS3res * nfs3_access_3_svc();
1094 #define NFS3_READLINK 5
1095 extern READLINK3res * nfs3_readlink_3();
1096 extern READLINK3res * nfs3_readlink_3_svc();
1097 #define NFS3_READ 6
1098 extern READ3res * nfs3_read_3();
1099 extern READ3res * nfs3_read_3_svc();
1100 #define NFS3_WRITE 7
1101 extern WRITE3res * nfs3_write_3();
1102 extern WRITE3res * nfs3_write_3_svc();
1103 #define NFS3_CREATE 8
1104 extern CREATE3res * nfs3_create_3();
1105 extern CREATE3res * nfs3_create_3_svc();
1106 #define NFS3_MKDIR 9
1107 extern MKDIR3res * nfs3_mkdir_3();
1108 extern MKDIR3res * nfs3_mkdir_3_svc();
1109 #define NFS3_SYMLINK 10
1110 extern SYMLINK3res * nfs3_symlink_3();
1111 extern SYMLINK3res * nfs3_symlink_3_svc();
1112 #define NFS3_MKNOD 11
1113 extern MKNOD3res * nfs3_mknod_3();
1114 extern MKNOD3res * nfs3_mknod_3_svc();
1115 #define NFS3_REMOVE 12
1116 extern REMOVE3res * nfs3_remove_3();
1117 extern REMOVE3res * nfs3_remove_3_svc();
1118 #define NFS3_RMDIR 13
1119 extern RMDIR3res * nfs3_rmdir_3();
1120 extern RMDIR3res * nfs3_rmdir_3_svc();
1121 #define NFS3_RENAME 14
1122 extern RENAME3res * nfs3_rename_3();
1123 extern RENAME3res * nfs3_rename_3_svc();
1124 #define NFS3_LINK 15
1125 extern LINK3res * nfs3_link_3();
1126 extern LINK3res * nfs3_link_3_svc();
1127 #define NFS3_READDIR 16
1128 extern READDIR3res * nfs3_readdir_3();
1129 extern READDIR3res * nfs3_readdir_3_svc();
1130 #define NFS3_READDIRPLUS 17
1131 extern READDIRPLUS3res * nfs3_readdirplus_3();
1132 extern READDIRPLUS3res * nfs3_readdirplus_3_svc();
1133 #define NFS3_FSSTAT 18
1134 extern FSSTAT3res * nfs3_fsstat_3();
1135 extern FSSTAT3res * nfs3_fsstat_3_svc();
1136 #define NFS3_FSINFO 19
1137 extern FSINFO3res * nfs3_fsinfo_3();
1138 extern FSINFO3res * nfs3_fsinfo_3_svc();
1139 #define NFS3_PATHCONF 20
1140 extern PATHCONF3res * nfs3_pathconf_3();
1141 extern PATHCONF3res * nfs3_pathconf_3_svc();
1142 #define NFS3_COMMIT 21
1143 extern COMMIT3res * nfs3_commit_3();
1144 extern COMMIT3res * nfs3_commit_3_svc();
1145 extern int nfs_program_3_freeresult ();
1146 #endif /* K&R C */
1147
1148 #define NFSACL_PROGRAM 100227
1149 #define NFSACL_V3 3
1150
1151 #if defined(__STDC__) || defined(__cplusplus)
1152 #define NFSACL3_NULL 0
1153 extern void * nfsacl3_null_3(void *, CLIENT *);
1154 extern void * nfsacl3_null_3_svc(void *, struct svc_req *);
1155 #define NFSACL3_GETACL 1
1156 extern GETACL3res * nfsacl3_getacl_3(GETACL3args *, CLIENT *);
1157 extern GETACL3res * nfsacl3_getacl_3_svc(GETACL3args *, struct svc_req *);
1158 #define NFSACL3_SETACL 2
1159 extern SETACL3res * nfsacl3_setacl_3(SETACL3args *, CLIENT *);
1160 extern SETACL3res * nfsacl3_setacl_3_svc(SETACL3args *, struct svc_req *);
1161 extern int nfsacl_program_3_freeresult (SVCXPRT *, zdrproc_t, caddr_t);
1162
1163 #else /* K&R C */
1164 #define NFSACL3_NULL 0
1165 extern void * nfsacl3_null_3();
1166 extern void * nfsacl3_null_3_svc();
1167 #define NFSACL3_GETACL 1
1168 extern GETACL3res * nfsacl3_getacl_3();
1169 extern GETACL3res * nfsacl3_getacl_3_svc();
1170 #define NFSACL3_SETACL 2
1171 extern SETACL3res * nfsacl3_setacl_3();
1172 extern SETACL3res * nfsacl3_setacl_3_svc();
1173 extern int nfsacl_program_3_freeresult ();
1174 #endif /* K&R C */
1175
1176 /* the zdr functions */
1177
1178 #if defined(__STDC__) || defined(__cplusplus)
1179 extern bool_t zdr_cookieverf3 (ZDR *, cookieverf3);
1180 extern bool_t zdr_uint64 (ZDR *, uint64*);
1181 extern bool_t zdr_cookie3 (ZDR *, cookie3*);
1182 extern bool_t zdr_nfs_fh3 (ZDR *, nfs_fh3*);
1183 extern bool_t zdr_filename3 (ZDR *, filename3*);
1184 extern bool_t zdr_diropargs3 (ZDR *, diropargs3*);
1185 extern bool_t zdr_ftype3 (ZDR *, ftype3*);
1186 extern bool_t zdr_mode3 (ZDR *, mode3*);
1187 extern bool_t zdr_uid3 (ZDR *, uid3*);
1188 extern bool_t zdr_gid3 (ZDR *, gid3*);
1189 extern bool_t zdr_size3 (ZDR *, size3*);
1190 extern bool_t zdr_fileid3 (ZDR *, fileid3*);
1191 extern bool_t zdr_specdata3 (ZDR *, specdata3*);
1192 extern bool_t zdr_nfstime3 (ZDR *, nfstime3*);
1193 extern bool_t zdr_fattr3 (ZDR *, fattr3*);
1194 extern bool_t zdr_post_op_attr (ZDR *, post_op_attr*);
1195 extern bool_t zdr_nfsstat3 (ZDR *, nfsstat3*);
1196 extern bool_t zdr_stable_how (ZDR *, stable_how*);
1197 extern bool_t zdr_offset3 (ZDR *, offset3*);
1198 extern bool_t zdr_count3 (ZDR *, count3*);
1199 extern bool_t zdr_wcc_attr (ZDR *, wcc_attr*);
1200 extern bool_t zdr_pre_op_attr (ZDR *, pre_op_attr*);
1201 extern bool_t zdr_wcc_data (ZDR *, wcc_data*);
1202 extern bool_t zdr_WRITE3args (ZDR *, WRITE3args*);
1203 extern bool_t zdr_writeverf3 (ZDR *, writeverf3);
1204 extern bool_t zdr_WRITE3resok (ZDR *, WRITE3resok*);
1205 extern bool_t zdr_WRITE3resfail (ZDR *, WRITE3resfail*);
1206 extern bool_t zdr_WRITE3res (ZDR *, WRITE3res*);
1207 extern bool_t zdr_LOOKUP3args (ZDR *, LOOKUP3args*);
1208 extern bool_t zdr_LOOKUP3resok (ZDR *, LOOKUP3resok*);
1209 extern bool_t zdr_LOOKUP3resfail (ZDR *, LOOKUP3resfail*);
1210 extern bool_t zdr_LOOKUP3res (ZDR *, LOOKUP3res*);
1211 extern bool_t zdr_COMMIT3args (ZDR *, COMMIT3args*);
1212 extern bool_t zdr_COMMIT3resok (ZDR *, COMMIT3resok*);
1213 extern bool_t zdr_COMMIT3resfail (ZDR *, COMMIT3resfail*);
1214 extern bool_t zdr_COMMIT3res (ZDR *, COMMIT3res*);
1215 extern bool_t zdr_ACCESS3args (ZDR *, ACCESS3args*);
1216 extern bool_t zdr_ACCESS3resok (ZDR *, ACCESS3resok*);
1217 extern bool_t zdr_ACCESS3resfail (ZDR *, ACCESS3resfail*);
1218 extern bool_t zdr_ACCESS3res (ZDR *, ACCESS3res*);
1219 extern bool_t zdr_GETATTR3args (ZDR *, GETATTR3args*);
1220 extern bool_t zdr_GETATTR3resok (ZDR *, GETATTR3resok*);
1221 extern bool_t zdr_GETATTR3res (ZDR *, GETATTR3res*);
1222 extern bool_t zdr_time_how (ZDR *, time_how*);
1223 extern bool_t zdr_set_mode3 (ZDR *, set_mode3*);
1224 extern bool_t zdr_set_uid3 (ZDR *, set_uid3*);
1225 extern bool_t zdr_set_gid3 (ZDR *, set_gid3*);
1226 extern bool_t zdr_set_size3 (ZDR *, set_size3*);
1227 extern bool_t zdr_set_atime (ZDR *, set_atime*);
1228 extern bool_t zdr_set_mtime (ZDR *, set_mtime*);
1229 extern bool_t zdr_sattr3 (ZDR *, sattr3*);
1230 extern bool_t zdr_createmode3 (ZDR *, createmode3*);
1231 extern bool_t zdr_createverf3 (ZDR *, createverf3);
1232 extern bool_t zdr_createhow3 (ZDR *, createhow3*);
1233 extern bool_t zdr_CREATE3args (ZDR *, CREATE3args*);
1234 extern bool_t zdr_post_op_fh3 (ZDR *, post_op_fh3*);
1235 extern bool_t zdr_CREATE3resok (ZDR *, CREATE3resok*);
1236 extern bool_t zdr_CREATE3resfail (ZDR *, CREATE3resfail*);
1237 extern bool_t zdr_CREATE3res (ZDR *, CREATE3res*);
1238 extern bool_t zdr_REMOVE3args (ZDR *, REMOVE3args*);
1239 extern bool_t zdr_REMOVE3resok (ZDR *, REMOVE3resok*);
1240 extern bool_t zdr_REMOVE3resfail (ZDR *, REMOVE3resfail*);
1241 extern bool_t zdr_REMOVE3res (ZDR *, REMOVE3res*);
1242 extern bool_t zdr_READ3args (ZDR *, READ3args*);
1243 extern bool_t zdr_READ3resok (ZDR *, READ3resok*);
1244 extern bool_t zdr_READ3resfail (ZDR *, READ3resfail*);
1245 extern bool_t zdr_READ3res (ZDR *, READ3res*);
1246 extern bool_t zdr_FSINFO3args (ZDR *, FSINFO3args*);
1247 extern bool_t zdr_FSINFO3resok (ZDR *, FSINFO3resok*);
1248 extern bool_t zdr_FSINFO3resfail (ZDR *, FSINFO3resfail*);
1249 extern bool_t zdr_FSINFO3res (ZDR *, FSINFO3res*);
1250 extern bool_t zdr_FSSTAT3args (ZDR *, FSSTAT3args*);
1251 extern bool_t zdr_FSSTAT3resok (ZDR *, FSSTAT3resok*);
1252 extern bool_t zdr_FSSTAT3resfail (ZDR *, FSSTAT3resfail*);
1253 extern bool_t zdr_FSSTAT3res (ZDR *, FSSTAT3res*);
1254 extern bool_t zdr_PATHCONF3args (ZDR *, PATHCONF3args*);
1255 extern bool_t zdr_PATHCONF3resok (ZDR *, PATHCONF3resok*);
1256 extern bool_t zdr_PATHCONF3resfail (ZDR *, PATHCONF3resfail*);
1257 extern bool_t zdr_PATHCONF3res (ZDR *, PATHCONF3res*);
1258 extern bool_t zdr_nfspath3 (ZDR *, nfspath3*);
1259 extern bool_t zdr_symlinkdata3 (ZDR *, symlinkdata3*);
1260 extern bool_t zdr_SYMLINK3args (ZDR *, SYMLINK3args*);
1261 extern bool_t zdr_SYMLINK3resok (ZDR *, SYMLINK3resok*);
1262 extern bool_t zdr_SYMLINK3resfail (ZDR *, SYMLINK3resfail*);
1263 extern bool_t zdr_SYMLINK3res (ZDR *, SYMLINK3res*);
1264 extern bool_t zdr_READLINK3args (ZDR *, READLINK3args*);
1265 extern bool_t zdr_READLINK3resok (ZDR *, READLINK3resok*);
1266 extern bool_t zdr_READLINK3resfail (ZDR *, READLINK3resfail*);
1267 extern bool_t zdr_READLINK3res (ZDR *, READLINK3res*);
1268 extern bool_t zdr_devicedata3 (ZDR *, devicedata3*);
1269 extern bool_t zdr_mknoddata3 (ZDR *, mknoddata3*);
1270 extern bool_t zdr_MKNOD3args (ZDR *, MKNOD3args*);
1271 extern bool_t zdr_MKNOD3resok (ZDR *, MKNOD3resok*);
1272 extern bool_t zdr_MKNOD3resfail (ZDR *, MKNOD3resfail*);
1273 extern bool_t zdr_MKNOD3res (ZDR *, MKNOD3res*);
1274 extern bool_t zdr_MKDIR3args (ZDR *, MKDIR3args*);
1275 extern bool_t zdr_MKDIR3resok (ZDR *, MKDIR3resok*);
1276 extern bool_t zdr_MKDIR3resfail (ZDR *, MKDIR3resfail*);
1277 extern bool_t zdr_MKDIR3res (ZDR *, MKDIR3res*);
1278 extern bool_t zdr_RMDIR3args (ZDR *, RMDIR3args*);
1279 extern bool_t zdr_RMDIR3resok (ZDR *, RMDIR3resok*);
1280 extern bool_t zdr_RMDIR3resfail (ZDR *, RMDIR3resfail*);
1281 extern bool_t zdr_RMDIR3res (ZDR *, RMDIR3res*);
1282 extern bool_t zdr_RENAME3args (ZDR *, RENAME3args*);
1283 extern bool_t zdr_RENAME3resok (ZDR *, RENAME3resok*);
1284 extern bool_t zdr_RENAME3resfail (ZDR *, RENAME3resfail*);
1285 extern bool_t zdr_RENAME3res (ZDR *, RENAME3res*);
1286 extern bool_t zdr_READDIRPLUS3args (ZDR *, READDIRPLUS3args*);
1287 extern bool_t zdr_entryplus3 (ZDR *, entryplus3*);
1288 extern bool_t zdr_dirlistplus3 (ZDR *, dirlistplus3*);
1289 extern bool_t zdr_READDIRPLUS3resok (ZDR *, READDIRPLUS3resok*);
1290 extern bool_t zdr_READDIRPLUS3resfail (ZDR *, READDIRPLUS3resfail*);
1291 extern bool_t zdr_READDIRPLUS3res (ZDR *, READDIRPLUS3res*);
1292 extern bool_t zdr_READDIR3args (ZDR *, READDIR3args*);
1293 extern bool_t zdr_entry3 (ZDR *, entry3*);
1294 extern bool_t zdr_dirlist3 (ZDR *, dirlist3*);
1295 extern bool_t zdr_READDIR3resok (ZDR *, READDIR3resok*);
1296 extern bool_t zdr_READDIR3resfail (ZDR *, READDIR3resfail*);
1297 extern bool_t zdr_READDIR3res (ZDR *, READDIR3res*);
1298 extern bool_t zdr_LINK3args (ZDR *, LINK3args*);
1299 extern bool_t zdr_LINK3resok (ZDR *, LINK3resok*);
1300 extern bool_t zdr_LINK3resfail (ZDR *, LINK3resfail*);
1301 extern bool_t zdr_LINK3res (ZDR *, LINK3res*);
1302 extern bool_t zdr_sattrguard3 (ZDR *, sattrguard3*);
1303 extern bool_t zdr_SETATTR3args (ZDR *, SETATTR3args*);
1304 extern bool_t zdr_SETATTR3resok (ZDR *, SETATTR3resok*);
1305 extern bool_t zdr_SETATTR3resfail (ZDR *, SETATTR3resfail*);
1306 extern bool_t zdr_SETATTR3res (ZDR *, SETATTR3res*);
1307 extern bool_t zdr_nfsacl_type (ZDR *, nfsacl_type*);
1308 extern bool_t zdr_nfsacl_ace (ZDR *, nfsacl_ace*);
1309 extern bool_t zdr_GETACL3args (ZDR *, GETACL3args*);
1310 extern bool_t zdr_GETACL3resok (ZDR *, GETACL3resok*);
1311 extern bool_t zdr_GETACL3res (ZDR *, GETACL3res*);
1312 extern bool_t zdr_SETACL3args (ZDR *, SETACL3args*);
1313 extern bool_t zdr_SETACL3resok (ZDR *, SETACL3resok*);
1314 extern bool_t zdr_SETACL3res (ZDR *, SETACL3res*);
1315
1316 #else /* K&R C */
1317 extern bool_t zdr_cookieverf3 ();
1318 extern bool_t zdr_uint64 ();
1319 extern bool_t zdr_cookie3 ();
1320 extern bool_t zdr_nfs_fh3 ();
1321 extern bool_t zdr_filename3 ();
1322 extern bool_t zdr_diropargs3 ();
1323 extern bool_t zdr_ftype3 ();
1324 extern bool_t zdr_mode3 ();
1325 extern bool_t zdr_uid3 ();
1326 extern bool_t zdr_gid3 ();
1327 extern bool_t zdr_size3 ();
1328 extern bool_t zdr_fileid3 ();
1329 extern bool_t zdr_specdata3 ();
1330 extern bool_t zdr_nfstime3 ();
1331 extern bool_t zdr_fattr3 ();
1332 extern bool_t zdr_post_op_attr ();
1333 extern bool_t zdr_nfsstat3 ();
1334 extern bool_t zdr_stable_how ();
1335 extern bool_t zdr_offset3 ();
1336 extern bool_t zdr_count3 ();
1337 extern bool_t zdr_wcc_attr ();
1338 extern bool_t zdr_pre_op_attr ();
1339 extern bool_t zdr_wcc_data ();
1340 extern bool_t zdr_WRITE3args ();
1341 extern bool_t zdr_writeverf3 ();
1342 extern bool_t zdr_WRITE3resok ();
1343 extern bool_t zdr_WRITE3resfail ();
1344 extern bool_t zdr_WRITE3res ();
1345 extern bool_t zdr_LOOKUP3args ();
1346 extern bool_t zdr_LOOKUP3resok ();
1347 extern bool_t zdr_LOOKUP3resfail ();
1348 extern bool_t zdr_LOOKUP3res ();
1349 extern bool_t zdr_COMMIT3args ();
1350 extern bool_t zdr_COMMIT3resok ();
1351 extern bool_t zdr_COMMIT3resfail ();
1352 extern bool_t zdr_COMMIT3res ();
1353 extern bool_t zdr_ACCESS3args ();
1354 extern bool_t zdr_ACCESS3resok ();
1355 extern bool_t zdr_ACCESS3resfail ();
1356 extern bool_t zdr_ACCESS3res ();
1357 extern bool_t zdr_GETATTR3args ();
1358 extern bool_t zdr_GETATTR3resok ();
1359 extern bool_t zdr_GETATTR3res ();
1360 extern bool_t zdr_time_how ();
1361 extern bool_t zdr_set_mode3 ();
1362 extern bool_t zdr_set_uid3 ();
1363 extern bool_t zdr_set_gid3 ();
1364 extern bool_t zdr_set_size3 ();
1365 extern bool_t zdr_set_atime ();
1366 extern bool_t zdr_set_mtime ();
1367 extern bool_t zdr_sattr3 ();
1368 extern bool_t zdr_createmode3 ();
1369 extern bool_t zdr_createverf3 ();
1370 extern bool_t zdr_createhow3 ();
1371 extern bool_t zdr_CREATE3args ();
1372 extern bool_t zdr_post_op_fh3 ();
1373 extern bool_t zdr_CREATE3resok ();
1374 extern bool_t zdr_CREATE3resfail ();
1375 extern bool_t zdr_CREATE3res ();
1376 extern bool_t zdr_REMOVE3args ();
1377 extern bool_t zdr_REMOVE3resok ();
1378 extern bool_t zdr_REMOVE3resfail ();
1379 extern bool_t zdr_REMOVE3res ();
1380 extern bool_t zdr_READ3args ();
1381 extern bool_t zdr_READ3resok ();
1382 extern bool_t zdr_READ3resfail ();
1383 extern bool_t zdr_READ3res ();
1384 extern bool_t zdr_FSINFO3args ();
1385 extern bool_t zdr_FSINFO3resok ();
1386 extern bool_t zdr_FSINFO3resfail ();
1387 extern bool_t zdr_FSINFO3res ();
1388 extern bool_t zdr_FSSTAT3args ();
1389 extern bool_t zdr_FSSTAT3resok ();
1390 extern bool_t zdr_FSSTAT3resfail ();
1391 extern bool_t zdr_FSSTAT3res ();
1392 extern bool_t zdr_PATHCONF3args ();
1393 extern bool_t zdr_PATHCONF3resok ();
1394 extern bool_t zdr_PATHCONF3resfail ();
1395 extern bool_t zdr_PATHCONF3res ();
1396 extern bool_t zdr_nfspath3 ();
1397 extern bool_t zdr_symlinkdata3 ();
1398 extern bool_t zdr_SYMLINK3args ();
1399 extern bool_t zdr_SYMLINK3resok ();
1400 extern bool_t zdr_SYMLINK3resfail ();
1401 extern bool_t zdr_SYMLINK3res ();
1402 extern bool_t zdr_READLINK3args ();
1403 extern bool_t zdr_READLINK3resok ();
1404 extern bool_t zdr_READLINK3resfail ();
1405 extern bool_t zdr_READLINK3res ();
1406 extern bool_t zdr_devicedata3 ();
1407 extern bool_t zdr_mknoddata3 ();
1408 extern bool_t zdr_MKNOD3args ();
1409 extern bool_t zdr_MKNOD3resok ();
1410 extern bool_t zdr_MKNOD3resfail ();
1411 extern bool_t zdr_MKNOD3res ();
1412 extern bool_t zdr_MKDIR3args ();
1413 extern bool_t zdr_MKDIR3resok ();
1414 extern bool_t zdr_MKDIR3resfail ();
1415 extern bool_t zdr_MKDIR3res ();
1416 extern bool_t zdr_RMDIR3args ();
1417 extern bool_t zdr_RMDIR3resok ();
1418 extern bool_t zdr_RMDIR3resfail ();
1419 extern bool_t zdr_RMDIR3res ();
1420 extern bool_t zdr_RENAME3args ();
1421 extern bool_t zdr_RENAME3resok ();
1422 extern bool_t zdr_RENAME3resfail ();
1423 extern bool_t zdr_RENAME3res ();
1424 extern bool_t zdr_READDIRPLUS3args ();
1425 extern bool_t zdr_entryplus3 ();
1426 extern bool_t zdr_dirlistplus3 ();
1427 extern bool_t zdr_READDIRPLUS3resok ();
1428 extern bool_t zdr_READDIRPLUS3resfail ();
1429 extern bool_t zdr_READDIRPLUS3res ();
1430 extern bool_t zdr_READDIR3args ();
1431 extern bool_t zdr_entry3 ();
1432 extern bool_t zdr_dirlist3 ();
1433 extern bool_t zdr_READDIR3resok ();
1434 extern bool_t zdr_READDIR3resfail ();
1435 extern bool_t zdr_READDIR3res ();
1436 extern bool_t zdr_LINK3args ();
1437 extern bool_t zdr_LINK3resok ();
1438 extern bool_t zdr_LINK3resfail ();
1439 extern bool_t zdr_LINK3res ();
1440 extern bool_t zdr_sattrguard3 ();
1441 extern bool_t zdr_SETATTR3args ();
1442 extern bool_t zdr_SETATTR3resok ();
1443 extern bool_t zdr_SETATTR3resfail ();
1444 extern bool_t zdr_SETATTR3res ();
1445 extern bool_t zdr_nfsacl_type ();
1446 extern bool_t zdr_nfsacl_ace ();
1447 extern bool_t zdr_GETACL3args ();
1448 extern bool_t zdr_GETACL3resok ();
1449 extern bool_t zdr_GETACL3res ();
1450 extern bool_t zdr_SETACL3args ();
1451 extern bool_t zdr_SETACL3resok ();
1452 extern bool_t zdr_SETACL3res ();
1453
1454 #endif /* K&R C */
1455
1456 #ifdef __cplusplus
1457 }
1458 #endif
1459
1460 #endif /* !_NFS_H_RPCGEN */