diff options
author | dzwdz | 2022-08-28 23:54:47 +0200 |
---|---|---|
committer | dzwdz | 2022-08-28 23:54:47 +0200 |
commit | edb7fc07bf93e4a1883cccf45ad7a4b2cbf390d9 (patch) | |
tree | 1df1e95e52d54d538d345cbf455bed096d9a1bb0 /src/user/app | |
parent | f2eb3a78c7b69c4b8e118d91327cc5c1016481fc (diff) |
user/lua: prepare libc headers
Diffstat (limited to 'src/user/app')
-rw-r--r-- | src/user/app/init/driver/initctl.c | 2 | ||||
-rw-r--r-- | src/user/app/init/driver/ps2.c | 2 | ||||
-rw-r--r-- | src/user/app/init/driver/termcook.c | 1 | ||||
-rw-r--r-- | src/user/app/tests/kernel/misc.c | 1 | ||||
-rw-r--r-- | src/user/app/tests/stress.c | 1 | ||||
-rw-r--r-- | src/user/app/tests/tests.h | 2 |
6 files changed, 6 insertions, 3 deletions
diff --git a/src/user/app/init/driver/initctl.c b/src/user/app/init/driver/initctl.c index 34171de..7f5fc20 100644 --- a/src/user/app/init/driver/initctl.c +++ b/src/user/app/init/driver/initctl.c @@ -2,8 +2,8 @@ #include <camellia/syscalls.h> #include <ctype.h> #include <errno.h> +#include <stdlib.h> #include <string.h> -#include <unistd.h> #include <user/lib/compat.h> void initctl_drv(handle_t killswitch) { diff --git a/src/user/app/init/driver/ps2.c b/src/user/app/init/driver/ps2.c index 85b83b7..0d344ed 100644 --- a/src/user/app/init/driver/ps2.c +++ b/src/user/app/init/driver/ps2.c @@ -2,7 +2,7 @@ #include <camellia/syscalls.h> #include <shared/container/ring.h> #include <stdbool.h> -#include <unistd.h> +#include <stdlib.h> #include <user/lib/compat.h> diff --git a/src/user/app/init/driver/termcook.c b/src/user/app/init/driver/termcook.c index 83b46be..c23d76f 100644 --- a/src/user/app/init/driver/termcook.c +++ b/src/user/app/init/driver/termcook.c @@ -1,6 +1,7 @@ #include "driver.h" #include <camellia/syscalls.h> #include <stdio.h> +#include <stdlib.h> #include <unistd.h> static void w_output(handle_t output, const char *buf, size_t len) { diff --git a/src/user/app/tests/kernel/misc.c b/src/user/app/tests/kernel/misc.c index 01e041d..e22cba2 100644 --- a/src/user/app/tests/kernel/misc.c +++ b/src/user/app/tests/kernel/misc.c @@ -3,6 +3,7 @@ #include <camellia/flags.h> #include <camellia/syscalls.h> #include <string.h> +#include <unistd.h> static void test_fault_kill(void) { if (!fork()) { /* invalid memory access */ diff --git a/src/user/app/tests/stress.c b/src/user/app/tests/stress.c index 9db752f..1df462a 100644 --- a/src/user/app/tests/stress.c +++ b/src/user/app/tests/stress.c @@ -1,6 +1,7 @@ #include "tests.h" #include <camellia/flags.h> #include <camellia/syscalls.h> +#include <stdlib.h> #include <unistd.h> static void run_forked(void (*fn)()) { diff --git a/src/user/app/tests/tests.h b/src/user/app/tests/tests.h index d092115..b47e9b9 100644 --- a/src/user/app/tests/tests.h +++ b/src/user/app/tests/tests.h @@ -1,7 +1,7 @@ #pragma once #include <camellia/syscalls.h> #include <stdio.h> -#include <unistd.h> +#include <stdlib.h> #define TMPFILEPATH "/tmp/.test_internal" |