Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/littlefs-project/littlefs.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
path: root/lfs.h
diff options
context:
space:
mode:
authorChristopher Haster <chaster@utexas.edu>2019-07-29 05:26:03 +0300
committerGitHub <noreply@github.com>2019-07-29 05:26:03 +0300
commit31e28fddb7557124ae47a7a70ae8312ff9981372 (patch)
tree662ea71f9ff87569bb23c63f63af77ac380c9b71 /lfs.h
parent3806d8828504d303ba6a8e07656535d1e82808f9 (diff)
parent7e1bad3eeeb41edd19a8c0cd70a4d1f36742ffbf (diff)
Merge pull request #237 from Ar2rL/reverse_finalize_close
Protect (LFS_ASSERT) file operations against using not opened or closed files.
Diffstat (limited to 'lfs.h')
-rw-r--r--lfs.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/lfs.h b/lfs.h
index 504932d..3f80016 100644
--- a/lfs.h
+++ b/lfs.h
@@ -136,6 +136,7 @@ enum lfs_open_flags {
LFS_F_READING = 0x040000, // File has been read since last flush
LFS_F_ERRED = 0x080000, // An error occured during write
LFS_F_INLINE = 0x100000, // Currently inlined in directory entry
+ LFS_F_OPENED = 0x200000, // File has been opened
};
// File seek flags