Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
6651ef1f060738ee1f50cac1fe6d8ce64c359022
/
.
/
src
/
stdio
/
funlockfile.c
blob: 30a07ef4b37433d46ec5ef44e9c67001a5841e7e [
file
] [
log
] [
blame
]
#include
"stdio_impl.h"
#include
"pthread_impl.h"
void
__unlist_locked_file
(
FILE
*);
void
funlockfile
(
FILE
*
f
)
{
if
(
f
->
lockcount
==
1
)
{
__unlist_locked_file
(
f
);
f
->
lockcount
=
0
;
__unlockfile
(
f
);
}
else
{
f
->
lockcount
--;
}
}