diff options
author | John Criswell <criswell@uiuc.edu> | 2003-09-02 21:09:30 +0000 |
---|---|---|
committer | John Criswell <criswell@uiuc.edu> | 2003-09-02 21:09:30 +0000 |
commit | 66622be46acfdebdfb82f1f6b988912ec8b61754 (patch) | |
tree | d7f96d414c70c1c75fdea3792220375a679ef6b6 /include | |
parent | 9adeccc552d6f28bdc503a8c1ffe13ea6ea6d73d (diff) | |
download | external_llvm-66622be46acfdebdfb82f1f6b988912ec8b61754.zip external_llvm-66622be46acfdebdfb82f1f6b988912ec8b61754.tar.gz external_llvm-66622be46acfdebdfb82f1f6b988912ec8b61754.tar.bz2 |
Added the MakeFileReadable() method.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8327 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include')
-rw-r--r-- | include/Support/FileUtilities.h | 17 | ||||
-rw-r--r-- | include/llvm/Support/FileUtilities.h | 17 |
2 files changed, 34 insertions, 0 deletions
diff --git a/include/Support/FileUtilities.h b/include/Support/FileUtilities.h index 4770494..3bba3fe 100644 --- a/include/Support/FileUtilities.h +++ b/include/Support/FileUtilities.h @@ -51,4 +51,21 @@ std::string getUniqueFilename(const std::string &FilenameBase); /// In case of failure, the file's access attributes are unspecified. /// bool MakeFileExecutable (const std::string & Filename); + +/// +/// Method: MakeFileReadable() +/// +/// Description: +/// This method turns on whatever access attributes are needed to make the +/// specified file readable. +/// +/// Return value: +/// True - The operation succeeded. +/// False - The operation failed. +/// +/// Notes: +/// In case of failure, the file's access attributes are unspecified. +/// +bool MakeFileReadable (const std::string & Filename); + #endif diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index 4770494..3bba3fe 100644 --- a/include/llvm/Support/FileUtilities.h +++ b/include/llvm/Support/FileUtilities.h @@ -51,4 +51,21 @@ std::string getUniqueFilename(const std::string &FilenameBase); /// In case of failure, the file's access attributes are unspecified. /// bool MakeFileExecutable (const std::string & Filename); + +/// +/// Method: MakeFileReadable() +/// +/// Description: +/// This method turns on whatever access attributes are needed to make the +/// specified file readable. +/// +/// Return value: +/// True - The operation succeeded. +/// False - The operation failed. +/// +/// Notes: +/// In case of failure, the file's access attributes are unspecified. +/// +bool MakeFileReadable (const std::string & Filename); + #endif |