summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerInternal.h
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2016-03-18 20:58:29 +0000
committerKostya Serebryany <kcc@google.com>2016-03-18 20:58:29 +0000
commit49e409068af85ba10e9b08bdc1d2d5f3b345c1e7 (patch)
treeeae319c59138416a0739d33e57e4a4c4cd010d4f /llvm/lib/Fuzzer/FuzzerInternal.h
parent5ba3d3e632fbc30edf9cc2eae4715c28b1a4ffb7 (diff)
downloadbcm5719-llvm-49e409068af85ba10e9b08bdc1d2d5f3b345c1e7.tar.gz
bcm5719-llvm-49e409068af85ba10e9b08bdc1d2d5f3b345c1e7.zip
[libFuzzer] add a flag close_fd_mask so that we can silence spammy targets by closing stderr/stdout
llvm-svn: 263831
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerInternal.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerInternal.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerInternal.h b/llvm/lib/Fuzzer/FuzzerInternal.h
index ebed95caf59..2ff131902b4 100644
--- a/llvm/lib/Fuzzer/FuzzerInternal.h
+++ b/llvm/lib/Fuzzer/FuzzerInternal.h
@@ -75,6 +75,8 @@ void CopyFileToErr(const std::string &Path);
std::string DirPlusFile(const std::string &DirPath,
const std::string &FileName);
+void DupAndCloseStderr();
+void CloseStdout();
void Printf(const char *Fmt, ...);
void PrintHexArray(const Unit &U, const char *PrintAfter = "");
void PrintHexArray(const uint8_t *Data, size_t Size,
OpenPOWER on IntegriCloud