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