Skip to content

Commit fa161ae

Browse files
committed
Auto merge of #229 - kamalmarhubi:mount-flags, r=alexcrichton
linux: Move some MS_flags for mount(2) up These flags are available on Android.
2 parents aabff31 + 10bfe07 commit fa161ae

File tree

2 files changed

+7
-5
lines changed

2 files changed

+7
-5
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -361,11 +361,6 @@ pub const SHM_UNLOCK: ::c_int = 12;
361361
pub const SHM_HUGETLB: ::c_int = 0o4000;
362362
pub const SHM_NORESERVE: ::c_int = 0o10000;
363363

364-
pub const MS_RELATIME: ::c_ulong = 0x200000;
365-
pub const MS_KERNMOUNT: ::c_ulong = 0x400000;
366-
pub const MS_I_VERSION: ::c_ulong = 0x800000;
367-
pub const MS_STRICTATIME: ::c_ulong = 0x01000000;
368-
369364
pub const EPOLLRDHUP: ::c_int = 0x2000;
370365
pub const EPOLLONESHOT: ::c_int = 0x40000000;
371366

src/unix/notbsd/mod.rs

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -244,9 +244,12 @@ pub const MAP_FAILED: *mut ::c_void = !0 as *mut ::c_void;
244244
pub const MCL_CURRENT: ::c_int = 0x0001;
245245
pub const MCL_FUTURE: ::c_int = 0x0002;
246246

247+
// MS_ flags for msync(2)
247248
pub const MS_ASYNC: ::c_int = 0x0001;
248249
pub const MS_INVALIDATE: ::c_int = 0x0002;
249250
pub const MS_SYNC: ::c_int = 0x0004;
251+
252+
// MS_ flags for mount(2)
250253
pub const MS_RDONLY: ::c_ulong = 0x01;
251254
pub const MS_NOSUID: ::c_ulong = 0x02;
252255
pub const MS_NODEV: ::c_ulong = 0x04;
@@ -266,6 +269,10 @@ pub const MS_UNBINDABLE: ::c_ulong = 0x020000;
266269
pub const MS_PRIVATE: ::c_ulong = 0x040000;
267270
pub const MS_SLAVE: ::c_ulong = 0x080000;
268271
pub const MS_SHARED: ::c_ulong = 0x100000;
272+
pub const MS_RELATIME: ::c_ulong = 0x200000;
273+
pub const MS_KERNMOUNT: ::c_ulong = 0x400000;
274+
pub const MS_I_VERSION: ::c_ulong = 0x800000;
275+
pub const MS_STRICTATIME: ::c_ulong = 0x1000000;
269276
pub const MS_ACTIVE: ::c_ulong = 0x40000000;
270277
pub const MS_NOUSER: ::c_ulong = 0x80000000;
271278
pub const MS_MGC_VAL: ::c_ulong = 0xc0ed0000;

0 commit comments

Comments
 (0)