musl-tcc/src/stdio/flockfile.c

10 lines
172 B
C
Raw Permalink Normal View History

2022-03-20 08:48:53 +00:00
#include "stdio_impl.h"
#include "pthread_impl.h"
void flockfile(FILE *f)
{
if (!ftrylockfile(f)) return;
__lockfile(f);
__register_locked_file(f, __pthread_self());
}