summaryrefslogtreecommitdiff
path: root/src/user/app/testelf
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/testelf
parent059ef013683e780a6603b228cd1fd8391d11494e (diff)
user/libc: exit()
What an interesting commit.
Diffstat (limited to 'src/user/app/testelf')
-rw-r--r--src/user/app/testelf/main.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/user/app/testelf/main.c b/src/user/app/testelf/main.c
index de7b965..93a5e11 100644
--- a/src/user/app/testelf/main.c
+++ b/src/user/app/testelf/main.c
@@ -2,6 +2,7 @@
#include <stdio.h>
#include <user/lib/elf.h>
#include <user/lib/elfload.h>
+#include <unistd.h>
const char *str = "Hello!\n", *str2 = "World.\n";
@@ -13,5 +14,5 @@ int main(void) {
printf("loaded at %x\n", &_image_base);
printf(str);
printf(str2);
- _syscall_exit(0);
+ exit(0);
}