mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
proc: separate from sched
This commit is contained in:
@@ -15,9 +15,9 @@ typedef struct {
|
||||
|
||||
static inline int dirfd_enter(char *path, int dirfd, file_t **file, vnode_t **dirnode) {
|
||||
if (*path == '/') {
|
||||
*dirnode = sched_getroot();
|
||||
*dirnode = proc_get_root();
|
||||
} else if (dirfd == AT_FDCWD) {
|
||||
*dirnode = sched_getcwd();
|
||||
*dirnode = proc_get_cwd();
|
||||
} else {
|
||||
*file = fd_get(dirfd);
|
||||
if (file == NULL) {
|
||||
|
||||
Reference in New Issue
Block a user