[TSan] Don't flush all file streams on program shutdown to avoid deadlocks on file stream locks.
This should fix https://code.google.com/p/thread-sanitizer/issues/detail?id=47.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200922 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Add a regression test for https://code.google.com/p/thread-sanitizer/issues/detail?id=47



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200923 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Intercept getresuid and getresgid.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200925 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Intercept getifaddrs().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200926 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] One does not simply intercept getifaddrs().

Upgrade the interceptor, and attempt to fix the Android build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200936 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix build.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200942 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Intercept if_indextoname() and if_nametoindex().

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@200945 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: run user OnInitialize callback later
when global and thread state are initialized,
this allows to do more things in the callback.



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