summaryrefslogtreecommitdiff
path: root/src/kernel/fs.h
diff options
context:
space:
mode:
authorBenji Dial <benji3.141@gmail.com>2020-05-24 21:55:12 -0400
committerBenji Dial <benji3.141@gmail.com>2020-05-24 21:55:12 -0400
commit021ea9b271f2144f7b16ae41a9236292dea7897d (patch)
tree77bae3af854f9ff1fb0298ae1f71b1395a392cc1 /src/kernel/fs.h
parent02f14113cbf14c6f842fb43ecbc68d0c851ef3b0 (diff)
downloadportland-os-021ea9b271f2144f7b16ae41a9236292dea7897d.tar.gz
basic fs type stuff, fat16, removing stack segment and using data segment
Diffstat (limited to 'src/kernel/fs.h')
-rw-r--r--src/kernel/fs.h7
1 files changed, 4 insertions, 3 deletions
diff --git a/src/kernel/fs.h b/src/kernel/fs.h
index 821d810..e2b14c0 100644
--- a/src/kernel/fs.h
+++ b/src/kernel/fs.h
@@ -4,7 +4,8 @@ void clear_fs_handles();
typedef uint8_t fs_handle;
fs_handle fs_open(uint8_t *path);
-int16_t fs_seek(fs_handle handle, int16_t by);
-uint16_t fs_read(fs_handle handle, uint16_t max, void *buffer);
-uint16_t fs_write(fs_handle handle, uint16_t max, void *buffer);
+fs_handle fs_open_root();
+int32_t fs_seek(fs_handle handle, int32_t by);
+uint32_t fs_read(fs_handle handle, uint32_t max, void *buffer);
+uint32_t fs_write(fs_handle handle, uint32_t max, void *buffer);
void fs_close(fs_handle handle); \ No newline at end of file