1570af302Sopenharmony_ci#include "stdio_impl.h" 2570af302Sopenharmony_ci#ifndef __LITEOS__ 3570af302Sopenharmony_ci#include "param_check.h" 4570af302Sopenharmony_ci#endif 5570af302Sopenharmony_ci 6570af302Sopenharmony_ci#undef feof 7570af302Sopenharmony_ci 8570af302Sopenharmony_ciint feof(FILE *f) 9570af302Sopenharmony_ci{ 10570af302Sopenharmony_ci#ifndef __LITEOS__ 11570af302Sopenharmony_ci PARAM_CHECK(f); 12570af302Sopenharmony_ci#endif 13570af302Sopenharmony_ci FLOCK(f); 14570af302Sopenharmony_ci int ret = !!(f->flags & F_EOF); 15570af302Sopenharmony_ci FUNLOCK(f); 16570af302Sopenharmony_ci return ret; 17570af302Sopenharmony_ci} 18570af302Sopenharmony_ci 19570af302Sopenharmony_ciweak_alias(feof, feof_unlocked); 20570af302Sopenharmony_ciweak_alias(feof, _IO_feof_unlocked); 21