[LTP] [PATCH] {rt_, }sigsuspend01: Fix build for non-glibc platforms
    Petr Vorel 
    pvorel@suse.cz
       
    Tue Jul  3 10:25:10 CEST 2018
    
    
  
Hi Alistair,
> The tests dig inside the sigset_t to check if the kernel reverted any
> changes made to the signal mask. This is done by comparing the first
> 32 signal flag bits by dereferencing the sigset_t and reading __val[0],
> which is an unsigned long. If the field is not called __val (with
> Android's bionic it is called '__bits' instead) the build breaks.
> Change the tests to use memcmp for the first sizeof(unsigned long) bits,
> which should be equivalent. This makes the test more portable.
> Signed-off-by: Alistair Strachan <astrachan@google.com>
Thanks for your patch, merged.
Kind regards,
Petr
    
    
More information about the ltp
mailing list