Auto merge of #1394 - Susurrus:sigevent_extra_traits, r=gnzlbg
Switch to manual trait impls for sigevent `sigevent` on most platforms have padding or unused fields. Rather than display those in the `Debug` impl by deriving it, manually implement all `extra_traits` instead ignoring those fields. I do worry that my `PartialEq` implementations for this for some platforms (like Linux) is not correct due to ignoring bytes that shouldn't be ignored because these structs don't have a proper union set up. cc @asomers Part of nix-rust/nix#1035
No related branches found
No related tags found
Showing
- src/fuchsia/mod.rs 42 additions, 9 deletionssrc/fuchsia/mod.rs
- src/unix/bsd/apple/mod.rs 41 additions, 8 deletionssrc/unix/bsd/apple/mod.rs
- src/unix/bsd/freebsdlike/dragonfly/mod.rs 39 additions, 13 deletionssrc/unix/bsd/freebsdlike/dragonfly/mod.rs
- src/unix/bsd/freebsdlike/freebsd/mod.rs 42 additions, 12 deletionssrc/unix/bsd/freebsdlike/freebsd/mod.rs
- src/unix/bsd/netbsdlike/netbsd/mod.rs 38 additions, 8 deletionssrc/unix/bsd/netbsdlike/netbsd/mod.rs
- src/unix/haiku/mod.rs 38 additions, 8 deletionssrc/unix/haiku/mod.rs
- src/unix/linux_like/mod.rs 43 additions, 13 deletionssrc/unix/linux_like/mod.rs
- src/unix/solarish/mod.rs 43 additions, 9 deletionssrc/unix/solarish/mod.rs
- src/unix/uclibc/mod.rs 43 additions, 13 deletionssrc/unix/uclibc/mod.rs
Loading
Please register or sign in to comment