We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 112c2fa commit cb112c9Copy full SHA for cb112c9
src/unix/bsd/apple/mod.rs
@@ -50,7 +50,19 @@ impl siginfo_t {
50
}
51
52
pub unsafe fn si_value(&self) -> ::sigval {
53
- self.si_value
+ #[repr(C)]
54
+ pub struct siginfo_timer {
55
+ _si_signo: ::c_int,
56
+ _si_errno: ::c_int,
57
+ _si_code: ::c_int,
58
+ _si_pid: ::pid_t,
59
+ _si_uid: ::uid_t,
60
+ _si_status: ::c_int,
61
+ _si_addr: *mut ::c_void,
62
+ si_value: ::sigval,
63
+ }
64
+
65
+ (*(self as *const siginfo_t as *const siginfo_timer)).si_value
66
67
68
@@ -154,9 +166,9 @@ s! {
154
166
pub si_uid: ::uid_t,
155
167
pub si_status: ::c_int,
156
168
pub si_addr: *mut ::c_void,
157
- pub si_value: ::sigval,
158
- pub si_band: ::c_long,
159
- _pad: [usize; 7],
169
+ //Requires it to be union for tests
170
+ //pub si_value: ::sigval,
171
+ _pad: [usize; 9],
160
172
161
173
162
174
pub struct sigaction {
0 commit comments