[kernel] Add the handle_close syscallnnAdd a generic handle_close syscall and use it in j6::channel when failing to open

This commit is contained in:
2024-04-24 15:48:00 -07:00
parent ed38e989b1
commit 182d3b0a6a
3 changed files with 16 additions and 2 deletions

View File

@@ -32,4 +32,13 @@ handle_clone(j6_handle_t orig, j6_handle_t *clone, uint32_t mask)
return j6_status_ok;
}
j6_status_t
handle_close(j6_handle_t hnd)
{
process &p = process::current();
p.remove_handle(hnd);
return j6_status_ok;
}
} // namespace syscalls