LLVM API Documentation
#include "llvm/Support/FileUtilities.h"
#include "llvm/Support/DataTypes.h"
#include "llvm/Config/unistd.h"
#include "llvm/Config/fcntl.h"
#include "llvm/Config/sys/types.h"
#include "llvm/Config/sys/stat.h"
#include "llvm/Config/sys/mman.h"
#include "llvm/Config/alloca.h"
#include <cerrno>
#include <cstdio>
#include <fstream>
#include <iostream>
Include dependency graph for FileUtilities.cpp:
Go to the source code of this file.
Functions | |
bool | llvm::CheckMagic (const std::string &FN, const std::string &Magic) |
bool | llvm::IsArchive (const std::string &FN) |
bool | llvm::IsBytecode (const std::string &FN) |
bool | llvm::IsSharedObject (const std::string &FN) |
bool | llvm::FileOpenable (const std::string &Filename) |
bool | llvm::DiffFiles (const std::string &FileA, const std::string &FileB, std::string *Error) |
bool | llvm::CopyFile (const std::string &Dest, const std::string &Src) |
void | llvm::MoveFileOverIfUpdated (const std::string &New, const std::string &Old) |
void | llvm::removeFile (const std::string &Filename) |
std::string | llvm::getUniqueFilename (const std::string &FilenameBase) |
static bool | AddPermissionsBits (const std::string &Filename, int bits) |
bool | llvm::MakeFileExecutable (const std::string &Filename) |
bool | llvm::MakeFileReadable (const std::string &Filename) |
long long | llvm::getFileSize (const std::string &Filename) |
unsigned long long | llvm::getFileTimestamp (const std::string &Filename) |
void * | llvm::ReadFileIntoAddressSpace (const std::string &Filename, unsigned &Length) |
void | llvm::UnmapFileFromAddressSpace (void *Buffer, unsigned Length) |
|
Definition at line 213 of file FileUtilities.cpp. Referenced by llvm::MakeFileExecutable(), and llvm::MakeFileReadable(). |