Explorar o código

Add MADV constants

Jeremy Soller %!s(int64=2) %!d(string=hai) anos
pai
achega
5032cdb6d8
Modificáronse 1 ficheiros con 6 adicións e 0 borrados
  1. 6 0
      src/header/sys_mman/mod.rs

+ 6 - 0
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;