about summary refs log tree commit diff
path: root/src/libstd/sys/common
diff options
context:
space:
mode:
authorAaron Turon <aturon@mozilla.com>2014-10-17 13:33:08 -0700
committerAaron Turon <aturon@mozilla.com>2014-11-08 20:40:39 -0800
commit431dcdc840a27f7c7418b7dff73a329eada8a407 (patch)
tree4e77fc459607350626e306d4400faf827a9c9092 /src/libstd/sys/common
parentb8f1193bb1bb66610f479cd78e3dc5526e93058d (diff)
downloadrust-431dcdc840a27f7c7418b7dff73a329eada8a407.tar.gz
rust-431dcdc840a27f7c7418b7dff73a329eada8a407.zip
Runtime removal: refactor tty
This patch continues runtime removal by moving the tty implementations
into `sys`.

Because this eliminates APIs in `libnative` and `librustrt`, it is a:

[breaking-change]

This functionality is likely to be available publicly, in some form,
from `std` in the future.
Diffstat (limited to 'src/libstd/sys/common')
-rw-r--r--src/libstd/sys/common/mod.rs8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/libstd/sys/common/mod.rs b/src/libstd/sys/common/mod.rs
index 75c2987078d..c5f8214a5c3 100644
--- a/src/libstd/sys/common/mod.rs
+++ b/src/libstd/sys/common/mod.rs
@@ -48,6 +48,14 @@ pub fn short_write(n: uint, desc: &'static str) -> IoError {
     }
 }
 
+pub fn unimpl() -> IoError {
+    IoError {
+        kind: io::IoUnavailable,
+        desc: "operations not yet supported",
+        detail: None,
+    }
+}
+
 // unix has nonzero values as errors
 pub fn mkerr_libc<Int: num::Zero>(ret: Int) -> IoResult<()> {
     if !ret.is_zero() {