/*---------------------------------------------------------------------------*/ int _stat_r(struct _reent *r, char *name, struct stat *st) { int ret = -1; PRINTF("_stat_r '%s' \n", name); r->_errno = ENODEV; // no such device #ifdef MODULE_FAT ret = ff_stat_r(r, name, st); #endif PRINTF("_stat_r [%i] errno %i\n", ret, r->_errno); return ret; }
/*---------------------------------------------------------------------------*/ int _stat_r(struct _reent *r, char *name, struct stat *st) { /* to get rid of gcc warnings */ (void) name; (void) st; int ret = -1; PRINTF("_stat_r '%s' \n", name); r->_errno = ENODEV; // no such device #ifdef MODULE_FAT ret = ff_stat_r(r, name, st); #endif PRINTF("_stat_r [%i] errno %i\n", ret, r->_errno); return ret; }