implement flockfile api, rework stdio locking
[musl] / src / stdio / flockfile.c
1 #include "stdio_impl.h"
2 #include "pthread_impl.h"
3
4 void flockfile(FILE *f)
5 {
6         pthread_self();
7         libc.lockfile = __lockfile;
8         __lockfile(f);
9 }