Resubmit "[LibFuzzer] Split FuzzerUtil for Posix and Windows."
This resubmits r288529, which was resubmitted because it broke a
fuzzer bot. According to kcc@ the test that broke was flakey
and it is unlikely to be a result of this patch.
llvm-svn: 288549
diff --git a/llvm/lib/Fuzzer/FuzzerUtil.h b/llvm/lib/Fuzzer/FuzzerUtil.h
index 97271b9..c9de11f 100644
--- a/llvm/lib/Fuzzer/FuzzerUtil.h
+++ b/llvm/lib/Fuzzer/FuzzerUtil.h
@@ -40,6 +40,8 @@
int NumberOfCpuCores();
+bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out);
+
// Platform specific functions.
void SetTimer(int Seconds);
@@ -57,9 +59,12 @@
size_t GetPeakRSSMb();
-bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out);
-
int ExecuteCommand(const std::string &Command);
+FILE *OpenProcessPipe(const char *Command, const char *Mode);
+
+const void *SearchMemory(const void *haystack, size_t haystacklen,
+ const void *needle, size_t needlelen);
+
} // namespace fuzzer
#endif // LLVM_FUZZER_UTIL_H