Sign in
cobalt
/
cobalt
/
b48d5d342d8a80b19c4a69b353cdb8fdc6ab3789
/
.
/
third_party
/
musl
/
src
/
stdio
/
flockfile.c
blob: 8e2206514c67db4bd05aef79484ad110a07170ed [
file
] [
log
] [
blame
]
#include
"stdio_impl.h"
#include
"pthread_impl.h"
void
flockfile
(
FILE
*
f
)
{
if
(!
ftrylockfile
(
f
))
return
;
__lockfile
(
f
);
__register_locked_file
(
f
,
__pthread_self
());
}