about summary refs log tree commit diff
path: root/src/libstd/sys/unix
diff options
context:
space:
mode:
authorBrian Anderson <banderson@mozilla.com>2016-09-22 00:29:00 +0000
committerBrian Anderson <banderson@mozilla.com>2016-10-01 19:33:02 +0000
commitd311079a6f70577d02f35bb80d27eef7e2b18a4a (patch)
treefa9943d7c7dee6812c642f51ce52b8ff1650a523 /src/libstd/sys/unix
parentfea1bd4cdf375fa097789b2484b746cacdfddb73 (diff)
downloadrust-d311079a6f70577d02f35bb80d27eef7e2b18a4a.tar.gz
rust-d311079a6f70577d02f35bb80d27eef7e2b18a4a.zip
std: Move platform specific stdio code into sys
Diffstat (limited to 'src/libstd/sys/unix')
-rw-r--r--src/libstd/sys/unix/stdio.rs2
1 files changed, 2 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;