@@ -185,12 +185,6 @@ s! {
185
185
}
186
186
187
187
s_no_extra_traits ! {
188
- #[ cfg( libc_union) ]
189
- pub union sigval {
190
- pub sival_ptr: * mut :: c_void,
191
- pub sival_int: :: c_int,
192
- }
193
-
194
188
pub struct siginfo_t {
195
189
pub si_signo: :: c_int,
196
190
pub si_errno: :: c_int,
@@ -200,8 +194,7 @@ s_no_extra_traits! {
200
194
pub si_status: :: c_int,
201
195
pub si_addr: * mut :: c_void,
202
196
pub si_band: :: c_long,
203
- #[ cfg( libc_union) ]
204
- pub si_value: sigval,
197
+ pub si_value: :: sigval,
205
198
pub __si_flags: :: c_int,
206
199
pub __pad: [ :: c_int; 3 ] ,
207
200
}
@@ -286,7 +279,6 @@ impl siginfo_t {
286
279
self . si_addr
287
280
}
288
281
289
- #[ cfg( libc_union) ]
290
282
pub unsafe fn si_value ( & self ) -> :: sigval {
291
283
self . si_value
292
284
}
@@ -306,36 +298,6 @@ impl siginfo_t {
306
298
307
299
cfg_if ! {
308
300
if #[ cfg( feature = "extra_traits" ) ] {
309
- #[ cfg( libc_union) ]
310
- impl PartialEq for sigval {
311
- fn eq( & self , other: & sigval) -> bool {
312
- unsafe {
313
- self . sival_ptr == other. sival_ptr
314
- && self . sival_int == other. sival_int
315
- }
316
- }
317
- }
318
- #[ cfg( libc_union) ]
319
- impl Eq for sigval { }
320
- #[ cfg( libc_union) ]
321
- impl :: fmt:: Debug for sigval {
322
- fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
323
- f. debug_struct( "sigval" )
324
- . field( "sival_ptr" , unsafe { & self . sival_ptr } )
325
- . field( "sival_int" , unsafe { & self . sival_int } )
326
- . finish( )
327
- }
328
- }
329
- #[ cfg( libc_union) ]
330
- impl :: hash:: Hash for sigval {
331
- fn hash<H : :: hash:: Hasher >( & self , state: & mut H ) {
332
- unsafe {
333
- self . sival_ptr. hash( state) ;
334
- self . sival_int. hash( state) ;
335
- }
336
- }
337
- }
338
-
339
301
impl PartialEq for siginfo_t {
340
302
fn eq( & self , other: & siginfo_t) -> bool {
341
303
#[ cfg( libc_union) ]
@@ -402,7 +364,7 @@ cfg_if! {
402
364
#[ cfg( libc_union) ]
403
365
impl :: fmt:: Debug for _kernel_simple_lock {
404
366
fn fmt( & self , f: & mut :: fmt:: Formatter ) -> :: fmt:: Result {
405
- f. debug_struct( "sigval " )
367
+ f. debug_struct( "_kernel_simple_lock " )
406
368
. field( "_slock" , unsafe { & self . _slock } )
407
369
. field( "_slockp" , unsafe { & self . _slockp } )
408
370
. finish( )
0 commit comments