Implement fs_chmod in devoptab

This commit is contained in:
shinyquagsire23 2016-08-26 16:35:30 -07:00
parent 98966f020f
commit 6d371d35bf

View File

@ -938,10 +938,14 @@ fs_chmod(struct _reent *r,
return -1; return -1;
} }
rc = FSChangeMode(fsClient, fsCmd, path_fix, (FSMode)mode, -1)
free(path_fix); free(path_fix);
//TODO: FSChangeMode if (rc >= 0) {
r->_errno = ENOSYS; return 0;
}
r->_errno = fs_translate_error(rc);
return -1; return -1;
} }
@ -950,7 +954,8 @@ fs_fchmod(struct _reent *r,
int fd, int fd,
mode_t mode) mode_t mode)
{ {
//TODO: FSChangeMode //TODO: FSChangeMode and FSStatFile?
r->_errno = ENOSYS; r->_errno = ENOSYS;
return -1; return -1;
} }