Skip to content

Commit

Permalink
Add sockaddr_vm definition for Fuchsia
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesr committed Dec 12, 2024
1 parent 3b458ff commit 816a236
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
1 change: 1 addition & 0 deletions libc-test/semver/fuchsia.txt
Original file line number Diff line number Diff line change
Expand Up @@ -1446,6 +1446,7 @@ sigwait
sigwaitinfo
sockaddr_ll
sockaddr_nl
sockaddr_vm
splice
spwd
srand
Expand Down
8 changes: 8 additions & 0 deletions src/fuchsia/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -357,6 +357,14 @@ s! {
pub sin6_scope_id: u32,
}

pub struct sockaddr_vm {
pub svm_family: sa_family_t,
pub svm_reserved1: c_ushort,
pub svm_port: crate::in_port_t,
pub svm_cid: c_uint,
pub svm_zero: [u8; 4],
}

pub struct addrinfo {
pub ai_flags: c_int,
pub ai_family: c_int,
Expand Down

0 comments on commit 816a236

Please sign in to comment.