|
LLVM
4.0.0
|
#include "llvm/ADT/SmallString.h"#include "llvm/ADT/StringRef.h"#include "llvm/ADT/Twine.h"#include "llvm/Support/Chrono.h"#include "llvm/Support/ErrorHandling.h"#include "llvm/Support/ErrorOr.h"#include <cassert>#include <cstdint>#include <ctime>#include <memory>#include <stack>#include <string>#include <system_error>#include <tuple>#include <vector>Go to the source code of this file.
Namespaces | |
| llvm | |
| Compute iterated dominance frontiers using a linear time algorithm. | |
| llvm::sys | |
| llvm::sys::fs | |
| llvm::sys::fs::detail | |
Functions | |
| perms | llvm::sys::fs::operator| (perms l, perms r) |
| perms | llvm::sys::fs::operator& (perms l, perms r) |
| perms & | llvm::sys::fs::operator|= (perms &l, perms r) |
| perms & | llvm::sys::fs::operator&= (perms &l, perms r) |
| perms | llvm::sys::fs::operator~ (perms x) |
| std::error_code | llvm::sys::fs::detail::directory_iterator_construct (DirIterState &, StringRef) |
| std::error_code | llvm::sys::fs::detail::directory_iterator_increment (DirIterState &) |
| std::error_code | llvm::sys::fs::detail::directory_iterator_destruct (DirIterState &) |
Physical Operators | |
| std::error_code | llvm::sys::fs::make_absolute (const Twine ¤t_directory, SmallVectorImpl< char > &path) |
| Make path an absolute path. More... | |
| std::error_code | llvm::sys::fs::make_absolute (SmallVectorImpl< char > &path) |
| Make path an absolute path. More... | |
| std::error_code | llvm::sys::fs::create_directories (const Twine &path, bool IgnoreExisting=true, perms Perms=owner_all|group_all) |
| Create all the non-existent directories in path. More... | |
| std::error_code | llvm::sys::fs::create_directory (const Twine &path, bool IgnoreExisting=true, perms Perms=owner_all|group_all) |
| Create the directory in path. More... | |
| std::error_code | llvm::sys::fs::create_link (const Twine &to, const Twine &from) |
| Create a link from from to to. More... | |
| std::error_code | llvm::sys::fs::create_hard_link (const Twine &to, const Twine &from) |
| Create a hard link from from to to, or return an error. More... | |
| std::error_code | llvm::sys::fs::current_path (SmallVectorImpl< char > &result) |
| Get the current path. More... | |
| std::error_code | llvm::sys::fs::remove (const Twine &path, bool IgnoreNonExisting=true) |
| Remove path. More... | |
| std::error_code | llvm::sys::fs::rename (const Twine &from, const Twine &to) |
| Rename from to to. More... | |
| std::error_code | llvm::sys::fs::copy_file (const Twine &From, const Twine &To) |
| Copy the contents of From to To. More... | |
| std::error_code | llvm::sys::fs::resize_file (int FD, uint64_t Size) |
| Resize path to size. More... | |
Physical Observers | |
| enum | llvm::sys::fs::AccessMode { llvm::sys::fs::AccessMode::Exist, llvm::sys::fs::AccessMode::Write, llvm::sys::fs::AccessMode::Execute } |
| enum | llvm::sys::fs::OpenFlags : unsigned { llvm::sys::fs::F_None = 0, llvm::sys::fs::F_Excl = 1, llvm::sys::fs::F_Append = 2, llvm::sys::fs::F_Text = 4, llvm::sys::fs::F_RW = 8 } |
| bool | llvm::sys::fs::exists (file_status status) |
| Does file exist? More... | |
| std::error_code | llvm::sys::fs::access (const Twine &Path, AccessMode Mode) |
| Can the file be accessed? More... | |
| bool | llvm::sys::fs::exists (const Twine &Path) |
| Does file exist? More... | |
| bool | llvm::sys::fs::can_execute (const Twine &Path) |
| Can we execute this file? More... | |
| bool | llvm::sys::fs::can_write (const Twine &Path) |
| Can we write this file? More... | |
| bool | llvm::sys::fs::equivalent (file_status A, file_status B) |
| Do file_status's represent the same thing? More... | |
| std::error_code | llvm::sys::fs::equivalent (const Twine &A, const Twine &B, bool &result) |
| Do paths represent the same thing? More... | |
| bool | llvm::sys::fs::equivalent (const Twine &A, const Twine &B) |
| Simpler version of equivalent for clients that don't need to differentiate between an error and false. More... | |
| bool | llvm::sys::fs::is_directory (file_status status) |
| Does status represent a directory? More... | |
| std::error_code | llvm::sys::fs::is_directory (const Twine &path, bool &result) |
| Is path a directory? More... | |
| bool | llvm::sys::fs::is_directory (const Twine &Path) |
| Simpler version of is_directory for clients that don't need to differentiate between an error and false. More... | |
| bool | llvm::sys::fs::is_regular_file (file_status status) |
| Does status represent a regular file? More... | |
| std::error_code | llvm::sys::fs::is_regular_file (const Twine &path, bool &result) |
| Is path a regular file? More... | |
| bool | llvm::sys::fs::is_regular_file (const Twine &Path) |
| Simpler version of is_regular_file for clients that don't need to differentiate between an error and false. More... | |
| bool | llvm::sys::fs::is_other (file_status status) |
| Does this status represent something that exists but is not a directory, regular file, or symlink? More... | |
| std::error_code | llvm::sys::fs::is_other (const Twine &path, bool &result) |
| Is path something that exists but is not a directory, regular file, or symlink? More... | |
| std::error_code | llvm::sys::fs::status (const Twine &path, file_status &result) |
| Get file status as if by POSIX stat(). More... | |
| std::error_code | llvm::sys::fs::status (int FD, file_status &Result) |
| A version for when a file descriptor is already available. More... | |
| std::error_code | llvm::sys::fs::file_size (const Twine &Path, uint64_t &Result) |
| Get file size. More... | |
| std::error_code | llvm::sys::fs::setLastModificationAndAccessTime (int FD, TimePoint<> Time) |
| Set the file modification and access time. More... | |
| bool | llvm::sys::fs::status_known (file_status s) |
| Is status available? More... | |
| std::error_code | llvm::sys::fs::status_known (const Twine &path, bool &result) |
| Is status available? More... | |
| std::error_code | llvm::sys::fs::createUniqueFile (const Twine &Model, int &ResultFD, SmallVectorImpl< char > &ResultPath, unsigned Mode=all_read|all_write) |
| Create a uniquely named file. More... | |
| std::error_code | llvm::sys::fs::createUniqueFile (const Twine &Model, SmallVectorImpl< char > &ResultPath) |
| Simpler version for clients that don't want an open file. More... | |
| std::error_code | llvm::sys::fs::createTemporaryFile (const Twine &Prefix, StringRef Suffix, int &ResultFD, SmallVectorImpl< char > &ResultPath) |
| Create a file in the system temporary directory. More... | |
| std::error_code | llvm::sys::fs::createTemporaryFile (const Twine &Prefix, StringRef Suffix, SmallVectorImpl< char > &ResultPath) |
| Simpler version for clients that don't want an open file. More... | |
| std::error_code | llvm::sys::fs::createUniqueDirectory (const Twine &Prefix, SmallVectorImpl< char > &ResultPath) |
| std::error_code | llvm::sys::fs::getPathFromOpenFD (int FD, SmallVectorImpl< char > &ResultPath) |
| Fetch a path to an open file, as specified by a file descriptor. More... | |
| OpenFlags | llvm::sys::fs::operator| (OpenFlags A, OpenFlags B) |
| OpenFlags & | llvm::sys::fs::operator|= (OpenFlags &A, OpenFlags B) |
| std::error_code | llvm::sys::fs::openFileForWrite (const Twine &Name, int &ResultFD, OpenFlags Flags, unsigned Mode=0666) |
| std::error_code | llvm::sys::fs::openFileForRead (const Twine &Name, int &ResultFD, SmallVectorImpl< char > *RealPath=nullptr) |
| file_magic | llvm::sys::fs::identify_magic (StringRef magic) |
| Identify the type of a binary file based on how magical it is. More... | |
| std::error_code | llvm::sys::fs::identify_magic (const Twine &path, file_magic &result) |
| Get and identify path's type based on its content. More... | |
| std::error_code | llvm::sys::fs::getUniqueID (const Twine Path, UniqueID &Result) |
| ErrorOr< space_info > | llvm::sys::fs::disk_space (const Twine &Path) |
| Get disk space usage information. More... | |
| std::string | llvm::sys::fs::getMainExecutable (const char *argv0, void *MainExecAddr) |
| Return the path to the main executable, given the value of argv[0] from program startup and the address of main itself. More... | |
1.8.6