Add a version of sys::fs::status that uses fstat.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@186378 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Rafael Espindola
2013-07-16 03:20:13 +00:00
parent 3a101048af
commit 87be8d353b
3 changed files with 71 additions and 40 deletions

View File

@@ -529,6 +529,9 @@ error_code is_symlink(const Twine &path, bool &result);
/// platform specific error_code.
error_code status(const Twine &path, file_status &result);
/// @brief A version for when a file descriptor is already available.
error_code status(int FD, file_status &Result);
/// @brief Get file size.
///
/// @param Path Input path.