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