[sanitizer] make real_pthread_attr_getstack extern "C"

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204029 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: yet another attempt to fix pthread_cond interceptors
Make behavior introduced in r202820 conditional (under legacy_pthread_cond flag).
The new issue that we've hit with the satellite pthread_cond_t struct is
that pthread_condattr_getpshared does not work (satellite data is not shared between processes).
The idea is that most processes do not use pthread 2.2.5.
The rare ones that use (2.2.5 is dated by 2002) must specify legacy_pthread_cond=1
on their own risk.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204032 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] print more stack traces when reporting a deadlock (even more to come)

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204034 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] fix build warnings; add an output test for the deadlock detecor

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204035 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] one more output test for the deadlock detector

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@204036 91177308-0d34-0410-b5e6-96231b3b80d8