mirror of
https://github.com/Mathewnd/Astral.git
synced 2026-10-27 12:48:22 +00:00
14 lines
208 B
C
14 lines
208 B
C
#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;
|
|
}
|