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