[lsan] Ensure lsan is initialized when interceptors are called.

Also remove unnecessary ifdefs.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182571 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Interceptors for gethostbyname and friends.


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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182574 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Rename a atomic_compare_exchange_strong parameter to avoid a compiler warning

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


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182576 91177308-0d34-0410-b5e6-96231b3b80d8
[msan] Fix line >80 chars.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182578 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Introduce SymbolizerPrepareForSandboxing(), which is a no-op on every platform except Linux (because we don't support sandboxing anywhere else yet)
On Linux we pre-cache the value of readlink("/proc/self/exe"), so that it can be later used when the sandbox has been turned on.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182579 91177308-0d34-0410-b5e6-96231b3b80d8
[tsan] Remove -Wgnu from Makefile.old.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182580 91177308-0d34-0410-b5e6-96231b3b80d8
[TSan] Try to fix the Go-TSan build.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182582 91177308-0d34-0410-b5e6-96231b3b80d8
[lsan] Add lit test support.

"check-lsan" now runs both the tests from lib/lsan/tests and any lit
tests found under lib/lsan/lit_tests.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182583 91177308-0d34-0410-b5e6-96231b3b80d8
Add 'mode' parameter when using 'O_CREAT'. Thanks to Evgeniy for pointing this out.

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@182598 91177308-0d34-0410-b5e6-96231b3b80d8
Don't override 'mode' and cleanup some variable names.

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