ext2: slightly clean up indirect read/alloc

This commit is contained in:
Michael Shaw 2023-10-21 14:25:28 -04:00
commit 0a1b73edc2
4 changed files with 275 additions and 169 deletions

View file

@ -108,12 +108,17 @@ struct fs {
char *mount_point;
};
struct statbuf {
size_t size;
};
void vfs_init(const char *rootfs);
int write(int fd, void *buf, size_t count);
int read(int fd, void *buf, size_t count);
int open(const char *pathname, int flags);
int close(int fd);
int seek(int fd, size_t offset, int whence);
int statfd(int fd, struct statbuf *statbuf);
DIR *opendir(const char *name);
struct dirent *readdir(DIR *dir);