]>
Commit | Line | Data |
---|---|---|
36093749 | 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 |