OLD | NEW |
---|---|
1 #include "stdio_impl.h" | 1 #include "stdio_impl.h" |
2 | 2 |
3 #undef feof | 3 #undef feof |
4 | 4 |
5 int feof(FILE *f) | 5 int feof(FILE* f) { |
6 { | 6 FLOCK(f); |
7 » FLOCK(f); | 7 int ret = !!(f->flags & F_EOF); |
8 » int ret = !!(f->flags & F_EOF); | 8 FUNLOCK(f); |
9 » FUNLOCK(f); | 9 return ret; |
10 » return ret; | |
11 } | 10 } |
12 | 11 |
13 weak_alias(feof, feof_unlocked); | 12 weak_alias(feof, feof_unlocked); |
14 weak_alias(feof, _IO_feof_unlocked); | 13 weak_alias(feof, _IO_feof_unlocked); |
OLD | NEW |