diff options
author | dzwdz | 2022-07-24 15:07:57 +0200 |
---|---|---|
committer | dzwdz | 2022-07-24 15:07:57 +0200 |
commit | 9f3fdb830f61cd8c8c1f1db9d03cba1c546c1a7e (patch) | |
tree | f5ec030c736f5201332c51cb99169b288185b84b /src/user | |
parent | 0228be3fd404cdebecf6d21b8964f6063f12dfbe (diff) |
user: change the directory structure to prepare for multiple binaries
Diffstat (limited to 'src/user')
-rw-r--r-- | src/user/app/init/driver/ansiterm.c (renamed from src/user/driver/ansiterm.c) | 2 | ||||
-rw-r--r-- | src/user/app/init/driver/driver.h (renamed from src/user/driver/driver.h) | 0 | ||||
-rw-r--r-- | src/user/app/init/driver/ps2.c (renamed from src/user/driver/ps2.c) | 2 | ||||
-rw-r--r-- | src/user/app/init/driver/tar.c (renamed from src/user/fs/tar.c) | 0 | ||||
-rw-r--r-- | src/user/app/init/driver/tar.h (renamed from src/user/fs/tar.h) | 0 | ||||
-rw-r--r-- | src/user/app/init/driver/termcook.c (renamed from src/user/driver/termcook.c) | 2 | ||||
-rw-r--r-- | src/user/app/init/driver/tmpfs.c (renamed from src/user/driver/tmpfs.c) | 0 | ||||
-rw-r--r-- | src/user/app/init/main.c (renamed from src/user/app/main.c) | 10 | ||||
-rw-r--r-- | src/user/app/init/shell.c (renamed from src/user/app/shell.c) | 4 | ||||
-rw-r--r-- | src/user/app/init/shell.h (renamed from src/user/app/shell.h) | 0 | ||||
-rw-r--r-- | src/user/app/init/tests/main.c (renamed from src/user/tests/main.c) | 2 | ||||
-rw-r--r-- | src/user/app/init/tests/main.h (renamed from src/user/tests/main.h) | 0 | ||||
-rw-r--r-- | src/user/app/init/tests/pipe.c (renamed from src/user/tests/pipe.c) | 2 | ||||
-rw-r--r-- | src/user/app/init/tests/semaphore.c (renamed from src/user/tests/semaphore.c) | 2 | ||||
-rw-r--r-- | src/user/app/init/tests/stress.c (renamed from src/user/tests/stress.c) | 2 | ||||
-rw-r--r-- | src/user/lib/fs/misc.c (renamed from src/user/fs/misc.c) | 2 | ||||
-rw-r--r-- | src/user/lib/fs/misc.h (renamed from src/user/fs/misc.h) | 0 |
17 files changed, 15 insertions, 15 deletions
diff --git a/src/user/driver/ansiterm.c b/src/user/app/init/driver/ansiterm.c index 4b9f0d0..df7fb23 100644 --- a/src/user/driver/ansiterm.c +++ b/src/user/app/init/driver/ansiterm.c @@ -1,4 +1,4 @@ -#include <user/driver/driver.h> +#include <user/app/init/driver/driver.h> #include <shared/syscalls.h> #include <stdbool.h> diff --git a/src/user/driver/driver.h b/src/user/app/init/driver/driver.h index d6e7343..d6e7343 100644 --- a/src/user/driver/driver.h +++ b/src/user/app/init/driver/driver.h diff --git a/src/user/driver/ps2.c b/src/user/app/init/driver/ps2.c index fd81882..bc7f4f0 100644 --- a/src/user/driver/ps2.c +++ b/src/user/app/init/driver/ps2.c @@ -1,4 +1,4 @@ -#include <user/driver/driver.h> +#include <user/app/init/driver/driver.h> #include <shared/container/ring.h> #include <shared/syscalls.h> #include <stdbool.h> diff --git a/src/user/fs/tar.c b/src/user/app/init/driver/tar.c index 60deccd..60deccd 100644 --- a/src/user/fs/tar.c +++ b/src/user/app/init/driver/tar.c diff --git a/src/user/fs/tar.h b/src/user/app/init/driver/tar.h index c1dee78..c1dee78 100644 --- a/src/user/fs/tar.h +++ b/src/user/app/init/driver/tar.h diff --git a/src/user/driver/termcook.c b/src/user/app/init/driver/termcook.c index 56ac77c..4142322 100644 --- a/src/user/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/driver/driver.h> +#include <user/app/init/driver/driver.h> static void w_output(handle_t output, const char *buf, size_t len) { size_t pos = 0; diff --git a/src/user/driver/tmpfs.c b/src/user/app/init/driver/tmpfs.c index 6e5b45e..6e5b45e 100644 --- a/src/user/driver/tmpfs.c +++ b/src/user/app/init/driver/tmpfs.c diff --git a/src/user/app/main.c b/src/user/app/init/main.c index 9f4d50c..a2c5e46 100644 --- a/src/user/app/main.c +++ b/src/user/app/init/main.c @@ -1,13 +1,13 @@ #include <shared/flags.h> #include <shared/syscalls.h> #include <stdint.h> -#include <user/app/shell.h> -#include <user/driver/driver.h> -#include <user/fs/misc.h> -#include <user/fs/tar.h> +#include <user/app/init/shell.h> +#include <user/app/init/driver/driver.h> +#include <user/lib/fs/misc.h> +#include <user/app/init/driver/tar.h> #include <user/lib/elfload.h> #include <user/lib/stdlib.h> -#include <user/tests/main.h> +#include <user/app/init/tests/main.h> __attribute__((visibility("hidden"))) extern char _image_base[]; diff --git a/src/user/app/shell.c b/src/user/app/init/shell.c index 9085aed..cda8a65 100644 --- a/src/user/app/shell.c +++ b/src/user/app/init/shell.c @@ -1,9 +1,9 @@ #include <shared/syscalls.h> #include <stdbool.h> -#include <user/app/shell.h> +#include <user/app/init/shell.h> #include <user/lib/elfload.h> #include <user/lib/stdlib.h> -#include <user/tests/main.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/shell.h b/src/user/app/init/shell.h index fb27410..fb27410 100644 --- a/src/user/app/shell.h +++ b/src/user/app/init/shell.h diff --git a/src/user/tests/main.c b/src/user/app/init/tests/main.c index 97714e7..5db6324 100644 --- a/src/user/tests/main.c +++ b/src/user/app/init/tests/main.c @@ -4,7 +4,7 @@ #include <shared/flags.h> #include <shared/syscalls.h> #include <user/lib/stdlib.h> -#include <user/tests/main.h> +#include <user/app/init/tests/main.h> static void run_forked(void (*fn)()) { if (!fork()) { diff --git a/src/user/tests/main.h b/src/user/app/init/tests/main.h index ed11c5e..ed11c5e 100644 --- a/src/user/tests/main.h +++ b/src/user/app/init/tests/main.h diff --git a/src/user/tests/pipe.c b/src/user/app/init/tests/pipe.c index 2e964f9..e7724e9 100644 --- a/src/user/tests/pipe.c +++ b/src/user/app/init/tests/pipe.c @@ -1,6 +1,6 @@ #define TEST_MACROS #include <user/lib/stdlib.h> -#include <user/tests/main.h> +#include <user/app/init/tests/main.h> #include <shared/flags.h> #include <shared/syscalls.h> diff --git a/src/user/tests/semaphore.c b/src/user/app/init/tests/semaphore.c index 836edf5..0bfa979 100644 --- a/src/user/tests/semaphore.c +++ b/src/user/app/init/tests/semaphore.c @@ -1,7 +1,7 @@ #define TEST_MACROS #include <user/lib/esemaphore.h> #include <user/lib/stdlib.h> -#include <user/tests/main.h> +#include <user/app/init/tests/main.h> #include <shared/flags.h> #include <shared/syscalls.h> diff --git a/src/user/tests/stress.c b/src/user/app/init/tests/stress.c index 5d29e87..9223d01 100644 --- a/src/user/tests/stress.c +++ b/src/user/app/init/tests/stress.c @@ -1,6 +1,6 @@ #define TEST_MACROS #include <user/lib/stdlib.h> -#include <user/tests/main.h> +#include <user/app/init/tests/main.h> #include <shared/flags.h> #include <shared/syscalls.h> diff --git a/src/user/fs/misc.c b/src/user/lib/fs/misc.c index fa1115d..9522cfa 100644 --- a/src/user/fs/misc.c +++ b/src/user/lib/fs/misc.c @@ -1,4 +1,4 @@ -#include <user/fs/misc.h> +#include <user/lib/fs/misc.h> #include <user/lib/stdlib.h> #include <shared/flags.h> #include <shared/mem.h> diff --git a/src/user/fs/misc.h b/src/user/lib/fs/misc.h index 3a8b071..3a8b071 100644 --- a/src/user/fs/misc.h +++ b/src/user/lib/fs/misc.h |