Add LFS_READYONLY define, to allow smaller builds providing read-only mode

This commit is contained in:
Maxime Vincent
2020-10-28 16:09:13 +01:00
parent 4c9146ea53
commit 8e6826c4e2
2 changed files with 133 additions and 1 deletions

1
lfs.h
View File

@@ -76,6 +76,7 @@ enum lfs_error {
LFS_ERR_EXIST = -17, // Entry already exists
LFS_ERR_NOTDIR = -20, // Entry is not a dir
LFS_ERR_ISDIR = -21, // Entry is a dir
LFS_ERR_NOSYS = -38, // Function not implemened
LFS_ERR_NOTEMPTY = -39, // Dir is not empty
LFS_ERR_BADF = -9, // Bad file number
LFS_ERR_FBIG = -27, // File too large