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