LLNL / UnifyFS

UnifyFS: A file system for burst buffers
Other
99 stars 31 forks source link

Add wrappers for stat64 family calls #775

Closed wangvsa closed 1 year ago

wangvsa commented 1 year ago

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 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