From 1a8563a05608b5b5e27eada44cf4790926001c68 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Wed, 6 May 2020 18:16:47 +0200 Subject: Removed vfs - ext2 ftw! I should really start thinking before I implement features. Now I did and I have quite a good plan for the future of Melvix (hint: not unix/posix-compliant!). --- src/kernel/fs/fs.h | 11 +++++++++++ 1 file changed, 11 insertions(+) create mode 100644 src/kernel/fs/fs.h (limited to 'src/kernel/fs/fs.h') diff --git a/src/kernel/fs/fs.h b/src/kernel/fs/fs.h new file mode 100644 index 0000000..88dcd95 --- /dev/null +++ b/src/kernel/fs/fs.h @@ -0,0 +1,11 @@ +#ifndef MELVIX_FS_H +#define MELVIX_FS_H + +#include + +uint32_t get_file_size(char *path); +uint32_t read(char *path, uint32_t offset, uint32_t count, uint8_t *buf); +uint32_t write(char *path, uint32_t offset, uint32_t count, uint8_t *buf); +uint8_t *read_file(char *path); // Only for temp kernel reads + +#endif \ No newline at end of file -- cgit v1.2.3