write system call

This commit is contained in:
Matheus
2022-08-20 13:01:26 -03:00
parent b3b5981f7a
commit bd94ce8134
4 changed files with 76 additions and 4 deletions
+2 -2
View File
@@ -327,8 +327,8 @@ void sched_runinit(){
}
stdinfd->offset = stdoutfd->offset = stderrfd->offset = 0;
stdinfd->flags = O_RDONLY;
stdoutfd->flags = stderrfd->flags = O_WRONLY;
stdinfd->flags = O_RDONLY + 1;
stdoutfd->flags = stderrfd->flags = O_WRONLY + 1;
vnode_t* node;
ret = vfs_open(&node, vfs_root(), "sbin/init");