[ASan] Enforce the memmove semantics for both memcpy() and memmove() interceptors on Darwin.

Due to bugs in the interposition of resolver functions on 10.7 and 10.8 both memcpy() and memmove()
were previously intercepted by INTERCEPTOR(memcpy), which led to false positives and crashes (see http://llvm.org/bugs/show_bug.cgi?id=16362)
We choose to use a memmove-like function in both cases. This effectively disables the overlap checks in memcpy(), but the overlaps
aren't possible in practice, because memcpy() and memmove() are the same function on Darwin.

Once the interposition is fixed in 10.9, we'll need to revisit this issue, see https://code.google.com/p/address-sanitizer/issues/detail?id=226


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191081 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Fix compilation of asan_str_test.cc on non-Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191083 91177308-0d34-0410-b5e6-96231b3b80d8
[libsanitizer] Pass an explicit template to mktemp. Running mktemp without a template doesn't work on Darwin.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191084 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan] Remove a complex multiline comment that baffles lint.
That comment is repeated in another function below.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191085 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: intercept close syscall



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@191129 91177308-0d34-0410-b5e6-96231b3b80d8
tsan: do not try to use builtin atomic operations
see the comment in code



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