File tree Expand file tree Collapse file tree 2 files changed +12
-0
lines changed
src/unix/linux_like/linux Expand file tree Collapse file tree 2 files changed +12
-0
lines changed Original file line number Diff line number Diff line change @@ -2614,6 +2614,12 @@ fn test_linux(target: &str) {
2614
2614
// We should do so after a while.
2615
2615
"SOMAXCONN" if gnu => true ,
2616
2616
2617
+ // deprecated: not available from Linux kernel 5.6:
2618
+ "VMADDR_CID_RESERVED" => true ,
2619
+
2620
+ // Require Linux kernel 5.6:
2621
+ "VMADDR_CID_LOCAL" => true ,
2622
+
2617
2623
_ => false ,
2618
2624
}
2619
2625
} ) ;
Original file line number Diff line number Diff line change @@ -2355,7 +2355,13 @@ pub const MAP_FIXED_NOREPLACE: ::c_int = 0x100000;
2355
2355
// uapi/linux/vm_sockets.h
2356
2356
pub const VMADDR_CID_ANY : :: c_uint = 0xFFFFFFFF ;
2357
2357
pub const VMADDR_CID_HYPERVISOR : :: c_uint = 0 ;
2358
+ #[ deprecated(
2359
+ since = "0.2.74" ,
2360
+ note = "VMADDR_CID_RESERVED is removed since Linux v5.6 and \
2361
+ replaced with VMADDR_CID_LOCAL"
2362
+ ) ]
2358
2363
pub const VMADDR_CID_RESERVED : :: c_uint = 1 ;
2364
+ pub const VMADDR_CID_LOCAL : :: c_uint = 1 ;
2359
2365
pub const VMADDR_CID_HOST : :: c_uint = 2 ;
2360
2366
pub const VMADDR_PORT_ANY : :: c_uint = 0xFFFFFFFF ;
2361
2367
You can’t perform that action at this time.
0 commit comments