Intercept _exit() for sanitizers' needs on FreeBSD

Differential Revision: http://reviews.llvm.org/D5171

llvm-svn: 217156
This commit is contained in:
Viktor Kutuzov 2014-09-04 14:24:27 +00:00
parent d53d2686b3
commit 2132b704ff
1 changed files with 7 additions and 1 deletions

View File

@ -29,6 +29,12 @@
# define SI_LINUX_NOT_ANDROID 0
#endif
#if SANITIZER_FREEBSD
# define SI_FREEBSD 1
#else
# define SI_FREEBSD 0
#endif
#if SANITIZER_LINUX
# define SI_LINUX 1
#else
@ -196,7 +202,7 @@
// FIXME: getline seems to be available on OSX 10.7
#define SANITIZER_INTERCEPT_GETLINE SI_LINUX_NOT_ANDROID
#define SANITIZER_INTERCEPT__EXIT SI_LINUX
#define SANITIZER_INTERCEPT__EXIT SI_LINUX || SI_FREEBSD
#define SANITIZER_INTERCEPT_PHTREAD_MUTEX SI_NOT_WINDOWS
#define SANITIZER_INTERCEPT_PTHREAD_SETNAME_NP SI_LINUX_NOT_ANDROID