mirror of
https://github.com/wiiu-env/wut.git
synced 2025-01-06 14:48:17 +01:00
Implement fs_chmod in devoptab
This commit is contained in:
parent
98966f020f
commit
6d371d35bf
11
crt/fs_dev.c
11
crt/fs_dev.c
@ -938,10 +938,14 @@ fs_chmod(struct _reent *r,
|
||||
return -1;
|
||||
}
|
||||
|
||||
rc = FSChangeMode(fsClient, fsCmd, path_fix, (FSMode)mode, -1)
|
||||
free(path_fix);
|
||||
|
||||
//TODO: FSChangeMode
|
||||
r->_errno = ENOSYS;
|
||||
if (rc >= 0) {
|
||||
return 0;
|
||||
}
|
||||
|
||||
r->_errno = fs_translate_error(rc);
|
||||
return -1;
|
||||
}
|
||||
|
||||
@ -950,7 +954,8 @@ fs_fchmod(struct _reent *r,
|
||||
int fd,
|
||||
mode_t mode)
|
||||
{
|
||||
//TODO: FSChangeMode
|
||||
//TODO: FSChangeMode and FSStatFile?
|
||||
|
||||
r->_errno = ENOSYS;
|
||||
return -1;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user