File tree 4 files changed +20
-1
lines changed
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) {
1908
1908
1909
1909
// Added in API level 28, but some tests use level 24.
1910
1910
"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 ,
1911
1913
1912
1914
_ => false ,
1913
1915
}
Original file line number Diff line number Diff line change @@ -3101,6 +3101,7 @@ ff_trigger
3101
3101
fgetc
3102
3102
fgetpos
3103
3103
fgets
3104
+ fgets_unlocked
3104
3105
fgetxattr
3105
3106
fileno
3106
3107
flistxattr
@@ -3116,6 +3117,7 @@ fprintf
3116
3117
fputc
3117
3118
fputs
3118
3119
fread
3120
+ fread_unlocked
3119
3121
free
3120
3122
freeaddrinfo
3121
3123
freeifaddrs
@@ -3144,6 +3146,7 @@ ftruncate
3144
3146
ftruncate64
3145
3147
futimens
3146
3148
fwrite
3149
+ fwrite_unlocked
3147
3150
gai_strerror
3148
3151
genlmsghdr
3149
3152
getaddrinfo
Original file line number Diff line number Diff line change @@ -3708,6 +3708,20 @@ extern "C" {
3708
3708
needle : * const :: c_void ,
3709
3709
needlelen : :: size_t ,
3710
3710
) -> * 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 ;
3711
3725
}
3712
3726
3713
3727
cfg_if ! {
Original file line number Diff line number Diff line change @@ -4773,7 +4773,7 @@ extern "C" {
4773
4773
newfd : :: c_int ,
4774
4774
) -> :: c_int ;
4775
4775
pub fn fread_unlocked (
4776
- ptr : * mut :: c_void ,
4776
+ buf : * mut :: c_void ,
4777
4777
size : :: size_t ,
4778
4778
nobj : :: size_t ,
4779
4779
stream : * mut :: FILE ,
You can’t perform that action at this time.
0 commit comments