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/ansiterm.c2
-rw-r--r--src/user/app/init/driver/ps2.c2
-rw-r--r--src/user/app/init/driver/termcook.c2
-rw-r--r--src/user/app/init/driver/tmpfs.c2
-rw-r--r--src/user/app/init/main.c6
-rw-r--r--src/user/app/init/shell.c2
-rw-r--r--src/user/app/init/tests/main.c2
-rw-r--r--src/user/app/init/tests/pipe.c4
-rw-r--r--src/user/app/init/tests/semaphore.c6
-rw-r--r--src/user/app/init/tests/stress.c4
10 files changed, 16 insertions, 16 deletions
diff --git a/src/user/app/init/driver/ansiterm.c b/src/user/app/init/driver/ansiterm.c
index df7fb23..8206e85 100644
--- a/src/user/app/init/driver/ansiterm.c
+++ b/src/user/app/init/driver/ansiterm.c
@@ -1,6 +1,6 @@
-#include <user/app/init/driver/driver.h>
#include <shared/syscalls.h>
#include <stdbool.h>
+#include <user/app/init/driver/driver.h>
struct vga_cell {
unsigned char c;
diff --git a/src/user/app/init/driver/ps2.c b/src/user/app/init/driver/ps2.c
index bc7f4f0..9bbab8e 100644
--- a/src/user/app/init/driver/ps2.c
+++ b/src/user/app/init/driver/ps2.c
@@ -1,7 +1,7 @@
-#include <user/app/init/driver/driver.h>
#include <shared/container/ring.h>
#include <shared/syscalls.h>
#include <stdbool.h>
+#include <user/app/init/driver/driver.h>
static const char keymap_lower[] = {
diff --git a/src/user/app/init/driver/termcook.c b/src/user/app/init/driver/termcook.c
index 4142322..2ddd3f9 100644
--- a/src/user/app/init/driver/termcook.c
+++ b/src/user/app/init/driver/termcook.c
@@ -1,6 +1,6 @@
#include <shared/syscalls.h>
-#include <user/lib/stdlib.h>
#include <user/app/init/driver/driver.h>
+#include <user/lib/stdlib.h>
static void w_output(handle_t output, const char *buf, size_t len) {
size_t pos = 0;
diff --git a/src/user/app/init/driver/tmpfs.c b/src/user/app/init/driver/tmpfs.c
index 6e5b45e..c6cc0f3 100644
--- a/src/user/app/init/driver/tmpfs.c
+++ b/src/user/app/init/driver/tmpfs.c
@@ -1,7 +1,7 @@
-#include <user/lib/malloc.h>
#include <shared/mem.h>
#include <shared/syscalls.h>
#include <stddef.h>
+#include <user/lib/malloc.h>
struct node {
const char *name;
diff --git a/src/user/app/init/main.c b/src/user/app/init/main.c
index fe06fab..4c4bf4e 100644
--- a/src/user/app/init/main.c
+++ b/src/user/app/init/main.c
@@ -1,12 +1,12 @@
#include <shared/flags.h>
#include <shared/syscalls.h>
#include <stdint.h>
-#include <user/app/init/shell.h>
#include <user/app/init/driver/driver.h>
-#include <user/lib/fs/misc.h>
+#include <user/app/init/shell.h>
+#include <user/app/init/tests/main.h>
#include <user/lib/elfload.h>
+#include <user/lib/fs/misc.h>
#include <user/lib/stdlib.h>
-#include <user/app/init/tests/main.h>
__attribute__((visibility("hidden")))
extern char _image_base[];
diff --git a/src/user/app/init/shell.c b/src/user/app/init/shell.c
index cda8a65..f420208 100644
--- a/src/user/app/init/shell.c
+++ b/src/user/app/init/shell.c
@@ -1,9 +1,9 @@
#include <shared/syscalls.h>
#include <stdbool.h>
#include <user/app/init/shell.h>
+#include <user/app/init/tests/main.h>
#include <user/lib/elfload.h>
#include <user/lib/stdlib.h>
-#include <user/app/init/tests/main.h>
static bool isspace(char c) {
return c == ' ' || c == '\t' || c == '\n';
diff --git a/src/user/app/init/tests/main.c b/src/user/app/init/tests/main.c
index 5db6324..015a3be 100644
--- a/src/user/app/init/tests/main.c
+++ b/src/user/app/init/tests/main.c
@@ -3,8 +3,8 @@
#include <shared/execbuf.h>
#include <shared/flags.h>
#include <shared/syscalls.h>
-#include <user/lib/stdlib.h>
#include <user/app/init/tests/main.h>
+#include <user/lib/stdlib.h>
static void run_forked(void (*fn)()) {
if (!fork()) {
diff --git a/src/user/app/init/tests/pipe.c b/src/user/app/init/tests/pipe.c
index e7724e9..54025d0 100644
--- a/src/user/app/init/tests/pipe.c
+++ b/src/user/app/init/tests/pipe.c
@@ -1,8 +1,8 @@
#define TEST_MACROS
-#include <user/lib/stdlib.h>
-#include <user/app/init/tests/main.h>
#include <shared/flags.h>
#include <shared/syscalls.h>
+#include <user/app/init/tests/main.h>
+#include <user/lib/stdlib.h>
static const char *pipe_msgs[2] = {"hello", "world"};
diff --git a/src/user/app/init/tests/semaphore.c b/src/user/app/init/tests/semaphore.c
index 0bfa979..66ea4ba 100644
--- a/src/user/app/init/tests/semaphore.c
+++ b/src/user/app/init/tests/semaphore.c
@@ -1,9 +1,9 @@
#define TEST_MACROS
-#include <user/lib/esemaphore.h>
-#include <user/lib/stdlib.h>
-#include <user/app/init/tests/main.h>
#include <shared/flags.h>
#include <shared/syscalls.h>
+#include <user/app/init/tests/main.h>
+#include <user/lib/esemaphore.h>
+#include <user/lib/stdlib.h>
static void odd(handle_t out, struct evil_sem *sem1, struct evil_sem *sem2) {
_syscall_write(out, "1", 1, -1);
diff --git a/src/user/app/init/tests/stress.c b/src/user/app/init/tests/stress.c
index 9223d01..9af1706 100644
--- a/src/user/app/init/tests/stress.c
+++ b/src/user/app/init/tests/stress.c
@@ -1,8 +1,8 @@
#define TEST_MACROS
-#include <user/lib/stdlib.h>
-#include <user/app/init/tests/main.h>
#include <shared/flags.h>
#include <shared/syscalls.h>
+#include <user/app/init/tests/main.h>
+#include <user/lib/stdlib.h>
static void run_forked(void (*fn)()) {
if (!fork()) {