bits/syscall.h: add landlock syscalls from linux v5.13
[musl.git] / src / stdio / ofl.c
blobaad3d171dff35e865bab6cf57b27f91e16d03f57
1 #include "stdio_impl.h"
2 #include "lock.h"
3 #include "fork_impl.h"
5 static FILE *ofl_head;
6 static volatile int ofl_lock[1];
7 volatile int *const __stdio_ofl_lockptr = ofl_lock;
9 FILE **__ofl_lock()
11 LOCK(ofl_lock);
12 return &ofl_head;
15 void __ofl_unlock()
17 UNLOCK(ofl_lock);