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