delay a few things on startup, such as setting the visibility mode, which ensures...
[personal-kdebase.git] / runtime / kioslave / nfs / nfs_prot.h
blob5ed218f20d2fda219adda6899a1321fc3d384d1e
1 /*
2 * Please do not edit this file.
3 * It was generated using rpcgen.
4 */
6 #ifndef _NFS_PROT_H_RPCGEN
7 #define _NFS_PROT_H_RPCGEN
9 #include <rpc/rpc.h>
12 * Sun RPC is a product of Sun Microsystems, Inc. and is provided for
13 * unrestricted use provided that this legend is included on all tape
14 * media and as a part of the software program in whole or part. Users
15 * may copy or modify Sun RPC without charge, but are not authorized
16 * to license or distribute it to anyone else except as part of a product or
17 * program developed by the user or with the express written consent of
18 * Sun Microsystems, Inc.
20 * SUN RPC IS PROVIDED AS IS WITH NO WARRANTIES OF ANY KIND INCLUDING THE
21 * WARRANTIES OF DESIGN, MERCHANTIBILITY AND FITNESS FOR A PARTICULAR
22 * PURPOSE, OR ARISING FROM A COURSE OF DEALING, USAGE OR TRADE PRACTICE.
24 * Sun RPC is provided with no support and without any obligation on the
25 * part of Sun Microsystems, Inc. to assist in its use, correction,
26 * modification or enhancement.
28 * SUN MICROSYSTEMS, INC. SHALL HAVE NO LIABILITY WITH RESPECT TO THE
29 * INFRINGEMENT OF COPYRIGHTS, TRADE SECRETS OR ANY PATENTS BY SUN RPC
30 * OR ANY PART THEREOF.
32 * In no event will Sun Microsystems, Inc. be liable for any lost revenue
33 * or profits or other special, indirect and consequential damages, even if
34 * Sun has been advised of the possibility of such damages.
36 * Sun Microsystems, Inc.
37 * 2550 Garcia Avenue
38 * Mountain View, California 94043
41 * Copyright (c) 1987, 1990 by Sun Microsystems, Inc.
44 /* from @(#)nfs_prot.x 1.3 91/03/11 TIRPC 1.0 */
45 #ifndef _rpcsvc_nfs_prot_h
46 #define _rpcsvc_nfs_prot_h
47 #define NFS_PORT 2049
48 #define NFS_MAXDATA 8192
49 #define NFS_MAXPATHLEN 1024
50 #define NFS_MAXNAMLEN 255
51 #define NFS_FHSIZE 32
52 #define NFS_COOKIESIZE 4
53 #define NFS_FIFO_DEV -1
54 #define NFSMODE_FMT 0170000
55 #define NFSMODE_DIR 0040000
56 #define NFSMODE_CHR 0020000
57 #define NFSMODE_BLK 0060000
58 #define NFSMODE_REG 0100000
59 #define NFSMODE_LNK 0120000
60 #define NFSMODE_SOCK 0140000
61 #define NFSMODE_FIFO 0010000
63 enum nfsstat {
64 NFS_OK = 0,
65 NFSERR_PERM = 1,
66 NFSERR_NOENT = 2,
67 NFSERR_IO = 5,
68 NFSERR_NXIO = 6,
69 NFSERR_ACCES = 13,
70 NFSERR_EXIST = 17,
71 NFSERR_NODEV = 19,
72 NFSERR_NOTDIR = 20,
73 NFSERR_ISDIR = 21,
74 NFSERR_INVAL = 22,
75 NFSERR_FBIG = 27,
76 NFSERR_NOSPC = 28,
77 NFSERR_ROFS = 30,
78 NFSERR_NAMETOOLONG = 63,
79 NFSERR_NOTEMPTY = 66,
80 NFSERR_DQUOT = 69,
81 NFSERR_STALE = 70,
82 NFSERR_WFLUSH = 99
84 typedef enum nfsstat nfsstat;
85 #ifdef __cplusplus
86 extern "C" bool_t xdr_nfsstat(XDR *, nfsstat*);
87 #elif __STDC__
88 extern bool_t xdr_nfsstat(XDR *, nfsstat*);
89 #else /* Old Style C */
90 bool_t xdr_nfsstat();
91 #endif /* Old Style C */
94 enum ftype {
95 NFNON = 0,
96 NFREG = 1,
97 NFDIR = 2,
98 NFBLK = 3,
99 NFCHR = 4,
100 NFLNK = 5,
101 NFSOCK = 6,
102 NFBAD = 7,
103 NFFIFO = 8
105 typedef enum ftype ftype;
106 #ifdef __cplusplus
107 extern "C" bool_t xdr_ftype(XDR *, ftype*);
108 #elif __STDC__
109 extern bool_t xdr_ftype(XDR *, ftype*);
110 #else /* Old Style C */
111 bool_t xdr_ftype();
112 #endif /* Old Style C */
115 struct nfs_fh {
116 char data[NFS_FHSIZE];
118 typedef struct nfs_fh nfs_fh;
119 #ifdef __cplusplus
120 extern "C" bool_t xdr_nfs_fh(XDR *, nfs_fh*);
121 #elif __STDC__
122 extern bool_t xdr_nfs_fh(XDR *, nfs_fh*);
123 #else /* Old Style C */
124 bool_t xdr_nfs_fh();
125 #endif /* Old Style C */
128 struct nfstime {
129 u_int seconds;
130 u_int useconds;
132 typedef struct nfstime nfstime;
133 #ifdef __cplusplus
134 extern "C" bool_t xdr_nfstime(XDR *, nfstime*);
135 #elif __STDC__
136 extern bool_t xdr_nfstime(XDR *, nfstime*);
137 #else /* Old Style C */
138 bool_t xdr_nfstime();
139 #endif /* Old Style C */
142 struct fattr {
143 ftype type;
144 u_int mode;
145 u_int nlink;
146 u_int uid;
147 u_int gid;
148 u_int size;
149 u_int blocksize;
150 u_int rdev;
151 u_int blocks;
152 u_int fsid;
153 u_int fileid;
154 nfstime atime;
155 nfstime mtime;
156 nfstime ctime;
158 typedef struct fattr fattr;
159 #ifdef __cplusplus
160 extern "C" bool_t xdr_fattr(XDR *, fattr*);
161 #elif __STDC__
162 extern bool_t xdr_fattr(XDR *, fattr*);
163 #else /* Old Style C */
164 bool_t xdr_fattr();
165 #endif /* Old Style C */
168 struct sattr {
169 u_int mode;
170 u_int uid;
171 u_int gid;
172 u_int size;
173 nfstime atime;
174 nfstime mtime;
176 typedef struct sattr sattr;
177 #ifdef __cplusplus
178 extern "C" bool_t xdr_sattr(XDR *, sattr*);
179 #elif __STDC__
180 extern bool_t xdr_sattr(XDR *, sattr*);
181 #else /* Old Style C */
182 bool_t xdr_sattr();
183 #endif /* Old Style C */
186 typedef char *filename;
187 #ifdef __cplusplus
188 extern "C" bool_t xdr_filename(XDR *, filename*);
189 #elif __STDC__
190 extern bool_t xdr_filename(XDR *, filename*);
191 #else /* Old Style C */
192 bool_t xdr_filename();
193 #endif /* Old Style C */
196 typedef char *nfspath;
197 #ifdef __cplusplus
198 extern "C" bool_t xdr_nfspath(XDR *, nfspath*);
199 #elif __STDC__
200 extern bool_t xdr_nfspath(XDR *, nfspath*);
201 #else /* Old Style C */
202 bool_t xdr_nfspath();
203 #endif /* Old Style C */
206 struct attrstat {
207 nfsstat status;
208 union {
209 fattr attributes;
210 } attrstat_u;
212 typedef struct attrstat attrstat;
213 #ifdef __cplusplus
214 extern "C" bool_t xdr_attrstat(XDR *, attrstat*);
215 #elif __STDC__
216 extern bool_t xdr_attrstat(XDR *, attrstat*);
217 #else /* Old Style C */
218 bool_t xdr_attrstat();
219 #endif /* Old Style C */
222 struct sattrargs {
223 nfs_fh file;
224 sattr attributes;
226 typedef struct sattrargs sattrargs;
227 #ifdef __cplusplus
228 extern "C" bool_t xdr_sattrargs(XDR *, sattrargs*);
229 #elif __STDC__
230 extern bool_t xdr_sattrargs(XDR *, sattrargs*);
231 #else /* Old Style C */
232 bool_t xdr_sattrargs();
233 #endif /* Old Style C */
236 struct diropargs {
237 nfs_fh dir;
238 filename name;
240 typedef struct diropargs diropargs;
241 #ifdef __cplusplus
242 extern "C" bool_t xdr_diropargs(XDR *, diropargs*);
243 #elif __STDC__
244 extern bool_t xdr_diropargs(XDR *, diropargs*);
245 #else /* Old Style C */
246 bool_t xdr_diropargs();
247 #endif /* Old Style C */
250 struct diropokres {
251 nfs_fh file;
252 fattr attributes;
254 typedef struct diropokres diropokres;
255 #ifdef __cplusplus
256 extern "C" bool_t xdr_diropokres(XDR *, diropokres*);
257 #elif __STDC__
258 extern bool_t xdr_diropokres(XDR *, diropokres*);
259 #else /* Old Style C */
260 bool_t xdr_diropokres();
261 #endif /* Old Style C */
264 struct diropres {
265 nfsstat status;
266 union {
267 diropokres diropres;
268 } diropres_u;
270 typedef struct diropres diropres;
271 #ifdef __cplusplus
272 extern "C" bool_t xdr_diropres(XDR *, diropres*);
273 #elif __STDC__
274 extern bool_t xdr_diropres(XDR *, diropres*);
275 #else /* Old Style C */
276 bool_t xdr_diropres();
277 #endif /* Old Style C */
280 struct readlinkres {
281 nfsstat status;
282 union {
283 nfspath data;
284 } readlinkres_u;
286 typedef struct readlinkres readlinkres;
287 #ifdef __cplusplus
288 extern "C" bool_t xdr_readlinkres(XDR *, readlinkres*);
289 #elif __STDC__
290 extern bool_t xdr_readlinkres(XDR *, readlinkres*);
291 #else /* Old Style C */
292 bool_t xdr_readlinkres();
293 #endif /* Old Style C */
296 struct readargs {
297 nfs_fh file;
298 u_int offset;
299 u_int count;
300 u_int totalcount;
302 typedef struct readargs readargs;
303 #ifdef __cplusplus
304 extern "C" bool_t xdr_readargs(XDR *, readargs*);
305 #elif __STDC__
306 extern bool_t xdr_readargs(XDR *, readargs*);
307 #else /* Old Style C */
308 bool_t xdr_readargs();
309 #endif /* Old Style C */
312 struct readokres {
313 fattr attributes;
314 struct {
315 u_int data_len;
316 char *data_val;
317 } data;
319 typedef struct readokres readokres;
320 #ifdef __cplusplus
321 extern "C" bool_t xdr_readokres(XDR *, readokres*);
322 #elif __STDC__
323 extern bool_t xdr_readokres(XDR *, readokres*);
324 #else /* Old Style C */
325 bool_t xdr_readokres();
326 #endif /* Old Style C */
329 struct readres {
330 nfsstat status;
331 union {
332 readokres reply;
333 } readres_u;
335 typedef struct readres readres;
336 #ifdef __cplusplus
337 extern "C" bool_t xdr_readres(XDR *, readres*);
338 #elif __STDC__
339 extern bool_t xdr_readres(XDR *, readres*);
340 #else /* Old Style C */
341 bool_t xdr_readres();
342 #endif /* Old Style C */
345 struct writeargs {
346 nfs_fh file;
347 u_int beginoffset;
348 u_int offset;
349 u_int totalcount;
350 struct {
351 u_int data_len;
352 char *data_val;
353 } data;
355 typedef struct writeargs writeargs;
356 #ifdef __cplusplus
357 extern "C" bool_t xdr_writeargs(XDR *, writeargs*);
358 #elif __STDC__
359 extern bool_t xdr_writeargs(XDR *, writeargs*);
360 #else /* Old Style C */
361 bool_t xdr_writeargs();
362 #endif /* Old Style C */
365 struct createargs {
366 diropargs where;
367 sattr attributes;
369 typedef struct createargs createargs;
370 #ifdef __cplusplus
371 extern "C" bool_t xdr_createargs(XDR *, createargs*);
372 #elif __STDC__
373 extern bool_t xdr_createargs(XDR *, createargs*);
374 #else /* Old Style C */
375 bool_t xdr_createargs();
376 #endif /* Old Style C */
379 struct renameargs {
380 diropargs from;
381 diropargs to;
383 typedef struct renameargs renameargs;
384 #ifdef __cplusplus
385 extern "C" bool_t xdr_renameargs(XDR *, renameargs*);
386 #elif __STDC__
387 extern bool_t xdr_renameargs(XDR *, renameargs*);
388 #else /* Old Style C */
389 bool_t xdr_renameargs();
390 #endif /* Old Style C */
393 struct linkargs {
394 nfs_fh from;
395 diropargs to;
397 typedef struct linkargs linkargs;
398 #ifdef __cplusplus
399 extern "C" bool_t xdr_linkargs(XDR *, linkargs*);
400 #elif __STDC__
401 extern bool_t xdr_linkargs(XDR *, linkargs*);
402 #else /* Old Style C */
403 bool_t xdr_linkargs();
404 #endif /* Old Style C */
407 struct symlinkargs {
408 diropargs from;
409 nfspath to;
410 sattr attributes;
412 typedef struct symlinkargs symlinkargs;
413 #ifdef __cplusplus
414 extern "C" bool_t xdr_symlinkargs(XDR *, symlinkargs*);
415 #elif __STDC__
416 extern bool_t xdr_symlinkargs(XDR *, symlinkargs*);
417 #else /* Old Style C */
418 bool_t xdr_symlinkargs();
419 #endif /* Old Style C */
422 typedef char nfscookie[NFS_COOKIESIZE];
423 #ifdef __cplusplus
424 extern "C" bool_t xdr_nfscookie(XDR *, nfscookie);
425 #elif __STDC__
426 extern bool_t xdr_nfscookie(XDR *, nfscookie);
427 #else /* Old Style C */
428 bool_t xdr_nfscookie();
429 #endif /* Old Style C */
432 struct readdirargs {
433 nfs_fh dir;
434 nfscookie cookie;
435 u_int count;
437 typedef struct readdirargs readdirargs;
438 #ifdef __cplusplus
439 extern "C" bool_t xdr_readdirargs(XDR *, readdirargs*);
440 #elif __STDC__
441 extern bool_t xdr_readdirargs(XDR *, readdirargs*);
442 #else /* Old Style C */
443 bool_t xdr_readdirargs();
444 #endif /* Old Style C */
447 struct entry {
448 u_int fileid;
449 filename name;
450 nfscookie cookie;
451 struct entry *nextentry;
453 typedef struct entry entry;
454 #ifdef __cplusplus
455 extern "C" bool_t xdr_entry(XDR *, entry*);
456 #elif __STDC__
457 extern bool_t xdr_entry(XDR *, entry*);
458 #else /* Old Style C */
459 bool_t xdr_entry();
460 #endif /* Old Style C */
463 struct dirlist {
464 entry *entries;
465 bool_t eof;
467 typedef struct dirlist dirlist;
468 #ifdef __cplusplus
469 extern "C" bool_t xdr_dirlist(XDR *, dirlist*);
470 #elif __STDC__
471 extern bool_t xdr_dirlist(XDR *, dirlist*);
472 #else /* Old Style C */
473 bool_t xdr_dirlist();
474 #endif /* Old Style C */
477 struct readdirres {
478 nfsstat status;
479 union {
480 dirlist reply;
481 } readdirres_u;
483 typedef struct readdirres readdirres;
484 #ifdef __cplusplus
485 extern "C" bool_t xdr_readdirres(XDR *, readdirres*);
486 #elif __STDC__
487 extern bool_t xdr_readdirres(XDR *, readdirres*);
488 #else /* Old Style C */
489 bool_t xdr_readdirres();
490 #endif /* Old Style C */
493 struct statfsokres {
494 u_int tsize;
495 u_int bsize;
496 u_int blocks;
497 u_int bfree;
498 u_int bavail;
500 typedef struct statfsokres statfsokres;
501 #ifdef __cplusplus
502 extern "C" bool_t xdr_statfsokres(XDR *, statfsokres*);
503 #elif __STDC__
504 extern bool_t xdr_statfsokres(XDR *, statfsokres*);
505 #else /* Old Style C */
506 bool_t xdr_statfsokres();
507 #endif /* Old Style C */
510 struct statfsres {
511 nfsstat status;
512 union {
513 statfsokres reply;
514 } statfsres_u;
516 typedef struct statfsres statfsres;
517 #ifdef __cplusplus
518 extern "C" bool_t xdr_statfsres(XDR *, statfsres*);
519 #elif __STDC__
520 extern bool_t xdr_statfsres(XDR *, statfsres*);
521 #else /* Old Style C */
522 bool_t xdr_statfsres();
523 #endif /* Old Style C */
525 #endif /*!_rpcsvc_nfs_prot_h*/
527 #define NFS_PROGRAM ((u_long)100003)
528 #define NFS_VERSION ((u_long)2)
530 #ifdef __cplusplus
531 #define NFSPROC_NULL ((u_long)0)
532 extern "C" void * nfsproc_null_2(void *, CLIENT *);
533 extern "C" void * nfsproc_null_2_svc(void *, struct svc_req *);
534 #define NFSPROC_GETATTR ((u_long)1)
535 extern "C" attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *);
536 extern "C" attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *);
537 #define NFSPROC_SETATTR ((u_long)2)
538 extern "C" attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *);
539 extern "C" attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *);
540 #define NFSPROC_ROOT ((u_long)3)
541 extern "C" void * nfsproc_root_2(void *, CLIENT *);
542 extern "C" void * nfsproc_root_2_svc(void *, struct svc_req *);
543 #define NFSPROC_LOOKUP ((u_long)4)
544 extern "C" diropres * nfsproc_lookup_2(diropargs *, CLIENT *);
545 extern "C" diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *);
546 #define NFSPROC_READLINK ((u_long)5)
547 extern "C" readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *);
548 extern "C" readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *);
549 #define NFSPROC_READ ((u_long)6)
550 extern "C" readres * nfsproc_read_2(readargs *, CLIENT *);
551 extern "C" readres * nfsproc_read_2_svc(readargs *, struct svc_req *);
552 #define NFSPROC_WRITECACHE ((u_long)7)
553 extern "C" void * nfsproc_writecache_2(void *, CLIENT *);
554 extern "C" void * nfsproc_writecache_2_svc(void *, struct svc_req *);
555 #define NFSPROC_WRITE ((u_long)8)
556 extern "C" attrstat * nfsproc_write_2(writeargs *, CLIENT *);
557 extern "C" attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *);
558 #define NFSPROC_CREATE ((u_long)9)
559 extern "C" diropres * nfsproc_create_2(createargs *, CLIENT *);
560 extern "C" diropres * nfsproc_create_2_svc(createargs *, struct svc_req *);
561 #define NFSPROC_REMOVE ((u_long)10)
562 extern "C" nfsstat * nfsproc_remove_2(diropargs *, CLIENT *);
563 extern "C" nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *);
564 #define NFSPROC_RENAME ((u_long)11)
565 extern "C" nfsstat * nfsproc_rename_2(renameargs *, CLIENT *);
566 extern "C" nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *);
567 #define NFSPROC_LINK ((u_long)12)
568 extern "C" nfsstat * nfsproc_link_2(linkargs *, CLIENT *);
569 extern "C" nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *);
570 #define NFSPROC_SYMLINK ((u_long)13)
571 extern "C" nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *);
572 extern "C" nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *);
573 #define NFSPROC_MKDIR ((u_long)14)
574 extern "C" diropres * nfsproc_mkdir_2(createargs *, CLIENT *);
575 extern "C" diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *);
576 #define NFSPROC_RMDIR ((u_long)15)
577 extern "C" nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *);
578 extern "C" nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *);
579 #define NFSPROC_READDIR ((u_long)16)
580 extern "C" readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *);
581 extern "C" readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *);
582 #define NFSPROC_STATFS ((u_long)17)
583 extern "C" statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *);
584 extern "C" statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);
586 #elif __STDC__
587 #define NFSPROC_NULL ((u_long)0)
588 extern void * nfsproc_null_2(void *, CLIENT *);
589 extern void * nfsproc_null_2_svc(void *, struct svc_req *);
590 #define NFSPROC_GETATTR ((u_long)1)
591 extern attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *);
592 extern attrstat * nfsproc_getattr_2_svc(nfs_fh *, struct svc_req *);
593 #define NFSPROC_SETATTR ((u_long)2)
594 extern attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *);
595 extern attrstat * nfsproc_setattr_2_svc(sattrargs *, struct svc_req *);
596 #define NFSPROC_ROOT ((u_long)3)
597 extern void * nfsproc_root_2(void *, CLIENT *);
598 extern void * nfsproc_root_2_svc(void *, struct svc_req *);
599 #define NFSPROC_LOOKUP ((u_long)4)
600 extern diropres * nfsproc_lookup_2(diropargs *, CLIENT *);
601 extern diropres * nfsproc_lookup_2_svc(diropargs *, struct svc_req *);
602 #define NFSPROC_READLINK ((u_long)5)
603 extern readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *);
604 extern readlinkres * nfsproc_readlink_2_svc(nfs_fh *, struct svc_req *);
605 #define NFSPROC_READ ((u_long)6)
606 extern readres * nfsproc_read_2(readargs *, CLIENT *);
607 extern readres * nfsproc_read_2_svc(readargs *, struct svc_req *);
608 #define NFSPROC_WRITECACHE ((u_long)7)
609 extern void * nfsproc_writecache_2(void *, CLIENT *);
610 extern void * nfsproc_writecache_2_svc(void *, struct svc_req *);
611 #define NFSPROC_WRITE ((u_long)8)
612 extern attrstat * nfsproc_write_2(writeargs *, CLIENT *);
613 extern attrstat * nfsproc_write_2_svc(writeargs *, struct svc_req *);
614 #define NFSPROC_CREATE ((u_long)9)
615 extern diropres * nfsproc_create_2(createargs *, CLIENT *);
616 extern diropres * nfsproc_create_2_svc(createargs *, struct svc_req *);
617 #define NFSPROC_REMOVE ((u_long)10)
618 extern nfsstat * nfsproc_remove_2(diropargs *, CLIENT *);
619 extern nfsstat * nfsproc_remove_2_svc(diropargs *, struct svc_req *);
620 #define NFSPROC_RENAME ((u_long)11)
621 extern nfsstat * nfsproc_rename_2(renameargs *, CLIENT *);
622 extern nfsstat * nfsproc_rename_2_svc(renameargs *, struct svc_req *);
623 #define NFSPROC_LINK ((u_long)12)
624 extern nfsstat * nfsproc_link_2(linkargs *, CLIENT *);
625 extern nfsstat * nfsproc_link_2_svc(linkargs *, struct svc_req *);
626 #define NFSPROC_SYMLINK ((u_long)13)
627 extern nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *);
628 extern nfsstat * nfsproc_symlink_2_svc(symlinkargs *, struct svc_req *);
629 #define NFSPROC_MKDIR ((u_long)14)
630 extern diropres * nfsproc_mkdir_2(createargs *, CLIENT *);
631 extern diropres * nfsproc_mkdir_2_svc(createargs *, struct svc_req *);
632 #define NFSPROC_RMDIR ((u_long)15)
633 extern nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *);
634 extern nfsstat * nfsproc_rmdir_2_svc(diropargs *, struct svc_req *);
635 #define NFSPROC_READDIR ((u_long)16)
636 extern readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *);
637 extern readdirres * nfsproc_readdir_2_svc(readdirargs *, struct svc_req *);
638 #define NFSPROC_STATFS ((u_long)17)
639 extern statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *);
640 extern statfsres * nfsproc_statfs_2_svc(nfs_fh *, struct svc_req *);
642 #else /* Old Style C */
643 #define NFSPROC_NULL ((u_long)0)
644 extern void * nfsproc_null_2();
645 extern void * nfsproc_null_2_svc();
646 #define NFSPROC_GETATTR ((u_long)1)
647 extern attrstat * nfsproc_getattr_2();
648 extern attrstat * nfsproc_getattr_2_svc();
649 #define NFSPROC_SETATTR ((u_long)2)
650 extern attrstat * nfsproc_setattr_2();
651 extern attrstat * nfsproc_setattr_2_svc();
652 #define NFSPROC_ROOT ((u_long)3)
653 extern void * nfsproc_root_2();
654 extern void * nfsproc_root_2_svc();
655 #define NFSPROC_LOOKUP ((u_long)4)
656 extern diropres * nfsproc_lookup_2();
657 extern diropres * nfsproc_lookup_2_svc();
658 #define NFSPROC_READLINK ((u_long)5)
659 extern readlinkres * nfsproc_readlink_2();
660 extern readlinkres * nfsproc_readlink_2_svc();
661 #define NFSPROC_READ ((u_long)6)
662 extern readres * nfsproc_read_2();
663 extern readres * nfsproc_read_2_svc();
664 #define NFSPROC_WRITECACHE ((u_long)7)
665 extern void * nfsproc_writecache_2();
666 extern void * nfsproc_writecache_2_svc();
667 #define NFSPROC_WRITE ((u_long)8)
668 extern attrstat * nfsproc_write_2();
669 extern attrstat * nfsproc_write_2_svc();
670 #define NFSPROC_CREATE ((u_long)9)
671 extern diropres * nfsproc_create_2();
672 extern diropres * nfsproc_create_2_svc();
673 #define NFSPROC_REMOVE ((u_long)10)
674 extern nfsstat * nfsproc_remove_2();
675 extern nfsstat * nfsproc_remove_2_svc();
676 #define NFSPROC_RENAME ((u_long)11)
677 extern nfsstat * nfsproc_rename_2();
678 extern nfsstat * nfsproc_rename_2_svc();
679 #define NFSPROC_LINK ((u_long)12)
680 extern nfsstat * nfsproc_link_2();
681 extern nfsstat * nfsproc_link_2_svc();
682 #define NFSPROC_SYMLINK ((u_long)13)
683 extern nfsstat * nfsproc_symlink_2();
684 extern nfsstat * nfsproc_symlink_2_svc();
685 #define NFSPROC_MKDIR ((u_long)14)
686 extern diropres * nfsproc_mkdir_2();
687 extern diropres * nfsproc_mkdir_2_svc();
688 #define NFSPROC_RMDIR ((u_long)15)
689 extern nfsstat * nfsproc_rmdir_2();
690 extern nfsstat * nfsproc_rmdir_2_svc();
691 #define NFSPROC_READDIR ((u_long)16)
692 extern readdirres * nfsproc_readdir_2();
693 extern readdirres * nfsproc_readdir_2_svc();
694 #define NFSPROC_STATFS ((u_long)17)
695 extern statfsres * nfsproc_statfs_2();
696 extern statfsres * nfsproc_statfs_2_svc();
697 #endif /* Old Style C */
699 #endif /* !_NFS_PROT_H_RPCGEN */