File tree Expand file tree Collapse file tree 2 files changed +10
-0
lines changed
src/unix/linux_like/android Expand file tree Collapse file tree 2 files changed +10
-0
lines changed Original file line number Diff line number Diff line change @@ -1562,6 +1562,9 @@ fn test_android(target: &str) {
1562
1562
// Needs a newer Android SDK for the definition
1563
1563
"P_PIDFD" => true ,
1564
1564
1565
+ // Requires Linux kernel 5.6
1566
+ "VMADDR_CID_LOCAL" => true ,
1567
+
1565
1568
_ => false ,
1566
1569
}
1567
1570
} ) ;
Original file line number Diff line number Diff line change @@ -2129,6 +2129,13 @@ pub const ALG_SET_AEAD_AUTHSIZE: ::c_int = 5;
2129
2129
pub const ALG_OP_DECRYPT : :: c_int = 0 ;
2130
2130
pub const ALG_OP_ENCRYPT : :: c_int = 1 ;
2131
2131
2132
+ // uapi/linux/vm_sockets.h
2133
+ pub const VMADDR_CID_ANY : :: c_uint = 0xFFFFFFFF ;
2134
+ pub const VMADDR_CID_HYPERVISOR : :: c_uint = 0 ;
2135
+ pub const VMADDR_CID_LOCAL : :: c_uint = 1 ;
2136
+ pub const VMADDR_CID_HOST : :: c_uint = 2 ;
2137
+ pub const VMADDR_PORT_ANY : :: c_uint = 0xFFFFFFFF ;
2138
+
2132
2139
// uapi/linux/inotify.h
2133
2140
pub const IN_ACCESS : u32 = 0x0000_0001 ;
2134
2141
pub const IN_MODIFY : u32 = 0x0000_0002 ;
You can’t perform that action at this time.
0 commit comments