mirror of
https://github.com/asterinas/asterinas.git
synced 2025-06-28 03:43:23 +00:00
Move FS things to PosixThread
This commit is contained in:
committed by
Tate, Hongliang Tian
parent
fe7e4884c9
commit
36fc1d3757
@ -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();
|
||||
|
Reference in New Issue
Block a user