projects
/
oweals
/
musl.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
fix treatment by fgetws of encoding errors as eof
[oweals/musl.git]
/
src
/
stdio
/
flockfile.c
1
#include "stdio_impl.h"
2
#include "pthread_impl.h"
3
4
void flockfile(FILE *f)
5
{
6
while (ftrylockfile(f)) {
7
int owner = f->lock;
8
if (owner) __wait(&f->lock, &f->waiters, owner, 1);
9
}
10
}