]> git.lizzy.rs Git - rust.git/commit - src/tools/miri
Auto merge of #100782 - thomcc:fix-android-sigaddset, r=Mark-Simulacrum
authorbors <bors@rust-lang.org>
Tue, 23 Aug 2022 08:09:19 +0000 (08:09 +0000)
committerbors <bors@rust-lang.org>
Tue, 23 Aug 2022 08:09:19 +0000 (08:09 +0000)
commit1cff5642037b83ce1239a624bbe617a9aa0d59b1
treea84d0dbe1ea7919f43d0404d179da9241206c7df
parent38528d4dc0a0c079069764f23f11ef9f4fba2f95
parent4ecf87619c8e2f6212a46501ea2aff18f5beb8c5
Auto merge of #100782 - thomcc:fix-android-sigaddset, r=Mark-Simulacrum

Align android `sigaddset` impl with the reference impl from Bionic

In https://github.com/rust-lang/rust/pull/100737 I noticed we were treating the sigset_t as an array of bytes, while referencing code from android (https://github.com/aosp-mirror/platform_bionic/blob/ad8dcd6023294b646e5a8288c0ed431b0845da49/libc/include/android/legacy_signal_inlines.h) which treats it as an array of unsigned long.

That said, the behavior difference is so subtle here that it's not hard to see why nobody noticed. This fixes the implementation to be equivalent to the one in bionic.