]> git.decadent.org.uk Git - nfs-utils.git/blob - support/include/rpcsvc/nfs_prot.h
Initial revision
[nfs-utils.git] / support / include / rpcsvc / nfs_prot.h
1 /*
2  * Please do not edit this file.
3  * It was generated using rpcgen.
4  */
5
6 #ifndef _NFS_PROT_H_RPCGEN
7 #define _NFS_PROT_H_RPCGEN
8
9 #include <rpc/rpc.h>
10
11 #define NFS_PORT 2049
12 #define NFS_MAXDATA 8192
13 #define NFS_MAXPATHLEN 1024
14 #define NFS_MAXNAMLEN 255
15 #define NFS_FHSIZE 32
16 #define NFS_COOKIESIZE 4
17 #define NFS_FIFO_DEV -1
18 #define NFSMODE_FMT 0170000
19 #define NFSMODE_DIR 0040000
20 #define NFSMODE_CHR 0020000
21 #define NFSMODE_BLK 0060000
22 #define NFSMODE_REG 0100000
23 #define NFSMODE_LNK 0120000
24 #define NFSMODE_SOCK 0140000
25 #define NFSMODE_FIFO 0010000
26
27 enum nfsstat {
28         NFS_OK = 0,
29         NFSERR_PERM = 1,
30         NFSERR_NOENT = 2,
31         NFSERR_IO = 5,
32         NFSERR_NXIO = 6,
33         NFSERR_ACCES = 13,
34         NFSERR_EXIST = 17,
35         NFSERR_NODEV = 19,
36         NFSERR_NOTDIR = 20,
37         NFSERR_ISDIR = 21,
38         NFSERR_FBIG = 27,
39         NFSERR_NOSPC = 28,
40         NFSERR_ROFS = 30,
41         NFSERR_NAMETOOLONG = 63,
42         NFSERR_NOTEMPTY = 66,
43         NFSERR_DQUOT = 69,
44         NFSERR_STALE = 70,
45         NFSERR_WFLUSH = 99,
46 };
47 typedef enum nfsstat nfsstat;
48 #ifdef __cplusplus 
49 extern "C" bool_t xdr_nfsstat(XDR *, nfsstat*);
50 #elif __STDC__ 
51 extern  bool_t xdr_nfsstat(XDR *, nfsstat*);
52 #else /* Old Style C */ 
53 bool_t xdr_nfsstat();
54 #endif /* Old Style C */ 
55
56
57 enum ftype {
58         NFNON = 0,
59         NFREG = 1,
60         NFDIR = 2,
61         NFBLK = 3,
62         NFCHR = 4,
63         NFLNK = 5,
64         NFSOCK = 6,
65         NFBAD = 7,
66         NFFIFO = 8,
67 };
68 typedef enum ftype ftype;
69 #ifdef __cplusplus 
70 extern "C" bool_t xdr_ftype(XDR *, ftype*);
71 #elif __STDC__ 
72 extern  bool_t xdr_ftype(XDR *, ftype*);
73 #else /* Old Style C */ 
74 bool_t xdr_ftype();
75 #endif /* Old Style C */ 
76
77
78 struct nfs_fh {
79         char data[NFS_FHSIZE];
80 };
81 typedef struct nfs_fh nfs_fh;
82 #ifdef __cplusplus 
83 extern "C" bool_t xdr_nfs_fh(XDR *, nfs_fh*);
84 #elif __STDC__ 
85 extern  bool_t xdr_nfs_fh(XDR *, nfs_fh*);
86 #else /* Old Style C */ 
87 bool_t xdr_nfs_fh();
88 #endif /* Old Style C */ 
89
90
91 struct nfstime {
92         u_int seconds;
93         u_int useconds;
94 };
95 typedef struct nfstime nfstime;
96 #ifdef __cplusplus 
97 extern "C" bool_t xdr_nfstime(XDR *, nfstime*);
98 #elif __STDC__ 
99 extern  bool_t xdr_nfstime(XDR *, nfstime*);
100 #else /* Old Style C */ 
101 bool_t xdr_nfstime();
102 #endif /* Old Style C */ 
103
104
105 struct fattr {
106         ftype type;
107         u_int mode;
108         u_int nlink;
109         u_int uid;
110         u_int gid;
111         u_int size;
112         u_int blocksize;
113         u_int rdev;
114         u_int blocks;
115         u_int fsid;
116         u_int fileid;
117         nfstime atime;
118         nfstime mtime;
119         nfstime ctime;
120 };
121 typedef struct fattr fattr;
122 #ifdef __cplusplus 
123 extern "C" bool_t xdr_fattr(XDR *, fattr*);
124 #elif __STDC__ 
125 extern  bool_t xdr_fattr(XDR *, fattr*);
126 #else /* Old Style C */ 
127 bool_t xdr_fattr();
128 #endif /* Old Style C */ 
129
130
131 struct sattr {
132         u_int mode;
133         u_int uid;
134         u_int gid;
135         u_int size;
136         nfstime atime;
137         nfstime mtime;
138 };
139 typedef struct sattr sattr;
140 #ifdef __cplusplus 
141 extern "C" bool_t xdr_sattr(XDR *, sattr*);
142 #elif __STDC__ 
143 extern  bool_t xdr_sattr(XDR *, sattr*);
144 #else /* Old Style C */ 
145 bool_t xdr_sattr();
146 #endif /* Old Style C */ 
147
148
149 typedef char *filename;
150 #ifdef __cplusplus 
151 extern "C" bool_t xdr_filename(XDR *, filename*);
152 #elif __STDC__ 
153 extern  bool_t xdr_filename(XDR *, filename*);
154 #else /* Old Style C */ 
155 bool_t xdr_filename();
156 #endif /* Old Style C */ 
157
158
159 typedef char *nfspath;
160 #ifdef __cplusplus 
161 extern "C" bool_t xdr_nfspath(XDR *, nfspath*);
162 #elif __STDC__ 
163 extern  bool_t xdr_nfspath(XDR *, nfspath*);
164 #else /* Old Style C */ 
165 bool_t xdr_nfspath();
166 #endif /* Old Style C */ 
167
168
169 struct attrstat {
170         nfsstat status;
171         union {
172                 fattr attributes;
173         } attrstat_u;
174 };
175 typedef struct attrstat attrstat;
176 #ifdef __cplusplus 
177 extern "C" bool_t xdr_attrstat(XDR *, attrstat*);
178 #elif __STDC__ 
179 extern  bool_t xdr_attrstat(XDR *, attrstat*);
180 #else /* Old Style C */ 
181 bool_t xdr_attrstat();
182 #endif /* Old Style C */ 
183
184
185 struct sattrargs {
186         nfs_fh file;
187         sattr attributes;
188 };
189 typedef struct sattrargs sattrargs;
190 #ifdef __cplusplus 
191 extern "C" bool_t xdr_sattrargs(XDR *, sattrargs*);
192 #elif __STDC__ 
193 extern  bool_t xdr_sattrargs(XDR *, sattrargs*);
194 #else /* Old Style C */ 
195 bool_t xdr_sattrargs();
196 #endif /* Old Style C */ 
197
198
199 struct diropargs {
200         nfs_fh dir;
201         filename name;
202 };
203 typedef struct diropargs diropargs;
204 #ifdef __cplusplus 
205 extern "C" bool_t xdr_diropargs(XDR *, diropargs*);
206 #elif __STDC__ 
207 extern  bool_t xdr_diropargs(XDR *, diropargs*);
208 #else /* Old Style C */ 
209 bool_t xdr_diropargs();
210 #endif /* Old Style C */ 
211
212
213 struct diropokres {
214         nfs_fh file;
215         fattr attributes;
216 };
217 typedef struct diropokres diropokres;
218 #ifdef __cplusplus 
219 extern "C" bool_t xdr_diropokres(XDR *, diropokres*);
220 #elif __STDC__ 
221 extern  bool_t xdr_diropokres(XDR *, diropokres*);
222 #else /* Old Style C */ 
223 bool_t xdr_diropokres();
224 #endif /* Old Style C */ 
225
226
227 struct diropres {
228         nfsstat status;
229         union {
230                 diropokres diropres;
231         } diropres_u;
232 };
233 typedef struct diropres diropres;
234 #ifdef __cplusplus 
235 extern "C" bool_t xdr_diropres(XDR *, diropres*);
236 #elif __STDC__ 
237 extern  bool_t xdr_diropres(XDR *, diropres*);
238 #else /* Old Style C */ 
239 bool_t xdr_diropres();
240 #endif /* Old Style C */ 
241
242
243 struct readlinkres {
244         nfsstat status;
245         union {
246                 nfspath data;
247         } readlinkres_u;
248 };
249 typedef struct readlinkres readlinkres;
250 #ifdef __cplusplus 
251 extern "C" bool_t xdr_readlinkres(XDR *, readlinkres*);
252 #elif __STDC__ 
253 extern  bool_t xdr_readlinkres(XDR *, readlinkres*);
254 #else /* Old Style C */ 
255 bool_t xdr_readlinkres();
256 #endif /* Old Style C */ 
257
258
259 struct readargs {
260         nfs_fh file;
261         u_int offset;
262         u_int count;
263         u_int totalcount;
264 };
265 typedef struct readargs readargs;
266 #ifdef __cplusplus 
267 extern "C" bool_t xdr_readargs(XDR *, readargs*);
268 #elif __STDC__ 
269 extern  bool_t xdr_readargs(XDR *, readargs*);
270 #else /* Old Style C */ 
271 bool_t xdr_readargs();
272 #endif /* Old Style C */ 
273
274
275 struct readokres {
276         fattr attributes;
277         struct {
278                 u_int data_len;
279                 char *data_val;
280         } data;
281 };
282 typedef struct readokres readokres;
283 #ifdef __cplusplus 
284 extern "C" bool_t xdr_readokres(XDR *, readokres*);
285 #elif __STDC__ 
286 extern  bool_t xdr_readokres(XDR *, readokres*);
287 #else /* Old Style C */ 
288 bool_t xdr_readokres();
289 #endif /* Old Style C */ 
290
291
292 struct readres {
293         nfsstat status;
294         union {
295                 readokres reply;
296         } readres_u;
297 };
298 typedef struct readres readres;
299 #ifdef __cplusplus 
300 extern "C" bool_t xdr_readres(XDR *, readres*);
301 #elif __STDC__ 
302 extern  bool_t xdr_readres(XDR *, readres*);
303 #else /* Old Style C */ 
304 bool_t xdr_readres();
305 #endif /* Old Style C */ 
306
307
308 struct writeargs {
309         nfs_fh file;
310         u_int beginoffset;
311         u_int offset;
312         u_int totalcount;
313         struct {
314                 u_int data_len;
315                 char *data_val;
316         } data;
317 };
318 typedef struct writeargs writeargs;
319 #ifdef __cplusplus 
320 extern "C" bool_t xdr_writeargs(XDR *, writeargs*);
321 #elif __STDC__ 
322 extern  bool_t xdr_writeargs(XDR *, writeargs*);
323 #else /* Old Style C */ 
324 bool_t xdr_writeargs();
325 #endif /* Old Style C */ 
326
327
328 struct createargs {
329         diropargs where;
330         sattr attributes;
331 };
332 typedef struct createargs createargs;
333 #ifdef __cplusplus 
334 extern "C" bool_t xdr_createargs(XDR *, createargs*);
335 #elif __STDC__ 
336 extern  bool_t xdr_createargs(XDR *, createargs*);
337 #else /* Old Style C */ 
338 bool_t xdr_createargs();
339 #endif /* Old Style C */ 
340
341
342 struct renameargs {
343         diropargs from;
344         diropargs to;
345 };
346 typedef struct renameargs renameargs;
347 #ifdef __cplusplus 
348 extern "C" bool_t xdr_renameargs(XDR *, renameargs*);
349 #elif __STDC__ 
350 extern  bool_t xdr_renameargs(XDR *, renameargs*);
351 #else /* Old Style C */ 
352 bool_t xdr_renameargs();
353 #endif /* Old Style C */ 
354
355
356 struct linkargs {
357         nfs_fh from;
358         diropargs to;
359 };
360 typedef struct linkargs linkargs;
361 #ifdef __cplusplus 
362 extern "C" bool_t xdr_linkargs(XDR *, linkargs*);
363 #elif __STDC__ 
364 extern  bool_t xdr_linkargs(XDR *, linkargs*);
365 #else /* Old Style C */ 
366 bool_t xdr_linkargs();
367 #endif /* Old Style C */ 
368
369
370 struct symlinkargs {
371         diropargs from;
372         nfspath to;
373         sattr attributes;
374 };
375 typedef struct symlinkargs symlinkargs;
376 #ifdef __cplusplus 
377 extern "C" bool_t xdr_symlinkargs(XDR *, symlinkargs*);
378 #elif __STDC__ 
379 extern  bool_t xdr_symlinkargs(XDR *, symlinkargs*);
380 #else /* Old Style C */ 
381 bool_t xdr_symlinkargs();
382 #endif /* Old Style C */ 
383
384
385 typedef char nfscookie[NFS_COOKIESIZE];
386 #ifdef __cplusplus 
387 extern "C" bool_t xdr_nfscookie(XDR *, nfscookie);
388 #elif __STDC__ 
389 extern  bool_t xdr_nfscookie(XDR *, nfscookie);
390 #else /* Old Style C */ 
391 bool_t xdr_nfscookie();
392 #endif /* Old Style C */ 
393
394
395 struct readdirargs {
396         nfs_fh dir;
397         nfscookie cookie;
398         u_int count;
399 };
400 typedef struct readdirargs readdirargs;
401 #ifdef __cplusplus 
402 extern "C" bool_t xdr_readdirargs(XDR *, readdirargs*);
403 #elif __STDC__ 
404 extern  bool_t xdr_readdirargs(XDR *, readdirargs*);
405 #else /* Old Style C */ 
406 bool_t xdr_readdirargs();
407 #endif /* Old Style C */ 
408
409
410 struct entry {
411         u_int fileid;
412         filename name;
413         nfscookie cookie;
414         struct entry *nextentry;
415 };
416 typedef struct entry entry;
417 #ifdef __cplusplus 
418 extern "C" bool_t xdr_entry(XDR *, entry*);
419 #elif __STDC__ 
420 extern  bool_t xdr_entry(XDR *, entry*);
421 #else /* Old Style C */ 
422 bool_t xdr_entry();
423 #endif /* Old Style C */ 
424
425
426 struct dirlist {
427         entry *entries;
428         bool_t eof;
429 };
430 typedef struct dirlist dirlist;
431 #ifdef __cplusplus 
432 extern "C" bool_t xdr_dirlist(XDR *, dirlist*);
433 #elif __STDC__ 
434 extern  bool_t xdr_dirlist(XDR *, dirlist*);
435 #else /* Old Style C */ 
436 bool_t xdr_dirlist();
437 #endif /* Old Style C */ 
438
439
440 struct readdirres {
441         nfsstat status;
442         union {
443                 dirlist reply;
444         } readdirres_u;
445 };
446 typedef struct readdirres readdirres;
447 #ifdef __cplusplus 
448 extern "C" bool_t xdr_readdirres(XDR *, readdirres*);
449 #elif __STDC__ 
450 extern  bool_t xdr_readdirres(XDR *, readdirres*);
451 #else /* Old Style C */ 
452 bool_t xdr_readdirres();
453 #endif /* Old Style C */ 
454
455
456 struct statfsokres {
457         u_int tsize;
458         u_int bsize;
459         u_int blocks;
460         u_int bfree;
461         u_int bavail;
462 };
463 typedef struct statfsokres statfsokres;
464 #ifdef __cplusplus 
465 extern "C" bool_t xdr_statfsokres(XDR *, statfsokres*);
466 #elif __STDC__ 
467 extern  bool_t xdr_statfsokres(XDR *, statfsokres*);
468 #else /* Old Style C */ 
469 bool_t xdr_statfsokres();
470 #endif /* Old Style C */ 
471
472
473 struct statfsres {
474         nfsstat status;
475         union {
476                 statfsokres reply;
477         } statfsres_u;
478 };
479 typedef struct statfsres statfsres;
480 #ifdef __cplusplus 
481 extern "C" bool_t xdr_statfsres(XDR *, statfsres*);
482 #elif __STDC__ 
483 extern  bool_t xdr_statfsres(XDR *, statfsres*);
484 #else /* Old Style C */ 
485 bool_t xdr_statfsres();
486 #endif /* Old Style C */ 
487
488
489 #define NFS_PROGRAM ((u_long)100003)
490 #define NFS_VERSION ((u_long)2)
491
492 #ifdef __cplusplus
493 #define NFSPROC_NULL ((u_long)0)
494 extern "C" void * nfsproc_null_2(void *, CLIENT *);
495 extern "C" void * nfsproc_null_2_svc(void *, struct svc_req *);
496 #define NFSPROC_GETATTR ((u_long)1)
497 extern "C" attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *);
498 extern "C" attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *);
499 #define NFSPROC_SETATTR ((u_long)2)
500 extern "C" attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *);
501 extern "C" attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *);
502 #define NFSPROC_ROOT ((u_long)3)
503 extern "C" void * nfsproc_root_2(void *, CLIENT *);
504 extern "C" void * nfsproc_root_2_svc(void *, struct svc_req *);
505 #define NFSPROC_LOOKUP ((u_long)4)
506 extern "C" diropres * nfsproc_lookup_2(diropargs *, CLIENT *);
507 extern "C" diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *);
508 #define NFSPROC_READLINK ((u_long)5)
509 extern "C" readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *);
510 extern "C" readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *);
511 #define NFSPROC_READ ((u_long)6)
512 extern "C" readres * nfsproc_read_2(readargs *, CLIENT *);
513 extern "C" readres * nfsproc_read_2_svc(readargs *, struct svc_req *);
514 #define NFSPROC_WRITECACHE ((u_long)7)
515 extern "C" void * nfsproc_writecache_2(void *, CLIENT *);
516 extern "C" void * nfsproc_writecache_2_svc(void *, struct svc_req *);
517 #define NFSPROC_WRITE ((u_long)8)
518 extern "C" attrstat * nfsproc_write_2(writeargs *, CLIENT *);
519 extern "C" attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *);
520 #define NFSPROC_CREATE ((u_long)9)
521 extern "C" diropres * nfsproc_create_2(createargs *, CLIENT *);
522 extern "C" diropres * nfsproc_create_2_svc(createargs *, struct svc_req *);
523 #define NFSPROC_REMOVE ((u_long)10)
524 extern "C" nfsstat * nfsproc_remove_2(diropargs *, CLIENT *);
525 extern "C" nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *);
526 #define NFSPROC_RENAME ((u_long)11)
527 extern "C" nfsstat * nfsproc_rename_2(renameargs *, CLIENT *);
528 extern "C" nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *);
529 #define NFSPROC_LINK ((u_long)12)
530 extern "C" nfsstat * nfsproc_link_2(linkargs *, CLIENT *);
531 extern "C" nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *);
532 #define NFSPROC_SYMLINK ((u_long)13)
533 extern "C" nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *);
534 extern "C" nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *);
535 #define NFSPROC_MKDIR ((u_long)14)
536 extern "C" diropres * nfsproc_mkdir_2(createargs *, CLIENT *);
537 extern "C" diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *);
538 #define NFSPROC_RMDIR ((u_long)15)
539 extern "C" nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *);
540 extern "C" nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *);
541 #define NFSPROC_READDIR ((u_long)16)
542 extern "C" readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *);
543 extern "C" readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *);
544 #define NFSPROC_STATFS ((u_long)17)
545 extern "C" statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *);
546 extern "C" statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);
547
548 #elif __STDC__
549 #define NFSPROC_NULL ((u_long)0)
550 extern  void * nfsproc_null_2(void *, CLIENT *);
551 extern  void * nfsproc_null_2_svc(void *, struct svc_req *);
552 #define NFSPROC_GETATTR ((u_long)1)
553 extern  attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *);
554 extern  attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *);
555 #define NFSPROC_SETATTR ((u_long)2)
556 extern  attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *);
557 extern  attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *);
558 #define NFSPROC_ROOT ((u_long)3)
559 extern  void * nfsproc_root_2(void *, CLIENT *);
560 extern  void * nfsproc_root_2_svc(void *, struct svc_req *);
561 #define NFSPROC_LOOKUP ((u_long)4)
562 extern  diropres * nfsproc_lookup_2(diropargs *, CLIENT *);
563 extern  diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *);
564 #define NFSPROC_READLINK ((u_long)5)
565 extern  readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *);
566 extern  readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *);
567 #define NFSPROC_READ ((u_long)6)
568 extern  readres * nfsproc_read_2(readargs *, CLIENT *);
569 extern  readres * nfsproc_read_2_svc(readargs *, struct svc_req *);
570 #define NFSPROC_WRITECACHE ((u_long)7)
571 extern  void * nfsproc_writecache_2(void *, CLIENT *);
572 extern  void * nfsproc_writecache_2_svc(void *, struct svc_req *);
573 #define NFSPROC_WRITE ((u_long)8)
574 extern  attrstat * nfsproc_write_2(writeargs *, CLIENT *);
575 extern  attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *);
576 #define NFSPROC_CREATE ((u_long)9)
577 extern  diropres * nfsproc_create_2(createargs *, CLIENT *);
578 extern  diropres * nfsproc_create_2_svc(createargs *, struct svc_req *);
579 #define NFSPROC_REMOVE ((u_long)10)
580 extern  nfsstat * nfsproc_remove_2(diropargs *, CLIENT *);
581 extern  nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *);
582 #define NFSPROC_RENAME ((u_long)11)
583 extern  nfsstat * nfsproc_rename_2(renameargs *, CLIENT *);
584 extern  nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *);
585 #define NFSPROC_LINK ((u_long)12)
586 extern  nfsstat * nfsproc_link_2(linkargs *, CLIENT *);
587 extern  nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *);
588 #define NFSPROC_SYMLINK ((u_long)13)
589 extern  nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *);
590 extern  nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *);
591 #define NFSPROC_MKDIR ((u_long)14)
592 extern  diropres * nfsproc_mkdir_2(createargs *, CLIENT *);
593 extern  diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *);
594 #define NFSPROC_RMDIR ((u_long)15)
595 extern  nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *);
596 extern  nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *);
597 #define NFSPROC_READDIR ((u_long)16)
598 extern  readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *);
599 extern  readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *);
600 #define NFSPROC_STATFS ((u_long)17)
601 extern  statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *);
602 extern  statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);
603
604 #else /* Old Style C */ 
605 #define NFSPROC_NULL ((u_long)0)
606 extern  void * nfsproc_null_2();
607 extern  void * nfsproc_null_2_svc();
608 #define NFSPROC_GETATTR ((u_long)1)
609 extern  attrstat * nfsproc_getattr_2();
610 extern  attrstat * nfsproc_getattr_2_svc();
611 #define NFSPROC_SETATTR ((u_long)2)
612 extern  attrstat * nfsproc_setattr_2();
613 extern  attrstat * nfsproc_setattr_2_svc();
614 #define NFSPROC_ROOT ((u_long)3)
615 extern  void * nfsproc_root_2();
616 extern  void * nfsproc_root_2_svc();
617 #define NFSPROC_LOOKUP ((u_long)4)
618 extern  diropres * nfsproc_lookup_2();
619 extern  diropres * nfsproc_lookup_2_svc();
620 #define NFSPROC_READLINK ((u_long)5)
621 extern  readlinkres * nfsproc_readlink_2();
622 extern  readlinkres * nfsproc_readlink_2_svc();
623 #define NFSPROC_READ ((u_long)6)
624 extern  readres * nfsproc_read_2();
625 extern  readres * nfsproc_read_2_svc();
626 #define NFSPROC_WRITECACHE ((u_long)7)
627 extern  void * nfsproc_writecache_2();
628 extern  void * nfsproc_writecache_2_svc();
629 #define NFSPROC_WRITE ((u_long)8)
630 extern  attrstat * nfsproc_write_2();
631 extern  attrstat * nfsproc_write_2_svc();
632 #define NFSPROC_CREATE ((u_long)9)
633 extern  diropres * nfsproc_create_2();
634 extern  diropres * nfsproc_create_2_svc();
635 #define NFSPROC_REMOVE ((u_long)10)
636 extern  nfsstat * nfsproc_remove_2();
637 extern  nfsstat * nfsproc_remove_2_svc();
638 #define NFSPROC_RENAME ((u_long)11)
639 extern  nfsstat * nfsproc_rename_2();
640 extern  nfsstat * nfsproc_rename_2_svc();
641 #define NFSPROC_LINK ((u_long)12)
642 extern  nfsstat * nfsproc_link_2();
643 extern  nfsstat * nfsproc_link_2_svc();
644 #define NFSPROC_SYMLINK ((u_long)13)
645 extern  nfsstat * nfsproc_symlink_2();
646 extern  nfsstat * nfsproc_symlink_2_svc();
647 #define NFSPROC_MKDIR ((u_long)14)
648 extern  diropres * nfsproc_mkdir_2();
649 extern  diropres * nfsproc_mkdir_2_svc();
650 #define NFSPROC_RMDIR ((u_long)15)
651 extern  nfsstat * nfsproc_rmdir_2();
652 extern  nfsstat * nfsproc_rmdir_2_svc();
653 #define NFSPROC_READDIR ((u_long)16)
654 extern  readdirres * nfsproc_readdir_2();
655 extern  readdirres * nfsproc_readdir_2_svc();
656 #define NFSPROC_STATFS ((u_long)17)
657 extern  statfsres * nfsproc_statfs_2();
658 extern  statfsres * nfsproc_statfs_2_svc();
659 #endif /* Old Style C */ 
660
661 #endif /* !_NFS_PROT_H_RPCGEN */