mirror of
https://github.com/DragonOS-Community/DragonOS.git
synced 2025-06-23 08:03:22 +00:00
添加uid、gid的系统调用(暴力封装返回0) (#434)
This commit is contained in:
@ -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);
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user