summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authorAlexey Samsonov <samsonov@google.com>2012-11-02 09:23:36 +0000
committerAlexey Samsonov <samsonov@google.com>2012-11-02 09:23:36 +0000
commitac8564e7ce11e31b1d29e92dbbcfa1a5d36bc596 (patch)
treeacd0de55e1439f2699c5b8c7ad5518d9cedee36c /include
parentea0177e2b8bb5d1dbd22c7e2776f6299fa712799 (diff)
downloadcompiler-rt-ac8564e7ce11e31b1d29e92dbbcfa1a5d36bc596.tar.gz
compiler-rt-ac8564e7ce11e31b1d29e92dbbcfa1a5d36bc596.tar.bz2
compiler-rt-ac8564e7ce11e31b1d29e92dbbcfa1a5d36bc596.tar.xz
[Sanitizer]: add __sanitizer_set_report_fd function to alter file descriptor for error reports
git-svn-id: https://llvm.org/svn/llvm-project/compiler-rt/trunk@167290 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r--include/sanitizer/common_interface_defs.h5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/sanitizer/common_interface_defs.h b/include/sanitizer/common_interface_defs.h
index cbce63f1..46663180 100644
--- a/include/sanitizer/common_interface_defs.h
+++ b/include/sanitizer/common_interface_defs.h
@@ -63,6 +63,11 @@ extern "C" {
// Tell the tools to write their reports to "path.<pid>" instead of stderr.
void __sanitizer_set_report_path(const char *path)
SANITIZER_INTERFACE_ATTRIBUTE;
+
+ // Tell the tools to write their reports to given file descriptor instead of
+ // stderr.
+ void __sanitizer_set_report_fd(int fd)
+ SANITIZER_INTERFACE_ATTRIBUTE;
} // extern "C"
#endif // SANITIZER_COMMON_INTERFACE_DEFS_H