summaryrefslogtreecommitdiff
path: root/lib/libc/stdio/fileno.c
blob: 4fa47eb448b0c904b920967baa27a4a62c7dc55e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
#include <stdio.h>

int fileno(FILE *stream)
{
	int r;

	flockfile(stream);
	r = fileno_unlocked(stream);
	funlockfile(stream);

	return r;
}