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 xiaoxiang
parent 43e98a5d2d
commit 6c9ea8d293
18 changed files with 195 additions and 14 deletions
+7
View File
@@ -66,6 +66,13 @@
# define environ get_environ_ptr()
#endif
#if defined(CONFIG_FS_LARGEFILE) && defined(CONFIG_HAVE_LONG_LONG)
# define mkstemp64 mkstemp
# define mkostemp64 mkostemp
# define mkstemps64 mkstemps
# define mkostemps64 mkostemps
#endif
#define strtof_l(s, e, l) strtof(s, e)
#define strtod_l(s, e, l) strtod(s, e)
#define strtold_l(s, e, l) strtold(s, e)