添加uid、gid的系统调用(暴力封装返回0) (#434)

This commit is contained in:
LoGin
2023-11-12 14:11:33 +08:00
committed by GitHub
parent ea8ad4d42e
commit 02e249f30b
2 changed files with 45 additions and 0 deletions

View File

@ -300,4 +300,24 @@ impl Syscall {
let pcb = ProcessManager::current_pcb();
Ok(pcb.pid)
}
pub fn getuid() -> Result<usize, SystemError> {
// todo: 增加credit功能之后需要修改
return Ok(0);
}
pub fn getgid() -> Result<usize, SystemError> {
// todo: 增加credit功能之后需要修改
return Ok(0);
}
pub fn geteuid() -> Result<usize, SystemError> {
// todo: 增加credit功能之后需要修改
return Ok(0);
}
pub fn getegid() -> Result<usize, SystemError> {
// todo: 增加credit功能之后需要修改
return Ok(0);
}
}