#include "file.h" int ferror(struct __opaque_file *stream) { return (stream->f_flags & FILE_ERR) != 0; }