From 00e6a6bf016abed815a99a40c7a55dcd9d14dbef Mon Sep 17 00:00:00 2001 From: Edgaru089 Date: Fri, 5 Nov 2021 14:30:30 +0800 Subject: [PATCH] filesystem/fat: stub function definitions for linking --- driver/filesystem/fat/fat.cpp | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) diff --git a/driver/filesystem/fat/fat.cpp b/driver/filesystem/fat/fat.cpp index 505b393..349153e 100644 --- a/driver/filesystem/fat/fat.cpp +++ b/driver/filesystem/fat/fat.cpp @@ -79,6 +79,26 @@ Filesystem *FAT::AllocateBlock(BlockDevice *block, FAT::Config *config) { return fat; } +int FAT::__NextCluster(int cluster) { + return 0; +} + +int FAT::__Readdir(int cluster, void *user, Readdir_Callback callback) { + return 0; +} + +int FAT::Readdir(const char *path, void *user, Readdir_Callback callback, OpenFile *file) { + return -ENOSYS; +} + +int FAT::Opendir(const char *path, OpenFile *file) { + return -ENOSYS; +} + +int FAT::Closedir(const char *path, OpenFile *file) { + return -ENOSYS; +} + } // namespace filesystem } // namespace helos