修改errno,使其与relibc的保持一致 (#234)

修改errno,使其与relibc的保持一致
This commit is contained in:
houmkh
2023-04-11 17:05:33 +08:00
committed by GitHub
parent ac48398d3f
commit 79a452ce8f
20 changed files with 593 additions and 402 deletions

View File

@ -117,7 +117,7 @@ impl IndexNode for LockedPS2KeyBoardInode {
_buf: &[u8],
_data: &mut crate::filesystem::vfs::FilePrivateData,
) -> Result<usize, SystemError> {
return Err(SystemError::ENOTSUP);
return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP);
}
fn open(
@ -180,7 +180,7 @@ impl IndexNode for LockedPS2KeyBoardInode {
}
fn list(&self) -> Result<alloc::vec::Vec<alloc::string::String>, SystemError> {
return Err(SystemError::ENOTSUP);
return Err(SystemError::EOPNOTSUPP_OR_ENOTSUP);
}
}