Merge pull request #237 from Ar2rL/reverse_finalize_close

Protect (LFS_ASSERT) file operations against using not opened or closed files.
This commit is contained in:
Christopher Haster
2019-07-28 21:26:03 -05:00
committed by GitHub
2 changed files with 28 additions and 4 deletions

1
lfs.h
View File

@@ -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