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