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