diff options
author | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-16 03:20:13 +0000 |
---|---|---|
committer | Rafael Espindola <rafael.espindola@gmail.com> | 2013-07-16 03:20:13 +0000 |
commit | 87be8d353b3454383940ce5abc1a176268a33d33 (patch) | |
tree | 840a6a2944fa7116a5a27670fa3f23d1565d6822 /include/llvm | |
parent | 3a101048affcb00654b85558157150ad270fc46d (diff) | |
download | llvm-87be8d353b3454383940ce5abc1a176268a33d33.tar.gz llvm-87be8d353b3454383940ce5abc1a176268a33d33.tar.bz2 llvm-87be8d353b3454383940ce5abc1a176268a33d33.tar.xz |
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
Diffstat (limited to 'include/llvm')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 8b63015ef5..5ed151d648 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -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. |