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