musl/src/stdio/flockfile.c

12 lines
169 B
C
Raw Normal View History

#include "stdio_impl.h"
#include "pthread_impl.h"
void flockfile(FILE *f)
{
if (!libc.lockfile) {
pthread_self();
libc.lockfile = __lockfile;
}
__lockfile(f);
}