Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

structs nlmsghdr, nlmsgerr and nlattr added to linux mips musl target #1649

Merged
merged 3 commits into from
Feb 28, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 18 additions & 0 deletions src/unix/linux_like/linux/musl/b32/arm/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -150,6 +150,24 @@ s! {
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}

pub struct nlmsghdr {
pub nlmsg_len: u32,
pub nlmsg_type: u16,
pub nlmsg_flags: u16,
pub nlmsg_seq: u32,
pub nlmsg_pid: u32,
}

pub struct nlmsgerr {
pub error: ::c_int,
pub msg: nlmsghdr,
}

pub struct nlattr {
pub nla_len: u16,
pub nla_type: u16,
}
}

pub const SIGSTKSZ: ::size_t = 8192;
Expand Down
18 changes: 18 additions & 0 deletions src/unix/linux_like/linux/musl/b32/mips/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -161,6 +161,24 @@ s! {
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}

pub struct nlmsghdr {
pub nlmsg_len: u32,
pub nlmsg_type: u16,
pub nlmsg_flags: u16,
pub nlmsg_seq: u32,
pub nlmsg_pid: u32,
}

pub struct nlmsgerr {
pub error: ::c_int,
pub msg: nlmsghdr,
}

pub struct nlattr {
pub nla_len: u16,
pub nla_type: u16,
}
}

pub const SIGSTKSZ: ::size_t = 8192;
Expand Down
18 changes: 18 additions & 0 deletions src/unix/linux_like/linux/musl/b32/x86/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,24 @@ s! {
pub f_namemax: ::c_ulong,
__f_spare: [::c_int; 6],
}

pub struct nlmsghdr {
pub nlmsg_len: u32,
pub nlmsg_type: u16,
pub nlmsg_flags: u16,
pub nlmsg_seq: u32,
pub nlmsg_pid: u32,
}

pub struct nlmsgerr {
pub error: ::c_int,
pub msg: nlmsghdr,
}

pub struct nlattr {
pub nla_len: u16,
pub nla_type: u16,
}
}

s_no_extra_traits! {
Expand Down
18 changes: 18 additions & 0 deletions src/unix/linux_like/linux/musl/b64/mips64.rs
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,24 @@ s! {
pub f_spare: [::c_ulong; 5],
}

pub struct nlmsghdr {
pub nlmsg_len: u32,
pub nlmsg_type: u16,
pub nlmsg_flags: u16,
pub nlmsg_seq: u32,
pub nlmsg_pid: u32,
}

pub struct nlmsgerr {
pub error: ::c_int,
pub msg: nlmsghdr,
}

pub struct nlattr {
pub nla_len: u16,
pub nla_type: u16,
}

pub struct ipc_perm {
pub __ipc_perm_key: ::key_t,
pub uid: ::uid_t,
Expand Down
18 changes: 18 additions & 0 deletions src/unix/linux_like/linux/musl/b64/x86_64/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,24 @@ s! {
__reserved: [::c_long; 3],
}

pub struct nlmsghdr {
pub nlmsg_len: u32,
pub nlmsg_type: u16,
pub nlmsg_flags: u16,
pub nlmsg_seq: u32,
pub nlmsg_pid: u32,
}

pub struct nlmsgerr {
pub error: ::c_int,
pub msg: nlmsghdr,
}

pub struct nlattr {
pub nla_len: u16,
pub nla_type: u16,
}

pub struct user_regs_struct {
pub r15: ::c_ulong,
pub r14: ::c_ulong,
Expand Down