musl-tcc/src/stdio/ofl_add.c

12 lines
172 B
C
Raw Permalink Normal View History

2022-03-20 08:48:53 +00:00
#include "stdio_impl.h"
FILE *__ofl_add(FILE *f)
{
FILE **head = __ofl_lock();
f->next = *head;
if (*head) (*head)->prev = f;
*head = f;
__ofl_unlock();
return f;
}