1 #include "stdio_impl.h" 2 #ifndef __LITEOS__ 3 #include "param_check.h" 4 #endif 5 rewind(FILE * f)6 void rewind(FILE *f) 7 { 8 #ifndef __LITEOS__ 9 PARAM_CHECK(f); 10 #endif 11 FLOCK(f); 12 __fseeko_unlocked(f, 0, SEEK_SET); 13 f->flags &= ~F_ERR; 14 FUNLOCK(f); 15 } 16