5eb0d33e ^
dba68bf9 ^
1 2 3 4 5
6 7 8 9
10
#include "stdio_impl.h" #include "pthread_impl.h" void flockfile(FILE *f) { while (ftrylockfile(f)) { int owner = f->lock; if (owner) __wait(&f->lock, &f->waiters, owner, 1); } }