Home | History | Annotate | Line # | Download | only in sanitizer_common
      1 //===-- sanitizer_allocator_checks.cc ---------------------------*- C++ -*-===//
      2 //
      3 //                     The LLVM Compiler Infrastructure
      4 //
      5 // This file is distributed under the University of Illinois Open Source
      6 // License. See LICENSE.TXT for details.
      7 //
      8 //===----------------------------------------------------------------------===//
      9 //
     10 // Various checks shared between ThreadSanitizer, MemorySanitizer, etc. memory
     11 // allocators.
     12 //
     13 //===----------------------------------------------------------------------===//
     14 
     15 #include "sanitizer_errno.h"
     16 
     17 namespace __sanitizer {
     18 
     19 void SetErrnoToENOMEM() {
     20   errno = errno_ENOMEM;
     21 }
     22 
     23 } // namespace __sanitizer
     24