about summary refs log tree commit diff
path: root/src/libstd/sys/unix/mod.rs
diff options
context:
space:
mode:
authorTheodore DeRego <tedsta@google.com>2016-12-01 12:01:07 -0800
committerTheodore DeRego <tedsta@google.com>2016-12-01 12:01:07 -0800
commite1b752b2a1bea9c05e89e52632f2f87ee9777062 (patch)
tree92a44d262716efb72afa488edcdba6bb2f0baa58 /src/libstd/sys/unix/mod.rs
parent8d9d07a1ca25d003b57b08f5930ae3e9a27cd37c (diff)
downloadrust-e1b752b2a1bea9c05e89e52632f2f87ee9777062.tar.gz
rust-e1b752b2a1bea9c05e89e52632f2f87ee9777062.zip
std::process fuchsia support cleanup
Diffstat (limited to 'src/libstd/sys/unix/mod.rs')
-rw-r--r--src/libstd/sys/unix/mod.rs20
1 files changed, 0 insertions, 20 deletions
diff --git a/src/libstd/sys/unix/mod.rs b/src/libstd/sys/unix/mod.rs
index 8fe55af51d5..fd7dc17cccd 100644
--- a/src/libstd/sys/unix/mod.rs
+++ b/src/libstd/sys/unix/mod.rs
@@ -13,11 +13,6 @@
 use io::{self, ErrorKind};
 use libc;
 
-#[cfg(target_os = "fuchsia")]
-use convert::TryInto;
-#[cfg(target_os = "fuchsia")]
-pub use self::magenta::mx_status_t;
-
 #[cfg(target_os = "android")]   pub use os::android as platform;
 #[cfg(target_os = "bitrig")]    pub use os::bitrig as platform;
 #[cfg(target_os = "dragonfly")] pub use os::dragonfly as platform;
@@ -46,8 +41,6 @@ pub mod ext;
 pub mod fast_thread_local;
 pub mod fd;
 pub mod fs;
-#[cfg(target_os = "fuchsia")]
-pub mod magenta;
 pub mod memchr;
 pub mod mutex;
 pub mod net;
@@ -171,19 +164,6 @@ pub fn cvt_r<T, F>(mut f: F) -> io::Result<T>
     }
 }
 
-#[cfg(target_os = "fuchsia")]
-pub fn mx_cvt<T>(t: T) -> io::Result<T> where T: TryInto<mx_status_t>+Copy {
-    if let Ok(status) = TryInto::try_into(t) {
-        if status < 0 {
-            Err(io::Error::from_raw_os_error(status))
-        } else {
-            Ok(t)
-        }
-    } else {
-        Err(io::Error::last_os_error())
-    }
-}
-
 // On Unix-like platforms, libc::abort will unregister signal handlers
 // including the SIGABRT handler, preventing the abort from being blocked, and
 // fclose streams, with the side effect of flushing them so libc bufferred