From c0d89290bdaf7cacb2742b04fcdef710190d6f8a Mon Sep 17 00:00:00 2001 From: Keith Bostic Date: Sun, 27 Mar 1994 15:07:56 -0800 Subject: [PATCH] date and time created 94/03/27 08:07:56 by bostic SCCS-vsn: sbin/mount/mntopts.h 8.1 --- usr/src/sbin/mount/mntopts.h | 46 ++++++++++++++++++++++++++++++++++++ 1 file changed, 46 insertions(+) create mode 100644 usr/src/sbin/mount/mntopts.h diff --git a/usr/src/sbin/mount/mntopts.h b/usr/src/sbin/mount/mntopts.h new file mode 100644 index 0000000000..43155a6cd3 --- /dev/null +++ b/usr/src/sbin/mount/mntopts.h @@ -0,0 +1,46 @@ +/*- + * Copyright (c) 1994 + * The Regents of the University of California. All rights reserved. + * + * %sccs.include.redist.c% + * + * @(#)mntopts.h 8.1 (Berkeley) %G% + */ + +struct mntopt { + const char *m_option; /* option name */ + int m_inverse; /* if a negative option, eg "dev" */ + int m_flag; /* bit to set, eg. MNT_RDONLY */ +}; + +/* User-visible MNT_ flags. */ +#define MOPT_ASYNC { "async", 0, MNT_ASYNC } +#define MOPT_NODEV { "dev", 1, MNT_NODEV } +#define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC } +#define MOPT_NOSUID { "suid", 1, MNT_NOSUID } +#define MOPT_RDONLY { "rdonly", 0, MNT_RDONLY } +#define MOPT_SYNCHRONOUS { "synchronous", 0, MNT_SYNCHRONOUS } +#define MOPT_UNION { "union", 0, MNT_UNION } + +/* Control flags. */ +#define MOPT_FORCE { "exec", 1, MNT_FORCE } +#define MOPT_UPDATE { "update", 0, MNT_UPDATE } + +/* Support for old-style "ro", "rw" flags. */ +#define MOPT_RO { "ro", 0, MNT_RDONLY } +#define MOPT_RW { "rw", 1, MNT_RDONLY } + +#define MOPT_FSTAB_COMPAT \ + MOPT_RO, \ + MOPT_RW + +/* Standard options which all mounts can understand. */ +#define MOPT_STDOPTS \ + MOPT_FSTAB_COMPAT, \ + MOPT_NODEV, \ + MOPT_NOEXEC, \ + MOPT_NOSUID, \ + MOPT_RDONLY, \ + MOPT_UNION + +void getmntopts __P((const char *, const struct mntopt *, int *)); -- 2.20.1