Skip to content

Commit 12f402a

Browse files
tgross35AkhilTThomas
authored andcommitted
Merge pull request rust-lang#3851 from tgross35/backport-romaine
[0.2] Backport three pull requests
2 parents fafd9e6 + 3aed43e commit 12f402a

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/unix/linux_like/android/mod.rs

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3526,6 +3526,18 @@ pub const AT_RSEQ_ALIGN: c_ulong = 28;
35263526
pub const AT_EXECFN: c_ulong = 31;
35273527
pub const AT_MINSIGSTKSZ: c_ulong = 51;
35283528

3529+
pub const KLOG_CLOSE: ::c_int = 0;
3530+
pub const KLOG_OPEN: ::c_int = 1;
3531+
pub const KLOG_READ: ::c_int = 2;
3532+
pub const KLOG_READ_ALL: ::c_int = 3;
3533+
pub const KLOG_READ_CLEAR: ::c_int = 4;
3534+
pub const KLOG_CLEAR: ::c_int = 5;
3535+
pub const KLOG_CONSOLE_OFF: ::c_int = 6;
3536+
pub const KLOG_CONSOLE_ON: ::c_int = 7;
3537+
pub const KLOG_CONSOLE_LEVEL: ::c_int = 8;
3538+
pub const KLOG_SIZE_UNREAD: ::c_int = 9;
3539+
pub const KLOG_SIZE_BUFFER: ::c_int = 10;
3540+
35293541
// Most `*_SUPER_MAGIC` constants are defined at the `linux_like` level; the
35303542
// following are only available on newer Linux versions than the versions
35313543
// currently used in CI in some configurations, so we define them here.

src/unix/solarish/mod.rs

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -132,6 +132,17 @@ s! {
132132
pub ipi6_ifindex: c_uint,
133133
}
134134

135+
pub struct in_pktinfo {
136+
pub ipi_ifindex: ::c_uint,
137+
pub ipi_spec_dst: ::in_addr,
138+
pub ipi_addr: ::in_addr,
139+
}
140+
141+
pub struct in6_pktinfo {
142+
pub ipi6_addr: ::in6_addr,
143+
pub ipi6_ifindex: ::c_uint,
144+
}
145+
135146
pub struct passwd {
136147
pub pw_name: *mut c_char,
137148
pub pw_passwd: *mut c_char,

0 commit comments

Comments
 (0)