Get read working a little bit more. Need to handle edge cases!

This commit is contained in:
Byron Lathi
2023-12-05 23:29:00 -08:00
parent 4c3c3fd731
commit 066bb0ee8c
5 changed files with 21 additions and 14 deletions

View File

@@ -7,14 +7,14 @@
#include <process/process.h>
/* syscalls for files */
int8_t file_read(int8_t fd, void* buf, size_t nbytes);
int8_t file_write(int8_t fd, const void* buf, size_t nbytes);
size_t file_read(int8_t fd, void* buf, size_t nbytes);
size_t file_write(int8_t fd, const void* buf, size_t nbytes);
int8_t file_open(const char* filename);
int8_t file_close(int8_t fd);
/* syscalls for directories */
int8_t directory_read(int8_t fd, void* buf, size_t nbytes);
int8_t directory_write(int8_t fd, const void* buf, size_t nbytes);
size_t directory_read(int8_t fd, void* buf, size_t nbytes);
size_t directory_write(int8_t fd, const void* buf, size_t nbytes);
int8_t directory_open(const char* filename);
int8_t directory_close(int8_t fd);