1/*
2 * Please do not edit this file too much.
3 * It was generated using rpcgen, and then hacked to fix compilation problems.
4 */
5
6#ifndef _NFS_H_RPCGEN
7#define _NFS_H_RPCGEN
8
9#ifdef __cplusplus
10extern "C" {
11#endif
12
13#define NFS3_FHSIZE 64
14#define NFS3_COOKIEVERFSIZE 8
15#define NFS3_CREATEVERFSIZE 8
16#define NFS3_WRITEVERFSIZE 8
17
18typedef char *filename3;
19
20typedef char *nfspath3;
21
22typedef uint64_t fileid3;
23
24typedef uint64_t cookie3;
25
26typedef char cookieverf3[NFS3_COOKIEVERFSIZE];
27
28typedef char createverf3[NFS3_CREATEVERFSIZE];
29
30typedef char writeverf3[NFS3_WRITEVERFSIZE];
31
32typedef uint32_t uid3;
33
34typedef uint32_t gid3;
35
36typedef uint64_t size3;
37
38typedef uint64_t offset3;
39
40typedef uint32_t mode3;
41
42typedef uint32_t count3;
43
44enum nfsstat3 {
45    NFS3_OK = 0,
46    NFS3ERR_PERM = 1,
47    NFS3ERR_NOENT = 2,
48    NFS3ERR_IO = 5,
49    NFS3ERR_NXIO = 6,
50    NFS3ERR_ACCES = 13,
51    NFS3ERR_EXIST = 17,
52    NFS3ERR_XDEV = 18,
53    NFS3ERR_NODEV = 19,
54    NFS3ERR_NOTDIR = 20,
55    NFS3ERR_ISDIR = 21,
56    NFS3ERR_INVAL = 22,
57    NFS3ERR_FBIG = 27,
58    NFS3ERR_NOSPC = 28,
59    NFS3ERR_ROFS = 30,
60    NFS3ERR_MLINK = 31,
61    NFS3ERR_NAMETOOLONG = 63,
62    NFS3ERR_NOTEMPTY = 66,
63    NFS3ERR_DQUOT = 69,
64    NFS3ERR_STALE = 70,
65    NFS3ERR_REMOTE = 71,
66    NFS3ERR_BADHANDLE = 10001,
67    NFS3ERR_NOT_SYNC = 10002,
68    NFS3ERR_BAD_COOKIE = 10003,
69    NFS3ERR_NOTSUPP = 10004,
70    NFS3ERR_TOOSMALL = 10005,
71    NFS3ERR_SERVERFAULT = 10006,
72    NFS3ERR_BADTYPE = 10007,
73    NFS3ERR_JUKEBOX = 10008,
74};
75typedef enum nfsstat3 nfsstat3;
76
77enum ftype3 {
78    NF3REG = 1,
79    NF3DIR = 2,
80    NF3BLK = 3,
81    NF3CHR = 4,
82    NF3LNK = 5,
83    NF3SOCK = 6,
84    NF3FIFO = 7,
85};
86typedef enum ftype3 ftype3;
87
88struct specdata3 {
89    uint32_t specdata1;
90    uint32_t specdata2;
91};
92typedef struct specdata3 specdata3;
93
94struct nfs_fh3 {
95    uint32_t data_len;
96    char *data_val;
97};
98typedef struct nfs_fh3 nfs_fh3;
99
100struct nfstime3 {
101    uint32_t seconds;
102    uint32_t nseconds;
103};
104typedef struct nfstime3 nfstime3;
105
106struct fattr3 {
107    ftype3 type;
108    mode3 mode;
109    uint32_t nlink;
110    uid3 uid;
111    gid3 gid;
112    size3 size;
113    size3 used;
114    specdata3 rdev;
115    uint64_t fsid;
116    fileid3 fileid;
117    nfstime3 atime;
118    nfstime3 mtime;
119    nfstime3 ctime;
120};
121typedef struct fattr3 fattr3;
122
123struct post_op_attr {
124    bool_t attributes_follow;
125    union {
126        fattr3 attributes;
127    } post_op_attr_u;
128};
129typedef struct post_op_attr post_op_attr;
130
131struct wcc_attr {
132    size3 size;
133    nfstime3 mtime;
134    nfstime3 ctime;
135};
136typedef struct wcc_attr wcc_attr;
137
138struct pre_op_attr {
139    bool_t attributes_follow;
140    union {
141        wcc_attr attributes;
142    } pre_op_attr_u;
143};
144typedef struct pre_op_attr pre_op_attr;
145
146struct wcc_data {
147    pre_op_attr before;
148    post_op_attr after;
149};
150typedef struct wcc_data wcc_data;
151
152struct post_op_fh3 {
153    bool_t handle_follows;
154    union {
155        nfs_fh3 handle;
156    } post_op_fh3_u;
157};
158typedef struct post_op_fh3 post_op_fh3;
159
160enum time_how {
161    DONT_CHANGE = 0,
162    SET_TO_SERVER_TIME = 1,
163    SET_TO_CLIENT_TIME = 2,
164};
165typedef enum time_how time_how;
166
167struct set_mode3 {
168    bool_t set_it;
169    union {
170        mode3 mode;
171    } set_mode3_u;
172};
173typedef struct set_mode3 set_mode3;
174
175struct set_uid3 {
176    bool_t set_it;
177    union {
178        uid3 uid;
179    } set_uid3_u;
180};
181typedef struct set_uid3 set_uid3;
182
183struct set_gid3 {
184    bool_t set_it;
185    union {
186        gid3 gid;
187    } set_gid3_u;
188};
189typedef struct set_gid3 set_gid3;
190
191struct set_size3 {
192    bool_t set_it;
193    union {
194        size3 size;
195    } set_size3_u;
196};
197typedef struct set_size3 set_size3;
198
199struct set_atime {
200    time_how set_it;
201    union {
202        nfstime3 atime;
203    } set_atime_u;
204};
205typedef struct set_atime set_atime;
206
207struct set_mtime {
208    time_how set_it;
209    union {
210        nfstime3 mtime;
211    } set_mtime_u;
212};
213typedef struct set_mtime set_mtime;
214
215struct sattr3 {
216    set_mode3 mode;
217    set_uid3 uid;
218    set_gid3 gid;
219    set_size3 size;
220    set_atime atime;
221    set_mtime mtime;
222};
223typedef struct sattr3 sattr3;
224
225struct diropargs3 {
226    nfs_fh3 dir;
227    filename3 name;
228};
229typedef struct diropargs3 diropargs3;
230
231struct GETATTR3args {
232    nfs_fh3 object;
233};
234typedef struct GETATTR3args GETATTR3args;
235
236struct GETATTR3resok {
237    fattr3 obj_attributes;
238};
239typedef struct GETATTR3resok GETATTR3resok;
240
241struct GETATTR3res {
242    nfsstat3 status;
243    union {
244        GETATTR3resok resok;
245    } GETATTR3res_u;
246};
247typedef struct GETATTR3res GETATTR3res;
248
249struct sattrguard3 {
250    bool_t check;
251    union {
252        nfstime3 obj_ctime;
253    } sattrguard3_u;
254};
255typedef struct sattrguard3 sattrguard3;
256
257struct SETATTR3args {
258    nfs_fh3 object;
259    sattr3 new_attributes;
260    sattrguard3 guard;
261};
262typedef struct SETATTR3args SETATTR3args;
263
264struct SETATTR3resok {
265    wcc_data obj_wcc;
266};
267typedef struct SETATTR3resok SETATTR3resok;
268
269struct SETATTR3resfail {
270    wcc_data obj_wcc;
271};
272typedef struct SETATTR3resfail SETATTR3resfail;
273
274struct SETATTR3res {
275    nfsstat3 status;
276    union {
277        SETATTR3resok resok;
278        SETATTR3resfail resfail;
279    } SETATTR3res_u;
280};
281typedef struct SETATTR3res SETATTR3res;
282
283struct LOOKUP3args {
284    diropargs3 what;
285};
286typedef struct LOOKUP3args LOOKUP3args;
287
288struct LOOKUP3resok {
289    nfs_fh3 object;
290    post_op_attr obj_attributes;
291    post_op_attr dir_attributes;
292};
293typedef struct LOOKUP3resok LOOKUP3resok;
294
295struct LOOKUP3resfail {
296    post_op_attr dir_attributes;
297};
298typedef struct LOOKUP3resfail LOOKUP3resfail;
299
300struct LOOKUP3res {
301    nfsstat3 status;
302    union {
303        LOOKUP3resok resok;
304        LOOKUP3resfail resfail;
305    } LOOKUP3res_u;
306};
307typedef struct LOOKUP3res LOOKUP3res;
308#define ACCESS3_READ 0x0001
309#define ACCESS3_LOOKUP 0x0002
310#define ACCESS3_MODIFY 0x0004
311#define ACCESS3_EXTEND 0x0008
312#define ACCESS3_DELETE 0x0010
313#define ACCESS3_EXECUTE 0x0020
314
315struct ACCESS3args {
316    nfs_fh3 object;
317    uint32_t access;
318};
319typedef struct ACCESS3args ACCESS3args;
320
321struct ACCESS3resok {
322    post_op_attr obj_attributes;
323    uint32_t access;
324};
325typedef struct ACCESS3resok ACCESS3resok;
326
327struct ACCESS3resfail {
328    post_op_attr obj_attributes;
329};
330typedef struct ACCESS3resfail ACCESS3resfail;
331
332struct ACCESS3res {
333    nfsstat3 status;
334    union {
335        ACCESS3resok resok;
336        ACCESS3resfail resfail;
337    } ACCESS3res_u;
338};
339typedef struct ACCESS3res ACCESS3res;
340
341struct READLINK3args {
342    nfs_fh3 symlink;
343};
344typedef struct READLINK3args READLINK3args;
345
346struct READLINK3resok {
347    post_op_attr symlink_attributes;
348    nfspath3 data;
349};
350typedef struct READLINK3resok READLINK3resok;
351
352struct READLINK3resfail {
353    post_op_attr symlink_attributes;
354};
355typedef struct READLINK3resfail READLINK3resfail;
356
357struct READLINK3res {
358    nfsstat3 status;
359    union {
360        READLINK3resok resok;
361        READLINK3resfail resfail;
362    } READLINK3res_u;
363};
364typedef struct READLINK3res READLINK3res;
365
366struct READ3args {
367    nfs_fh3 file;
368    offset3 offset;
369    count3 count;
370};
371typedef struct READ3args READ3args;
372
373struct READ3resok {
374    post_op_attr file_attributes;
375    count3 count;
376    bool_t eof;
377    struct {
378        u_int data_len;
379        char *data_val;
380    } data;
381};
382typedef struct READ3resok READ3resok;
383
384struct READ3resfail {
385    post_op_attr file_attributes;
386};
387typedef struct READ3resfail READ3resfail;
388
389struct READ3res {
390    nfsstat3 status;
391    union {
392        READ3resok resok;
393        READ3resfail resfail;
394    } READ3res_u;
395};
396typedef struct READ3res READ3res;
397
398enum stable_how {
399    UNSTABLE = 0,
400    DATA_SYNC = 1,
401    FILE_SYNC = 2,
402};
403typedef enum stable_how stable_how;
404
405struct WRITE3args {
406    nfs_fh3 file;
407    offset3 offset;
408    count3 count;
409    stable_how stable;
410    struct {
411        u_int data_len;
412        char *data_val;
413    } data;
414};
415typedef struct WRITE3args WRITE3args;
416
417struct WRITE3resok {
418    wcc_data file_wcc;
419    count3 count;
420    stable_how committed;
421    writeverf3 verf;
422};
423typedef struct WRITE3resok WRITE3resok;
424
425struct WRITE3resfail {
426    wcc_data file_wcc;
427};
428typedef struct WRITE3resfail WRITE3resfail;
429
430struct WRITE3res {
431    nfsstat3 status;
432    union {
433        WRITE3resok resok;
434        WRITE3resfail resfail;
435    } WRITE3res_u;
436};
437typedef struct WRITE3res WRITE3res;
438
439enum createmode3 {
440    UNCHECKED = 0,
441    GUARDED = 1,
442    EXCLUSIVE = 2,
443};
444typedef enum createmode3 createmode3;
445
446struct createhow3 {
447    createmode3 mode;
448    union {
449        sattr3 obj_attributes;
450        createverf3 verf;
451    } createhow3_u;
452};
453typedef struct createhow3 createhow3;
454
455struct CREATE3args {
456    diropargs3 where;
457    createhow3 how;
458};
459typedef struct CREATE3args CREATE3args;
460
461struct CREATE3resok {
462    post_op_fh3 obj;
463    post_op_attr obj_attributes;
464    wcc_data dir_wcc;
465};
466typedef struct CREATE3resok CREATE3resok;
467
468struct CREATE3resfail {
469    wcc_data dir_wcc;
470};
471typedef struct CREATE3resfail CREATE3resfail;
472
473struct CREATE3res {
474    nfsstat3 status;
475    union {
476        CREATE3resok resok;
477        CREATE3resfail resfail;
478    } CREATE3res_u;
479};
480typedef struct CREATE3res CREATE3res;
481
482struct MKDIR3args {
483    diropargs3 where;
484    sattr3 attributes;
485};
486typedef struct MKDIR3args MKDIR3args;
487
488struct MKDIR3resok {
489    post_op_fh3 obj;
490    post_op_attr obj_attributes;
491    wcc_data dir_wcc;
492};
493typedef struct MKDIR3resok MKDIR3resok;
494
495struct MKDIR3resfail {
496    wcc_data dir_wcc;
497};
498typedef struct MKDIR3resfail MKDIR3resfail;
499
500struct MKDIR3res {
501    nfsstat3 status;
502    union {
503        MKDIR3resok resok;
504        MKDIR3resfail resfail;
505    } MKDIR3res_u;
506};
507typedef struct MKDIR3res MKDIR3res;
508
509struct symlinkdata3 {
510    sattr3 symlink_attributes;
511    nfspath3 symlink_data;
512};
513typedef struct symlinkdata3 symlinkdata3;
514
515struct SYMLINK3args {
516    diropargs3 where;
517    symlinkdata3 symlink;
518};
519typedef struct SYMLINK3args SYMLINK3args;
520
521struct SYMLINK3resok {
522    post_op_fh3 obj;
523    post_op_attr obj_attributes;
524    wcc_data dir_wcc;
525};
526typedef struct SYMLINK3resok SYMLINK3resok;
527
528struct SYMLINK3resfail {
529    wcc_data dir_wcc;
530};
531typedef struct SYMLINK3resfail SYMLINK3resfail;
532
533struct SYMLINK3res {
534    nfsstat3 status;
535    union {
536        SYMLINK3resok resok;
537        SYMLINK3resfail resfail;
538    } SYMLINK3res_u;
539};
540typedef struct SYMLINK3res SYMLINK3res;
541
542struct devicedata3 {
543    sattr3 dev_attributes;
544    specdata3 spec;
545};
546typedef struct devicedata3 devicedata3;
547
548struct mknoddata3 {
549    ftype3 type;
550    union {
551        devicedata3 device;
552        sattr3 pipe_attributes;
553    } mknoddata3_u;
554};
555typedef struct mknoddata3 mknoddata3;
556
557struct MKNOD3args {
558    diropargs3 where;
559    mknoddata3 what;
560};
561typedef struct MKNOD3args MKNOD3args;
562
563struct MKNOD3resok {
564    post_op_fh3 obj;
565    post_op_attr obj_attributes;
566    wcc_data dir_wcc;
567};
568typedef struct MKNOD3resok MKNOD3resok;
569
570struct MKNOD3resfail {
571    wcc_data dir_wcc;
572};
573typedef struct MKNOD3resfail MKNOD3resfail;
574
575struct MKNOD3res {
576    nfsstat3 status;
577    union {
578        MKNOD3resok resok;
579        MKNOD3resfail resfail;
580    } MKNOD3res_u;
581};
582typedef struct MKNOD3res MKNOD3res;
583
584struct REMOVE3args {
585    diropargs3 object;
586};
587typedef struct REMOVE3args REMOVE3args;
588
589struct REMOVE3resok {
590    wcc_data dir_wcc;
591};
592typedef struct REMOVE3resok REMOVE3resok;
593
594struct REMOVE3resfail {
595    wcc_data dir_wcc;
596};
597typedef struct REMOVE3resfail REMOVE3resfail;
598
599struct REMOVE3res {
600    nfsstat3 status;
601    union {
602        REMOVE3resok resok;
603        REMOVE3resfail resfail;
604    } REMOVE3res_u;
605};
606typedef struct REMOVE3res REMOVE3res;
607
608struct RMDIR3args {
609    diropargs3 object;
610};
611typedef struct RMDIR3args RMDIR3args;
612
613struct RMDIR3resok {
614    wcc_data dir_wcc;
615};
616typedef struct RMDIR3resok RMDIR3resok;
617
618struct RMDIR3resfail {
619    wcc_data dir_wcc;
620};
621typedef struct RMDIR3resfail RMDIR3resfail;
622
623struct RMDIR3res {
624    nfsstat3 status;
625    union {
626        RMDIR3resok resok;
627        RMDIR3resfail resfail;
628    } RMDIR3res_u;
629};
630typedef struct RMDIR3res RMDIR3res;
631
632struct RENAME3args {
633    diropargs3 from;
634    diropargs3 to;
635};
636typedef struct RENAME3args RENAME3args;
637
638struct RENAME3resok {
639    wcc_data fromdir_wcc;
640    wcc_data todir_wcc;
641};
642typedef struct RENAME3resok RENAME3resok;
643
644struct RENAME3resfail {
645    wcc_data fromdir_wcc;
646    wcc_data todir_wcc;
647};
648typedef struct RENAME3resfail RENAME3resfail;
649
650struct RENAME3res {
651    nfsstat3 status;
652    union {
653        RENAME3resok resok;
654        RENAME3resfail resfail;
655    } RENAME3res_u;
656};
657typedef struct RENAME3res RENAME3res;
658
659struct LINK3args {
660    nfs_fh3 file;
661    diropargs3 link;
662};
663typedef struct LINK3args LINK3args;
664
665struct LINK3resok {
666    post_op_attr file_attributes;
667    wcc_data linkdir_wcc;
668};
669typedef struct LINK3resok LINK3resok;
670
671struct LINK3resfail {
672    post_op_attr file_attributes;
673    wcc_data linkdir_wcc;
674};
675typedef struct LINK3resfail LINK3resfail;
676
677struct LINK3res {
678    nfsstat3 status;
679    union {
680        LINK3resok resok;
681        LINK3resfail resfail;
682    } LINK3res_u;
683};
684typedef struct LINK3res LINK3res;
685
686struct READDIR3args {
687    nfs_fh3 dir;
688    cookie3 cookie;
689    cookieverf3 cookieverf;
690    count3 count;
691};
692typedef struct READDIR3args READDIR3args;
693
694struct entry3 {
695    fileid3 fileid;
696    filename3 name;
697    cookie3 cookie;
698    struct entry3 *nextentry;
699};
700typedef struct entry3 entry3;
701
702struct dirlist3 {
703    entry3 *entries;
704    bool_t eof;
705};
706typedef struct dirlist3 dirlist3;
707
708struct READDIR3resok {
709    post_op_attr dir_attributes;
710    cookieverf3 cookieverf;
711    dirlist3 reply;
712};
713typedef struct READDIR3resok READDIR3resok;
714
715struct READDIR3resfail {
716    post_op_attr dir_attributes;
717};
718typedef struct READDIR3resfail READDIR3resfail;
719
720struct READDIR3res {
721    nfsstat3 status;
722    union {
723        READDIR3resok resok;
724        READDIR3resfail resfail;
725    } READDIR3res_u;
726};
727typedef struct READDIR3res READDIR3res;
728
729struct READDIRPLUS3args {
730    nfs_fh3 dir;
731    cookie3 cookie;
732    cookieverf3 cookieverf;
733    count3 dircount;
734    count3 maxcount;
735};
736typedef struct READDIRPLUS3args READDIRPLUS3args;
737
738struct entryplus3 {
739    fileid3 fileid;
740    filename3 name;
741    cookie3 cookie;
742    post_op_attr name_attributes;
743    post_op_fh3 name_handle;
744    struct entryplus3 *nextentry;
745};
746typedef struct entryplus3 entryplus3;
747
748struct dirlistplus3 {
749    entryplus3 *entries;
750    bool_t eof;
751};
752typedef struct dirlistplus3 dirlistplus3;
753
754struct READDIRPLUS3resok {
755    post_op_attr dir_attributes;
756    cookieverf3 cookieverf;
757    dirlistplus3 reply;
758};
759typedef struct READDIRPLUS3resok READDIRPLUS3resok;
760
761struct READDIRPLUS3resfail {
762    post_op_attr dir_attributes;
763};
764typedef struct READDIRPLUS3resfail READDIRPLUS3resfail;
765
766struct READDIRPLUS3res {
767    nfsstat3 status;
768    union {
769        READDIRPLUS3resok resok;
770        READDIRPLUS3resfail resfail;
771    } READDIRPLUS3res_u;
772};
773typedef struct READDIRPLUS3res READDIRPLUS3res;
774
775struct FSSTAT3args {
776    nfs_fh3 fsroot;
777};
778typedef struct FSSTAT3args FSSTAT3args;
779
780struct FSSTAT3resok {
781    post_op_attr obj_attributes;
782    size3 tbytes;
783    size3 fbytes;
784    size3 abytes;
785    size3 tfiles;
786    size3 ffiles;
787    size3 afiles;
788    uint32_t invarsec;
789};
790typedef struct FSSTAT3resok FSSTAT3resok;
791
792struct FSSTAT3resfail {
793    post_op_attr obj_attributes;
794};
795typedef struct FSSTAT3resfail FSSTAT3resfail;
796
797struct FSSTAT3res {
798    nfsstat3 status;
799    union {
800        FSSTAT3resok resok;
801        FSSTAT3resfail resfail;
802    } FSSTAT3res_u;
803};
804typedef struct FSSTAT3res FSSTAT3res;
805#define FSF3_LINK 0x0001
806#define FSF3_SYMLINK 0x0002
807#define FSF3_HOMOGENEOUS 0x0008
808#define FSF3_CANSETTIME 0x0010
809
810struct FSINFOargs {
811    nfs_fh3 fsroot;
812};
813typedef struct FSINFOargs FSINFOargs;
814
815struct FSINFO3resok {
816    post_op_attr obj_attributes;
817    uint32_t rtmax;
818    uint32_t rtpref;
819    uint32_t rtmult;
820    uint32_t wtmax;
821    uint32_t wtpref;
822    uint32_t wtmult;
823    uint32_t dtpref;
824    size3 maxfilesize;
825    nfstime3 time_delta;
826    uint32_t properties;
827};
828typedef struct FSINFO3resok FSINFO3resok;
829
830struct FSINFO3resfail {
831    post_op_attr obj_attributes;
832};
833typedef struct FSINFO3resfail FSINFO3resfail;
834
835struct FSINFO3res {
836    nfsstat3 status;
837    union {
838        FSINFO3resok resok;
839        FSINFO3resfail resfail;
840    } FSINFO3res_u;
841};
842typedef struct FSINFO3res FSINFO3res;
843
844struct PATHCONF3args {
845    nfs_fh3 object;
846};
847typedef struct PATHCONF3args PATHCONF3args;
848
849struct PATHCONF3resok {
850    post_op_attr obj_attributes;
851    uint32_t linkmax;
852    uint32_t name_max;
853    bool_t no_trunc;
854    bool_t chown_restricted;
855    bool_t case_insensitive;
856    bool_t case_preserving;
857};
858typedef struct PATHCONF3resok PATHCONF3resok;
859
860struct PATHCONF3resfail {
861    post_op_attr obj_attributes;
862};
863typedef struct PATHCONF3resfail PATHCONF3resfail;
864
865struct PATHCONF3res {
866    nfsstat3 status;
867    union {
868        PATHCONF3resok resok;
869        PATHCONF3resfail resfail;
870    } PATHCONF3res_u;
871};
872typedef struct PATHCONF3res PATHCONF3res;
873
874struct COMMIT3args {
875    nfs_fh3 file;
876    offset3 offset;
877    count3 count;
878};
879typedef struct COMMIT3args COMMIT3args;
880
881struct COMMIT3resok {
882    wcc_data file_wcc;
883    writeverf3 verf;
884};
885typedef struct COMMIT3resok COMMIT3resok;
886
887struct COMMIT3resfail {
888    wcc_data file_wcc;
889};
890typedef struct COMMIT3resfail COMMIT3resfail;
891
892struct COMMIT3res {
893    nfsstat3 status;
894    union {
895        COMMIT3resok resok;
896        COMMIT3resfail resfail;
897    } COMMIT3res_u;
898};
899typedef struct COMMIT3res COMMIT3res;
900
901#define NFS_PROGRAM 100003
902#define NFS_V3 3
903
904#define NFSPROC3_NULL 0
905#define NFSPROC3_GETATTR 1
906#define NFSPROC3_SETATTR 2
907#define NFSPROC3_LOOKUP 3
908#define NFSPROC3_ACCESS 4
909#define NFSPROC3_READLINK 5
910#define NFSPROC3_READ 6
911#define NFSPROC3_WRITE 7
912#define NFSPROC3_CREATE 8
913#define NFSPROC3_MKDIR 9
914#define NFSPROC3_SYMLINK 10
915#define NFSPROC3_MKNOD 11
916#define NFSPROC3_REMOVE 12
917#define NFSPROC3_RMDIR 13
918#define NFSPROC3_RENAME 14
919#define NFSPROC3_LINK 15
920#define NFSPROC3_READDIR 16
921#define NFSPROC3_READDIRPLUS 17
922#define NFSPROC3_FSSTAT 18
923#define NFSPROC3_FSINFO 19
924#define NFSPROC3_PATHCONF 20
925#define NFSPROC3_COMMIT 21
926
927#if 0
928extern  enum clnt_stat nfsproc3_null_3(void *, void *, CLIENT *);
929extern  enum clnt_stat nfsproc3_getattr_3(GETATTR3args *, GETATTR3res *, CLIENT *);
930extern  enum clnt_stat nfsproc3_setattr_3(SETATTR3args *, SETATTR3res *, CLIENT *);
931extern  enum clnt_stat nfsproc3_lookup_3(LOOKUP3args *, LOOKUP3res *, CLIENT *);
932extern  enum clnt_stat nfsproc3_access_3(ACCESS3args *, ACCESS3res *, CLIENT *);
933extern  enum clnt_stat nfsproc3_readlink_3(READLINK3args *, READLINK3res *, CLIENT *);
934extern  enum clnt_stat nfsproc3_read_3(READ3args *, READ3res *, CLIENT *);
935extern  enum clnt_stat nfsproc3_write_3(WRITE3args *, WRITE3res *, CLIENT *);
936extern  enum clnt_stat nfsproc3_create_3(CREATE3args *, CREATE3res *, CLIENT *);
937extern  enum clnt_stat nfsproc3_mkdir_3(MKDIR3args *, MKDIR3res *, CLIENT *);
938extern  enum clnt_stat nfsproc3_symlink_3(SYMLINK3args *, SYMLINK3res *, CLIENT *);
939extern  enum clnt_stat nfsproc3_mknod_3(MKNOD3args *, MKNOD3res *, CLIENT *);
940extern  enum clnt_stat nfsproc3_remove_3(REMOVE3args *, REMOVE3res *, CLIENT *);
941extern  enum clnt_stat nfsproc3_rmdir_3(RMDIR3args *, RMDIR3res *, CLIENT *);
942extern  enum clnt_stat nfsproc3_rename_3(RENAME3args *, RENAME3res *, CLIENT *);
943extern  enum clnt_stat nfsproc3_link_3(LINK3args *, LINK3res *, CLIENT *);
944extern  enum clnt_stat nfsproc3_readdir_3(READDIR3args *, READDIR3res *, CLIENT *);
945extern  enum clnt_stat nfsproc3_readdirplus_3(READDIRPLUS3args *, READDIRPLUS3res *, CLIENT *);
946extern  enum clnt_stat nfsproc3_fsstat_3(FSSTAT3args *, FSSTAT3res *, CLIENT *);
947extern  enum clnt_stat nfsproc3_fsinfo_3(FSINFO3args *, FSINFO3res *, CLIENT *);
948extern  enum clnt_stat nfsproc3_pathconf_3(PATHCONF3args *, PATHCONF3res *, CLIENT *);
949extern  enum clnt_stat nfsproc3_commit_3(COMMIT3args *, COMMIT3res *, CLIENT *);
950#endif
951
952/* the xdr functions */
953extern  bool_t xdr_filename3 (XDR *, filename3*);
954extern  bool_t xdr_nfspath3 (XDR *, nfspath3*);
955extern  bool_t xdr_fileid3 (XDR *, fileid3*);
956extern  bool_t xdr_cookie3 (XDR *, cookie3*);
957extern  bool_t xdr_cookieverf3 (XDR *, cookieverf3);
958extern  bool_t xdr_createverf3 (XDR *, createverf3);
959extern  bool_t xdr_writeverf3 (XDR *, writeverf3);
960extern  bool_t xdr_uid3 (XDR *, uid3*);
961extern  bool_t xdr_gid3 (XDR *, gid3*);
962extern  bool_t xdr_size3 (XDR *, size3*);
963extern  bool_t xdr_offset3 (XDR *, offset3*);
964extern  bool_t xdr_mode3 (XDR *, mode3*);
965extern  bool_t xdr_count3 (XDR *, count3*);
966extern  bool_t xdr_nfsstat3 (XDR *, nfsstat3*);
967extern  bool_t xdr_ftype3 (XDR *, ftype3*);
968extern  bool_t xdr_specdata3 (XDR *, specdata3*);
969extern  bool_t xdr_nfs_fh3 (XDR *, nfs_fh3*);
970extern  bool_t xdr_nfstime3 (XDR *, nfstime3*);
971extern  bool_t xdr_fattr3 (XDR *, fattr3*);
972extern  bool_t xdr_post_op_attr (XDR *, post_op_attr*);
973extern  bool_t xdr_wcc_attr (XDR *, wcc_attr*);
974extern  bool_t xdr_pre_op_attr (XDR *, pre_op_attr*);
975extern  bool_t xdr_wcc_data (XDR *, wcc_data*);
976extern  bool_t xdr_post_op_fh3 (XDR *, post_op_fh3*);
977extern  bool_t xdr_time_how (XDR *, time_how*);
978extern  bool_t xdr_set_mode3 (XDR *, set_mode3*);
979extern  bool_t xdr_set_uid3 (XDR *, set_uid3*);
980extern  bool_t xdr_set_gid3 (XDR *, set_gid3*);
981extern  bool_t xdr_set_size3 (XDR *, set_size3*);
982extern  bool_t xdr_set_atime (XDR *, set_atime*);
983extern  bool_t xdr_set_mtime (XDR *, set_mtime*);
984extern  bool_t xdr_sattr3 (XDR *, sattr3*);
985extern  bool_t xdr_diropargs3 (XDR *, diropargs3*);
986extern  bool_t xdr_GETATTR3args (XDR *, GETATTR3args*);
987extern  bool_t xdr_GETATTR3resok (XDR *, GETATTR3resok*);
988extern  bool_t xdr_GETATTR3res (XDR *, GETATTR3res*);
989extern  bool_t xdr_sattrguard3 (XDR *, sattrguard3*);
990extern  bool_t xdr_SETATTR3args (XDR *, SETATTR3args*);
991extern  bool_t xdr_SETATTR3resok (XDR *, SETATTR3resok*);
992extern  bool_t xdr_SETATTR3resfail (XDR *, SETATTR3resfail*);
993extern  bool_t xdr_SETATTR3res (XDR *, SETATTR3res*);
994extern  bool_t xdr_LOOKUP3args (XDR *, LOOKUP3args*);
995extern  bool_t xdr_LOOKUP3resok (XDR *, LOOKUP3resok*);
996extern  bool_t xdr_LOOKUP3resfail (XDR *, LOOKUP3resfail*);
997extern  bool_t xdr_LOOKUP3res (XDR *, LOOKUP3res*);
998extern  bool_t xdr_ACCESS3args (XDR *, ACCESS3args*);
999extern  bool_t xdr_ACCESS3resok (XDR *, ACCESS3resok*);
1000extern  bool_t xdr_ACCESS3resfail (XDR *, ACCESS3resfail*);
1001extern  bool_t xdr_ACCESS3res (XDR *, ACCESS3res*);
1002extern  bool_t xdr_READLINK3args (XDR *, READLINK3args*);
1003extern  bool_t xdr_READLINK3resok (XDR *, READLINK3resok*);
1004extern  bool_t xdr_READLINK3resfail (XDR *, READLINK3resfail*);
1005extern  bool_t xdr_READLINK3res (XDR *, READLINK3res*);
1006extern  bool_t xdr_READ3args (XDR *, READ3args*);
1007extern  bool_t xdr_READ3resok (XDR *, READ3resok*);
1008extern  bool_t xdr_READ3resfail (XDR *, READ3resfail*);
1009extern  bool_t xdr_READ3res (XDR *, READ3res*);
1010extern  bool_t xdr_stable_how (XDR *, stable_how*);
1011extern  bool_t xdr_WRITE3args (XDR *, WRITE3args*);
1012extern  bool_t xdr_WRITE3resok (XDR *, WRITE3resok*);
1013extern  bool_t xdr_WRITE3resfail (XDR *, WRITE3resfail*);
1014extern  bool_t xdr_WRITE3res (XDR *, WRITE3res*);
1015extern  bool_t xdr_createmode3 (XDR *, createmode3*);
1016extern  bool_t xdr_createhow3 (XDR *, createhow3*);
1017extern  bool_t xdr_CREATE3args (XDR *, CREATE3args*);
1018extern  bool_t xdr_CREATE3resok (XDR *, CREATE3resok*);
1019extern  bool_t xdr_CREATE3resfail (XDR *, CREATE3resfail*);
1020extern  bool_t xdr_CREATE3res (XDR *, CREATE3res*);
1021extern  bool_t xdr_MKDIR3args (XDR *, MKDIR3args*);
1022extern  bool_t xdr_MKDIR3resok (XDR *, MKDIR3resok*);
1023extern  bool_t xdr_MKDIR3resfail (XDR *, MKDIR3resfail*);
1024extern  bool_t xdr_MKDIR3res (XDR *, MKDIR3res*);
1025extern  bool_t xdr_symlinkdata3 (XDR *, symlinkdata3*);
1026extern  bool_t xdr_SYMLINK3args (XDR *, SYMLINK3args*);
1027extern  bool_t xdr_SYMLINK3resok (XDR *, SYMLINK3resok*);
1028extern  bool_t xdr_SYMLINK3resfail (XDR *, SYMLINK3resfail*);
1029extern  bool_t xdr_SYMLINK3res (XDR *, SYMLINK3res*);
1030extern  bool_t xdr_devicedata3 (XDR *, devicedata3*);
1031extern  bool_t xdr_mknoddata3 (XDR *, mknoddata3*);
1032extern  bool_t xdr_MKNOD3args (XDR *, MKNOD3args*);
1033extern  bool_t xdr_MKNOD3resok (XDR *, MKNOD3resok*);
1034extern  bool_t xdr_MKNOD3resfail (XDR *, MKNOD3resfail*);
1035extern  bool_t xdr_MKNOD3res (XDR *, MKNOD3res*);
1036extern  bool_t xdr_REMOVE3args (XDR *, REMOVE3args*);
1037extern  bool_t xdr_REMOVE3resok (XDR *, REMOVE3resok*);
1038extern  bool_t xdr_REMOVE3resfail (XDR *, REMOVE3resfail*);
1039extern  bool_t xdr_REMOVE3res (XDR *, REMOVE3res*);
1040extern  bool_t xdr_RMDIR3args (XDR *, RMDIR3args*);
1041extern  bool_t xdr_RMDIR3resok (XDR *, RMDIR3resok*);
1042extern  bool_t xdr_RMDIR3resfail (XDR *, RMDIR3resfail*);
1043extern  bool_t xdr_RMDIR3res (XDR *, RMDIR3res*);
1044extern  bool_t xdr_RENAME3args (XDR *, RENAME3args*);
1045extern  bool_t xdr_RENAME3resok (XDR *, RENAME3resok*);
1046extern  bool_t xdr_RENAME3resfail (XDR *, RENAME3resfail*);
1047extern  bool_t xdr_RENAME3res (XDR *, RENAME3res*);
1048extern  bool_t xdr_LINK3args (XDR *, LINK3args*);
1049extern  bool_t xdr_LINK3resok (XDR *, LINK3resok*);
1050extern  bool_t xdr_LINK3resfail (XDR *, LINK3resfail*);
1051extern  bool_t xdr_LINK3res (XDR *, LINK3res*);
1052extern  bool_t xdr_READDIR3args (XDR *, READDIR3args*);
1053extern  bool_t xdr_entry3 (XDR *, entry3*);
1054extern  bool_t xdr_dirlist3 (XDR *, dirlist3*);
1055extern  bool_t xdr_READDIR3resok (XDR *, READDIR3resok*);
1056extern  bool_t xdr_READDIR3resfail (XDR *, READDIR3resfail*);
1057extern  bool_t xdr_READDIR3res (XDR *, READDIR3res*);
1058extern  bool_t xdr_READDIRPLUS3args (XDR *, READDIRPLUS3args*);
1059extern  bool_t xdr_entryplus3 (XDR *, entryplus3*);
1060extern  bool_t xdr_dirlistplus3 (XDR *, dirlistplus3*);
1061extern  bool_t xdr_READDIRPLUS3resok (XDR *, READDIRPLUS3resok*);
1062extern  bool_t xdr_READDIRPLUS3resfail (XDR *, READDIRPLUS3resfail*);
1063extern  bool_t xdr_READDIRPLUS3res (XDR *, READDIRPLUS3res*);
1064extern  bool_t xdr_FSSTAT3args (XDR *, FSSTAT3args*);
1065extern  bool_t xdr_FSSTAT3resok (XDR *, FSSTAT3resok*);
1066extern  bool_t xdr_FSSTAT3resfail (XDR *, FSSTAT3resfail*);
1067extern  bool_t xdr_FSSTAT3res (XDR *, FSSTAT3res*);
1068extern  bool_t xdr_FSINFOargs (XDR *, FSINFOargs*);
1069extern  bool_t xdr_FSINFO3resok (XDR *, FSINFO3resok*);
1070extern  bool_t xdr_FSINFO3resfail (XDR *, FSINFO3resfail*);
1071extern  bool_t xdr_FSINFO3res (XDR *, FSINFO3res*);
1072extern  bool_t xdr_PATHCONF3args (XDR *, PATHCONF3args*);
1073extern  bool_t xdr_PATHCONF3resok (XDR *, PATHCONF3resok*);
1074extern  bool_t xdr_PATHCONF3resfail (XDR *, PATHCONF3resfail*);
1075extern  bool_t xdr_PATHCONF3res (XDR *, PATHCONF3res*);
1076extern  bool_t xdr_COMMIT3args (XDR *, COMMIT3args*);
1077extern  bool_t xdr_COMMIT3resok (XDR *, COMMIT3resok*);
1078extern  bool_t xdr_COMMIT3resfail (XDR *, COMMIT3resfail*);
1079extern  bool_t xdr_COMMIT3res (XDR *, COMMIT3res*);
1080
1081#ifdef __cplusplus
1082}
1083#endif
1084
1085#endif /* !_NFS_H_RPCGEN */
1086