diff options
| author | bors <bors@rust-lang.org> | 2016-12-15 06:23:11 +0000 |
|---|---|---|
| committer | bors <bors@rust-lang.org> | 2016-12-15 06:23:11 +0000 |
| commit | cfa668f3bf8156730b419deec51fb980af23b8bb (patch) | |
| tree | 00f70114d72e3d944ac12d973ad6db58e91e3770 /src/libstd/sys/windows | |
| parent | 7ad7232422f7e5bbfa0e52dabe36c12677df19e2 (diff) | |
| parent | 3e15dc108c66891da04aa8c3f77162746fab4277 (diff) | |
| download | rust-cfa668f3bf8156730b419deec51fb980af23b8bb.tar.gz rust-cfa668f3bf8156730b419deec51fb980af23b8bb.zip | |
Auto merge of #37702 - redox-os:redox, r=brson
Redox Support Preview # Important - This is only a preview of a working `sys::redox`. Compiling the Redox default distribution with this `libstd` results in a fully functioning distribution. As such, all further changes would be cosmetic or implementing features that have not been used by the default distribution (of which there are only a small number). I do not expect this to be merged, but would like to discuss how it may be improved and get feedback. There are a few `unimplemented!()` - `cloexec` for example. I have documented them below. These would be resolved before desiring a merge. There are also issues with how the Redox syscall library is called - currently I am using a re-export in `libc` but that probably would not be desired.
Diffstat (limited to 'src/libstd/sys/windows')
| -rw-r--r-- | src/libstd/sys/windows/stdio.rs | 13 |
1 files changed, 12 insertions, 1 deletions
diff --git a/src/libstd/sys/windows/stdio.rs b/src/libstd/sys/windows/stdio.rs index 72788776ded..a74e7699ba0 100644 --- a/src/libstd/sys/windows/stdio.rs +++ b/src/libstd/sys/windows/stdio.rs @@ -156,6 +156,10 @@ impl Stdout { pub fn write(&self, data: &[u8]) -> io::Result<usize> { write(&self.0, data) } + + pub fn flush(&self) -> io::Result<()> { + Ok(()) + } } impl Stderr { @@ -166,6 +170,10 @@ impl Stderr { pub fn write(&self, data: &[u8]) -> io::Result<usize> { write(&self.0, data) } + + pub fn flush(&self) -> io::Result<()> { + Ok(()) + } } // FIXME: right now this raw stderr handle is used in a few places because @@ -175,7 +183,10 @@ impl io::Write for Stderr { fn write(&mut self, data: &[u8]) -> io::Result<usize> { Stderr::write(self, data) } - fn flush(&mut self) -> io::Result<()> { Ok(()) } + + fn flush(&mut self) -> io::Result<()> { + Stderr::flush(self) + } } impl NoClose { |
