#include #include #include #include "fio.h" #include "filesystem.h" int _open_r(struct _reent * reent, const char * path, int flags, int mode) { int r = fs_open(path, flags, mode); if (r >= 0) return r; reent->_errno = EACCES; return -1; }