home *** CD-ROM | disk | FTP | other *** search
- /* @(#)mntent.h 1.3 88/05/20 4.0NFSSRC SMI; from SMI 1.13 99/01/06 */
-
- /*
- * File system table, see mntent (5)
- *
- * Used by dump, mount, umount, swapon, fsck, df, ...
- *
- * Quota files are always named "quotas", so if type is "rq",
- * then use concatenation of mnt_dir and "quotas" to locate
- * quota file.
- */
-
- #define MNTTAB "/etc/fstab"
- #define MOUNTED "/etc/mtab"
-
- #define MNTMAXSTR 128
-
- #define MNTTYPE_43 "4.3" /* 4.3 file system */
- #define MNTTYPE_42 "4.2" /* 4.2 file system */
- #define MNTTYPE_NFS "nfs" /* network file system */
- #define MNTTYPE_PC "dos" /* IBM PC (DOS) file system */
- #define MNTTYPE_CFS "cfs" /* CD-ROM file system */
- #define MNTTYPE_SWAP "swap" /* swap file system */
- #define MNTTYPE_IGNORE "ignore"/* No type specified, ignore this entry */
- #define MNTTYPE_LO "lo" /* Loop back File system */
- #if NeXT
- #define MNTTYPE_CFS "cfs" /* CD-ROM File system */
- #define MNTTYPE_MAC "macintosh" /* Mac File system */
- #define MNTTYPE_CDAUDIO "cd_audio" /* audio portion of CD-ROM */
- #endif NeXT
-
- #define MNTOPT_RO "ro" /* read only */
- #define MNTOPT_RW "rw" /* read/write */
- #define MNTOPT_QUOTA "quota" /* quotas */
- #define MNTOPT_NOQUOTA "noquota"/* no quotas */
- #define MNTOPT_SOFT "soft" /* soft mount */
- #define MNTOPT_HARD "hard" /* hard mount */
- #define MNTOPT_NOSUID "nosuid"/* no set uid allowed */
- #define MNTOPT_NOAUTO "noauto"/* hide entry from mount -a */
- #define MNTOPT_INTR "intr" /* allow interrupts on hard mount */
- #define MNTOPT_SECURE "secure"/* use secure RPC for NFS */
- #define MNTOPT_GRPID "grpid" /* SysV-compatible group-id on create */
- #define MNTOPT_REMOUNT "remount"/* change options on previous mount */
- #define MNTOPT_NOSUB "nosub" /* disallow mounts beneath this one */
- #define MNTOPT_MULTI "multi" /* Do multi-component lookup */
-
- struct mntent{
- char *mnt_fsname; /* name of mounted file system */
- char *mnt_dir; /* file system path prefix */
- char *mnt_type; /* MNTTYPE_* */
- char *mnt_opts; /* MNTOPT* */
- int mnt_freq; /* dump frequency, in days */
- int mnt_passno; /* pass number on parallel fsck */
- };
-
- #ifdef __STRICT_BSD__
- struct mntent *getmntent();
- char *hasmntopt();
- FILE *setmntent();
- int endmntent();
- #else
- struct mntent *getmntent(FILE *filep);
- char *hasmntopt(struct mntent *mnt, char *opt);
- FILE *setmntent(char *filep, char *type);
- int endmntent(FILE *filep);
- int addmntent (FILE *filep, struct mntent *mnt);
- #endif __STRICT_BSD__
-