mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-20 13:06:33 +00:00
Move FS things to PosixThread
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fe7e4884c9
commit
36fc1d3757
@ -5,6 +5,6 @@ use crate::prelude::*;
|
||||
|
||||
pub fn sys_umask(mask: u16, ctx: &Context) -> Result<SyscallReturn> {
|
||||
debug!("mask = 0o{:o}", mask);
|
||||
let old_mask = ctx.process.umask().write().set(mask);
|
||||
let old_mask = ctx.posix_thread.fs().umask().write().set(mask);
|
||||
Ok(SyscallReturn::Return(old_mask as _))
|
||||
}
|
||||
|
Reference in New Issue
Block a user