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