summaryrefslogtreecommitdiffstats
path: root/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp
diff options
context:
space:
mode:
authorKostya Serebryany <kcc@google.com>2019-04-13 00:20:31 +0000
committerKostya Serebryany <kcc@google.com>2019-04-13 00:20:31 +0000
commit4614cc3dfd2b735ff9292c7867910219d509d970 (patch)
treeec1dd2dfabaffe1572234687a75d10ea61a65b85 /compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp
parentc77bf89dcce8dce0ec3849220a92e10d0bc1b348 (diff)
downloadbcm5719-llvm-4614cc3dfd2b735ff9292c7867910219d509d970.tar.gz
bcm5719-llvm-4614cc3dfd2b735ff9292c7867910219d509d970.zip
[libFuzzer] add -features_dir= flag to dump unique input features on disk
llvm-svn: 358317
Diffstat (limited to 'compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp')
-rw-r--r--compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp4
1 files changed, 4 insertions, 0 deletions
diff --git a/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp b/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp
index b8c200b810a..510afebef73 100644
--- a/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp
+++ b/compiler-rt/lib/fuzzer/FuzzerIOWindows.cpp
@@ -219,6 +219,10 @@ void RemoveFile(const std::string &Path) {
_unlink(Path.c_str());
}
+void RenameFile(const std::string &OldPath, const std::string &NewPath) {
+ rename(OldPath.c_str(), NewPath.c_str());
+}
+
void DiscardOutput(int Fd) {
FILE* Temp = fopen("nul", "w");
if (!Temp)
OpenPOWER on IntegriCloud