home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.2 (Developer) / NS_dev_3.2.iso / NextDeveloper / Headers / bsd / rpcsvc / mount.h < prev    next >
C/C++ Source or Header  |  1991-07-09  |  1KB  |  60 lines

  1. /*    @(#)mount.h    1.2 88/05/08 4.0NFSSRC SMI    */
  2.  
  3. /* 
  4.  * Copyright (c) 1988 by Sun Microsystems, Inc.
  5.  * @(#) from SUN 1.8
  6.  */
  7.  
  8. #define MOUNTPROG 100005
  9. #define MOUNTPROC_MNT 1
  10. #define MOUNTPROC_DUMP 2
  11. #define MOUNTPROC_UMNT 3
  12. #define MOUNTPROC_UMNTALL 4
  13. #define MOUNTPROC_EXPORT 5
  14. #define MOUNTPROC_EXPORTALL 6
  15. #define MOUNTVERS_ORIG 1
  16. #define MOUNTVERS 1
  17.  
  18. #ifndef svc_getcaller
  19. #define svc_getcaller(x) (&(x)->xp_raddr)
  20. #endif
  21.  
  22.  
  23. bool_t xdr_fhstatus();
  24. #ifndef KERNEL
  25. bool_t xdr_path();
  26. bool_t xdr_fhandle();
  27. bool_t xdr_mountlist();
  28. bool_t xdr_exports();
  29. #endif /* ndef KERNEL */
  30.  
  31. struct mountlist {        /* what is mounted */
  32.     char *ml_name;
  33.     char *ml_path;
  34.     struct mountlist *ml_nxt;
  35. };
  36.  
  37. struct fhstatus {
  38.     int fhs_status;
  39.     fhandle_t fhs_fh;
  40. };
  41.  
  42. /*
  43.  * List of exported directories
  44.  * An export entry with ex_groups
  45.  * NULL indicates an entry which is exported to the world.
  46.  */
  47. struct exports {
  48.     dev_t          ex_dev;    /* dev of directory */
  49.     char         *ex_name;    /* name of directory */
  50.     struct groups     *ex_groups;    /* groups allowed to mount this entry */
  51.     struct exports     *ex_next;
  52.     short          ex_rootmap;    /* id to map root requests to */
  53.     short          ex_flags;    /* bits to mask off file mode */
  54. };
  55.  
  56. struct groups {
  57.     char        *g_name;
  58.     struct groups    *g_next;
  59. };
  60.