File tree 2 files changed +15
-1
lines changed
2 files changed +15
-1
lines changed Original file line number Diff line number Diff line change @@ -1592,7 +1592,8 @@ fn test_android(target: &str) {
1592
1592
// https://github.com/rust-lang/libc/issues/1765
1593
1593
"lockf" | "preadv64" | "pwritev64" | "openpty" | "forkpty"
1594
1594
| "login_tty" | "getifaddrs" | "freeifaddrs" | "sethostname"
1595
- | "getgrgid_r" | "getgrnam_r" | "sigtimedwait"
1595
+ | "getgrgid_r" | "getgrnam_r" | "sigtimedwait" | "fmemopen"
1596
+ | "open_memstream" | "open_wmemstream"
1596
1597
if aarch64 =>
1597
1598
{
1598
1599
true
Original file line number Diff line number Diff line change @@ -419,6 +419,19 @@ extern "C" {
419
419
mode : * const c_char ,
420
420
file : * mut FILE ,
421
421
) -> * mut FILE ;
422
+ pub fn fmemopen (
423
+ buf : * mut c_void ,
424
+ size : size_t ,
425
+ mode : * const c_char ,
426
+ ) -> * mut FILE ;
427
+ pub fn open_memstream (
428
+ ptr : * mut * mut c_char ,
429
+ sizeloc : * mut size_t ,
430
+ ) -> * mut FILE ;
431
+ pub fn open_wmemstream (
432
+ ptr : * mut * mut wchar_t ,
433
+ sizeloc : * mut size_t ,
434
+ ) -> * mut FILE ;
422
435
pub fn fflush ( file : * mut FILE ) -> c_int ;
423
436
pub fn fclose ( file : * mut FILE ) -> c_int ;
424
437
pub fn remove ( filename : * const c_char ) -> c_int ;
You can’t perform that action at this time.
0 commit comments