Move FS things to PosixThread

This commit is contained in:
Ruihan Li
2024-12-01 11:41:23 +08:00
committed by Tate, Hongliang Tian
parent fe7e4884c9
commit 36fc1d3757
65 changed files with 268 additions and 215 deletions

View File

@ -7,9 +7,10 @@ use crate::{
};
pub fn sys_getcwd(buf: Vaddr, len: usize, ctx: &Context) -> Result<SyscallReturn> {
let current = ctx.process;
let current = ctx.posix_thread;
let dirent = current
.fs()
.resolver()
.read()
.lookup(&FsPath::new(AT_FDCWD, "").unwrap())
.unwrap();