fs: Change off_t and related types to int64_t if long long is supported

since it is very popular that the storage capcacity is large than 4GB
even in the embedded system:
https://www.opengroup.org/platform/lfs.html
https://en.wikipedia.org/wiki/Large-file_support

Signed-off-by: Xiang Xiao <xiaoxiang@xiaomi.com>
Change-Id: I019dc08aff02f9ea01eb6d750033bbc358994da5
This commit is contained in:
Xiang Xiao
2021-07-21 11:46:21 +08:00
committed by David Sidrane
parent 238a96e7de
commit 319474b1b1
18 changed files with 195 additions and 14 deletions
+5
View File
@@ -63,6 +63,11 @@
* it. */
#endif
#if defined(CONFIG_FS_LARGEFILE) && defined(CONFIG_HAVE_LONG_LONG)
# define ftw64 ftw
# define nftw64 nftw
#endif
/****************************************************************************
* Public Types
****************************************************************************/