projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
remove spurious declaration of __getdents from readdir.c
[musl]
/
src
/
stdio
/
flockfile.c
1
#include "stdio_impl.h"
2
#include "pthread_impl.h"
3
4
void __register_locked_file(FILE *, pthread_t);
5
6
void flockfile(FILE *f)
7
{
8
if (!ftrylockfile(f)) return;
9
__lockfile(f);
10
__register_locked_file(f, __pthread_self());
11
}