diff options
author | Eric Christopher <echristo@apple.com> | 2012-05-11 00:07:44 +0000 |
---|---|---|
committer | Eric Christopher <echristo@apple.com> | 2012-05-11 00:07:44 +0000 |
commit | 61aef8bdf7a60bb1ab510fee0c5b2792468aadd3 (patch) | |
tree | c88c6fc2fc6e7bb51391a594dcff6ed4fbdb0df3 /include/llvm/Support/FileSystem.h | |
parent | 620ee81fa0bef312d711688c86b73aa16f088509 (diff) | |
download | external_llvm-61aef8bdf7a60bb1ab510fee0c5b2792468aadd3.zip external_llvm-61aef8bdf7a60bb1ab510fee0c5b2792468aadd3.tar.gz external_llvm-61aef8bdf7a60bb1ab510fee0c5b2792468aadd3.tar.bz2 |
Allow unique_file to take a mode for file permissions, but default
to user only read/write.
Part of rdar://11325849
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@156591 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileSystem.h')
-rw-r--r-- | include/llvm/Support/FileSystem.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/llvm/Support/FileSystem.h b/include/llvm/Support/FileSystem.h index 3fd5301..55565cd 100644 --- a/include/llvm/Support/FileSystem.h +++ b/include/llvm/Support/FileSystem.h @@ -422,8 +422,8 @@ error_code status_known(const Twine &path, bool &result); /// @results errc::success if result_{fd,path} have been successfully set, /// otherwise a platform specific error_code. error_code unique_file(const Twine &model, int &result_fd, - SmallVectorImpl<char> &result_path, - bool makeAbsolute = true); + SmallVectorImpl<char> &result_path, + bool makeAbsolute = true, unsigned mode = 0600); /// @brief Canonicalize path. /// |