//===-- tsan_interceptors_posix.cpp ---------------------------------------===// // // Part of the LLVM Project, under the Apache License v2.0 with LLVM Exceptions. // See https://llvm.org/LICENSE.txt for license information. // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception // //===----------------------------------------------------------------------===// // // This file is a part of ThreadSanitizer (TSan), a race detector. // //===----------------------------------------------------------------------===// #define SANITIZER_COMMON_NO_REDEFINE_BUILTINS #include "tsan_interceptors.h" #include "tsan_interface.h" usingnamespace__tsan; #include "sanitizer_common/sanitizer_common_interceptors_memintrinsics.inc" extern "C" { void *__tsan_memcpy(void *dst, const void *src, uptr size) { … } void *__tsan_memset(void *dst, int c, uptr size) { … } void *__tsan_memmove(void *dst, const void *src, uptr size) { … } } // extern "C"