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