mirror of
https://github.com/apache/nuttx.git
synced 2026-06-07 01:05:54 +08:00
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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user