split internal lock API out of libc.h, creating lock.h
[musl.git] / src / stdio / ofl.c
blobf2d3215a9e7d7eec8f32351991f3ec8b4d270fc9
1 #include "stdio_impl.h"
2 #include "lock.h"
4 static FILE *ofl_head;
5 static volatile int ofl_lock[1];
7 FILE **__ofl_lock()
9 LOCK(ofl_lock);
10 return &ofl_head;
13 void __ofl_unlock()
15 UNLOCK(ofl_lock);