mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
kernel: close syscall
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
#include <kernel/syscalls.h>
|
||||
#include <kernel/file.h>
|
||||
|
||||
syscallret_t syscall_close(context_t *context, int fd) {
|
||||
syscallret_t ret = {
|
||||
.ret = -1
|
||||
};
|
||||
|
||||
ret.errno = fd_close(fd);
|
||||
ret.ret = 0;
|
||||
|
||||
return ret;
|
||||
}
|
||||
Reference in New Issue
Block a user