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