[llvm-commits] CVS: llvm/include/Support/FileUtilities.h

John Criswell criswell at cs.uiuc.edu
Tue Sep 2 15:16:02 PDT 2003


Changes in directory llvm/include/Support:

FileUtilities.h updated: 1.2 -> 1.3

---
Log message:

Added the MakeFileExecutable() method.  This method takes a filename and
gives it execute access while respecting the user's umask.



---
Diffs of the changes:

Index: llvm/include/Support/FileUtilities.h
diff -u llvm/include/Support/FileUtilities.h:1.2 llvm/include/Support/FileUtilities.h:1.3
--- llvm/include/Support/FileUtilities.h:1.2	Thu Aug  7 16:28:47 2003
+++ llvm/include/Support/FileUtilities.h	Tue Sep  2 15:14:57 2003
@@ -36,4 +36,19 @@
 ///
 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





More information about the llvm-commits mailing list