6 #ifndef _NFS_PROT_H_RPCGEN 7 #define _NFS_PROT_H_RPCGEN 22 #define NFS_MAXDATA 8192 23 #define NFS_MAXPATHLEN 1024 24 #define NFS_MAXNAMLEN 255 26 #define NFS_COOKIESIZE 4 27 #define NFS_FIFO_DEV -1 28 #define NFSMODE_FMT 0170000 29 #define NFSMODE_DIR 0040000 30 #define NFSMODE_CHR 0020000 31 #define NFSMODE_BLK 0060000 32 #define NFSMODE_REG 0100000 33 #define NFSMODE_LNK 0120000 34 #define NFSMODE_SOCK 0140000 35 #define NFSMODE_FIFO 0010000 51 NFSERR_NAMETOOLONG = 63,
58 typedef enum nfsstat nfsstat;
72 typedef enum ftype ftype;
75 char data[NFS_FHSIZE];
77 typedef struct nfs_fh nfs_fh;
101 typedef struct fattr fattr;
111 typedef struct sattr sattr;
113 typedef char *filename;
115 typedef char *nfspath;
182 typedef struct readres readres;
222 char data[NFS_COOKIESIZE];
237 struct entry *nextentry;
239 typedef struct entry entry;
245 typedef struct dirlist dirlist;
272 #define NFS_PROGRAM 100003 273 #define NFS_VERSION 2 275 #if defined(__STDC__) || defined(__cplusplus) 276 #define NFSPROC_NULL 0 277 extern void * nfsproc_null_2(
void *, CLIENT *);
278 extern void * nfsproc_null_2_svc(
void *,
struct svc_req *);
279 #define NFSPROC_GETATTR 1 280 extern attrstat * nfsproc_getattr_2(nfs_fh *, CLIENT *);
281 extern attrstat * nfsproc_getattr_2_svc(nfs_fh *,
struct svc_req *);
282 #define NFSPROC_SETATTR 2 283 extern attrstat * nfsproc_setattr_2(sattrargs *, CLIENT *);
284 extern attrstat * nfsproc_setattr_2_svc(sattrargs *,
struct svc_req *);
285 #define NFSPROC_ROOT 3 286 extern void * nfsproc_root_2(
void *, CLIENT *);
287 extern void * nfsproc_root_2_svc(
void *,
struct svc_req *);
288 #define NFSPROC_LOOKUP 4 289 extern diropres * nfsproc_lookup_2(diropargs *, CLIENT *);
290 extern diropres * nfsproc_lookup_2_svc(diropargs *,
struct svc_req *);
291 #define NFSPROC_READLINK 5 292 extern readlinkres * nfsproc_readlink_2(nfs_fh *, CLIENT *);
293 extern readlinkres * nfsproc_readlink_2_svc(nfs_fh *,
struct svc_req *);
294 #define NFSPROC_READ 6 295 extern readres * nfsproc_read_2(readargs *, CLIENT *);
296 extern readres * nfsproc_read_2_svc(readargs *,
struct svc_req *);
297 #define NFSPROC_WRITECACHE 7 298 extern void * nfsproc_writecache_2(
void *, CLIENT *);
299 extern void * nfsproc_writecache_2_svc(
void *,
struct svc_req *);
300 #define NFSPROC_WRITE 8 301 extern attrstat * nfsproc_write_2(writeargs *, CLIENT *);
302 extern attrstat * nfsproc_write_2_svc(writeargs *,
struct svc_req *);
303 #define NFSPROC_CREATE 9 304 extern diropres * nfsproc_create_2(createargs *, CLIENT *);
305 extern diropres * nfsproc_create_2_svc(createargs *,
struct svc_req *);
306 #define NFSPROC_REMOVE 10 307 extern nfsstat * nfsproc_remove_2(diropargs *, CLIENT *);
308 extern nfsstat * nfsproc_remove_2_svc(diropargs *,
struct svc_req *);
309 #define NFSPROC_RENAME 11 310 extern nfsstat * nfsproc_rename_2(renameargs *, CLIENT *);
311 extern nfsstat * nfsproc_rename_2_svc(renameargs *,
struct svc_req *);
312 #define NFSPROC_LINK 12 313 extern nfsstat * nfsproc_link_2(linkargs *, CLIENT *);
314 extern nfsstat * nfsproc_link_2_svc(linkargs *,
struct svc_req *);
315 #define NFSPROC_SYMLINK 13 316 extern nfsstat * nfsproc_symlink_2(symlinkargs *, CLIENT *);
317 extern nfsstat * nfsproc_symlink_2_svc(symlinkargs *,
struct svc_req *);
318 #define NFSPROC_MKDIR 14 319 extern diropres * nfsproc_mkdir_2(createargs *, CLIENT *);
320 extern diropres * nfsproc_mkdir_2_svc(createargs *,
struct svc_req *);
321 #define NFSPROC_RMDIR 15 322 extern nfsstat * nfsproc_rmdir_2(diropargs *, CLIENT *);
323 extern nfsstat * nfsproc_rmdir_2_svc(diropargs *,
struct svc_req *);
324 #define NFSPROC_READDIR 16 325 extern readdirres * nfsproc_readdir_2(readdirargs *, CLIENT *);
326 extern readdirres * nfsproc_readdir_2_svc(readdirargs *,
struct svc_req *);
327 #define NFSPROC_STATFS 17 328 extern statfsres * nfsproc_statfs_2(nfs_fh *, CLIENT *);
329 extern statfsres * nfsproc_statfs_2_svc(nfs_fh *,
struct svc_req *);
330 extern int nfs_program_2_freeresult (SVCXPRT *, xdrproc_t, caddr_t);
333 #define NFSPROC_NULL 0 334 extern void * nfsproc_null_2();
335 extern void * nfsproc_null_2_svc();
336 #define NFSPROC_GETATTR 1 337 extern attrstat * nfsproc_getattr_2();
338 extern attrstat * nfsproc_getattr_2_svc();
339 #define NFSPROC_SETATTR 2 340 extern attrstat * nfsproc_setattr_2();
341 extern attrstat * nfsproc_setattr_2_svc();
342 #define NFSPROC_ROOT 3 343 extern void * nfsproc_root_2();
344 extern void * nfsproc_root_2_svc();
345 #define NFSPROC_LOOKUP 4 346 extern diropres * nfsproc_lookup_2();
347 extern diropres * nfsproc_lookup_2_svc();
348 #define NFSPROC_READLINK 5 349 extern readlinkres * nfsproc_readlink_2();
350 extern readlinkres * nfsproc_readlink_2_svc();
351 #define NFSPROC_READ 6 352 extern readres * nfsproc_read_2();
353 extern readres * nfsproc_read_2_svc();
354 #define NFSPROC_WRITECACHE 7 355 extern void * nfsproc_writecache_2();
356 extern void * nfsproc_writecache_2_svc();
357 #define NFSPROC_WRITE 8 358 extern attrstat * nfsproc_write_2();
359 extern attrstat * nfsproc_write_2_svc();
360 #define NFSPROC_CREATE 9 361 extern diropres * nfsproc_create_2();
362 extern diropres * nfsproc_create_2_svc();
363 #define NFSPROC_REMOVE 10 364 extern nfsstat * nfsproc_remove_2();
365 extern nfsstat * nfsproc_remove_2_svc();
366 #define NFSPROC_RENAME 11 367 extern nfsstat * nfsproc_rename_2();
368 extern nfsstat * nfsproc_rename_2_svc();
369 #define NFSPROC_LINK 12 370 extern nfsstat * nfsproc_link_2();
371 extern nfsstat * nfsproc_link_2_svc();
372 #define NFSPROC_SYMLINK 13 373 extern nfsstat * nfsproc_symlink_2();
374 extern nfsstat * nfsproc_symlink_2_svc();
375 #define NFSPROC_MKDIR 14 376 extern diropres * nfsproc_mkdir_2();
377 extern diropres * nfsproc_mkdir_2_svc();
378 #define NFSPROC_RMDIR 15 379 extern nfsstat * nfsproc_rmdir_2();
380 extern nfsstat * nfsproc_rmdir_2_svc();
381 #define NFSPROC_READDIR 16 382 extern readdirres * nfsproc_readdir_2();
383 extern readdirres * nfsproc_readdir_2_svc();
384 #define NFSPROC_STATFS 17 385 extern statfsres * nfsproc_statfs_2();
386 extern statfsres * nfsproc_statfs_2_svc();
387 extern int nfs_program_2_freeresult ();
392 #if defined(__STDC__) || defined(__cplusplus) 393 extern bool_t xdr_nfsstat (XDR *, nfsstat*);
394 extern bool_t xdr_ftype (XDR *, ftype*);
395 extern bool_t xdr_nfs_fh (XDR *, nfs_fh*);
396 extern bool_t xdr_nfstime (XDR *, nfstime*);
397 extern bool_t xdr_fattr (XDR *, fattr*);
398 extern bool_t xdr_sattr (XDR *, sattr*);
399 extern bool_t xdr_filename (XDR *, filename*);
400 extern bool_t xdr_nfspath (XDR *, nfspath*);
401 extern bool_t xdr_attrstat (XDR *, attrstat*);
402 extern bool_t xdr_sattrargs (XDR *, sattrargs*);
403 extern bool_t xdr_diropargs (XDR *, diropargs*);
404 extern bool_t xdr_diropokres (XDR *, diropokres*);
405 extern bool_t xdr_diropres (XDR *, diropres*);
406 extern bool_t xdr_readlinkres (XDR *, readlinkres*);
407 extern bool_t xdr_readargs (XDR *, readargs*);
408 extern bool_t xdr_readokres (XDR *, readokres*);
409 extern bool_t xdr_readres (XDR *, readres*);
410 extern bool_t xdr_writeargs (XDR *, writeargs*);
411 extern bool_t xdr_createargs (XDR *, createargs*);
412 extern bool_t xdr_renameargs (XDR *, renameargs*);
413 extern bool_t xdr_linkargs (XDR *, linkargs*);
414 extern bool_t xdr_symlinkargs (XDR *, symlinkargs*);
415 extern bool_t xdr_nfscookie (XDR *, nfscookie*);
416 extern bool_t xdr_readdirargs (XDR *, readdirargs*);
417 extern bool_t xdr_entry (XDR *, entry*);
418 extern bool_t xdr_dirlist (XDR *, dirlist*);
419 extern bool_t xdr_readdirres (XDR *, readdirres*);
420 extern bool_t xdr_statfsokres (XDR *, statfsokres*);
421 extern bool_t xdr_statfsres (XDR *, statfsres*);
424 extern bool_t xdr_nfsstat ();
425 extern bool_t xdr_ftype ();
426 extern bool_t xdr_nfs_fh ();
427 extern bool_t xdr_nfstime ();
428 extern bool_t xdr_fattr ();
429 extern bool_t xdr_sattr ();
430 extern bool_t xdr_filename ();
431 extern bool_t xdr_nfspath ();
432 extern bool_t xdr_attrstat ();
433 extern bool_t xdr_sattrargs ();
434 extern bool_t xdr_diropargs ();
435 extern bool_t xdr_diropokres ();
436 extern bool_t xdr_diropres ();
437 extern bool_t xdr_readlinkres ();
438 extern bool_t xdr_readargs ();
439 extern bool_t xdr_readokres ();
440 extern bool_t xdr_readres ();
441 extern bool_t xdr_writeargs ();
442 extern bool_t xdr_createargs ();
443 extern bool_t xdr_renameargs ();
444 extern bool_t xdr_linkargs ();
445 extern bool_t xdr_symlinkargs ();
446 extern bool_t xdr_nfscookie ();
447 extern bool_t xdr_readdirargs ();
448 extern bool_t xdr_entry ();
449 extern bool_t xdr_dirlist ();
450 extern bool_t xdr_readdirres ();
451 extern bool_t xdr_statfsokres ();
452 extern bool_t xdr_statfsres ();
Definition: nfs_prot.h:176
Definition: nfs_prot.h:103
Definition: nfs_prot.h:74
Definition: nfs_prot.h:214
Definition: nfs_prot.h:226
Definition: nfs_prot.h:143
Definition: nfs_prot.h:125
Definition: nfs_prot.h:202
Definition: nfs_prot.h:255
Definition: nfs_prot.h:85
Definition: nfs_prot.h:184
Definition: nfs_prot.h:131
Definition: nfs_prot.h:247
Definition: nfs_prot.h:221
Definition: nfs_prot.h:137
Definition: nfs_prot.h:196
Definition: nfs_prot.h:151
Definition: nfs_prot.h:208
Definition: nfs_prot.h:167
Definition: nfs_prot.h:159
Definition: nfs_prot.h:117
Definition: nfs_prot.h:264
Definition: mmu-config.c:39
unsigned size
Definition: tte.h:74
Definition: nfs_prot.h:79
Definition: nfs_prot.h:241
Definition: mongoose.c:442