diff options
author | dzwdz | 2022-07-26 19:31:06 +0200 |
---|---|---|
committer | dzwdz | 2022-07-26 19:31:06 +0200 |
commit | a3e27d361919392eeb0086ed93b105d8301c7913 (patch) | |
tree | 91996a17172b650416bda82a472336b9d0edcdf0 /src/user/app/init/driver | |
parent | 7a29c68ce0dc190cd6350746210441bc41d7da91 (diff) |
user: move the POSIX-y stuff to the proper header files
Diffstat (limited to 'src/user/app/init/driver')
-rw-r--r-- | src/user/app/init/driver/ansiterm.c | 2 | ||||
-rw-r--r-- | src/user/app/init/driver/ps2.c | 2 | ||||
-rw-r--r-- | src/user/app/init/driver/termcook.c | 5 | ||||
-rw-r--r-- | src/user/app/init/driver/tmpfs.c | 2 |
4 files changed, 6 insertions, 5 deletions
diff --git a/src/user/app/init/driver/ansiterm.c b/src/user/app/init/driver/ansiterm.c index dde2183..4b66d6f 100644 --- a/src/user/app/init/driver/ansiterm.c +++ b/src/user/app/init/driver/ansiterm.c @@ -1,6 +1,6 @@ +#include "driver.h" #include <camellia/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 45458c8..6aed2fb 100644 --- a/src/user/app/init/driver/ps2.c +++ b/src/user/app/init/driver/ps2.c @@ -1,7 +1,7 @@ +#include "driver.h" #include <camellia/syscalls.h> #include <shared/container/ring.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 868d5d3..59cef77 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 <user/app/init/driver/driver.h> -#include <user/lib/stdlib.h> +#include <stdio.h> +#include <unistd.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 200e62d..83c42c7 100644 --- a/src/user/app/init/driver/tmpfs.c +++ b/src/user/app/init/driver/tmpfs.c @@ -1,7 +1,7 @@ #include <camellia/syscalls.h> #include <shared/mem.h> #include <stddef.h> -#include <user/lib/malloc.h> +#include <stdlib.h> struct node { const char *name; |