diff options
| author | Zachary Turner <zturner@google.com> | 2017-03-19 05:49:43 +0000 |
|---|---|---|
| committer | Zachary Turner <zturner@google.com> | 2017-03-19 05:49:43 +0000 |
| commit | 6934e0aaa7fa1f081a43e3ceea4c7a865ba015ce (patch) | |
| tree | 1458713baad812a8f935583cbcd8eead1ee4df9a /lldb/source/Host/windows | |
| parent | 3a86a04404037dd5f0e19a4b866f2d9c082d0c18 (diff) | |
| download | bcm5719-llvm-6934e0aaa7fa1f081a43e3ceea4c7a865ba015ce.tar.gz bcm5719-llvm-6934e0aaa7fa1f081a43e3ceea4c7a865ba015ce.zip | |
Remove FileSystem::Get/SetFilePermissions
Differential Revision: https://reviews.llvm.org/D31089
llvm-svn: 298205
Diffstat (limited to 'lldb/source/Host/windows')
| -rw-r--r-- | lldb/source/Host/windows/FileSystem.cpp | 28 |
1 files changed, 0 insertions, 28 deletions
diff --git a/lldb/source/Host/windows/FileSystem.cpp b/lldb/source/Host/windows/FileSystem.cpp index 50a9666c472..e834c85a28c 100644 --- a/lldb/source/Host/windows/FileSystem.cpp +++ b/lldb/source/Host/windows/FileSystem.cpp @@ -30,34 +30,6 @@ FileSpec::PathSyntax FileSystem::GetNativePathSyntax() { return FileSpec::ePathSyntaxWindows; } -Error FileSystem::GetFilePermissions(const FileSpec &file_spec, - uint32_t &file_permissions) { - Error error; - // Beware that Windows's permission model is different from Unix's, and it's - // not clear if this API is supposed to check ACLs. To match the caller's - // expectations as closely as possible, we'll use Microsoft's _stat, which - // attempts to emulate POSIX stat. This should be good enough for basic - // checks like FileSpec::Readable. - struct _stat file_stats; - if (::_stat(file_spec.GetCString(), &file_stats) == 0) { - // The owner permission bits in "st_mode" currently match the definitions - // for the owner file mode bits. - file_permissions = file_stats.st_mode & (_S_IREAD | _S_IWRITE | _S_IEXEC); - } else { - error.SetErrorToErrno(); - } - - return error; -} - -Error FileSystem::SetFilePermissions(const FileSpec &file_spec, - uint32_t file_permissions) { - Error error; - error.SetErrorStringWithFormat("%s is not supported on this host", - LLVM_PRETTY_FUNCTION); - return error; -} - lldb::user_id_t FileSystem::GetFileSize(const FileSpec &file_spec) { return file_spec.GetByteSize(); } |

