Handle symbol renaming of sigaction for NetBSD
authorKamil Rytarowski <n54@gmx.com>
Tue, 28 Nov 2017 10:54:58 +0000 (10:54 +0000)
committerKamil Rytarowski <n54@gmx.com>
Tue, 28 Nov 2017 10:54:58 +0000 (10:54 +0000)
commit1d67a4812498a920dff71ab7ede2e3c326c229bc
tree4b6724d355e0cc01356d9efeedc4f6fd9682392d
parentec109029b1395fea576f6d7a44a926c418128c30
Handle symbol renaming of sigaction for NetBSD

Summary:
NetBSD uses the __sigaction14 symbol name for historical and compat
reasons for the sigaction(2) function name.

Rename the interceptors and users of sigaction to sigaction_symname
and reuse it in the code base.

This change fixes 4 failing tests in TSan/NetBSD:

 - ThreadSanitizer-x86_64 :: signal_errno.cc
 - ThreadSanitizer-x86_64 :: signal_malloc.cc
 - ThreadSanitizer-x86_64 :: signal_sync2.cc
 - ThreadSanitizer-x86_64 :: signal_thread.cc

Sponsored by <The NetBSD Foundation>

Reviewers: joerg, vitalybuka, eugenis, dvyukov, kcc

Reviewed By: dvyukov

Subscribers: kubamracek, llvm-commits, #sanitizers

Tags: #sanitizers

Differential Revision: https://reviews.llvm.org/D40341

llvm-svn: 319160
compiler-rt/lib/sanitizer_common/sanitizer_signal_interceptors.inc
compiler-rt/lib/tsan/rtl/tsan_interceptors.cc