[libsanitizer] Notify the runtime about file being closed before the actual call to fclose().
This shall fix spurious false positive race reports between fclose() and fopen64().


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208772 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Fix crash in getgrnam_r and similar interceptors.

When no matching record is found, getgrnam_r return 0 but sets result to NULL.
Should fix PR19734.



git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208773 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win] Enable demangling of global variable names

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208775 91177308-0d34-0410-b5e6-96231b3b80d8
[asan] use some LIKELY/UNLIKELY

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208776 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Create a Posix/ directory for tests that we don't plan to run on Windows

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208777 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Update relative paths from POSIX-only tests to their shared libraries

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208778 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Get rid of SharedLibs/

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208780 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Add the first Windows-only lit test

Reviewed at http://reviews.llvm.org/D3767

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208802 91177308-0d34-0410-b5e6-96231b3b80d8
Remove --check-prefix=CHECK as it's useless

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208803 91177308-0d34-0410-b5e6-96231b3b80d8
Remove an unneeded stderr redirection

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208805 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan/Win tests] Add a PR reference for the FileCheck bug

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208807 91177308-0d34-0410-b5e6-96231b3b80d8
add script to ensure lit test contains %run

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208819 91177308-0d34-0410-b5e6-96231b3b80d8
Disabled litlint. It requires Python 2.7 or later

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208823 91177308-0d34-0410-b5e6-96231b3b80d8
migrate litlint from argparse to optparse.  reenabled

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

git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208841 91177308-0d34-0410-b5e6-96231b3b80d8
[sanitizer] Remove the definition of xdr_ops.

User-visible instances of xdr_ops always seem to be allocated statically, and
don't need unpoisoning. Also, it's size differs between platforms.


git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@208851 91177308-0d34-0410-b5e6-96231b3b80d8
[ASan tests] Add ASan Windows threading tests

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