repo.or.cz
/
musl.git
/
blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
log
|
graphiclog1
|
graphiclog2
|
commit
|
commitdiff
|
tree
|
refs
|
edit
|
fork
blame
|
history
|
raw
|
HEAD
rewrite core of the glob implementation for correctness & optimization
[musl.git]
/
src
/
stdio
/
flockfile.c
blob
8e2206514c67db4bd05aef79484ad110a07170ed
1
#include
"stdio_impl.h"
2
#include
"pthread_impl.h"
3
4
void
flockfile
(
FILE
*
f
)
5
{
6
if
(!
ftrylockfile
(
f
))
return
;
7
__lockfile
(
f
);
8
__register_locked_file
(
f
,
__pthread_self
());
9
}