Actually remove stdlib from stdio. This should have been done with wchar being put in, but I messed something up

This commit is contained in:
Tom Almeida
2018-07-03 12:24:51 +08:00
parent 72177be0fa
commit bf6db91993
2 changed files with 0 additions and 2 deletions
-1
View File
@@ -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"] }
-1
View File
@@ -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;