summaryrefslogtreecommitdiff
path: root/lldb/source/Host/posix/FileSystem.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2018-11-02 17:34:16 +0000
committerJonas Devlieghere <jonas@devlieghere.com>2018-11-02 17:34:16 +0000
commitd7c2b798be21004c628404711beedf315690539b (patch)
treed5d21cff7e798234019ed1a0127ef0022b0dc4d1 /lldb/source/Host/posix/FileSystem.cpp
parent0eb5008352d8c0aa63d6d6c7288c3cfd68c6486a (diff)
[FileSystme] Move ::open abstraction into FileSystem.
This moves the abstraction around ::open into the FileSystem, as is already the case for ::fopen. llvm-svn: 346002
Diffstat (limited to 'lldb/source/Host/posix/FileSystem.cpp')
-rw-r--r--lldb/source/Host/posix/FileSystem.cpp5
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Host/posix/FileSystem.cpp b/lldb/source/Host/posix/FileSystem.cpp
index c4b203bf4b37..d7045ff99919 100644
--- a/lldb/source/Host/posix/FileSystem.cpp
+++ b/lldb/source/Host/posix/FileSystem.cpp
@@ -11,6 +11,7 @@
// C includes
#include <dirent.h>
+#include <fcntl.h>
#include <sys/mount.h>
#include <sys/param.h>
#include <sys/stat.h>
@@ -73,3 +74,7 @@ Status FileSystem::ResolveSymbolicLink(const FileSpec &src, FileSpec &dst) {
FILE *FileSystem::Fopen(const char *path, const char *mode) {
return ::fopen(path, mode);
}
+
+int FileSystem::Open(const char *path, int flags, int mode) {
+ return ::open(path, flags, mode);
+}