diff options
author | Anton Kling <anton@kling.gg> | 2023-11-15 02:44:45 +0100 |
---|---|---|
committer | Anton Kling <anton@kling.gg> | 2023-11-15 21:40:13 +0100 |
commit | e22e493940266e0aa9be2bf58df1821a3539e19b (patch) | |
tree | 64d3516642fae984b5f801db3348d884f661731d /kernel/scalls | |
parent | 6747f9407a061684c2fba837541c254f48bfcff0 (diff) |
Kernel/LibC: Add chdir function and syscall
Diffstat (limited to 'kernel/scalls')
-rw-r--r-- | kernel/scalls/chdir.c | 6 | ||||
-rw-r--r-- | kernel/scalls/chdir.h | 1 |
2 files changed, 7 insertions, 0 deletions
diff --git a/kernel/scalls/chdir.c b/kernel/scalls/chdir.c new file mode 100644 index 0000000..ec6ba92 --- /dev/null +++ b/kernel/scalls/chdir.c @@ -0,0 +1,6 @@ +#include <fs/vfs.h> +#include <scalls/chdir.h> + +int syscall_chdir(const char *path) { + return vfs_chdir(path); +} diff --git a/kernel/scalls/chdir.h b/kernel/scalls/chdir.h new file mode 100644 index 0000000..574ca0d --- /dev/null +++ b/kernel/scalls/chdir.h @@ -0,0 +1 @@ +int syscall_chdir(const char *path); |