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