OSDN Git Service

set errno when fileno is called on a FILE with no underlying fd
[android-x86/external-musl-libc.git] / src / stdio / ofl.c
1 #include "stdio_impl.h"
2 #include "libc.h"
3
4 static FILE *ofl_head;
5 static volatile int ofl_lock[1];
6
7 FILE **__ofl_lock()
8 {
9         LOCK(ofl_lock);
10         return &ofl_head;
11 }
12
13 void __ofl_unlock()
14 {
15         UNLOCK(ofl_lock);
16 }