ref: d75c01ac6bb53fc48551d716458abf428c2687c6
dir: /lib/c/freopen.c/
#include <stdio.h> #include "syscall.h" #undef freopen FILE * freopen(const char * restrict name, const char * restrict mode, FILE * restrict fp) { if (fclose(fp) == EOF) return NULL; return _fpopen(name, mode, fp); }