fs_port_posix.c
Path manipulation helper functions.
String manipulation helper functions.
error_t fsReadFile(FsFile *file, void *data, size_t size, size_t *length)
Read data from the specified file.
Definition: fs_port_posix.c:383
error_t fsGetFileSize(const char_t *path, uint32_t *size)
Retrieve the size of the specified file.
Definition: fs_port_posix.c:104
bool_t fsDirExists(const char_t *path)
Check whether a directory exists.
Definition: fs_port_posix.c:442
FsFile * fsOpenFile(const char_t *path, uint_t mode)
Open the specified file for reading or writing.
Definition: fs_port_posix.c:255
void convertUnixTimeToDate(time_t t, DateTime *date)
Convert Unix timestamp to date.
Definition: date_time.c:198
error_t fsGetFileStat(const char_t *path, FsFileStat *fileStat)
Retrieve the attributes of the specified file.
Definition: fs_port_posix.c:135
error_t fsSeekFile(FsFile *file, int_t offset, uint_t origin)
Move to specified position in file.
Definition: fs_port_posix.c:293
error_t fsRenameFile(const char_t *oldPath, const char_t *newPath)
Rename the specified file.
Definition: fs_port_posix.c:187
__weak_func void osFreeMem(void *p)
Release a previously allocated memory block.
Definition: os_port_chibios.c:464
error_t fsWriteFile(FsFile *file, void *data, size_t length)
Write data to the specified file.
Definition: fs_port_posix.c:345
error_t fsReadDir(FsDir *dir, FsDirEntry *dirEntry)
Read an entry from the specified directory stream.
Definition: fs_port_posix.c:599
Error codes description.
File system abstraction layer (POSIX)
File system abstraction layer.
error_t strSafeCopy(char_t *dest, const char_t *src, size_t destSize)
Copy string.
Definition: str.c:172
Debugging facilities.
void pathCombine(char_t *path, const char_t *more, size_t maxLen)
Concatenate two paths.
Definition: path.c:394