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/features/syscall.c | |
parent | 33d3ac6b5302f5e3a23cc7e318cf1f0605c398e5 (diff) |
Added stat syscall
This currently only returns the file size, other stats will
follow soon!
Diffstat (limited to 'kernel/features/syscall.c')
-rw-r--r-- | kernel/features/syscall.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/kernel/features/syscall.c b/kernel/features/syscall.c index ac89d04..3d70dbb 100644 --- a/kernel/features/syscall.c +++ b/kernel/features/syscall.c @@ -33,8 +33,12 @@ void syscall_handler(struct regs *r) free((void *)r->ebx); break; } + case SYS_STAT: { + r->eax = (u32)file_stat((char *)r->ebx); + break; + } case SYS_READ: { - r->eax = (u32)read_file((char *)r->ebx); + r->eax = (u32)file_read((char *)r->ebx); break; } case SYS_WRITE: { |