Mercurial > hg > CbC > CbC_gcc
annotate libsanitizer/sanitizer_common/sanitizer_allocator_checks.cc @ 111:04ced10e8804
gcc 7
author | kono |
---|---|
date | Fri, 27 Oct 2017 22:46:09 +0900 |
parents | |
children |
rev | line source |
---|---|
111 | 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 | |
17 void SetErrnoToENOMEM() { | |
18 errno = errno_ENOMEM; | |
19 } | |
20 | |
21 } // namespace __sanitizer |