summaryrefslogtreecommitdiff
path: root/src/user/app/init/driver/ps2.c
diff options
context:
space:
mode:
authordzwdz2022-07-26 22:21:52 +0200
committerdzwdz2022-07-26 22:34:22 +0200
commitd54dcb2efc4be344900a7721ac4b65b47840c5d2 (patch)
tree8d0b2a5158809fe64a40e3b362c01f1b2f22772e /src/user/app/init/driver/ps2.c
parent059ef013683e780a6603b228cd1fd8391d11494e (diff)
user/libc: exit()
What an interesting commit.
Diffstat (limited to 'src/user/app/init/driver/ps2.c')
-rw-r--r--src/user/app/init/driver/ps2.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/user/app/init/driver/ps2.c b/src/user/app/init/driver/ps2.c
index 6aed2fb..532695f 100644
--- a/src/user/app/init/driver/ps2.c
+++ b/src/user/app/init/driver/ps2.c
@@ -2,6 +2,7 @@
#include <camellia/syscalls.h>
#include <shared/container/ring.h>
#include <stdbool.h>
+#include <unistd.h>
static const char keymap_lower[] = {
@@ -79,8 +80,8 @@ static void main_loop(void) {
void ps2_drv(void) {
fd = _syscall_open("/kdev/ps2", 9, 0);
- if (fd < 0) _syscall_exit(1);
+ if (fd < 0) exit(1);
main_loop();
- _syscall_exit(0);
+ exit(0);
}