make async, sync match between .h and man page
[unix-history] / usr / src / sbin / mount / mntopts.h
CommitLineData
c0d89290
KB
1/*-
2 * Copyright (c) 1994
3 * The Regents of the University of California. All rights reserved.
4 *
5 * %sccs.include.redist.c%
6 *
712730a9 7 * @(#)mntopts.h 8.2 (Berkeley) %G%
c0d89290
KB
8 */
9
10struct mntopt {
11 const char *m_option; /* option name */
12 int m_inverse; /* if a negative option, eg "dev" */
13 int m_flag; /* bit to set, eg. MNT_RDONLY */
14};
15
16/* User-visible MNT_ flags. */
712730a9
KB
17#define MOPT_ASYNC { "async", 0, MNT_ASYNC }
18#define MOPT_NODEV { "dev", 1, MNT_NODEV }
19#define MOPT_NOEXEC { "exec", 1, MNT_NOEXEC }
20#define MOPT_NOSUID { "suid", 1, MNT_NOSUID }
21#define MOPT_RDONLY { "rdonly", 0, MNT_RDONLY }
22#define MOPT_SYNC { "sync", 0, MNT_SYNCHRONOUS }
23#define MOPT_UNION { "union", 0, MNT_UNION }
c0d89290
KB
24
25/* Control flags. */
712730a9
KB
26#define MOPT_FORCE { "exec", 1, MNT_FORCE }
27#define MOPT_UPDATE { "update", 0, MNT_UPDATE }
c0d89290
KB
28
29/* Support for old-style "ro", "rw" flags. */
712730a9
KB
30#define MOPT_RO { "ro", 0, MNT_RDONLY }
31#define MOPT_RW { "rw", 1, MNT_RDONLY }
c0d89290
KB
32
33#define MOPT_FSTAB_COMPAT \
34 MOPT_RO, \
35 MOPT_RW
36
37/* Standard options which all mounts can understand. */
38#define MOPT_STDOPTS \
39 MOPT_FSTAB_COMPAT, \
40 MOPT_NODEV, \
41 MOPT_NOEXEC, \
42 MOPT_NOSUID, \
43 MOPT_RDONLY, \
44 MOPT_UNION
45
46void getmntopts __P((const char *, const struct mntopt *, int *));