mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-08-08 19:25:47 +00:00
Add new function
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@10648 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -70,37 +70,22 @@ void removeFile(const std::string &Filename);
|
|||||||
///
|
///
|
||||||
std::string getUniqueFilename(const std::string &FilenameBase);
|
std::string getUniqueFilename(const std::string &FilenameBase);
|
||||||
|
|
||||||
|
/// MakeFileExecutable - This method turns on whatever access attributes are
|
||||||
|
/// needed to make the specified file executable. It returns true on success.
|
||||||
|
/// In case of failure, the file's access attributes are unspecified.
|
||||||
///
|
///
|
||||||
/// Method: MakeFileExecutable()
|
bool MakeFileExecutable(const std::string &Filename);
|
||||||
///
|
|
||||||
/// 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);
|
|
||||||
|
|
||||||
|
/// MakeFileReadable - This method turns on whatever access attributes are
|
||||||
|
/// needed to make the specified file readable. It returns true on success.
|
||||||
|
/// In case of failure, the file's access attributes are unspecified.
|
||||||
///
|
///
|
||||||
/// Method: MakeFileReadable()
|
bool MakeFileReadable(const std::string &Filename);
|
||||||
///
|
|
||||||
/// Description:
|
/// getFileSize - Return the size of the specified file in bytes, or -1 if the
|
||||||
/// This method turns on whatever access attributes are needed to make the
|
/// file cannot be read or does not exist.
|
||||||
/// specified file readable.
|
long long getFileSize(const std::string &Filename);
|
||||||
///
|
|
||||||
/// 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);
|
|
||||||
|
|
||||||
|
|
||||||
/// FDHandle - Simple handle class to make sure a file descriptor gets closed
|
/// FDHandle - Simple handle class to make sure a file descriptor gets closed
|
||||||
|
@@ -70,37 +70,22 @@ void removeFile(const std::string &Filename);
|
|||||||
///
|
///
|
||||||
std::string getUniqueFilename(const std::string &FilenameBase);
|
std::string getUniqueFilename(const std::string &FilenameBase);
|
||||||
|
|
||||||
|
/// MakeFileExecutable - This method turns on whatever access attributes are
|
||||||
|
/// needed to make the specified file executable. It returns true on success.
|
||||||
|
/// In case of failure, the file's access attributes are unspecified.
|
||||||
///
|
///
|
||||||
/// Method: MakeFileExecutable()
|
bool MakeFileExecutable(const std::string &Filename);
|
||||||
///
|
|
||||||
/// 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);
|
|
||||||
|
|
||||||
|
/// MakeFileReadable - This method turns on whatever access attributes are
|
||||||
|
/// needed to make the specified file readable. It returns true on success.
|
||||||
|
/// In case of failure, the file's access attributes are unspecified.
|
||||||
///
|
///
|
||||||
/// Method: MakeFileReadable()
|
bool MakeFileReadable(const std::string &Filename);
|
||||||
///
|
|
||||||
/// Description:
|
/// getFileSize - Return the size of the specified file in bytes, or -1 if the
|
||||||
/// This method turns on whatever access attributes are needed to make the
|
/// file cannot be read or does not exist.
|
||||||
/// specified file readable.
|
long long getFileSize(const std::string &Filename);
|
||||||
///
|
|
||||||
/// 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);
|
|
||||||
|
|
||||||
|
|
||||||
/// FDHandle - Simple handle class to make sure a file descriptor gets closed
|
/// FDHandle - Simple handle class to make sure a file descriptor gets closed
|
||||||
|
Reference in New Issue
Block a user