Skip to content
Snippets Groups Projects
Commit 37357abb authored by Andrew Walbran's avatar Andrew Walbran
Browse files

Android: Add vsock constants and struct.

parent 87d3a326
No related branches found
No related tags found
No related merge requests found
......@@ -1487,6 +1487,7 @@ fn test_android(target: &str) {
"linux/seccomp.h",
"linux/sched.h",
"linux/sockios.h",
"linux/vm_sockets.h",
"linux/wait.h",
}
......
......@@ -236,6 +236,14 @@ s! {
pub rm_so: ::ssize_t,
pub rm_eo: ::ssize_t,
}
pub struct sockaddr_vm {
pub svm_family: ::sa_family_t,
pub svm_reserved1: ::c_ushort,
pub svm_port: ::c_uint,
pub svm_cid: ::c_uint,
pub svm_zero: [u8; 4]
}
}
s_no_extra_traits! {
......@@ -2241,6 +2249,12 @@ pub const SCHED_DEADLINE: ::c_int = 6;
pub const SEEK_DATA: ::c_int = 3;
pub const SEEK_HOLE: ::c_int = 4;
// sys/socket.h
pub const AF_NFC: ::c_int = 39;
pub const AF_VSOCK: ::c_int = 40;
pub const PF_NFC: ::c_int = AF_NFC;
pub const PF_VSOCK: ::c_int = AF_VSOCK;
f! {
pub fn CMSG_NXTHDR(mhdr: *const msghdr,
cmsg: *const cmsghdr) -> *mut cmsghdr {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment