File tree 3 files changed +6
-0
lines changed
src/unix/linux_like/linux/gnu
3 files changed +6
-0
lines changed Original file line number Diff line number Diff line change @@ -3805,6 +3805,9 @@ fn test_linux(target: &str) {
3805
3805
| "MADV_POPULATE_WRITE"
3806
3806
if musl => true ,
3807
3807
3808
+ // kernel 6.1 minimum
3809
+ "MADV_COLLAPSE" => true ,
3810
+
3808
3811
// FIXME: Requires more recent kernel headers
3809
3812
| "IFLA_PARENT_DEV_NAME" // linux v5.13+
3810
3813
| "IFLA_PARENT_DEV_BUS_NAME" // linux v5.13+
Original file line number Diff line number Diff line change @@ -118,6 +118,7 @@ LM_ID_BASE
118
118
LM_ID_NEWLM
119
119
LOGIN_PROCESS
120
120
Lmid_t
121
+ MADV_COLLAPSE
121
122
MAXTC
122
123
MAX_LINKS
123
124
MINIX2_SUPER_MAGIC
Original file line number Diff line number Diff line change @@ -1093,6 +1093,8 @@ pub const GLOB_TILDE: ::c_int = 1 << 12;
1093
1093
pub const GLOB_ONLYDIR : :: c_int = 1 << 13 ;
1094
1094
pub const GLOB_TILDE_CHECK : :: c_int = 1 << 14 ;
1095
1095
1096
+ pub const MADV_COLLAPSE : :: c_int = 25 ;
1097
+
1096
1098
cfg_if ! {
1097
1099
if #[ cfg( any(
1098
1100
target_arch = "arm" ,
You can’t perform that action at this time.
0 commit comments