Skip to content

Commit e8cbf2b

Browse files
committed
Added MAP_FIXED_NOREPLACE and MAP_SHARED_VALIDATE consts.
Both are linux-specific additions, and supported since kernel version 4.17 and 4.15, respectively.
1 parent 39ca01c commit e8cbf2b

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/unix/notbsd/linux/mod.rs

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1256,6 +1256,9 @@ pub const LIO_NOP: ::c_int = 2;
12561256
pub const LIO_WAIT: ::c_int = 0;
12571257
pub const LIO_NOWAIT: ::c_int = 1;
12581258

1259+
pub const MAP_SHARED_VALIDATE: ::c_int = 0x3;
1260+
pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
1261+
12591262
pub const MREMAP_MAYMOVE: ::c_int = 1;
12601263
pub const MREMAP_FIXED: ::c_int = 2;
12611264

0 commit comments

Comments
 (0)