Components/IFS/src/include/IFS/Gdb/FileSystem.h
Go to the documentation of this file.
Delegate class, encapsulates a std::function Added constructor template implements lambda callback wh...
Definition: Delegate.h:24
IFS implementation of Host filing system.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:33
int getxattr(const char *, AttributeTag, void *, size_t) override
Get an attribute from a file given its path.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:85
~FileSystem() override=default
int fgetxattr(FileHandle, AttributeTag, void *, size_t) override
Get an extended attribute from an open file.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:73
int fenumxattr(FileHandle, AttributeEnumCallback, void *, size_t) override
Enumerate attributes.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:77
int readdir(DirHandle, Stat &) override
read a directory entry
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:55
int mkdir(const char *) override
Create a directory.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:63
FileHandle open(const char *path, OpenFlags flags) override
open a file (or directory) by path
int opendir(const char *, DirHandle &) override
open a directory for reading
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:47
int ftruncate(FileHandle, file_size_t) override
Truncate (reduce) the size of an open file.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:96
int setxattr(const char *, AttributeTag, const void *, size_t) override
Set an extended attribute for a file given its path.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:81
String getErrorString(int err) override
get the text for a returned error code
int closedir(DirHandle) override
close a directory object
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:59
int fsetxattr(FileHandle, AttributeTag, const void *, size_t) override
Set an extended attribute on an open file.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:69
int format() override
format the filing system
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:110
int check() override
Perform a file system consistency check.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:114
int write(FileHandle file, const void *data, size_t size) override
write content to a file at current position and advance cursor
int fremove(FileHandle) override
remove (delete) a file by handle
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:106
FileSystem()=default
int read(FileHandle file, void *data, size_t size) override
read content from a file and advance cursor
int rewinddir(DirHandle) override
Reset directory read position to start.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:51
int flush(FileHandle) override
flush any buffered data to physical media
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:100
file_offset_t lseek(FileHandle file, file_offset_t offset, SeekOrigin origin) override
change file read/write position
int rename(const char *oldpath, const char *newpath) override
rename a file
int eof(FileHandle file) override
determine if current file position is at end of file
int mount() override
Mount file system, performing any required initialisation.
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:39
Definition: Components/IFS/src/include/IFS/Gdb/FileSystem.h:28
1.9.1