Hack together open()

This commit is contained in:
Byron Lathi
2023-12-05 18:04:08 -08:00
parent 9ae1593957
commit 48b39eb92d
7 changed files with 130 additions and 31 deletions

View File

@@ -3,16 +3,18 @@
#include <stdint.h>
#include <process/process.h>
/* syscalls for files */
int8_t file_read(int8_t fd, void* buf, int8_t nbytes);
int8_t file_write(int8_t fd, const void* buf, int8_t nbytes);
int8_t file_open(const uint8_t* filename);
int8_t file_open(const int8_t* filename);
int8_t file_close(int8_t fd);
/* syscalls for directories */
int8_t directory_read(int8_t fd, void* buf, int8_t nbytes);
int8_t directory_write(int8_t fd, const void* buf, int8_t nbytes);
int8_t directory_open(const uint8_t* filename);
int8_t directory_open(const int8_t* filename);
int8_t directory_close(int8_t fd);