From 66622be46acfdebdfb82f1f6b988912ec8b61754 Mon Sep 17 00:00:00 2001 From: John Criswell Date: Tue, 2 Sep 2003 21:09:30 +0000 Subject: Added the MakeFileReadable() method. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8327 91177308-0d34-0410-b5e6-96231b3b80d8 --- include/llvm/Support/FileUtilities.h | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) (limited to 'include/llvm/Support/FileUtilities.h') diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h index 47704946c8..3bba3fec73 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 -- cgit v1.2.3