summaryrefslogtreecommitdiff
path: root/src/user/app
diff options
context:
space:
mode:
Diffstat (limited to 'src/user/app')
-rw-r--r--src/user/app/init/driver/initctl.c2
-rw-r--r--src/user/app/init/driver/ps2.c2
-rw-r--r--src/user/app/init/driver/termcook.c1
-rw-r--r--src/user/app/tests/kernel/misc.c1
-rw-r--r--src/user/app/tests/stress.c1
-rw-r--r--src/user/app/tests/tests.h2
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"