blob: 89c17e0797efe20aaf29a2475e93d71a2e1a935a [file] [log] [blame]
Pirama Arumuga Nainar799172d2016-03-03 15:50:30 -08001//===-- sanitizer_common_nolibc.cc ----------------------------------------===//
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// This file contains stubs for libc function to facilitate optional use of
11// libc in no-libcdep sources.
12//===----------------------------------------------------------------------===//
13
14#include "sanitizer_platform.h"
15#include "sanitizer_common.h"
16#include "sanitizer_libc.h"
17
18namespace __sanitizer {
19
20#if SANITIZER_LINUX
21bool ShouldLogAfterPrintf() { return false; }
22#endif
23void WriteToSyslog(const char *buffer) {}
24void Abort() { internal__exit(1); }
25
26} // namespace __sanitizer