mirror of
https://github.com/c64scene-ar/llvm-6502.git
synced 2025-11-02 07:17:36 +00:00
Remove Path::makeExecutableOnDisk.
git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@183826 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
@@ -434,12 +434,6 @@ namespace sys {
|
|||||||
/// @brief Make the file writable;
|
/// @brief Make the file writable;
|
||||||
bool makeWriteableOnDisk(std::string* ErrMsg = 0);
|
bool makeWriteableOnDisk(std::string* ErrMsg = 0);
|
||||||
|
|
||||||
/// This method attempts to make the file referenced by the Path object
|
|
||||||
/// available for execution so that the canExecute() method will return
|
|
||||||
/// true.
|
|
||||||
/// @brief Make the file readable;
|
|
||||||
bool makeExecutableOnDisk(std::string* ErrMsg = 0);
|
|
||||||
|
|
||||||
/// This method allows the last modified time stamp and permission bits
|
/// This method allows the last modified time stamp and permission bits
|
||||||
/// to be set on the disk object referenced by the Path.
|
/// to be set on the disk object referenced by the Path.
|
||||||
/// @throws std::string if an error occurs.
|
/// @throws std::string if an error occurs.
|
||||||
|
|||||||
@@ -459,12 +459,6 @@ bool Path::makeWriteableOnDisk(std::string* ErrMsg) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Path::makeExecutableOnDisk(std::string* ErrMsg) {
|
|
||||||
if (!AddPermissionBits(*this, 0111))
|
|
||||||
return MakeErrMsg(ErrMsg, path + ": can't make file executable");
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
|
Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
|
||||||
DIR* direntries = ::opendir(path.c_str());
|
DIR* direntries = ::opendir(path.c_str());
|
||||||
|
|||||||
@@ -379,11 +379,6 @@ bool Path::makeWriteableOnDisk(std::string* ErrMsg) {
|
|||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Path::makeExecutableOnDisk(std::string* ErrMsg) {
|
|
||||||
// All files are executable on Windows (ignoring security attributes).
|
|
||||||
return false;
|
|
||||||
}
|
|
||||||
|
|
||||||
bool
|
bool
|
||||||
Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
|
Path::getDirectoryContents(std::set<Path>& result, std::string* ErrMsg) const {
|
||||||
WIN32_FILE_ATTRIBUTE_DATA fi;
|
WIN32_FILE_ATTRIBUTE_DATA fi;
|
||||||
|
|||||||
Reference in New Issue
Block a user