summary refs log tree commit diff
path: root/src/libstd/io/pipe.rs
AgeCommit message (Collapse)AuthorLines
2014-01-06Don't read forever on a file descriptorAlex Crichton-0/+22
Similarly to the recent commit to do this for networking, there's no reason that a read on a file descriptor should continue reading until the entire buffer is full. This makes sense when dealing with literal files, but when dealing with things like stdin this doesn't make sense.
2013-12-24std: Expose that LocalIo may not always be availableAlex Crichton-12/+6
It is not the case that all programs will always be able to acquire an instance of the LocalIo borrow, so this commit exposes this limitation by returning Option<LocalIo> from LocalIo::borrow(). At the same time, a helper method LocalIo::maybe_raise() has been added in order to encapsulate the functionality of raising on io_error if there is on local I/O available.
2013-12-10librustuv: Change `with_local_io` to use RAII.Patrick Walton-9/+8
2013-11-26libstd: Remove all non-`proc` uses of `do` from libstdPatrick Walton-2/+2
2013-11-11Move std::rt::io to std::ioAlex Crichton-0/+89