Sign in
android
/
platform
/
external
/
musl
/
refs/heads/android13-d4-s2-release
/
.
/
src
/
stdio
/
funlockfile.c
blob: 44d8b0df5cff33216ca0968f8789fac3bb8b4a25 [
file
] [
log
] [
blame
] [
edit
]
#include
"stdio_impl.h"
#include
"pthread_impl.h"
void
funlockfile
(
FILE
*
f
)
{
if
(
f
->
lockcount
==
1
)
{
__unlist_locked_file
(
f
);
f
->
lockcount
=
0
;
__unlockfile
(
f
);
}
else
{
f
->
lockcount
--;
}
}