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

@@ -15,8 +15,8 @@
struct fops {
int8_t (*open)(const char* filename);
int8_t (*close)(int8_t fd);
int8_t (*read)(int8_t fd, void* buf, size_t nbytes);
int8_t (*write)(int8_t fd, const void* buf, size_t nbytes);
size_t (*read)(int8_t fd, void* buf, size_t nbytes);
size_t (*write)(int8_t fd, const void* buf, size_t nbytes);
};
struct file_desc {