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