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