about summary refs log tree commit diff
path: root/src/rustllvm/ExecutionEngineWrapper.cpp
diff options
context:
space:
mode:
authorAlex Crichton <alex@alexcrichton.com>2014-02-26 12:57:00 -0800
committerAlex Crichton <alex@alexcrichton.com>2014-02-27 12:03:57 -0800
commitcd9010c77e764e9348ecd92dc4a285f6514505dc (patch)
tree2f21e810536e25d0aea7c84c5c01768ae99f46b7 /src/rustllvm/ExecutionEngineWrapper.cpp
parent843c5e6308920018defe62fd1951c8a5b45553b1 (diff)
downloadrust-cd9010c77e764e9348ecd92dc4a285f6514505dc.tar.gz
rust-cd9010c77e764e9348ecd92dc4a285f6514505dc.zip
native: Improve windows file handling
This commit splits the file implementation into file_unix and file_win32. The
two implementations have diverged to the point that they share almost 0 code at
this point, so it's easier to maintain as separate files.

The other major change accompanied with this commit is that file::open is no
longer based on libc's open function on windows, but rather windows's CreateFile
function. This fixes dealing with binary files on windows (test added in
previous commit).

This also changes the read/write functions to use ReadFile and WriteFile instead
of libc's read/write.

Closes #12406
Diffstat (limited to 'src/rustllvm/ExecutionEngineWrapper.cpp')
0 files changed, 0 insertions, 0 deletions