File tree Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Expand file tree Collapse file tree 4 files changed +20
-1
lines changed Original file line number Diff line number Diff line change @@ -1908,6 +1908,8 @@ fn test_android(target: &str) {
19081908
19091909 // Added in API level 28, but some tests use level 24.
19101910 "pthread_attr_getinheritsched" | "pthread_attr_setinheritsched" => true ,
1911+ // Added in API level 28, but some tests use level 24.
1912+ "fread_unlocked" | "fwrite_unlocked" | "fgets_unlocked" | "fflush_unlocked" => true ,
19111913
19121914 _ => false ,
19131915 }
Original file line number Diff line number Diff line change @@ -3101,6 +3101,7 @@ ff_trigger
31013101fgetc
31023102fgetpos
31033103fgets
3104+ fgets_unlocked
31043105fgetxattr
31053106fileno
31063107flistxattr
@@ -3116,6 +3117,7 @@ fprintf
31163117fputc
31173118fputs
31183119fread
3120+ fread_unlocked
31193121free
31203122freeaddrinfo
31213123freeifaddrs
@@ -3144,6 +3146,7 @@ ftruncate
31443146ftruncate64
31453147futimens
31463148fwrite
3149+ fwrite_unlocked
31473150gai_strerror
31483151genlmsghdr
31493152getaddrinfo
Original file line number Diff line number Diff line change @@ -3708,6 +3708,20 @@ extern "C" {
37083708 needle : * const :: c_void ,
37093709 needlelen : :: size_t ,
37103710 ) -> * mut :: c_void ;
3711+ pub fn fread_unlocked (
3712+ buf : * mut :: c_void ,
3713+ size : :: size_t ,
3714+ nobj : :: size_t ,
3715+ stream : * mut :: FILE ,
3716+ ) -> :: size_t ;
3717+ pub fn fwrite_unlocked (
3718+ buf : * const :: c_void ,
3719+ size : :: size_t ,
3720+ nobj : :: size_t ,
3721+ stream : * mut :: FILE ,
3722+ ) -> :: size_t ;
3723+ pub fn fflush_unlocked ( stream : * mut :: FILE ) -> :: c_int ;
3724+ pub fn fgets_unlocked ( buf : * mut :: c_char , size : :: c_int , stream : * mut :: FILE ) -> * mut :: c_char ;
37113725}
37123726
37133727cfg_if ! {
Original file line number Diff line number Diff line change @@ -4773,7 +4773,7 @@ extern "C" {
47734773 newfd : :: c_int ,
47744774 ) -> :: c_int ;
47754775 pub fn fread_unlocked (
4776- ptr : * mut :: c_void ,
4776+ buf : * mut :: c_void ,
47774777 size : :: size_t ,
47784778 nobj : :: size_t ,
47794779 stream : * mut :: FILE ,
You can’t perform that action at this time.
0 commit comments