From d54dcb2efc4be344900a7721ac4b65b47840c5d2 Mon Sep 17 00:00:00 2001 From: dzwdz Date: Tue, 26 Jul 2022 22:21:52 +0200 Subject: user/libc: exit() What an interesting commit. --- src/user/app/testelf/main.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/user/app/testelf') 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 #include #include +#include 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); } -- cgit v1.2.3