projects
/
musl
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
6806cf8b32e0c13f1b67c2d920e8485a94c42f42
[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
}