This commit is contained in:
Jeremy Soller
2018-11-22 18:43:45 -07:00
parent 9b0c74b935
commit 632f9f18e5
2 changed files with 8 additions and 1 deletions
+1 -1
Submodule core_io updated: eb72048307...a4ddc38063
+7
View File
@@ -390,6 +390,13 @@ pub extern "C" fn fopen(filename: *const c_char, mode: *const c_char) -> *mut FI
}
}
#[no_mangle]
pub extern "C" fn __fpending(stream: *mut FILE) -> size_t {
let mut stream = unsafe { &mut *stream }.lock();
stream.writer.inner.buf.len() as size_t
}
/// Insert a character into the stream
#[no_mangle]
pub extern "C" fn fputc(c: c_int, stream: *mut FILE) -> c_int {