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