diff options
| author | Brian Anderson <banderson@mozilla.com> | 2016-09-22 00:29:00 +0000 |
|---|---|---|
| committer | Brian Anderson <banderson@mozilla.com> | 2016-10-01 19:33:02 +0000 |
| commit | d311079a6f70577d02f35bb80d27eef7e2b18a4a (patch) | |
| tree | fa9943d7c7dee6812c642f51ce52b8ff1650a523 /src/libstd/sys | |
| parent | fea1bd4cdf375fa097789b2484b746cacdfddb73 (diff) | |
| download | rust-d311079a6f70577d02f35bb80d27eef7e2b18a4a.tar.gz rust-d311079a6f70577d02f35bb80d27eef7e2b18a4a.zip | |
std: Move platform specific stdio code into sys
Diffstat (limited to 'src/libstd/sys')
| -rw-r--r-- | src/libstd/sys/unix/stdio.rs | 2 | ||||
| -rw-r--r-- | src/libstd/sys/windows/stdio.rs | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/src/libstd/sys/unix/stdio.rs b/src/libstd/sys/unix/stdio.rs index 972bdbc3818..947ba2cc752 100644 --- a/src/libstd/sys/unix/stdio.rs +++ b/src/libstd/sys/unix/stdio.rs @@ -65,3 +65,5 @@ impl io::Write for Stderr { } fn flush(&mut self) -> io::Result<()> { Ok(()) } } + +pub const EBADF_ERR: i32 = ::libc::EBADF as i32; diff --git a/src/libstd/sys/windows/stdio.rs b/src/libstd/sys/windows/stdio.rs index 01249f05f62..5f097d2631d 100644 --- a/src/libstd/sys/windows/stdio.rs +++ b/src/libstd/sys/windows/stdio.rs @@ -205,3 +205,5 @@ impl Output { fn invalid_encoding() -> io::Error { io::Error::new(io::ErrorKind::InvalidData, "text was not valid unicode") } + +pub const EBADF_ERR: i32 = ::sys::c::ERROR_INVALID_HANDLE as i32; |
