add feof, ferror, clearerr