]> git.lizzy.rs Git - rust.git/commit
Fill out the remaining functionality in io::file
authorAlex Crichton <alex@alexcrichton.com>
Wed, 30 Oct 2013 06:31:07 +0000 (23:31 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 3 Nov 2013 23:15:42 +0000 (15:15 -0800)
commitf19d0833625c382c5d0a8868924cd4620335e659
tree9d4d67c3f845aa4f2596c6db94f9c883ab1dd696
parent9c1851019f1ef9511fa8731b8f1acb0796d1e97f
Fill out the remaining functionality in io::file

This adds bindings to the remaining functions provided by libuv, all of which
are useful operations on files which need to get exposed somehow.

Some highlights:

* Dropped `FileReader` and `FileWriter` and `FileStream` for one `File` type
* Moved all file-related methods to be static methods under `File`
* All directory related methods are still top-level functions
* Created `io::FilePermission` types (backed by u32) that are what you'd expect
* Created `io::FileType` and refactored `FileStat` to use FileType and
  FilePermission
* Removed the expanding matrix of `FileMode` operations. The mode of reading a
  file will not have the O_CREAT flag, but a write mode will always have the
  O_CREAT flag.

Closes #10130
Closes #10131
Closes #10121
38 files changed:
src/compiletest/errors.rs
src/compiletest/header.rs
src/compiletest/runtest.rs
src/etc/libc.c
src/libextra/terminfo/searcher.rs
src/libextra/test.rs
src/libextra/workcache.rs
src/librustc/back/link.rs
src/librustc/driver/driver.rs
src/librustdoc/html/render.rs
src/librustdoc/lib.rs
src/librustpkg/lib.rs
src/librustpkg/package_source.rs
src/librustpkg/path_util.rs
src/librustpkg/source_control.rs
src/librustpkg/tests.rs
src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs
src/librustpkg/workcache_support.rs
src/librustuv/file.rs
src/librustuv/uvio.rs
src/librustuv/uvll.rs
src/libstd/libc.rs
src/libstd/os.rs
src/libstd/path/windows.rs
src/libstd/rand/os.rs
src/libstd/rt/io/file.rs
src/libstd/rt/io/mod.rs
src/libstd/rt/io/native/file.rs
src/libstd/rt/io/option.rs
src/libstd/rt/rtio.rs
src/libsyntax/ext/source_util.rs
src/libsyntax/parse/mod.rs
src/rt/rust_uv.cpp
src/test/bench/core-std.rs
src/test/bench/shootout-fasta.rs
src/test/run-pass/glob-std.rs
src/test/run-pass/rename-directory.rs
src/test/run-pass/stat.rs