Skip to content

Commit 5472ccd

Browse files
author
ru
committed
structs nlmsghdr, nlmsgerr and nlattr added to linux arm and x86 musl targets
1 parent 1d43891 commit 5472ccd

File tree

3 files changed

+54
-0
lines changed

3 files changed

+54
-0
lines changed

src/unix/linux_like/linux/musl/b32/arm/mod.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -150,6 +150,24 @@ s! {
150150
pub f_namemax: ::c_ulong,
151151
__f_spare: [::c_int; 6],
152152
}
153+
154+
pub struct nlmsghdr {
155+
pub nlmsg_len: u32,
156+
pub nlmsg_type: u16,
157+
pub nlmsg_flags: u16,
158+
pub nlmsg_seq: u32,
159+
pub nlmsg_pid: u32,
160+
}
161+
162+
pub struct nlmsgerr {
163+
pub error: ::c_int,
164+
pub msg: nlmsghdr,
165+
}
166+
167+
pub struct nlattr {
168+
pub nla_len: u16,
169+
pub nla_type: u16,
170+
}
153171
}
154172

155173
pub const SIGSTKSZ: ::size_t = 8192;

src/unix/linux_like/linux/musl/b32/x86/mod.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -154,6 +154,24 @@ s! {
154154
pub f_namemax: ::c_ulong,
155155
__f_spare: [::c_int; 6],
156156
}
157+
158+
pub struct nlmsghdr {
159+
pub nlmsg_len: u32,
160+
pub nlmsg_type: u16,
161+
pub nlmsg_flags: u16,
162+
pub nlmsg_seq: u32,
163+
pub nlmsg_pid: u32,
164+
}
165+
166+
pub struct nlmsgerr {
167+
pub error: ::c_int,
168+
pub msg: nlmsghdr,
169+
}
170+
171+
pub struct nlattr {
172+
pub nla_len: u16,
173+
pub nla_type: u16,
174+
}
157175
}
158176

159177
s_no_extra_traits! {

src/unix/linux_like/linux/musl/b64/x86_64/mod.rs

Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -48,6 +48,24 @@ s! {
4848
__reserved: [::c_long; 3],
4949
}
5050

51+
pub struct nlmsghdr {
52+
pub nlmsg_len: u32,
53+
pub nlmsg_type: u16,
54+
pub nlmsg_flags: u16,
55+
pub nlmsg_seq: u32,
56+
pub nlmsg_pid: u32,
57+
}
58+
59+
pub struct nlmsgerr {
60+
pub error: ::c_int,
61+
pub msg: nlmsghdr,
62+
}
63+
64+
pub struct nlattr {
65+
pub nla_len: u16,
66+
pub nla_type: u16,
67+
}
68+
5169
pub struct user_regs_struct {
5270
pub r15: ::c_ulong,
5371
pub r14: ::c_ulong,

0 commit comments

Comments
 (0)