From 65602895a59f9e9c79ca65342ee3b843ba37183f Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Fri, 27 Jun 2014 06:10:18 +0200 Subject: FatFS complete implementation --- src/gfile/inc_nativefs.c | 1 + 1 file changed, 1 insertion(+) (limited to 'src/gfile/inc_nativefs.c') diff --git a/src/gfile/inc_nativefs.c b/src/gfile/inc_nativefs.c index 4ecb2004..26dc33c5 100644 --- a/src/gfile/inc_nativefs.c +++ b/src/gfile/inc_nativefs.c @@ -46,6 +46,7 @@ static const GFILEVMT FsNativeVMT = { NativeDel, NativeExists, NativeFilesize, NativeRen, NativeOpen, NativeClose, NativeRead, NativeWrite, NativeSetpos, NativeGetsize, NativeEof, + 0, 0 }; #undef GFILE_CHAINHEAD #define GFILE_CHAINHEAD &FsNativeVMT -- cgit v1.2.3 From a9f1520e02ed5425abbfb7e621f103053c2e3799 Mon Sep 17 00:00:00 2001 From: inmarket Date: Fri, 27 Jun 2014 23:04:01 +1000 Subject: Fatfs Cleanup --- src/gfile/inc_nativefs.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/gfile/inc_nativefs.c') diff --git a/src/gfile/inc_nativefs.c b/src/gfile/inc_nativefs.c index 26dc33c5..98e0ab10 100644 --- a/src/gfile/inc_nativefs.c +++ b/src/gfile/inc_nativefs.c @@ -51,7 +51,7 @@ static const GFILEVMT FsNativeVMT = { #undef GFILE_CHAINHEAD #define GFILE_CHAINHEAD &FsNativeVMT -static void flags2mode(char *buf, uint16_t flags) { +static void Native_flags2mode(char *buf, uint16_t flags) { if (flags & GFILEFLG_MUSTEXIST) *buf = 'r'; else if (flags & GFILEFLG_APPEND) @@ -90,7 +90,7 @@ static bool_t NativeOpen(GFILE *f, const char *fname) { FILE *fd; char mode[5]; - flags2mode(mode, f->flags); + Native_flags2mode(mode, f->flags); if (!(fd = fopen(fname, mode))) return FALSE; f->obj = (void *)fd; -- cgit v1.2.3 From 5c13e08e76ae1d75240e1e8e46d1e9c3a8ba50cd Mon Sep 17 00:00:00 2001 From: Joel Bodenmann Date: Sun, 29 Jun 2014 16:15:46 +0200 Subject: added gfileSync() and autosync feature --- src/gfile/inc_nativefs.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) (limited to 'src/gfile/inc_nativefs.c') diff --git a/src/gfile/inc_nativefs.c b/src/gfile/inc_nativefs.c index 98e0ab10..6845cb71 100644 --- a/src/gfile/inc_nativefs.c +++ b/src/gfile/inc_nativefs.c @@ -46,7 +46,8 @@ static const GFILEVMT FsNativeVMT = { NativeDel, NativeExists, NativeFilesize, NativeRen, NativeOpen, NativeClose, NativeRead, NativeWrite, NativeSetpos, NativeGetsize, NativeEof, - 0, 0 + 0, 0, + 0 }; #undef GFILE_CHAINHEAD #define GFILE_CHAINHEAD &FsNativeVMT -- cgit v1.2.3