This PR includes wrappers for stat64 family calls, including stat64, fstat64, xstat64, fxstat64 and __lxstat64.
Note: I changed the unifyfs_file_attr_to_stat function from a static function to a marco so it can handle both struct stat and struct stat64 as the input parameter.
Motivation and Context
stat64 family calls are used by many applications that need to access large files. They are used either explicitly or implicitly (e.g., through FILE_OFFSET_BITS=64 compile flags). See issue https://github.com/LLNL/UnifyFS/issues/769.
Types of changes
[ ] Bug fix (non-breaking change which fixes an issue)
[x] New feature (non-breaking change which adds functionality)
[ ] Performance enhancement (non-breaking change which improves efficiency)
[ ] Code cleanup (non-breaking change which makes code smaller or more readable)
[ ] Breaking change (fix or feature that would cause existing functionality to change)
[ ] Testing (addition of new tests or update to current tests)
[ ] Documentation (a change to man pages or other documentation)
Description
This PR includes wrappers for stat64 family calls, including stat64, fstat64, xstat64, fxstat64 and __lxstat64. Note: I changed the
unifyfs_file_attr_to_stat
function from a static function to a marco so it can handle bothstruct stat
andstruct stat64
as the input parameter.Motivation and Context
stat64 family calls are used by many applications that need to access large files. They are used either explicitly or implicitly (e.g., through FILE_OFFSET_BITS=64 compile flags). See issue https://github.com/LLNL/UnifyFS/issues/769.
Types of changes