Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
5978eb703ce0e64dd778a88c1ffffb76fe5e2202
/
.
/
src
/
stdio
/
flockfile.c
blob: a196c1efe0af11663f5e0537a0de1db02c3982ef [
file
] [
log
] [
blame
]
#include
"stdio_impl.h"
#include
"pthread_impl.h"
void
flockfile
(
FILE
*
f
)
{
while
(
ftrylockfile
(
f
))
{
int
owner
=
f
->
lock
;
if
(
owner
)
__wait
(&
f
->
lock
,
&
f
->
waiters
,
owner
,
1
);
}
}