Skip to content

Commit

Permalink
Merge pull request #1855 from jedbrown/master
Browse files Browse the repository at this point in the history
  • Loading branch information
JohnTitor authored Aug 20, 2020
2 parents c9ff3e9 + 3f9f49a commit 8dd5137
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
3 changes: 2 additions & 1 deletion libc-test/build.rs
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -1592,7 +1592,8 @@ fn test_android(target: &str) {
// https://github.com/rust-lang/libc/issues/1765
"lockf" | "preadv64" | "pwritev64" | "openpty" | "forkpty"
| "login_tty" | "getifaddrs" | "freeifaddrs" | "sethostname"
| "getgrgid_r" | "getgrnam_r" | "sigtimedwait"
| "getgrgid_r" | "getgrnam_r" | "sigtimedwait" | "fmemopen"
| "open_memstream" | "open_wmemstream"
if aarch64 =>
{
true
Expand Down
13 changes: 13 additions & 0 deletions src/unix/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -419,6 +419,19 @@ extern "C" {
mode: *const c_char,
file: *mut FILE,
) -> *mut FILE;
pub fn fmemopen(
buf: *mut c_void,
size: size_t,
mode: *const c_char,
) -> *mut FILE;
pub fn open_memstream(
ptr: *mut *mut c_char,
sizeloc: *mut size_t,
) -> *mut FILE;
pub fn open_wmemstream(
ptr: *mut *mut wchar_t,
sizeloc: *mut size_t,
) -> *mut FILE;
pub fn fflush(file: *mut FILE) -> c_int;
pub fn fclose(file: *mut FILE) -> c_int;
pub fn remove(filename: *const c_char) -> c_int;
Expand Down

0 comments on commit 8dd5137

Please sign in to comment.