summaryrefslogtreecommitdiffstats
path: root/mount/mount_constants.h
diff options
context:
space:
mode:
Diffstat (limited to 'mount/mount_constants.h')
-rw-r--r--mount/mount_constants.h20
1 files changed, 20 insertions, 0 deletions
diff --git a/mount/mount_constants.h b/mount/mount_constants.h
index 5f033452d..aeb7edfb3 100644
--- a/mount/mount_constants.h
+++ b/mount/mount_constants.h
@@ -1,16 +1,36 @@
+#ifndef MS_RDONLY
#define MS_RDONLY 1 /* Mount read-only */
+#endif
+#ifndef MS_NOSUID
#define MS_NOSUID 2 /* Ignore suid and sgid bits */
+#endif
+#ifndef MS_NODEV
#define MS_NODEV 4 /* Disallow access to device special files */
+#endif
+#ifndef MS_NOEXEC
#define MS_NOEXEC 8 /* Disallow program execution */
+#endif
+#ifndef MS_SYNCHRONOUS
#define MS_SYNCHRONOUS 16 /* Writes are synced at once */
+#endif
+#ifndef MS_REMOUNT
#define MS_REMOUNT 32 /* Alter flags of a mounted FS */
+#endif
+#ifndef MS_MANDLOCK
#define MS_MANDLOCK 64 /* Allow mandatory locks on an FS */
+#endif
+#ifndef MS_NOATIME
#define MS_NOATIME 1024 /* Do not update access times. */
+#endif
+#ifndef MS_NODIRATIME
#define MS_NODIRATIME 2048 /* Do not update directory access times */
+#endif
/*
* Magic mount flag number. Has to be or-ed to the flag values.
*/
#ifndef MS_MGC_VAL
#define MS_MGC_VAL 0xC0ED0000 /* magic flag number to indicate "new" flags */
#endif
+#ifndef MS_MGC_MSK
#define MS_MGC_MSK 0xffff0000 /* magic flag number mask */
+#endif