stdio: log stuff more
This commit is contained in:
parent
81815a0bdd
commit
6088031c49
@ -37,6 +37,7 @@ void sys_open(Context* context, const char* filename, int flags)
|
|||||||
context->rax = -ENOENT;
|
context->rax = -ENOENT;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
kdbgln("open(): opening %s, allocated file descriptor %d", filename, fd);
|
||||||
current_task->files[fd].open(node,
|
current_task->files[fd].open(node,
|
||||||
(bool)flags); // FIXME: Implement more flags. (right now, 1 is can_read, 0 is not)
|
(bool)flags); // FIXME: Implement more flags. (right now, 1 is can_read, 0 is not)
|
||||||
context->rax = fd;
|
context->rax = fd;
|
||||||
@ -84,6 +85,7 @@ void sys_close(Context* context, int fd)
|
|||||||
context->rax = -EBADF;
|
context->rax = -EBADF;
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
kdbgln("close(): releasing file descriptor %d", fd);
|
||||||
current_task->files[fd].close();
|
current_task->files[fd].close();
|
||||||
context->rax = 0;
|
context->rax = 0;
|
||||||
return;
|
return;
|
||||||
|
Loading…
Reference in New Issue
Block a user