]>
git.proxmox.com Git - rustc.git/blob - src/compiler-rt/lib/sanitizer_common/sanitizer_common_nolibc.cc
1 //===-- sanitizer_common_nolibc.cc ----------------------------------------===//
3 // The LLVM Compiler Infrastructure
5 // This file is distributed under the University of Illinois Open Source
6 // License. See LICENSE.TXT for details.
8 //===----------------------------------------------------------------------===//
10 // This file contains stubs for libc function to facilitate optional use of
11 // libc in no-libcdep sources.
12 //===----------------------------------------------------------------------===//
14 #include "sanitizer_platform.h"
15 #include "sanitizer_common.h"
16 #include "sanitizer_libc.h"
18 namespace __sanitizer
{
20 // The Windows implementations of these functions use the win32 API directly,
22 #if !SANITIZER_WINDOWS
24 bool ShouldLogAfterPrintf() { return false; }
25 void LogMessageOnPrintf(const char *str
) {}
27 void WriteToSyslog(const char *buffer
) {}
28 void Abort() { internal__exit(1); }
29 void SleepForSeconds(int seconds
) { internal_sleep(seconds
); }
30 #endif // !SANITIZER_WINDOWS
32 #if !SANITIZER_WINDOWS && !SANITIZER_MAC
33 void ListOfModules::init() {}
36 } // namespace __sanitizer