From 5032cdb6d82544fc9e01ef46501d726a66fa931e Mon Sep 17 00:00:00 2001 From: Jeremy Soller Date: Tue, 25 Oct 2022 08:16:00 -0600 Subject: [PATCH] Add MADV constants --- src/header/sys_mman/mod.rs | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/src/header/sys_mman/mod.rs b/src/header/sys_mman/mod.rs index e0c1c711ff..e3fe954997 100644 --- a/src/header/sys_mman/mod.rs +++ b/src/header/sys_mman/mod.rs @@ -14,6 +14,12 @@ pub mod sys; #[path = "redox.rs"] pub mod sys; +pub const MADV_NORMAL: c_int = 0; +pub const MADV_RANDOM: c_int = 1; +pub const MADV_SEQUENTIAL: c_int = 2; +pub const MADV_WILLNEED: c_int = 3; +pub const MADV_DONTNEED: c_int = 4; + pub const MAP_SHARED: c_int = 0x0001; pub const MAP_PRIVATE: c_int = 0x0002; pub const MAP_TYPE: c_int = 0x000F;