blob: c730ccfbd7b68a4d71ec2bd1a4ef20d4c1fa8062 [file] [log] [blame]
Peter Collingbourne0c547de2013-05-17 16:17:19 +00001//===-- sanitizer_common_libcdep.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 is shared between AddressSanitizer and ThreadSanitizer
11// run-time libraries.
12//===----------------------------------------------------------------------===//
13
14#include "sanitizer_common.h"
15
16namespace __sanitizer {
17
18bool PrintsToTty() {
19 MaybeOpenReportFile();
Timur Iskhodzhanov5e97ba32013-05-29 14:11:44 +000020 return internal_isatty(report_fd) != 0;
Peter Collingbourne0c547de2013-05-17 16:17:19 +000021}
22
23} // namespace __sanitizer