proc: separate from sched

This commit is contained in:
Matheus
2024-09-21 22:43:16 -03:00
parent 77c39fdda3
commit cc6477d46d
19 changed files with 430 additions and 383 deletions
+2 -2
View File
@@ -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) {