Provide Path::isSpecialFile interface for PR5568.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@89765 91177308-0d34-0410-b5e6-96231b3b80d8
This commit is contained in:
Edward O'Callaghan
2009-11-24 15:19:10 +00:00
parent de8d3b73c8
commit d41e944501
3 changed files with 30 additions and 2 deletions

View File

@ -380,6 +380,11 @@ namespace sys {
/// in the file system.
bool canWrite() const;
/// This function checks that what we're trying to work only on a regular file or Dir.
/// Check for things like /dev/null, any block special file,
/// or other things that aren't "regular" files.
bool isSpecialFile() const;
/// This function determines if the path name references an executable
/// file in the file system. This function checks for the existence and
/// executability (by the current program) of the file.