[llvm-commits] CVS: llvm/include/llvm/System/Path.h

Reid Spencer reid at x10sys.com
Mon Dec 13 12:00:01 PST 2004



Changes in directory llvm/include/llvm/System:

Path.h updated: 1.15 -> 1.16
---
Log message:

For PR351: http://llvm.cs.uiuc.edu/PR351 :
Implement three new functions to allow setting access/permission bits on 
the file referenced by a path. The makeReadable and makeExecutable methods
replace the FileUtilities MakeFileReadable and MakeFileExecutable 
functions. The makeWritable function is new and provided for consistency
since Path has a writable() method.


---
Diffs of the changes:  (+16 -0)

Index: llvm/include/llvm/System/Path.h
diff -u llvm/include/llvm/System/Path.h:1.15 llvm/include/llvm/System/Path.h:1.16
--- llvm/include/llvm/System/Path.h:1.15	Mon Dec 13 11:01:53 2004
+++ llvm/include/llvm/System/Path.h	Mon Dec 13 13:59:50 2004
@@ -391,6 +391,22 @@
         StatusInfo info; getStatusInfo(info); return info.fileSize;
       }
 
+      /// This method attempts to make the file referenced by the Path object
+      /// available for reading so that the readable() method will return true.
+      /// @brief Make the file readable;
+      void makeReadable();
+
+      /// This method attempts to make the file referenced by the Path object
+      /// available for writing so that the writable() method will return true.
+      /// @brief Make the file writable;
+      void makeWriteable();
+
+      /// This method attempts to make the file referenced by the Path object
+      /// available for execution so that the executable() method will return 
+      /// true.
+      /// @brief Make the file readable;
+      void makeExecutable();
+
       /// This method attempts to set the Path object to \p unverified_path
       /// and interpret the name as a directory name.  The \p unverified_path 
       /// is verified. If verification succeeds then \p unverified_path 






More information about the llvm-commits mailing list