master
 1#include "stdio_impl.h"
 2#include "lock.h"
 3#include "fork_impl.h"
 4
 5static FILE *ofl_head;
 6static volatile int ofl_lock[1];
 7volatile int *const __stdio_ofl_lockptr = ofl_lock;
 8
 9FILE **__ofl_lock()
10{
11	LOCK(ofl_lock);
12	return &ofl_head;
13}
14
15void __ofl_unlock()
16{
17	UNLOCK(ofl_lock);
18}