#include #include #include #include <__fio.h> FILE *fopen(const char *path, const char *mode) { struct __io_file *fp = malloc(sizeof(*fp)); memset(fp, 0x0, sizeof(*fp)); int res = __fio_fopen(path, mode, fp); if (res != 0) { free(fp); return NULL; } return fp; }