diff options
author | Kamal Marhubi <kamal@marhubi.com> | 2016-03-14 17:00:38 -0400 |
---|---|---|
committer | Kamal Marhubi <kamal@marhubi.com> | 2016-03-14 19:25:06 -0400 |
commit | 4ff4acec366598484abe322b30fd02023c073102 (patch) | |
tree | 87f3b4e3a937c98322e878767e2c2029ab2068e7 | |
parent | 722fedd5bb2e1d337fe88bcab59e5872e8ea92cd (diff) | |
download | rust-libc-4ff4acec366598484abe322b30fd02023c073102.tar.gz |
linux: Comment distinction between msync and mount MS_ flags
They have different types and should be visually separated for ease of
reading.
-rw-r--r-- | src/unix/notbsd/mod.rs | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/unix/notbsd/mod.rs b/src/unix/notbsd/mod.rs index d5958121a1..3283c3da85 100644 --- a/src/unix/notbsd/mod.rs +++ b/src/unix/notbsd/mod.rs @@ -244,9 +244,12 @@ pub const MAP_FAILED: *mut ::c_void = !0 as *mut ::c_void; pub const MCL_CURRENT: ::c_int = 0x0001; pub const MCL_FUTURE: ::c_int = 0x0002; +// MS_ flags for msync(2) pub const MS_ASYNC: ::c_int = 0x0001; pub const MS_INVALIDATE: ::c_int = 0x0002; pub const MS_SYNC: ::c_int = 0x0004; + +// MS_ flags for mount(2) pub const MS_RDONLY: ::c_ulong = 0x01; pub const MS_NOSUID: ::c_ulong = 0x02; pub const MS_NODEV: ::c_ulong = 0x04; |