]> git.lizzy.rs Git - rust.git/commit
Implement more native file I/O
authorAlex Crichton <alex@alexcrichton.com>
Wed, 13 Nov 2013 22:48:45 +0000 (14:48 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Tue, 19 Nov 2013 17:59:21 +0000 (09:59 -0800)
commit68d5510292ed2f9714568285759ca9ef54d9b48c
tree6a0c7a0274a4942849982400cfb9277c2103fccf
parentf5f5d5aac762a554850d291165536ba752260303
Implement more native file I/O

This implements a fair amount of the unimpl() functionality in io::native
relating to filesystem operations. I've also modified all io::fs tests to run in
both a native and uv environment (so everything is actually tested).

There are a two bits of remaining functionality which I was unable to get
working:

* change_file_times on windows
* lstat on windows

I think that change_file_times may just need a better interface, but lstat has a
large implementation in libuv which I didn't want to tackle trying to copy.
src/libstd/io/buffered.rs
src/libstd/io/fs.rs
src/libstd/io/native/file.rs
src/libstd/io/native/mod.rs
src/libstd/io/stdio.rs
src/libstd/libc.rs
src/rt/rust_builtin.c
src/rt/rustrt.def.in
src/test/run-pass/conditional-compile.rs