Sign in
fuchsia
/
fuchsia
/
refs/heads/releases/canary
/
.
/
zircon
/
third_party
/
ulib
/
musl
/
src
/
stdio
/
flockfile.c
blob: 64ba1e85462810c10ed0ed9359a0684368577170 [
file
] [
log
] [
blame
]
#include
"futex_impl.h"
#include
"stdio_impl.h"
void
flockfile
(
FILE
*
f
)
{
while
(
ftrylockfile
(
f
))
{
int
owner
=
f
->
lock
;
if
(
owner
)
__wait
(&
f
->
lock
,
&
f
->
waiters
,
owner
);
}
}