summaryrefslogtreecommitdiff
path: root/src/user/bootstrap
diff options
context:
space:
mode:
authordzwdz2022-07-26 22:21:52 +0200
committerdzwdz2022-07-26 22:34:22 +0200
commitd54dcb2efc4be344900a7721ac4b65b47840c5d2 (patch)
tree8d0b2a5158809fe64a40e3b362c01f1b2f22772e /src/user/bootstrap
parent059ef013683e780a6603b228cd1fd8391d11494e (diff)
user/libc: exit()
What an interesting commit.
Diffstat (limited to 'src/user/bootstrap')
-rw-r--r--src/user/bootstrap/tar.c6
-rw-r--r--src/user/bootstrap/tar.h1
2 files changed, 4 insertions, 3 deletions
diff --git a/src/user/bootstrap/tar.c b/src/user/bootstrap/tar.c
index a392f4c..75883e6 100644
--- a/src/user/bootstrap/tar.c
+++ b/src/user/bootstrap/tar.c
@@ -1,9 +1,9 @@
+#include "tar.h"
#include <camellia/flags.h>
#include <camellia/syscalls.h>
#include <shared/mem.h>
#include <stdint.h>
-
-#include "tar.h"
+#include <unistd.h>
#define BUF_SIZE 64
@@ -36,7 +36,7 @@ void tar_driver(void *base) {
break;
}
}
- _syscall_exit(0);
+ exit(0);
}
static void *tar_open(const char *path, int len, void *base, size_t base_len) {
diff --git a/src/user/bootstrap/tar.h b/src/user/bootstrap/tar.h
index fe4d6c5..e7ab130 100644
--- a/src/user/bootstrap/tar.h
+++ b/src/user/bootstrap/tar.h
@@ -1,5 +1,6 @@
#pragma once
#include <camellia/types.h>
+#include <stddef.h>
_Noreturn void tar_driver(void *base);
void *tar_find(const char *path, size_t path_len, void *base, size_t base_len);