remove inclusion guard hacks for sys/kd.h
[musl] / src / stdio / flockfile.c
1 #include "stdio_impl.h"
2 #include "pthread_impl.h"
3
4 void __register_locked_file(FILE *, pthread_t);
5
6 void flockfile(FILE *f)
7 {
8         if (!ftrylockfile(f)) return;
9         __lockfile(f);
10         __register_locked_file(f, __pthread_self());
11 }