summaryrefslogtreecommitdiff
path: root/src/unix/bsd/mod.rs
diff options
context:
space:
mode:
authorAlan Somers <asomers@gmail.com>2021-06-12 22:02:53 -0600
committerAlan Somers <asomers@gmail.com>2021-06-12 22:54:01 -0600
commit0100b3799846e209191c7ac64ce396acc8a09b5b (patch)
treedeb63359fa461f1a92ff0c8c468cc41dae81b3c9 /src/unix/bsd/mod.rs
parent09602d5fc40a22e28063ad4405c9faed2df4b9cd (diff)
downloadrust-libc-0100b3799846e209191c7ac64ce396acc8a09b5b.tar.gz
Add more MNT_ flags, especially on FreeBSD
Diffstat (limited to 'src/unix/bsd/mod.rs')
-rw-r--r--src/unix/bsd/mod.rs10
1 files changed, 9 insertions, 1 deletions
diff --git a/src/unix/bsd/mod.rs b/src/unix/bsd/mod.rs
index f86a0080e6..c634a6c341 100644
--- a/src/unix/bsd/mod.rs
+++ b/src/unix/bsd/mod.rs
@@ -337,7 +337,15 @@ pub const F_RDLCK: ::c_short = 1;
pub const F_UNLCK: ::c_short = 2;
pub const F_WRLCK: ::c_short = 3;
-pub const MNT_FORCE: ::c_int = 0x80000;
+pub const MNT_RDONLY: ::c_int = 0x00000001;
+pub const MNT_SYNCHRONOUS: ::c_int = 0x00000002;
+pub const MNT_NOEXEC: ::c_int = 0x00000004;
+pub const MNT_NOSUID: ::c_int = 0x00000008;
+pub const MNT_ASYNC: ::c_int = 0x00000040;
+pub const MNT_EXPORTED: ::c_int = 0x00000100;
+pub const MNT_UPDATE: ::c_int = 0x00010000;
+pub const MNT_RELOAD: ::c_int = 0x00040000;
+pub const MNT_FORCE: ::c_int = 0x00080000;
pub const Q_SYNC: ::c_int = 0x600;
pub const Q_QUOTAON: ::c_int = 0x100;