#include "src/kernel/fs.h" #include "src/kernel/fat16.h" fs_node_t *fs_mount() { return fat16_mount(); } fs_node_t *fs_open_by(const fs_node_t *directory, const char *name) { return fat16_open_by(directory, name); } fs_node_t *fs_open_at(const fs_node_t *directory, uint64_t index) { return fat16_open_at(directory, index); } fs_node_t *fs_open_again(const fs_node_t *source) { return fat16_open_again(source); } stream_t *fs_open_stream(const fs_node_t *source) { return fat16_open_stream(source); } void fs_read(const fs_node_t *file, uint32_t offset, uint32_t bytes, void *to) { fat16_read(file, offset, bytes, to); } void fs_write(fs_node_t *file, uint32_t offset, const void *from, uint32_t bytes) { fat16_write(file, offset, from, bytes); } void fs_close(fs_node_t *node) { fat16_close(node); } void fs_unmount(fs_node_t *fs) { fat16_unmount(fs); }