File tree Expand file tree Collapse file tree 3 files changed +5
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 3 files changed +5
-0
lines changed Original file line number Diff line number Diff line change @@ -4246,6 +4246,9 @@ fn test_linux(target: &str) {
4246
4246
"EPIOCSPARAMS"
4247
4247
| "EPIOCGPARAMS" => true ,
4248
4248
4249
+ // FIXME: Requires >= 6.11 kernel headers.
4250
+ "MAP_DROPPABLE" => true ,
4251
+
4249
4252
_ => false ,
4250
4253
}
4251
4254
} ) ;
Original file line number Diff line number Diff line change @@ -1586,6 +1586,7 @@ MADV_UNMERGEABLE
1586
1586
MADV_WILLNEED
1587
1587
MADV_WIPEONFORK
1588
1588
MAP_DENYWRITE
1589
+ MAP_DROPPABLE
1589
1590
MAP_EXECUTABLE
1590
1591
MAP_FILE
1591
1592
MAP_FIXED_NOREPLACE
Original file line number Diff line number Diff line change @@ -4767,6 +4767,7 @@ pub const UDP_NO_CHECK6_RX: c_int = 102;
4767
4767
4768
4768
// include/uapi/linux/mman.h
4769
4769
pub const MAP_SHARED_VALIDATE : c_int = 0x3 ;
4770
+ pub const MAP_DROPPABLE : c_int = 0x8 ;
4770
4771
4771
4772
// include/uapi/asm-generic/mman-common.h
4772
4773
pub const MAP_FIXED_NOREPLACE : c_int = 0x100000 ;
You can’t perform that action at this time.
0 commit comments