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