aboutsummaryrefslogtreecommitdiff
path: root/src/stdio/feof.c
blob: 5adb3dfba6a398a2a7206da457a1e263fe6a7d57 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
#include "stdio_impl.h"

#undef feof

int feof(FILE *f)
{
	FLOCK(f);
	int ret = !!(f->flags & F_EOF);
	FUNLOCK(f);
	return ret;
}

weak_alias(feof, feof_unlocked);
weak_alias(feof, _IO_feof_unlocked);


#ifdef TEST
int
main(void) {
	return 0;
}
#endif