kernel: close syscall

This commit is contained in:
Matheus
2023-05-10 20:43:51 -03:00
parent 70c5e992cc
commit eb6edee82f
3 changed files with 23 additions and 6 deletions
+13
View File
@@ -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;
}