aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/syscall/actions/sys_exit.c
diff options
context:
space:
mode:
authorMarvin Borner2020-05-02 15:44:11 +0200
committerMarvin Borner2020-05-02 15:44:11 +0200
commitaa8a8811818331cf511681327e3ba95e456f0d33 (patch)
tree852c314dae76e756863f94639ff45eff72834d5d /src/kernel/syscall/actions/sys_exit.c
parent2a0e810a473dea57fd1cd53ea424b61269c029ba (diff)
Added many syscalls to get better POSIX compliance
Diffstat (limited to 'src/kernel/syscall/actions/sys_exit.c')
-rw-r--r--src/kernel/syscall/actions/sys_exit.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/src/kernel/syscall/actions/sys_exit.c b/src/kernel/syscall/actions/sys_exit.c
new file mode 100644
index 0000000..e2761fd
--- /dev/null
+++ b/src/kernel/syscall/actions/sys_exit.c
@@ -0,0 +1,8 @@
+#include <stdint.h>
+#include <kernel/tasks/process.h>
+
+uint32_t sys_exit(uint32_t code)
+{
+ current_proc->state = PROC_ASLEEP;
+ return code;
+} \ No newline at end of file