]> git.lizzy.rs Git - rust.git/commit
std: Funnel read_to_end through to one location
authorAlex Crichton <alex@alexcrichton.com>
Fri, 12 Feb 2016 08:17:24 +0000 (00:17 -0800)
committerAlex Crichton <alex@alexcrichton.com>
Wed, 9 Mar 2016 01:45:44 +0000 (17:45 -0800)
commitd46c99abe8671479c48b003bf06e98eda7eb85ab
tree9cd992343e114fea26c3be8383a2d304e06e4a56
parenteabfc160f87ccc0b296f49af7fe688506580c473
std: Funnel read_to_end through to one location

This pushes the implementation detail of proxying `read_to_end` through to
`read_to_end_uninitialized` all the way down to the `FileDesc` and `Handle`
implementations on Unix/Windows. This way intermediate layers will also be able
to take advantage of this optimized implementation.

This commit also adds the optimized implementation for `ChildStdout` and
`ChildStderr`.
15 files changed:
src/libstd/fs.rs
src/libstd/io/stdio.rs
src/libstd/net/tcp.rs
src/libstd/process.rs
src/libstd/sys/common/net.rs
src/libstd/sys/unix/fd.rs
src/libstd/sys/unix/fs.rs
src/libstd/sys/unix/net.rs
src/libstd/sys/unix/pipe.rs
src/libstd/sys/unix/stdio.rs
src/libstd/sys/windows/fs.rs
src/libstd/sys/windows/handle.rs
src/libstd/sys/windows/net.rs
src/libstd/sys/windows/pipe.rs
src/libstd/sys/windows/stdio.rs