diff options
author | Marvin Borner | 2020-11-20 23:05:07 +0100 |
---|---|---|
committer | Marvin Borner | 2020-11-20 23:05:07 +0100 |
commit | cbdf41189c4627fbea719e96b93e2237f38ef5de (patch) | |
tree | ba159ea2e2f726d4cc10db95babf59279ff03fc8 /kernel/inc | |
parent | 33d3ac6b5302f5e3a23cc7e318cf1f0605c398e5 (diff) |
Added stat syscall
This currently only returns the file size, other stats will
follow soon!
Diffstat (limited to 'kernel/inc')
-rw-r--r-- | kernel/inc/fs.h | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/kernel/inc/fs.h b/kernel/inc/fs.h index 93d2013..156bb8c 100644 --- a/kernel/inc/fs.h +++ b/kernel/inc/fs.h @@ -93,9 +93,7 @@ struct file { u32 curr_block_pos; }; -u32 find_inode(const char *name, u32 dir_inode); -struct inode *get_inode(u32 i); -void *read_inode(struct inode *in); -void *read_file(char *path); +void *file_read(char *path); +u32 file_stat(char *path); #endif |