Gitiles
Code Review
Sign In
gerrit-public.fairphone.software
/
platform
/
external
/
musl
/
29f3202b731185d993a399f04d2f3e3f78db5a81
/
.
/
src
/
stdio
/
flockfile.c
blob: 6806cf8b32e0c13f1b67c2d920e8485a94c42f42 [
file
] [
log
] [
blame
]
#include
"stdio_impl.h"
#include
"pthread_impl.h"
void
__register_locked_file
(
FILE
*,
pthread_t
);
void
flockfile
(
FILE
*
f
)
{
if
(!
ftrylockfile
(
f
))
return
;
__lockfile
(
f
);
__register_locked_file
(
f
,
__pthread_self
());
}