diff options
author | Alexey Samsonov <samsonov@google.com> | 2012-11-02 15:18:34 +0000 |
---|---|---|
committer | Alexey Samsonov <samsonov@google.com> | 2012-11-02 15:18:34 +0000 |
commit | 84d57b4ce545d6c19effac01124749a9df0fd0a5 (patch) | |
tree | b38c8d94e018102b2a45bf4f33d7c7c03b97ee5b /lib/sanitizer_common/sanitizer_libc.h | |
parent | 40bd009d5253b3ccfad363230c2d8ac2e139f81f (diff) | |
download | compiler-rt-84d57b4ce545d6c19effac01124749a9df0fd0a5.tar.gz |
[Sanitizer] Add internal_isatty to sanitizer_libc and PrintsToTty to determine whether error reports are printed to terminal
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167298 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'lib/sanitizer_common/sanitizer_libc.h')
-rw-r--r-- | lib/sanitizer_common/sanitizer_libc.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/lib/sanitizer_common/sanitizer_libc.h b/lib/sanitizer_common/sanitizer_libc.h index af16cff5d..79794839d 100644 --- a/lib/sanitizer_common/sanitizer_libc.h +++ b/lib/sanitizer_common/sanitizer_libc.h @@ -59,6 +59,7 @@ const fd_t kStdinFd = 0; const fd_t kStdoutFd = 1; const fd_t kStderrFd = 2; int internal_close(fd_t fd); +int internal_isatty(fd_t fd); fd_t internal_open(const char *filename, bool write); uptr internal_read(fd_t fd, void *buf, uptr count); uptr internal_write(fd_t fd, const void *buf, uptr count); |