summaryrefslogtreecommitdiff
path: root/src/stdio/flockfile.c
blob: 440a36a9aecb9bfb1a08907d2c91ab9513da19e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
#include "stdio_impl.h"
#include "pthread_impl.h"

void flockfile(FILE *f)
{
	if (!libc.lockfile) {
		pthread_self();
		libc.lockfile = __lockfile;
	}
	__lockfile(f);
}