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