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 @@ -4321,6 +4321,9 @@ fn test_linux(target: &str) {
4321
4321
"EPIOCSPARAMS"
4322
4322
| "EPIOCGPARAMS" => true ,
4323
4323
4324
+ // FIXME: Requires >= 6.11 kernel headers.
4325
+ "MAP_DROPPABLE" => true ,
4326
+
4324
4327
_ => false ,
4325
4328
}
4326
4329
} ) ;
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 @@ -4730,6 +4730,7 @@ pub const UDP_NO_CHECK6_RX: c_int = 102;
4730
4730
4731
4731
// include/uapi/linux/mman.h
4732
4732
pub const MAP_SHARED_VALIDATE : c_int = 0x3 ;
4733
+ pub const MAP_DROPPABLE : c_int = 0x8 ;
4733
4734
4734
4735
// include/uapi/asm-generic/mman-common.h
4735
4736
pub const MAP_FIXED_NOREPLACE : c_int = 0x100000 ;
You can’t perform that action at this time.
0 commit comments