summaryrefslogblamecommitdiff
path: root/src/stdio/ofl_add.c
blob: d7de9f15a13ee3fc5f7118ce35dea64bb65cbd5d (plain) (tree)
1
2
3
4
5
6
7
8
9
10
11










                                     
#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;
}