ref: fb8dbbcf81b73f635d9269048a6a1e09c029c1ed dir: /src/libc/stdio/ferror.c/
#include <stdio.h> #undef ferror int ferror(FILE *fp) { return fp->flags & _IOERR; }