File tree Expand file tree Collapse file tree 3 files changed +6
-0
lines changed
src/unix/linux_like/linux/gnu Expand file tree Collapse file tree 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) {
38053805 | "MADV_POPULATE_WRITE"
38063806 if musl => true ,
38073807
3808+ // kernel 6.1 minimum
3809+ "MADV_COLLAPSE" => true ,
3810+
38083811 // FIXME: Requires more recent kernel headers
38093812 | "IFLA_PARENT_DEV_NAME" // linux v5.13+
38103813 | "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
118118LM_ID_NEWLM
119119LOGIN_PROCESS
120120Lmid_t
121+ MADV_COLLAPSE
121122MAXTC
122123MAX_LINKS
123124MINIX2_SUPER_MAGIC
Original file line number Diff line number Diff line change @@ -1093,6 +1093,8 @@ pub const GLOB_TILDE: ::c_int = 1 << 12;
10931093pub const GLOB_ONLYDIR : :: c_int = 1 << 13 ;
10941094pub const GLOB_TILDE_CHECK : :: c_int = 1 << 14 ;
10951095
1096+ pub const MADV_COLLAPSE : :: c_int = 25 ;
1097+
10961098cfg_if ! {
10971099 if #[ cfg( any(
10981100 target_arch = "arm" ,
You can’t perform that action at this time.
0 commit comments