summaryrefslogtreecommitdiff
path: root/include/llvm/Support/FileUtilities.h
diff options
context:
space:
mode:
authorJohn Criswell <criswell@uiuc.edu>2003-09-02 20:14:57 +0000
committerJohn Criswell <criswell@uiuc.edu>2003-09-02 20:14:57 +0000
commit6991a03753db092e2e5b269ebdc898ff5cfc43a8 (patch)
tree1d841e5d57190b10e9eefffacea49b225549f122 /include/llvm/Support/FileUtilities.h
parentde73193f3e42d7aa80429588b69b8d447beb0c9f (diff)
downloadllvm-6991a03753db092e2e5b269ebdc898ff5cfc43a8.tar.gz
llvm-6991a03753db092e2e5b269ebdc898ff5cfc43a8.tar.bz2
llvm-6991a03753db092e2e5b269ebdc898ff5cfc43a8.tar.xz
Added the MakeFileExecutable() method. This method takes a filename and
gives it execute access while respecting the user's umask. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@8324 91177308-0d34-0410-b5e6-96231b3b80d8
Diffstat (limited to 'include/llvm/Support/FileUtilities.h')
-rw-r--r--include/llvm/Support/FileUtilities.h15
1 files changed, 15 insertions, 0 deletions
diff --git a/include/llvm/Support/FileUtilities.h b/include/llvm/Support/FileUtilities.h
index 2c8eba3949..47704946c8 100644
--- a/include/llvm/Support/FileUtilities.h
+++ b/include/llvm/Support/FileUtilities.h
@@ -36,4 +36,19 @@ void removeFile(const std::string &Filename);
///
std::string getUniqueFilename(const std::string &FilenameBase);
+///
+/// Method: MakeFileExecutable()
+///
+/// Description:
+/// This method turns on whatever access attributes are needed to make the
+/// specified file executable.
+///
+/// Return value:
+/// True - The operation succeeded.
+/// False - The operation failed.
+///
+/// Notes:
+/// In case of failure, the file's access attributes are unspecified.
+///
+bool MakeFileExecutable (const std::string & Filename);
#endif