diff options
author | Christopher Haster <chaster@utexas.edu> | 2022-04-14 06:49:41 +0300 |
---|---|---|
committer | Christopher Haster <chaster@utexas.edu> | 2022-04-14 06:49:41 +0300 |
commit | 40dba4a556e0d81dfbe64301a6aa4e18ceca896c (patch) | |
tree | f316f041312c35258ccaca821516f83c806628b0 /lfs.h | |
parent | 9c7e232086f865cff0bb96fe753deb66431d91fd (diff) | |
parent | 148e312ea3e62e4405be37d1b6fc46a0e2e00e94 (diff) |
Merge pull request #669 from littlefs-project/develv2.5.0
Minor release: v2.5
Diffstat (limited to 'lfs.h')
-rw-r--r-- | lfs.h | 8 |
1 files changed, 7 insertions, 1 deletions
@@ -1,6 +1,7 @@ /* * The little filesystem * + * Copyright (c) 2022, The littlefs authors. * Copyright (c) 2017, Arm Limited. All rights reserved. * SPDX-License-Identifier: BSD-3-Clause */ @@ -22,7 +23,7 @@ extern "C" // Software library version // Major (top-nibble), incremented on backwards incompatible changes // Minor (bottom-nibble), incremented on feature additions -#define LFS_VERSION 0x00020004 +#define LFS_VERSION 0x00020005 #define LFS_VERSION_MAJOR (0xffff & (LFS_VERSION >> 16)) #define LFS_VERSION_MINOR (0xffff & (LFS_VERSION >> 0)) @@ -513,6 +514,7 @@ int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type); /// File operations /// +#ifndef LFS_NO_MALLOC // Open a file // // The mode that the file is opened in is determined by the flags, which @@ -522,6 +524,10 @@ int lfs_removeattr(lfs_t *lfs, const char *path, uint8_t type); int lfs_file_open(lfs_t *lfs, lfs_file_t *file, const char *path, int flags); +// if LFS_NO_MALLOC is defined, lfs_file_open() will fail with LFS_ERR_NOMEM +// thus use lfs_file_opencfg() with config.buffer set. +#endif + // Open a file with extra configuration // // The mode that the file is opened in is determined by the flags, which |