[LibFuzzer] Add Windows implementations of some IO functions.
authorZachary Turner <zturner@google.com>
Wed, 30 Nov 2016 21:44:26 +0000 (21:44 +0000)
committerZachary Turner <zturner@google.com>
Wed, 30 Nov 2016 21:44:26 +0000 (21:44 +0000)
commit5abac1769f36e4f7d9d6c3a408a1356490fc76e0
treee669c5f43b78ba2a55aae705aff4fce55581d6e6
parentb151a641aa8fe3c1bbb2ed78279ede5f1ecc0e7e
[LibFuzzer] Add Windows implementations of some IO functions.

This patch moves some posix specific file i/o code into a new
file, FuzzerIOPosix.cpp, and provides implementations for these
functions on Windows in FuzzerIOWindows.cpp.  This is another
incremental step towards getting libfuzzer working on Windows,
although it still should not be expected to be fully working.

Patch by Marcos Pividori
Differential Revision: https://reviews.llvm.org/D27233

llvm-svn: 288275
llvm/lib/Fuzzer/CMakeLists.txt
llvm/lib/Fuzzer/FuzzerIO.cpp
llvm/lib/Fuzzer/FuzzerIO.h
llvm/lib/Fuzzer/FuzzerIOPosix.cpp [new file with mode: 0644]
llvm/lib/Fuzzer/FuzzerIOWindows.cpp [new file with mode: 0644]