]> git.lizzy.rs Git - rust.git/commit
Remove all blocking std::os blocking functions
authorAlex Crichton <alex@alexcrichton.com>
Sat, 26 Oct 2013 00:04:37 +0000 (17:04 -0700)
committerAlex Crichton <alex@alexcrichton.com>
Sun, 3 Nov 2013 23:15:42 +0000 (15:15 -0800)
commit9c1851019f1ef9511fa8731b8f1acb0796d1e97f
tree0cd6d600bfc077e1d19722afdb042c9c016db621
parent7bf58c2baaac3f7cb3c8e8d735b27ac9e7d3cd78
Remove all blocking std::os blocking functions

This commit moves all thread-blocking I/O functions from the std::os module.
Their replacements can be found in either std::rt::io::file or in a hidden
"old_os" module inside of native::file. I didn't want to outright delete these
functions because they have a lot of special casing learned over time for each
OS/platform, and I imagine that these will someday get integrated into a
blocking implementation of IoFactory. For now, they're moved to a private module
to prevent bitrot and still have tests to ensure that they work.

I've also expanded the extensions to a few more methods defined on Path, most of
which were previously defined in std::os but now have non-thread-blocking
implementations as part of using the current IoFactory.

The api of io::file is in flux, but I plan on changing it in the next commit as
well.

Closes #10057
57 files changed:
mk/tests.mk
src/compiletest/compiletest.rs
src/compiletest/errors.rs
src/compiletest/header.rs
src/compiletest/runtest.rs
src/libextra/glob.rs
src/libextra/tempfile.rs
src/libextra/terminfo/searcher.rs
src/libextra/test.rs
src/libextra/uuid.rs
src/libextra/workcache.rs
src/librustc/back/link.rs
src/librustc/driver/driver.rs
src/librustc/metadata/filesearch.rs
src/librustdoc/html/render.rs
src/librustdoc/lib.rs
src/librustpkg/api.rs
src/librustpkg/context.rs
src/librustpkg/installed_packages.rs
src/librustpkg/lib.rs
src/librustpkg/package_id.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/c-dependencies/pkg.rs
src/librustpkg/testsuite/pass/src/fancy-lib/pkg.rs
src/librustpkg/util.rs
src/librustpkg/version.rs
src/librustpkg/workcache_support.rs
src/librustpkg/workspace.rs
src/librustuv/file.rs
src/librustuv/uvio.rs
src/librustuv/uvll.rs
src/libstd/bool.rs
src/libstd/os.rs
src/libstd/path/posix.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/net/unix.rs
src/libstd/rt/io/signal.rs
src/libstd/rt/io/timer.rs
src/libstd/rt/rtio.rs
src/libstd/run.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-fulldeps/qquote.rs
src/test/run-pass-fulldeps/quote-tokens.rs
src/test/run-pass/glob-std.rs
src/test/run-pass/rename-directory.rs
src/test/run-pass/stat.rs
src/test/run-pass/tempfile.rs