From bf6db9199307bc87bb1de78bb4cbc8768799973e Mon Sep 17 00:00:00 2001 From: Tom Almeida <tommoa256@gmail.com> Date: Tue, 3 Jul 2018 12:24:51 +0800 Subject: [PATCH] Actually remove stdlib from stdio. This should have been done with wchar being put in, but I messed something up --- src/stdio/Cargo.toml | 1 - src/stdio/src/helpers.rs | 1 - 2 files changed, 2 deletions(-) diff --git a/src/stdio/Cargo.toml b/src/stdio/Cargo.toml index 27fbe42b..8261bc76 100644 --- a/src/stdio/Cargo.toml +++ b/src/stdio/Cargo.toml @@ -14,5 +14,4 @@ lazy_static = { version = "*", features = ["nightly", "spin_no_std"] } platform = { path = "../platform" } ralloc = { path = "../../ralloc", default-features = false } string = { path = "../string" } -stdlib = { path = "../stdlib" } va_list = { path = "../../va_list", features = ["no_std"] } diff --git a/src/stdio/src/helpers.rs b/src/stdio/src/helpers.rs index 3e898a24..261a9680 100644 --- a/src/stdio/src/helpers.rs +++ b/src/stdio/src/helpers.rs @@ -40,7 +40,6 @@ pub unsafe fn parse_mode_flags(mode_str: *const c_char) -> i32 { /// Open a file with the file descriptor `fd` in the mode `mode` pub unsafe fn _fdopen(fd: c_int, mode: *const c_char) -> Option<*mut FILE> { use string::strchr; - use stdlib::malloc; use core::mem::size_of; if *mode != b'r' as i8 && *mode != b'w' as i8 && *mode != b'a' as i8 { platform::errno = errno::EINVAL; -- GitLab