summaryrefslogtreecommitdiffstats
path: root/llvm/lib/Fuzzer/FuzzerUtil.h
diff options
context:
space:
mode:
authorZachary Turner <zturner@google.com>2016-12-02 19:38:19 +0000
committerZachary Turner <zturner@google.com>2016-12-02 19:38:19 +0000
commit34dcfb9294a751f53a2172aa249ecd028836ee46 (patch)
tree8f3efa3e7edd1422955cd420dc049e16325cf080 /llvm/lib/Fuzzer/FuzzerUtil.h
parenta5b5745a6239df223d55bbf28e83ac5e65b78f56 (diff)
downloadbcm5719-llvm-34dcfb9294a751f53a2172aa249ecd028836ee46.tar.gz
bcm5719-llvm-34dcfb9294a751f53a2172aa249ecd028836ee46.zip
[LibFuzzer] Split FuzzerUtil for Posix and Windows.
Pave the way for separating out platform specific utility functions into separate files. Patch by Marcos Pividori Differential Revision: https://reviews.llvm.org/D27234 llvm-svn: 288529
Diffstat (limited to 'llvm/lib/Fuzzer/FuzzerUtil.h')
-rw-r--r--llvm/lib/Fuzzer/FuzzerUtil.h9
1 files changed, 7 insertions, 2 deletions
diff --git a/llvm/lib/Fuzzer/FuzzerUtil.h b/llvm/lib/Fuzzer/FuzzerUtil.h
index 97271b99307..c9de11f063f 100644
--- a/llvm/lib/Fuzzer/FuzzerUtil.h
+++ b/llvm/lib/Fuzzer/FuzzerUtil.h
@@ -40,6 +40,8 @@ std::string DescribePC(const char *SymbolizedFMT, uintptr_t PC);
int NumberOfCpuCores();
+bool ExecuteCommandAndReadOutput(const std::string &Command, std::string *Out);
+
// Platform specific functions.
void SetTimer(int Seconds);
@@ -57,9 +59,12 @@ int GetPid();
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
OpenPOWER on IntegriCloud