home *** CD-ROM | disk | FTP | other *** search
/ NeXTSTEP 3.0 / NeXTSTEP3.0.iso / NextDeveloper / Headers / bsd / mntent.h < prev    next >
Text File  |  1991-10-18  |  2KB  |  68 lines

  1. /*    @(#)mntent.h    1.3 88/05/20 4.0NFSSRC SMI;    from SMI 1.13 99/01/06    */
  2.  
  3. /*
  4.  * File system table, see mntent (5)
  5.  *
  6.  * Used by dump, mount, umount, swapon, fsck, df, ...
  7.  *
  8.  * Quota files ar7&aways named "quotas", so if type is "rq",
  9.  * then use concatenation of mnt_dir and "quotas" to locate
  10.  * quota file.
  11.  */
  12.  
  13. #define    MNTTAB        "/etc/fstab"
  14. #define    MOUNTED        "/etc/mtab"
  15.  
  16. #define    MNTMAXSTR    128
  17.  
  18. #define    MNTTYPE_43    "4.3"    /* 4.3 file system */
  19. #define    MNTTYPE_42    "4.2"    /* 4.2 file system */
  20. #define    MNTTYPE_NFS    "nfs"    /* network file system */
  21. #define    MNTTYPE_PC    "dos"    /* IBM PC (DOS) file system */
  22. #define    MNTTYPE_CFS    "cfs"    /* CD-ROM file system */
  23. #define    MNTTYPE_SWAP    "swap"    /* swap file system */
  24. #define    MNTTYPE_IGNORE    "ignore"/* No type specified, ignore this entry */
  25. #define MNTTYPE_LO      "lo"    /* Loop back File system */
  26. #if    NeXT
  27. #define    MNTTYPE_CFS    "cfs"    /* CD-ROM File system */
  28. #define    MNTTYPE_MAC    "macintosh"    /* Mac File system */
  29. #define    MNTTYPE_CDAUDIO "cd_audio" /* audio portion of CD-ROM */
  30. #endif    NeXT
  31.  
  32. #define    MNTOPT_RO    "ro"    /* read only */
  33. #define    MNTOPT_RW    "rw"    /* read/write */
  34. #define    MNTOPT_QUOTA    "quota"    /* quotas */
  35. #define    MNTOPT_NOQUOTA    "noquota"/* no quotas */
  36. #define    MNTOPT_SOFT    "soft"    /* soft mount */
  37. #define    MNTOPT_HARD    "hard"    /* hard mount */
  38. #define    MNTOPT_NOSUID    "nosuid"/* no set uid allowed */
  39. #define    MNTOPT_NOAUTO    "noauto"/* hide entry from mount -a */
  40. #define    MNTOPT_INTR    "intr"    /* allow interrupts on hard mount */
  41. #define MNTOPT_SECURE     "secure"/* use secure RPC for NFS */
  42. #define MNTOPT_GRPID     "grpid"    /* SysV-compatible group-id on create */
  43. #define MNTOPT_REMOUNT    "remount"/* change options on previous mount */
  44. #define MNTOPT_NOSUB    "nosub"  /* disallow mounts beneath this one */
  45. #define MNTOPT_MULTI    "multi"  /* Do multi-component lookup */
  46.  
  47. struct    mntent{
  48.     char    *mnt_fsname;        /* name of mounted file system */
  49.     char    *mnt_dir;        /* file system path prefix */
  50.     char    *mnt_type;        /* MNTTYPE_* */
  51.     char    *mnt_opts;        /* MNTOPT* */
  52.     int    mnt_freq;        /* dump frequency, in days */
  53.     int    mnt_passno;        /* pass number on parallel fsck */
  54. };
  55.  
  56. #ifdef __STRICT_BSD__
  57. struct    mntent *getmntent();
  58. char    *hasmntopt();
  59. FILE    *setmntent();
  60. int    endmntent();
  61. #else
  62. struct    mntent *getmntent(FILE *filep);
  63. char    *hasmntopt(struct mntent *mnt, char *opt);
  64. FILE    *setmntent(char *filep, char *type);
  65. int    endmntent(FILE *filep);
  66. int     addmntent (FILE *filep, struct mntent *mnt);
  67. #endif __STRICT_BSD__
  68.