File tree Expand file tree Collapse file tree 2 files changed +15
-0
lines changed
src/unix/linux_like/android Expand file tree Collapse file tree 2 files changed +15
-0
lines changed Original file line number Diff line number Diff line change @@ -1487,6 +1487,7 @@ fn test_android(target: &str) {
1487
1487
"linux/seccomp.h" ,
1488
1488
"linux/sched.h" ,
1489
1489
"linux/sockios.h" ,
1490
+ "linux/vm_sockets.h" ,
1490
1491
"linux/wait.h" ,
1491
1492
1492
1493
}
Original file line number Diff line number Diff line change @@ -236,6 +236,14 @@ s! {
236
236
pub rm_so: :: ssize_t,
237
237
pub rm_eo: :: ssize_t,
238
238
}
239
+
240
+ pub struct sockaddr_vm {
241
+ pub svm_family: :: sa_family_t,
242
+ pub svm_reserved1: :: c_ushort,
243
+ pub svm_port: :: c_uint,
244
+ pub svm_cid: :: c_uint,
245
+ pub svm_zero: [ u8 ; 4 ]
246
+ }
239
247
}
240
248
241
249
s_no_extra_traits ! {
@@ -2241,6 +2249,12 @@ pub const SCHED_DEADLINE: ::c_int = 6;
2241
2249
pub const SEEK_DATA : :: c_int = 3 ;
2242
2250
pub const SEEK_HOLE : :: c_int = 4 ;
2243
2251
2252
+ // sys/socket.h
2253
+ pub const AF_NFC : :: c_int = 39 ;
2254
+ pub const AF_VSOCK : :: c_int = 40 ;
2255
+ pub const PF_NFC : :: c_int = AF_NFC ;
2256
+ pub const PF_VSOCK : :: c_int = AF_VSOCK ;
2257
+
2244
2258
f ! {
2245
2259
pub fn CMSG_NXTHDR ( mhdr: * const msghdr,
2246
2260
cmsg: * const cmsghdr) -> * mut cmsghdr {
You can’t perform that action at this time.
0 commit comments