mirror of
https://github.com/cesanta/mongoose.git
synced 2026-11-13 17:00:19 +00:00
mOS filesystem refactoring: introduce VFS
With different filesystem implementations and storage drivers, like grown-ups have :) This is not currently used to add any new functionality, we still have only one FS and driver on ESP8266 and ESP32; CC3200 has two: SPIFFS and SLFS. This will be used soon to implement filesystems on additional SPI flash chips and SD cards. PUBLISHED_FROM=293960fef82952c505e9b1925aac7724c7308362
This commit is contained in:
1 parent
cd48bcfd7d
commit
27094896b1
2 files changed
+52
-38
No files matched your search
+3
-1
@@ -538,7 +538,9 @@ typedef struct stat cs_stat_t;
|
||||
#define SIZE_T_FMT "u"
|
||||
typedef struct stat cs_stat_t;
|
||||
#define DIRSEP '/'
|
||||
#if !defined(MGOS_VFS_DEFINE_DIRENT)
|
||||
#define CS_DEFINE_DIRENT
|
||||
#endif
|
||||
|
||||
#define to64(x) strtoll(x, NULL, 10)
|
||||
#define INT64_FMT PRId64
|
||||
@@ -700,7 +702,7 @@ struct stat {
|
||||
};
|
||||
|
||||
int _stat(const char *pathname, struct stat *st);
|
||||
#define stat(a, b) _stat(a, b)
|
||||
int stat(const char *pathname, struct stat *st);
|
||||
|
||||
#define __S_IFMT 0170000
|
||||
|
||||
|
||||
Reference in new issue
Block a user