xref: /netbsd-src/external/gpl3/gcc.old/dist/libsanitizer/sanitizer_common/sanitizer_allocator_checks.cc (revision cef8759bd76c1b621f8eab8faa6f208faabc2e15)
1 //===-- sanitizer_allocator_checks.cc ---------------------------*- C++ -*-===//
2 //
3 // This file is distributed under the University of Illinois Open Source
4 // License. See LICENSE.TXT for details.
5 //
6 //===----------------------------------------------------------------------===//
7 //
8 // Various checks shared between ThreadSanitizer, MemorySanitizer, etc. memory
9 // allocators.
10 //
11 //===----------------------------------------------------------------------===//
12 
13 #include "sanitizer_errno.h"
14 
15 namespace __sanitizer {
16 
SetErrnoToENOMEM()17 void SetErrnoToENOMEM() {
18   errno = errno_ENOMEM;
19 }
20 
21 } // namespace __sanitizer
22