diff options
Diffstat (limited to 'include/lldb/Host/FileSystem.h')
-rw-r--r-- | include/lldb/Host/FileSystem.h | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/include/lldb/Host/FileSystem.h b/include/lldb/Host/FileSystem.h index 465ad451bdd6e..d656d2264f66d 100644 --- a/include/lldb/Host/FileSystem.h +++ b/include/lldb/Host/FileSystem.h @@ -11,6 +11,8 @@ #define liblldb_Host_FileSystem_h #include <stdint.h> +#include <stdio.h> +#include <sys/stat.h> #include "lldb/lldb-types.h" @@ -23,6 +25,7 @@ class FileSystem { public: static const char *DEV_NULL; + static const char *PATH_CONVERSION_ERROR; static FileSpec::PathSyntax GetNativePathSyntax(); @@ -59,6 +62,15 @@ class FileSystem /// Return \b true if \a spec is on a locally mounted file system, \b false otherwise. static bool IsLocal(const FileSpec &spec); + + /// Wraps ::fopen in a platform-independent way. Once opened, FILEs can be + /// manipulated and closed with the normal ::fread, ::fclose, etc. functions. + static FILE * + Fopen(const char *path, const char *mode); + + /// Wraps ::stat in a platform-independent way. + static int + Stat(const char *path, struct stat *stats); }; } |