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