commit | 19a4c202e3ae1b47d09bb262044148354e5ef87d | [log] [tgz] |
---|---|---|
author | 真人 <weizhen.wang@duitang.com> | Tue Apr 17 01:09:20 2018 +0800 |
committer | 真人 <weizhen.wang@duitang.com> | Tue Apr 17 08:56:34 2018 +0800 |
tree | abfa4c174f5e514e9fe0b5938e97180edebbab39 | |
parent | 28b4d1630989318c4a03cacdffd3f8f7651262f4 [diff] |
feat: add fread_unulock for linux
diff --git a/src/unix/notbsd/linux/mod.rs b/src/unix/notbsd/linux/mod.rs index 956a797..d4a3bb9 100644 --- a/src/unix/notbsd/linux/mod.rs +++ b/src/unix/notbsd/linux/mod.rs
@@ -1917,6 +1917,11 @@ fd: ::c_int, newfd: ::c_int, ) -> ::c_int; + pub fn fread_unlocked(ptr: *mut ::c_void, + size: ::size_t, + nobj: ::size_t, + stream: *mut ::FILE + ) -> ::size_t; } cfg_if! {