diff options
author | Marvin Borner | 2020-05-07 22:19:13 +0200 |
---|---|---|
committer | Marvin Borner | 2020-05-07 22:19:13 +0200 |
commit | 9b2e28ad7a752c0fe7b60e73ca43c827b45b3ee8 (patch) | |
tree | 5b1b48ccf8324cced9ae9c4139b493cd98789cc2 /src/kernel/syscall/actions | |
parent | 43184e40b14a5e41383ffb053e7c69c93ff81036 (diff) |
Added and applied include-sorting
Worked better than I thought!
Diffstat (limited to 'src/kernel/syscall/actions')
-rw-r--r-- | src/kernel/syscall/actions/sys_exec.c | 2 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_fork.c | 8 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_free.c | 2 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_get_pid.c | 2 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_malloc.c | 2 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_map.c | 2 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_read.c | 2 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_wait.c | 4 | ||||
-rw-r--r-- | src/kernel/syscall/actions/sys_write.c | 2 |
9 files changed, 13 insertions, 13 deletions
diff --git a/src/kernel/syscall/actions/sys_exec.c b/src/kernel/syscall/actions/sys_exec.c index 99c6539..a74bd29 100644 --- a/src/kernel/syscall/actions/sys_exec.c +++ b/src/kernel/syscall/actions/sys_exec.c @@ -1,6 +1,6 @@ +#include <io/io.h> #include <stdint.h> #include <tasks/process.h> -#include <io/io.h> u32 sys_exec(char *path) { diff --git a/src/kernel/syscall/actions/sys_fork.c b/src/kernel/syscall/actions/sys_fork.c index 084659e..ae1b17f 100644 --- a/src/kernel/syscall/actions/sys_fork.c +++ b/src/kernel/syscall/actions/sys_fork.c @@ -1,10 +1,10 @@ -#include <stdint.h> #include <interrupts/interrupts.h> -#include <memory/paging.h> -#include <tasks/process.h> +#include <io/io.h> #include <lib/lib.h> +#include <memory/paging.h> +#include <stdint.h> #include <system.h> -#include <io/io.h> +#include <tasks/process.h> u32 sys_fork(struct regs *r) { diff --git a/src/kernel/syscall/actions/sys_free.c b/src/kernel/syscall/actions/sys_free.c index a7daf2f..79e5096 100644 --- a/src/kernel/syscall/actions/sys_free.c +++ b/src/kernel/syscall/actions/sys_free.c @@ -1,5 +1,5 @@ -#include <stdint.h> #include <memory/alloc.h> +#include <stdint.h> u32 sys_free(u32 ptr) { diff --git a/src/kernel/syscall/actions/sys_get_pid.c b/src/kernel/syscall/actions/sys_get_pid.c index eb00abe..1184ce7 100644 --- a/src/kernel/syscall/actions/sys_get_pid.c +++ b/src/kernel/syscall/actions/sys_get_pid.c @@ -4,4 +4,4 @@ u32 sys_get_pid() { return current_proc->pid; -} +}
\ No newline at end of file diff --git a/src/kernel/syscall/actions/sys_malloc.c b/src/kernel/syscall/actions/sys_malloc.c index da21a2d..750530d 100644 --- a/src/kernel/syscall/actions/sys_malloc.c +++ b/src/kernel/syscall/actions/sys_malloc.c @@ -1,5 +1,5 @@ -#include <stdint.h> #include <memory/alloc.h> +#include <stdint.h> u32 sys_malloc(u32 count) { diff --git a/src/kernel/syscall/actions/sys_map.c b/src/kernel/syscall/actions/sys_map.c index 441722e..5af2c2a 100644 --- a/src/kernel/syscall/actions/sys_map.c +++ b/src/kernel/syscall/actions/sys_map.c @@ -1,5 +1,5 @@ -#include <stdint.h> #include <events/event.h> +#include <stdint.h> u32 sys_map(u32 id, u8 *function) { diff --git a/src/kernel/syscall/actions/sys_read.c b/src/kernel/syscall/actions/sys_read.c index 8b16064..b0428a8 100644 --- a/src/kernel/syscall/actions/sys_read.c +++ b/src/kernel/syscall/actions/sys_read.c @@ -1,5 +1,5 @@ -#include <stdint.h> #include <fs/fs.h> +#include <stdint.h> u32 sys_read(char *path, u32 offset, u32 count, u8 *buf) { diff --git a/src/kernel/syscall/actions/sys_wait.c b/src/kernel/syscall/actions/sys_wait.c index 4d12886..c716221 100644 --- a/src/kernel/syscall/actions/sys_wait.c +++ b/src/kernel/syscall/actions/sys_wait.c @@ -1,6 +1,6 @@ +#include <io/io.h> #include <stdint.h> #include <tasks/process.h> -#include <io/io.h> u32 sys_wait(u32 pid, u32 *status, u32 options) { @@ -24,4 +24,4 @@ u32 sys_wait(u32 pid, u32 *status, u32 options) } return ret; -} +}
\ No newline at end of file diff --git a/src/kernel/syscall/actions/sys_write.c b/src/kernel/syscall/actions/sys_write.c index 4d4275a..585a545 100644 --- a/src/kernel/syscall/actions/sys_write.c +++ b/src/kernel/syscall/actions/sys_write.c @@ -1,5 +1,5 @@ -#include <stdint.h> #include <fs/fs.h> +#include <stdint.h> u32 sys_write(char *path, u32 offset, u32 count, u8 *buf) { |