Skip to content

Commit 10bfe07

Browse files
committed
linux: Move some MS_ flags for mount(2) up
These flags are available on Android.
1 parent 4ff4ace commit 10bfe07

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -269,6 +269,10 @@ pub const MS_UNBINDABLE: ::c_ulong = 0x020000;
269269
pub const MS_PRIVATE: ::c_ulong = 0x040000;
270270
pub const MS_SLAVE: ::c_ulong = 0x080000;
271271
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;
272276
pub const MS_ACTIVE: ::c_ulong = 0x40000000;
273277
pub const MS_NOUSER: ::c_ulong = 0x80000000;
274278
pub const MS_MGC_VAL: ::c_ulong = 0xc0ed0000;

0 commit comments

Comments
 (0)