Support for getcwd and chdir system calls
Closed this issue · 1 comments
cahirwpz commented
- Store vnode to current working directory somewhere in
proc
structure:- FreeBSD keeps it in
p_fd
that contains filedesc.fd_cdir, - NetBSD in
p_cwdi
which contains cwdinfo.cwdi_cdir.
- FreeBSD keeps it in
- Improvements to
vfs_lookup
:- support relative path lookups with
..
and.
at the beginning or in the middle of a path, - normalize path by removing consecutive
/
,./
, etc.
- support relative path lookups with
cahirwpz commented
Already done!